Learn the Zomato tech stack from scratch.

Build a food-delivery system from the ground up using Go, MySQL, Redis, Kafka, React Native and Expo. Learn each concept in a full lesson, apply it in an exercise, and verify your implementation with tests running on your own machine.

  • Go
  • MySQL
  • Redis
  • Kafka
  • WebSockets
  • gRPC
  • React Native
  • Expo
  • Docker
  • GitHub Actions
  • Free, self-paced engineering course
  • English
  • 8 of 8 weeks available
Customer appRider appGo APIRedisKafka
  • 8 weeks56 modules
  • 169 items81 lessons, 88 exercises
  • IntermediateSome programming experience
  • About 154 hoursof available material

This course includes

  • 81 lessons with knowledge assessments
  • 88 exercises with progressive hints
  • Tests that run on your own machine
  • Reference solutions for every exercise
  • Self-paced, with progress saved to your account
  • Free, with no payment details

Course project and system architecture

Backend

Build a Go backend with MySQL, Redis and Kafka. Implement authentication, restaurant menus, orders, rate limiting, live tracking, caching, load testing and deployment.

Customer app

Build a customer-facing mobile application using React Native and Expo. Connect it to the backend and implement the customer experience for a food-delivery system.

What you will learn

  • Project setup and rate limiting

    Set up the Go project and build a rate limiter to control how frequently clients can make requests.

  • Restaurants and menus with MySQL

    Build restaurant and menu APIs backed by MySQL, including database migrations, queries and pagination.

  • Authentication, orders and Kafka events

    Implement authentication, place orders safely and publish order events through Kafka.

  • Customer application with Expo

    Build a React Native customer application with Expo and connect it to the food-delivery backend.

  • Live order tracking and rider management

    Implement live order tracking and introduce riders into the food-delivery system.

  • Performance, caching and load testing

    Improve system performance with load testing, caching and metrics.

  • Deployment and production operations

    Prepare the application for real users by configuring and shipping a production deployment.

  • Advanced features and project documentation

    Complete a stretch module and write up the project, its architecture and implementation decisions.

Eight-week syllabus

8 weeks, 169 items available, about 154 hours

Week 1: Project setup and rate limiting30 items · 22.5 hr

Set up the Go project and build a rate limiter to control how frequently clients can make requests.

Module 1: Project setup

  • 1.1The Go toolchain, modules and packagesPreview25 min
  • 1.2Makefile, golangci-lint and Docker Compose25 min
  • 1.3Create the repo, Makefile, lint config and docker-compose60 min

Module 2: Go fundamentals

  • 1.4Go basics: types, functions and defer30 min
  • 1.5Structs, pointers, slices and maps35 min
  • 1.6Methods and receivers25 min
  • 1.7Interfaces and Go errors35 min
  • 1.8Practice: write your first Go programOptional30 min

Module 3: Rate limiting and token bucket algorithms

  • 1.9Rate limiting: why, and the five algorithms50 min
  • 1.10Mutexes and time: making a limiter safe and testable35 min
  • 1.11Token bucket limiter with lazy refill75 min

Module 4: Alternative rate limiters and testing

  • 1.12Go testing: testing.T, subtests and table-driven tests30 min
  • 1.13Goroutines, WaitGroup and the race detector35 min
  • 1.14Limiter interface and a FixedWindow implementation50 min
  • 1.15Table-driven tests with a fake clock, plus one race test60 min

Module 5: HTTP rate limiting

  • 1.16net/http handlers and middleware40 min
  • 1.17The chi router and context.Context30 min
  • 1.18RateLimit HTTP middleware that returns 42960 min
  • 1.19chi server with /healthz and a rate limit45 min

Module 6: Distributed rate limiting with Redis

  • 1.20Redis fundamentals and the Go client40 min
  • 1.21Redis atomicity, transactions, Lua and failure handling40 min
  • 1.22Redis fixed-window limiter that fails open80 min

Module 7: Continuous integration

  • 1.23GitHub Actions for Go30 min
  • 1.24GitHub Actions: lint and race tests on every push45 min

Module 8: Capacity estimation and user load

  • 1.25Capacity: how many users can this rate limiter serve?50 min

