The Day A Bug Was Fixed Only Because The CEO Called In 🔊

Ok, maybe not really "fixed."

Fagner Brack
May 24, 2018 · 4 min read
Image for post
Image for post
The picture of the fictional character “Heisenberg” from the TV Series “Breaking Bad.” He's looking at the screen with firm and fixed eyes.
Listen to the audio version!

The pseudo-code for the Node.js server handling the duplicated request. There's a middleware calling the function "is duplicate request" that looks at a database for a duplicate unique request ID, if there's one.
The code I used to reproduce the HTTP retry behavior at the time of this writing. It has a route to load an HTML form that sends a POST request. When the browser sends the request, the server doesn't send any response, until the timeout occurs.

Thanks to Wagner Nunes

Fagner Brack

Written by

I believe ideas should be open and free. This is a non-profit initiative to write about fundamentals you won’t find anywhere else. ~7 min post every few weeks.

Fagner Brack

Written by

I believe ideas should be open and free. This is a non-profit initiative to write about fundamentals you won’t find anywhere else. ~7 min post every few weeks.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store