ayush.
ExperienceSkillsProjectsWritingContact
/writing

Writing

Notes on systems, tooling, and the things I build.

All 4Saga Orchestrator 2System Design 1Systems 1

System Design1

1 Aug 2026·8 min

Content Delivery Networks, from scratch

Why CDNs must exist (it comes down to physics), how a request finds the nearest edge, how caching and invalidation really work.

Read →

Saga Orchestrator2

25 Jul 2026·8 min

Chapter 1 — The Solution: The Saga, and the Questions I Answered First

You can't make cross-service work atomic — so instead of one big transaction, you run a sequence of local ones with compensations: a saga. This chapter is that solution, and the five design questions I had to answer before writing a single line of SQL.

Read →
25 Jul 2026·7 min

Chapter 0 — The Problem: When One Order Isn't One Transaction

A batch of orders from a CSV looks like a trivial import — until you notice each order spans four services and there's no transaction to make it all-or-nothing. This is the distributed-consistency problem in full, before any solution.

Read →

Systems1

24 Jul 2026·6 min

Cache invalidation is a design decision, not a detail

Every cache turns one source of truth into several. The hard part was never deleting the key — it is deciding how wrong you are willing to be, for how long, and what happens when the invalidation quietly fails.

Read →
systemsDev-NotePortfolio
© 2026 Ayush Kumar Singh · built with Next.js
emaillinkedinleetcode