blogs.whiteloves.inThe hidden cost of Promise In NodeJSI was just watching some videos, you know, YT and chill.https://www.youtube.com/watch?v=i0YfiQlzv6MThen Prime mentioned something that caught me off guard. He said sync Promises go behind event loops. I was like, no way, that can't be true. Promises ...May 13, 2025路5 min read
blogs.whiteloves.inHow Caching Boosted Performance for a Top Air Quality Monitoring CompanyWhat does your usual caching strategy look like? Maybe something like this: async function getUser(userId) { const cacheResult = await cache.get(`USERS:${userId}`); if (cacheResult !== null) return JSON.parse(cacheResult); const result = ...Jan 25, 2025路13 min read
blogs.whiteloves.inHow I generated Heatmaps 100x fasterMy company spent a bunch of months building the backend for Heatmap. Here's how it went down: we used the IDW algorithm with wind speed and direction to figure out the value for each spot. We set up a heatmap config in our database. A cron job ran ...Jan 15, 2025路6 min read
blogs.whiteloves.inImplementing Request-Based Logging for Enhanced Debugging in Leading Air Quality CompaniesWe often run into issues when trying to debug a request! But debugging in production? 馃槹 So many logs to sift through, and then you have to track down all the related logs! Sure, you could use top-notch logging services like AWS, GCP, DataDog, etc. B...Jan 4, 2025路9 min read
blogs.whiteloves.inA Guide to Node.js Generic Routing Systemhttps://jsr.io/@panth977/routes gives you a cool design system to set up your routes, with support for Middleware, HTTP (req, single res), and SSE. But keep in mind, this package isn't meant to serve your routes! For that, you'll need https://jsr.io/...Dec 11, 2024路5 min read