While working on makemap.co I wanted to update some pictures and had to convert some images to webp format. Since it was only a handful of images, I did it manually using one of the first search results that popped up on Google. Only afterward did I ask myself: did I just upload an image to a server? I went back to check what happens on the network tab in the developer console when converting an…
Modern distributed systems often rely on asynchronous processing to scale operations and improve responsiveness. While offloading this work to background jobs via message queues seems straightforward, the moment you introduce them alongside a relational database, you’re walking into a classic trap: the dual write problem. In this article we explore the failure modes of naïve implementations,…
Idempotence is a critical concept in software systems, ensuring that a given operation can be performed multiple times without changing the system's state beyond the initial application. It's particularly important in database operations, where duplicate inserts can wreak havoc on data integrity and lead to subtle, hard-to-debug errors. When done right, idempotent inserts enable fault tolerance…