Module 9: Optional extensions

  • 1.26Optional: Sliding window log limiterOptional60 min
  • 1.27Optional: Sliding window counter limiterOptional60 min
  • 1.28Optional: Leaky bucket limiterOptional45 min
  • 1.29Optional: Token bucket in Redis with Lua and EVALSHAOptional75 min
  • 1.30Optional: X-RateLimit response headersOptional50 min
Week 2: Restaurants and menus with MySQL26 items · 20.9 hr

Build restaurant and menu APIs backed by MySQL, including database migrations, queries and pagination.

Module 1: Database schema and migrations

  • 2.1MySQL tables, keys and InnoDB indexes35 min
  • 2.2Versioned migrations with golang-migrate20 min
  • 2.3Write the restaurant and menu migrations70 min

Module 2: SQL queries and data access

  • 2.4database/sql: pools, contexts and timeouts30 min
  • 2.5sqlc: SQL first, Go generated30 min
  • 2.6Generate the restaurant and menu queries60 min
  • 2.7Seed 50 restaurants and one full menu45 min

Module 3: Listing API and pagination

  • 2.8JSON HTTP handlers in Go30 min
  • 2.9Keyset (cursor) pagination35 min
  • 2.10GET /v1/restaurants with a cursor90 min

Module 4: Response construction

  • 2.11N+1 queries and how to batch them25 min
  • 2.12GET /v1/restaurants/{id}/menu in five queries75 min

Module 5: Menu pricing endpoint

  • 2.13Error classification in Go30 min
  • 2.14POST /v1/menu/price: price a configured item90 min

Module 6: Open-hours index

  • 2.15Bitsets for opening hours25 min
  • 2.16Background refresh with atomic.Pointer30 min
  • 2.17GET /v1/restaurants: open status90 min

Module 7: Restaurant list test suite

  • 2.18HTTP integration tests with MySQL fixtures30 min
  • 2.19Restaurant list integration suite60 min

Module 8: Restaurant API capacity

  • 2.20Workload-based capacity estimation50 min

Module 9: Restaurant list extensions

  • 2.21HMAC signing for cursorsOptional25 min
  • 2.22GET /v1/restaurants: signed cursorsOptional60 min
  • 2.23MySQL FULLTEXT searchOptional25 min
  • 2.24GET /v1/restaurants: search by nameOptional75 min
  • 2.25Haversine distance and geo indexesOptional30 min
  • 2.26GET /v1/restaurants: sort by distanceOptional90 min
Week 3: Authentication, orders and Kafka events24 items · 22.3 hr

Implement authentication, place orders safely and publish order events through Kafka.

