← All tracks
Track · For working professionals
Design: low-level, high-level and patterns
Design a ticket-booking system at two levels: how the whole system fits together, and how the code inside it is shaped, using SOLID and design patterns.
Chapters
Chapters 2 to 9 need a plan.
- 01Thinking through a design: requirements, scaling and load balancingThink a design through out loud: clarify requirements, choose between scaling up and out, and balance load, with a ticket-booking startup as the example.About 12 minFree
- 02Caching and database scalingLearn how cache-aside, TTLs, eviction and cache stampedes work, then how read replicas and sharding scale a database, with TypeScript examples.About 13 minLocked: needs a plan
- 03Consistency, queues and APIsLearn what a system promises while copies disagree: strong and eventual consistency, CAP, queues for asynchronous work, and API retries, limits and paging.About 14 minLocked: needs a plan
- 04Three worked designs on FanlineWork three small designs through a five-step framework: short order confirmation codes, a checkout rate limiter and waitlist notifications.About 14 minLocked: needs a plan
- 05SOLID, part one: responsibility, extension and substitutionLearn the first three SOLID principles, single responsibility, open for extension and closed for modification, and substitution, and use them in a code review.About 12 minLocked: needs a plan
- 06SOLID, part two: interfaces, dependencies and a refactoringLearn interface segregation and dependency inversion, apply all five SOLID principles in one refactoring, and see how each can be overdone.About 12 minLocked: needs a plan
- 07Design patterns, part one: creating and assembling objectsLearn the patterns for creating and assembling objects: factory, builder, prototype, singleton, adapter, facade, decorator and repository, and how to choose.About 13 minLocked: needs a plan
- 08Design patterns, part two: behaviour, and composition over inheritanceLearn the behavioural patterns, strategy, observer, command, chain of responsibility, iterator and visitor, and when composition beats inheritance.About 12 minLocked: needs a plan
- 09Storage and indexing at scale: choosing a shape and paying for an indexChoose a shape for ticket data, measure on PostgreSQL what an index buys in reads and costs in writes, and denormalise only for a hot spot you have measured.About 12 minLocked: needs a plan