W1W2W3W4W5W6W7W8

Lessons

Week 1Project setup and rate limiting0/24
Week 2Restaurants and menus with MySQL0/20
Week 3Authentication, orders and Kafka events0/20
Week 4Customer application with Expo0/18
Week 5Live order tracking and rider management0/14
Week 6Performance, caching and load testing0/14
Week 7Deployment and production operations0/14
Week 8Advanced features and project documentation0/8
ReviewQuiz questions that are due
ResourcesReading list, by week

Go race detector

Go's race detector instruments a program to detect data races that occur during execution. Running tests with the -race flag helps reveal unsafe concurrent access, although it can only detect races exercised by the run.

Minimal example

bash
go test -race ./...

Learn this concept

Lesson 1.13 · Goroutines, WaitGroup and the race detector

Used in exercises

Exercise 1.15 · Table-driven tests with a fake clock, plus one race test Exercise 1.24 · GitHub Actions: lint and race tests on every push Exercise 5.3 · Per-user WebSocket hub Exercise 5.13 · Hub broadcast and claim race tests Exercise 5.16 · Topic subscription registry Exercise 6.13 · Backend audit and soak gate Exercise 7.4 · Backend CI workflow Exercise 8.2 · Stock reservation service Exercise 8.4 · Payment processing service
Prerequisite conceptsGo testingGoroutinesData race
RelatedMutexsync.WaitGroupGo linter