Skip to content
ALI HAITHAM·TECH·responds in <1h
  • Homestart here
  • Workcase studies, projects
  • Serviceswhat I will build for you
  • Writingessays, series
  • Traincourses, labs, cohorts
  • Aboutthe engineer behind this site
Sign inStart a project
ALI HAITHAM · TECH
  • Home↗
  • Work↗
  • Services↗
  • Writing↗
  • Train↗
  • About↗
Sign inStart a project
Online
ALI HAITHAM·TECH

Engineering studio. Damascus, GMT+3.

aliyosef.online

Studio

  • Work
  • Writing
  • Training
  • About
  • Contact me

Portal

  • Sign in
  • Open a ticket
  • Track project
  • My account

Resources

  • Docs
  • Status
  • Changelog
  • Brand kit
  • Privacy
  • Terms

Newsletter

Field notes and tech news. Weekly. No fluff.

Free. Unsubscribe anytime.

Find me elsewhere
© 2026 Ali Haitham Yosef. All rights reserved.Hand-built in React 19. No frameworks of frameworks.Last deployed · 2026-05-08All systems operational
  1. Home/
  2. Train/
  3. Sync engines, end-to-end
/01 — COURSEAVAILABLE NOW

Sync engines, end-to-end

Build a production-grade sync engine. Queue, ordering, conflict resolution, reconnect storms. The course companion to the essay series.

9 lessons · 14 hours · INTERMEDIATE

Enrol $220→Why queues fail in production
/02 — CURRICULUM

What you will learn, in order.

Free preview lessons play immediately. Locked lessons unlock when you enrol.

  1. 01

    Foundations

    Why naive queues fail under real network conditions, and the smallest set of primitives that survive production.

    1. 01.01Why queues fail in productionVIDEO·12mFREE→
    2. 01.02The state machine inside every queueREAD·8mEnrol to unlock
    3. 01.03Quiz: foundations vocabularyQUIZ·4qEnrol to unlock
  2. 02

    Building it

    The actual implementation: idempotency keys, the flush loop, and bounded concurrency.

    1. 02.01Idempotency keys, in detailVIDEO·18mEnrol to unlock
    2. 02.02The flush loop, line by lineREAD·14mEnrol to unlock
    3. 02.03Bounded concurrency without bugsVIDEO·11mEnrol to unlock
  3. 03

    Production

    The hard problems: persistence, conflict resolution, and a final readiness check.

    1. 03.01Persistence: SQLite, IndexedDB, choicesREAD·10mEnrol to unlock
    2. 03.02Conflict resolution at the edgeVIDEO·22mEnrol to unlock
    3. 03.03Quiz: production readinessQUIZ·6qEnrol to unlock
/03 — HOW IT TEACHES

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.

/04 — WHO IT IS FOR

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.
/05 — IN THEIR WORDS

What recent students say.

  1. 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.
    Senior mobile engineer, Riyadh·COMPLETED 2026-03
  2. The conflict-resolution module is worth the entire price. I cancelled the CRDT library we were planning to ship.
    CTO, B2B SaaS·COMPLETED 2026-02
  3. I took two passes through the course. The second time I caught everything I missed and shipped the new sync layer in three weeks.
    Indie founder·COMPLETED 2026-01
/06 — QUESTIONS

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.

/COMPANION CONTENT

Goes well with this course.

Hands-on labs

  • Build a queue in 60 minutesA working sync queue in TypeScript with idempotency keys, retries, and the test harness.Pair with module 02
  • Add audit logs to a Laravel appA minimal audit-log table that survives 100M rows. Append-only, partitioned, queryable.

Reading from the writing

  • When polling beats websocketsSync engines
  • Building a sync engine, part one: the queueSync engines

Files & references

  • Bibliography (PDF)PDF↓
  • Pre-flight checklist (PDF)PDF↓
/07 — DECIDE

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.

Why queues fail in production

If the first paid lesson does not change how you think about the topic, ask for a refund. No friction.