Sync engines, end-to-end
Build a production-grade sync engine. Queue, ordering, conflict resolution, reconnect storms. The course companion to the essay series.
What you will learn, in order.
Free preview lessons play immediately. Locked lessons unlock when you enrol.
Foundations
Why naive queues fail under real network conditions, and the smallest set of primitives that survive production.
- 01.01Why queues fail in productionFREE
- 01.02The state machine inside every queueEnrol to unlock
- 01.03Quiz: foundations vocabularyEnrol to unlock
Building it
The actual implementation: idempotency keys, the flush loop, and bounded concurrency.
- 02.01Idempotency keys, in detailEnrol to unlock
- 02.02The flush loop, line by lineEnrol to unlock
- 02.03Bounded concurrency without bugsEnrol to unlock
Production
The hard problems: persistence, conflict resolution, and a final readiness check.
- 03.01Persistence: SQLite, IndexedDB, choicesEnrol to unlock
- 03.02Conflict resolution at the edgeEnrol to unlock
- 03.03Quiz: production readinessEnrol to unlock
Three things this course does that most do not.
Each lesson is anchored to a single production codebase, not a toy app. The repo is on GitHub from day one. You fork it, you fix the failures, you keep it.
Each module ends with a short quiz that catches the misunderstandings before they compound. Pass the final quiz, get the certificate. Fail it, retake it.
Bilingual without translation. Arabic and English versions are written in parallel by me, not run through a translator. Same examples, same code, same depth.
Built for engineers who already ship.
- You ship code in production for non-trivial systems and want fewer surprises.
- You learn faster from real failures than from clean abstractions.
- You can read English code comments comfortably even if you prefer Arabic prose.
What recent students say.
I had been hand-rolling sync code for two years before this course. Watching the flush-loop lesson, I realised I had reinvented every bug Ali warned about.
The conflict-resolution module is worth the entire price. I cancelled the CRDT library we were planning to ship.
I took two passes through the course. The second time I caught everything I missed and shipped the new sync layer in three weeks.
Likely questions.
You ship code in production for non-trivial systems. You want fewer surprises and faster trade-off decisions. If you are looking for an introduction to programming, this is not the right place.
Goes well with this course.
Reading from the writing
Files & references
Ready when you are.
One purchase, lifetime access, full refund within 14 days. The first lesson is free; the rest unlocks the moment you enrol.
If the first paid lesson does not change how you think about the topic, ask for a refund. No friction.