Module 1: Account authentication

  • 3.1Password hashing and random secrets25 min
  • 3.2JWT and refresh token rotation35 min
  • 3.3POST /v1/auth/*: signup, login and refresh110 min
  • 3.4Bearer middleware and request context25 min
  • 3.5GET /v1/me: caller account50 min

Module 2: Order creation

  • 3.6Migration 0006: order tables50 min
  • 3.7Transactions in Go and MySQL30 min
  • 3.8Isolation levels and anomalies35 min
  • 3.9Idempotency keys25 min
  • 3.10POST /v1/orders: idempotent checkout120 min

Module 3: Order lifecycle API

  • 3.11State machines and optimistic locking35 min
  • 3.12POST /v1/orders/{id}/events: order lifecycle150 min

Module 4: Kafka event publishing

  • 3.13Kafka partitions and groups30 min
  • 3.14Transactional outbox writes30 min
  • 3.15Outbox relay to order-events110 min

Module 5: Reliable event consumers

  • 3.16Idempotency and retry handling35 min
  • 3.17Notifier worker with retries and DLQ130 min

Module 6: API and worker shutdown

  • 3.18Signal-driven shutdown20 min
  • 3.19API and notifier shutdown50 min

Module 7: Order service capacity

  • 3.20Capacity estimation50 min

Module 8: Account and outbox extensions

  • 3.21Refresh families, relay locking, login throttlingOptional25 min
  • 3.22POST /v1/auth/refresh: detect token reuseOptional60 min
  • 3.23Concurrent outbox relayOptional60 min
  • 3.24POST /v1/auth/login: rate limit attemptsOptional45 min
Week 4: Customer application with Expo22 items · 18.3 hr

Build a React Native customer application with Expo and connect it to the food-delivery backend.

Module 1: Expo app foundations

  • 4.1React Native screen layout30 min
  • 4.2Expo Router navigation30 min
  • 4.3Expo device networking15 min
  • 4.4Expo app shell70 min

Module 2: API client and authentication

  • 4.5Secure token storage20 min
  • 4.6Single-flight API refresh30 min
  • 4.7API client and auth screens110 min

Module 3: Paged data lists

  • 4.8TanStack Query caching35 min
  • 4.9Virtualized list rendering20 min
  • 4.10Restaurant list screen90 min
  • 4.11Restaurant menu screen60 min

Module 4: Shopping cart

  • 4.12Persisting Zustand state25 min
  • 4.13Persisted cart store60 min

Module 5: Menu configuration and checkout

  • 4.14Live server validation25 min
  • 4.15Item configurator screen120 min
  • 4.16Cart screen70 min

Module 6: Order history

  • 4.17Orders tab and order detail screens70 min

Module 7: Mobile API capacity

  • 4.18Estimating mobile API capacity50 min

Module 8: Client resilience extensions

  • 4.19Resilient client patternsOptional30 min
  • 4.20API request retry utilityOptional45 min
  • 4.21Cart synchronization helperOptional45 min
  • 4.22Restaurant search utilitiesOptional45 min
Week 5: Live order tracking and rider management17 items · 16.9 hr

Implement live order tracking and introduce riders into the food-delivery system.

Module 1: WebSocket hub

  • 5.1Channels, select and cleanup48 min
  • 5.2Managing WebSocket connections30 min
  • 5.3Per-user WebSocket hub120 min

Module 2: Redis event fan-out

  • 5.4Redis pattern subscriptions18 min
  • 5.5Per-user order event bridge90 min

Module 3: Rider management and assignment

  • 5.6Redis GEO and SET NX PX18 min
  • 5.7Rider presence service72 min
  • 5.8Rider assignment worker132 min

Module 4: Live rider tracking

  • 5.9Watching foreground location36 min
  • 5.10Reconnecting WebSocket hooks18 min
  • 5.11Order location stream48 min
  • 5.12Rider mode and customer tracking screens150 min
  • 5.13Hub broadcast and claim race tests72 min

Module 5: Live capacity planning

  • 5.14Capacity estimation35 min

Module 6: Live order extensions

  • 5.15Per-user Redis replay logOptional45 min
  • 5.16Topic subscription registryOptional40 min
  • 5.17Rider map geometry libraryOptional40 min
Week 6: Performance, caching and load testing17 items · 14.8 hr

Improve system performance with load testing, caching and metrics.

Module 1: Menu and list caching

  • 6.1Cache-aside with jitter and singleflight24 min
  • 6.2Menu cache and stock updater90 min

Module 2: Service observability

  • 6.3Prometheus metric registration30 min
  • 6.4API and worker metrics72 min
  • 6.5Request-scoped logging and timeouts24 min
  • 6.6Request context and timeout layer60 min

Module 3: Load-test baselines

  • 6.7k6 workload models30 min
  • 6.8CPU and heap profiling24 min
  • 6.9MySQL query-plan reading24 min
  • 6.10Capacity from measurements35 min
  • 6.11Browse and order k6 scripts90 min
  • 6.12Find and fix the first bottleneck150 min

Module 4: Backend hardening and admin stats

  • 6.13Backend audit and soak gate60 min
  • 6.14Admin order statistics48 min

Module 5: Runtime and performance extensions

  • 6.15Runtime feature switchesOptional40 min
  • 6.16Histogram quantile utilityOptional50 min
  • 6.17XFetch cache refresh deciderOptional35 min
Week 7: Deployment and production operations18 items · 20 hr

Prepare the application for real users by configuring and shipping a production deployment.

Module 1: Production containers and CI

  • 7.1Multi-stage Dockerfiles for Go25 min
  • 7.2Production container stack78 min
  • 7.3Gated CI image publishing30 min
  • 7.4Backend CI workflow72 min

Module 2: Single-server production deployment

  • 7.5HTTPS health and migration gates40 min
  • 7.6Production HTTPS Compose stack120 min
  • 7.7Nightly mysqldump and one restore test48 min

Module 3: Production app testing

  • 7.8EAS preview build profiles35 min
  • 7.9Android preview APK90 min
  • 7.10Seed the Real Canteen and Operating Accounts60 min
  • 7.11Collect bugs for 4 days, fix the top 5, ship again150 min

Module 4: Order RPC interface

  • 7.12Protobuf contracts in Go50 min
  • 7.13gRPC order service180 min

Module 5: Single-server capacity

  • 7.14Single-server capacity estimation50 min

Module 6: Release safety extensions

  • 7.15Release checks and gRPC recoveryOptional30 min
  • 7.16Filesystem secret scannerOptional45 min
  • 7.17gRPC resilience interceptorsOptional50 min
  • 7.18Release rollback plannerOptional45 min
Week 8: Advanced features and project documentation15 items · 19 hr

Complete a stretch module and write up the project, its architecture and implementation decisions.

Module 1: Inventory holds

  • 8.1Optimistic locking for stockOptional24 min
  • 8.2Stock reservation serviceOptional240 min

Module 2: Payment workflow

  • 8.3HMAC webhooks and payment sagasOptional24 min
  • 8.4Payment processing serviceOptional240 min

Module 3: App integration and capacity

  • 8.5Expo stretch integration60 min
  • 8.6Tenfold capacity estimation40 min
  • 8.7Benchmark report package48 min

Module 4: Project documentation

  • 8.8Mermaid architecture diagrams12 min
  • 8.9ADRs, postmortems and retros15 min
  • 8.10Project documentation package150 min
  • 8.11Two-minute project demo package72 min
  • 8.12Engineering walkthrough package48 min

Module 5: Optional extensions

  • 8.13Timestamped webhook signature packageOptional60 min
  • 8.14Mermaid sequence linterOptional60 min
  • 8.15Latency percentile packageOptional45 min

Learning approach and workflow

  1. 1
    Learn the concept

    Start with a detailed lesson that explains the concept, how it works, why it matters and where it fits into the system. Lessons include check-yourself questions and further reading.

  2. 2
    Implement the feature

    Work through an exercise that applies what you just learned. Each exercise includes requirements and progressive hints to help you work through the implementation yourself.

  3. 3
    Verify your implementation

    Run the provided tests on your own machine. Once you have attempted the exercise, reveal the reference solution and compare your implementation with it.

Exercise tests are provided in the public zomato-prep GitHub repository. You run them locally against your implementation rather than relying on a hidden online evaluator. The exercises explain what you need to run and what the tests are checking.

Weeks unlock in sequence. Complete every required lesson and exercise in the current week to unlock the next available week. Optional exercises are there for additional practice and do not block progression.

Prerequisites

What you should know

  • Basic programming experience. You should understand variables, functions, loops and common data structures.
  • Basic familiarity with HTTP, APIs and how client-server applications work.
  • Basic Git and command-line experience.
  • No prior experience with Go, Kafka, Redis or React Native is required. These technologies are introduced as part of the course.

What you need installed

  • DockerA computer capable of running Docker.
  • GoGo toolchain.
  • Node.jsNode.js and npm.
  • GitGit and a terminal.
  • ExpoThe required mobile development tooling for Expo.

About this course

The course material and exercise tests are available through the public zomato-prep repository on GitHub. Explore the source, inspect the tests and follow the implementation alongside the lessons.

zomato-prep on GitHub

Frequently asked questions

Is the course free?

Yes. The course is free and no payment information is required.

Do I need to know Go or React Native?

No prior experience with these technologies is required. You should have basic programming experience and be comfortable using a terminal.

Are all eight weeks available?

Yes. All eight weeks are published and open to read.

Is the course self-paced?

Yes. There are no scheduled classes or fixed deadlines. Work through the lessons and exercises at your own pace.

How do I run the exercises?

Exercise tests are available in the public zomato-prep GitHub repository. Follow the instructions in each exercise to run them on your own machine.

Can I see the reference solutions?

Yes. Every exercise includes a reference solution that you can reveal after attempting it.

Do I need an account?

You can read every lesson and exercise without an account. You only need a free account to save your progress.

Getting started

The course is free and open to read. No payment information is required. Create an account with your email address and password only when you want to save your progress.

Start learningFree, with no payment details
  • 81lessons
  • 88exercises
  • 154hours of material
Customer appRider appGo APIRedisKafka
Learn the Zomato tech stack from scratch