Distributed Systems

StreamShop Order Idempotency Keys

August 19, 2026
Distributed Systems

StreamShop Order Idempotency Keys # To handle duplicate submissions or network issues we should idempotency keys to ensure orders are never duplicated. In StreamShop the order-api handles this. The basic flow is: order-api tries to reserve the key in Redis (SET NX, 1 hour TTL) First request wins, creates the order, stores order_id on the key, returns 201 A later request with the same key finds the completed record and returns 200 with the original order If the first request is still in progress, the retry gets 409 You can watch a short video showing this in action on YouTube

StreamShop Phase 1 Happy Path

August 18, 2026
Distributed Systems

StreamShop Phase 1 Happy Path # With phase 1 complete on my StreamShop Distributed System showcase repo I though it would be useful to record a video walkthrough showing the happy path I didn’t want it to be too long so I cover an overview of the architecture and then give a couple of data flow examples including requesting products and creating an order.

Why I'm Building a Distributed Systems Portfolio in Public

August 17, 2026
Distributed Systems

Proprietary code taught me a lot. It didn’t leave me much to show. # I’ve worked with large distributed systems in my career but they have always been proprietary. When someone asks “can I see something you’ve built?”, the honest answer has been “not really”. So I’m fixing it by building in public. What I’m building # The first repo is StreamShop a fictional e-commerce platform designed as a local-first distributed systems showcase. ...