I’ve decided to make this space more me, so I’m starting by reintroducing myself .
I’m Peace, a Software Engineer. I build things, break things, learn and every now and then question why I chose tech 😭
I’m currently diving deeper into DevOps & Cloud much about that here
@lambdafan@call_me_tiwari Yes, it fails when people don't make it atomic. Postgres doesn't save you from bad code, it just gives you the tools to write good code
A question I've been thinking about while exploring distributed workers, What happens when a worker successfully processes a task but crashes before updating its status?
@sntdeveloper This is the part I missed! SWR works when there's stale data to serve, but a cold key has nothing, so you need request coalescing too.
Thanks for adding that
Today I learned about cache stampedes, imagine 5,000 users ask for the same thing at the exact second the cache expires.
All 5,000 hit your database at once, your database may die
Fix: Stale while revalidate, users won’t notice trust me
@call_me_tiwari Exactly, so do you prefer handling idempotency at the DB level with a unique key, or at the queue level?
I’ve seen both fail in different ways
@IamAroke The latter, an approval with no review teaches you nothing.
I used to have a TL, Abdulazeez, he reviewed my PRs properly.
Ngl those comments made me better