FREE RESOURCES · 60 DAILY SESSIONS · 4 LEARNING STYLES

System Architecture &
System Design

A detailed 12-week learning guide for a Python developer with basic backend knowledge. Every daily lesson includes focused reading links and a practical task.

12 weeks60 study days1 hour/day4 separate paths
Start here

System Architecture & System Design — Start Here

Your starting point: Python developer with basic backend knowledge.

Your goals: Design real-world applications, prepare for system-design interviews, grow toward software architecture, and understand distributed/cloud architecture.

Pace: 1 hour a day, 5 days a week.

Duration: 12 weeks / 60 study sessions.

How to study each day

  • 10 minutes: recall yesterday's concepts and list questions.
  • 20 minutes: read/watch the day's linked resource.
  • 25 minutes: complete the diagram, coding task or design exercise.
  • 5 minutes: write a short note: what it solves, when to use it, trade-offs, and one question.

How to use the four paths

  1. 1. Path 1 — Guided lessons: Best as your main sequence. Follow the day-by-day plan and complete each exercise.
  2. 2. Path 2 — Video-first: Use the same daily sequence, but watch an explanation first. Then read the linked article and complete the assignment.
  3. 3. Path 3 — Documentation-first: Read the official docs/articles first, then code or experiment.
  4. 4. Path 4 — Complete course: Use this as your syllabus, reference checklist and capstone guide.

You do not need to finish all four paths separately. Pick one as your primary method and use the others when a topic is difficult.

Core free resource library

Your project sequence

  • Task API: FastAPI + PostgreSQL, clean layers, tests and API docs.
  • URL shortener: API design, IDs, persistence, caching and rate limiting.
  • Notification service: queue, worker, retries, idempotency and dead-letter handling.
  • Capstone: choose chat or e-commerce and implement one end-to-end workflow.

What to submit for every design

  • Problem statement and assumptions
  • Functional and non-functional requirements
  • C4 context/container diagram
  • API contract and data model
  • Sequence diagram for a key workflow
  • Failure-mode and security notes
  • Observability plan
  • Architecture Decision Records (ADRs)
  • A short explanation of alternatives and trade-offs

Important rule

Start with the simplest architecture that meets the requirements. Do not add microservices, Kafka, Kubernetes, replicas or caches just because they are popular. Explain what problem each component solves and what complexity it adds.

Path 1 · Guided lessons

Path 1 — Step-by-step lessons with practical projects

Best for: Learning in a guided sequence, with a small exercise every day.

Time: 1 hour/day, 5 days/week.

Outcome: A portfolio of architecture diagrams, API designs and working Python projects.

Daily session format

  • 10 min: recap and explain yesterday's concept without notes.
  • 20 min: study one concept.
  • 25 min: complete the day's exercise.
  • 5 min: write three takeaways and one open question.

12-week guided syllabus

Week 1 — What architecture is

  • Day 1: What is software architecture? Draw the components of an app you use.
  • Day 2: Client, server, database and external service. Draw a request flow.
  • Day 3: Monolith, modular monolith and microservices. Compare trade-offs.
  • Day 4: Functional requirements vs quality attributes. Write requirements for a task app.
  • Day 5: Create a context diagram and a component diagram for the task app.

Week 2 — Web, networking and APIs

  • Day 1: DNS, IP, TCP and TLS at a high level.
  • Day 2: HTTP methods, status codes, headers and request lifecycle.
  • Day 3: REST API resource design; write endpoints for tasks and projects.
  • Day 4: Authentication, authorization, pagination and API versioning.
  • Day 5: Add an OpenAPI contract to a small FastAPI service.

Week 3 — Databases

  • Day 1: Relational modelling, entities, keys and relationships.
  • Day 2: SQL joins, constraints and normalization.
  • Day 3: Indexes and query plans; compare a query before and after an index.
  • Day 4: Transactions and ACID; demonstrate a transaction in PostgreSQL.
  • Day 5: Compare SQL and NoSQL using actual application requirements.

Week 4 — Code architecture

  • Day 1: Separation of concerns and dependency inversion.
  • Day 2: SOLID principles with small Python examples.
  • Day 3: Layered architecture and repository pattern.
  • Day 4: Ports-and-adapters / hexagonal architecture.
  • Day 5: Refactor one FastAPI endpoint into router, service and repository layers.

Week 5 — Performance and scale

  • Day 1: Latency, throughput and bottlenecks.
  • Day 2: Vertical vs horizontal scaling and load balancing.
  • Day 3: Cache-aside pattern and cache invalidation.
  • Day 4: CDN, rate limiting and pagination.
  • Day 5: Add a Redis cache to a read-heavy endpoint; measure before/after locally.

Week 6 — Asynchronous work

  • Day 1: Why background jobs exist; synchronous vs asynchronous flow.
  • Day 2: Queue, producer, consumer and worker.
  • Day 3: Retries, exponential backoff and dead-letter queues.
  • Day 4: Idempotency and duplicate message handling.
  • Day 5: Build a simple Python worker using a local queue; document how it would map to SQS.

Week 7 — Distributed systems

  • Day 1: What changes when components run on different machines?
  • Day 2: Replication, partitioning and sharding.
  • Day 3: Consistency models and eventual consistency.
  • Day 4: CAP theorem and network partitions.
  • Day 5: Draw a replicated service and describe what happens during a node failure.

Week 8 — Reliability, security and operations

  • Day 1: Timeouts, retries and circuit breakers.
  • Day 2: Health checks, graceful shutdown and fault isolation.
  • Day 3: Authentication, authorization, secrets and least privilege.
  • Day 4: Structured logs, metrics and distributed tracing.
  • Day 5: Add request IDs, useful logs and health endpoints to your API.

Week 9 — Cloud foundations

  • Day 1: Compute, object storage, managed database and networking.
  • Day 2: Containers and Docker basics.
  • Day 3: Deploy a small FastAPI app using a free/local development environment.
  • Day 4: Understand VPC, subnets, security groups and IAM conceptually.
  • Day 5: Draw a deployment architecture and list cost drivers.

Week 10 — System design case studies

  • Day 1: URL shortener requirements and APIs.
  • Day 2: URL shortener data model and short-code generation.
  • Day 3: URL shortener caching, abuse protection and scaling.
  • Day 4: Notification system requirements, queue and worker design.
  • Day 5: Present both designs in 10 minutes each.

Week 11 — Larger system

  • Day 1: Choose chat or e-commerce; define requirements.
  • Day 2: Draw components and APIs.
  • Day 3: Model data and consistency boundaries.
  • Day 4: Analyse bottlenecks and failure cases.
  • Day 5: Write architecture decisions and present the design.

Week 12 — Capstone

  • Day 1: Finalise requirements and assumptions.
  • Day 2: Finalise diagrams, APIs and schema.
  • Day 3: Implement one end-to-end vertical slice.
  • Day 4: Add tests, logs, metrics and deployment notes.
  • Day 5: Write a case study and complete a timed mock design interview.

Free resources in the order to use them

  1. 1. System Design Primer
  2. 2. System Design 101
  3. 3. Free System Design
  4. 4. FastAPI tutorial
  5. 5. PostgreSQL tutorial
  6. 6. Refactoring.Guru
  7. 7. Google SRE Book

Completion test

You are ready to move on when you can explain a design without reading notes, draw its request and data flows, identify two likely failure modes, and justify the main trade-offs.


Daily resources and exercises (all 60 days)

Week 1, Day 1 — What software architecture means; architecture vs implementation

Learn: What software architecture means; architecture vs implementation. Do: Write a one-paragraph definition and list the main parts of an app you use.

Resources: C4 model: Introduction · Martin Fowler: Software Architecture Guide

Week 1, Day 2 — System boundaries, users and external dependencies

Learn: System boundaries, users and external dependencies. Do: Draw a system-context diagram for a task-management app.

Resources: C4 model: Introduction · arc42 architecture documentation template

Week 1, Day 3 — Monolith, modular monolith and microservices

Learn: Monolith, modular monolith and microservices. Do: Compare the three styles in a table; choose a sensible starting point for a small product.

Resources: The Twelve-Factor App · System Design Primer

Week 1, Day 4 — Functional requirements and quality attributes

Learn: Functional requirements and quality attributes. Do: Write 5 functional requirements and 5 quality attributes for the task app.

Resources: AWS Well-Architected Framework · arc42 architecture documentation template

Week 1, Day 5 — C4 context and container diagrams

Learn: C4 context and container diagrams. Do: Draw context and container diagrams and explain each relationship.

Resources: C4 model: Diagrams · Mermaid: Flowcharts

Week 2, Day 1 — URLs, DNS and how a browser finds a server

Learn: URLs, DNS and how a browser finds a server. Do: Trace a URL from browser to server; label DNS lookup and destination.

Resources: MDN: What is a URL? · Cloudflare: What is DNS?

Week 2, Day 2 — TCP connections, ports and the request path

Learn: TCP connections, ports and the request path. Do: Draw the sequence from client connection to server response.

Resources: Cloudflare: What is TCP? · MDN: Overview of HTTP

Week 2, Day 3 — TLS, HTTPS and certificates at a high level

Learn: TLS, HTTPS and certificates at a high level. Do: Explain what TLS protects and where it sits in the request flow.

Resources: Cloudflare: What is TLS? · MDN: HTTP Guides

Week 2, Day 4 — HTTP methods, status codes, headers and statelessness

Learn: HTTP methods, status codes, headers and statelessness. Do: Design CRUD endpoints for tasks and choose response codes.

Resources: MDN: Overview of HTTP · MDN: HTTP response status codes · MDN: HTTP headers

Week 2, Day 5 — REST resource design, OpenAPI and WebSockets

Learn: REST resource design, OpenAPI and WebSockets. Do: Write a small API contract and identify one use case for WebSockets.

Resources: Microsoft: REST API design · FastAPI: Metadata and docs URLs · MDN: WebSockets API

Week 3, Day 1 — Tables, entities, primary keys and relationships

Learn: Tables, entities, primary keys and relationships. Do: Model users, projects and tasks with an ER diagram.

Resources: PostgreSQL Tutorial · MongoDB: Data Modeling

Week 3, Day 2 — SQL joins, constraints and referential integrity

Learn: SQL joins, constraints and referential integrity. Do: Create tables with primary/foreign keys and test invalid inserts.

Resources: PostgreSQL Tutorial · PostgreSQL: Constraints

Week 3, Day 3 — Indexes, selectivity and query plans

Learn: Indexes, selectivity and query plans. Do: Add an index to a query you use; compare EXPLAIN output.

Resources: PostgreSQL: Indexes · PostgreSQL: EXPLAIN

Week 3, Day 4 — Transactions and ACID properties

Learn: Transactions and ACID properties. Do: Write a transaction for moving a task between projects; explain rollback.

Resources: PostgreSQL: Transactions · PostgreSQL: Transaction Isolation

Week 3, Day 5 — SQL vs NoSQL and data modelling trade-offs

Learn: SQL vs NoSQL and data modelling trade-offs. Do: Choose a storage model for 3 example features and justify each choice.

Resources: MongoDB: Data Modeling · System Design Primer

Week 4, Day 1 — Separation of concerns, cohesion and coupling

Learn: Separation of concerns, cohesion and coupling. Do: Identify HTTP, business and persistence responsibilities in one endpoint.

Resources: Cosmic Python: Architecture Patterns with Python (free online) · Martin Fowler: Software Architecture Guide

Week 4, Day 2 — SOLID principles in Python

Learn: SOLID principles in Python. Do: Refactor one class with too many responsibilities.

Resources: DigitalOcean: SOLID principles in Python · Cosmic Python: Architecture Patterns with Python (free online)

Week 4, Day 3 — Layered architecture and repository pattern

Learn: Layered architecture and repository pattern. Do: Split one FastAPI endpoint into router, service and repository.

Resources: Cosmic Python: Architecture Patterns with Python (free online) · FastAPI Tutorial

Week 4, Day 4 — Dependency injection and ports-and-adapters

Learn: Dependency injection and ports-and-adapters. Do: Inject a repository interface/fake into a service and test it.

Resources: FastAPI: Dependencies · Cosmic Python: Architecture Patterns with Python (free online)

Week 4, Day 5 — Design patterns, tests and architecture decisions

Learn: Design patterns, tests and architecture decisions. Do: Add unit tests and write one ADR explaining a design choice.

Resources: Refactoring.Guru: Design Patterns · pytest: Getting Started · Architecture Decision Records

Week 5, Day 1 — Latency, throughput, capacity and bottlenecks

Learn: Latency, throughput, capacity and bottlenecks. Do: Estimate requests per second for a toy app using stated assumptions.

Resources: System Design Primer · Free System Design interactive course

Week 5, Day 2 — Vertical/horizontal scaling and load balancing

Learn: Vertical/horizontal scaling and load balancing. Do: Draw two application instances behind a load balancer.

Resources: NGINX: Load balancing · AWS: What is Auto Scaling?

Week 5, Day 3 — Caching concepts and cache-aside

Learn: Caching concepts and cache-aside. Do: Add a cache-aside flow diagram for a read-heavy endpoint.

Resources: Redis: Caching patterns · Redis: Get started

Week 5, Day 4 — CDNs, cache headers and content delivery

Learn: CDNs, cache headers and content delivery. Do: Identify static assets that could be served by a CDN.

Resources: AWS: What is a CDN / CloudFront? · MDN: HTTP headers

Week 5, Day 5 — Rate limiting, pagination and performance testing

Learn: Rate limiting, pagination and performance testing. Do: Design a per-user rate limit and paginated list endpoint.

Resources: Cloudflare: Rate limiting · Microsoft: REST API design

Week 6, Day 1 — Synchronous vs asynchronous work; producers and consumers

Learn: Synchronous vs asynchronous work; producers and consumers. Do: Draw an API that queues an email instead of sending it inline.

Resources: AWS SQS: Getting started · Celery: First steps

Week 6, Day 2 — Queue visibility, acknowledgement and worker lifecycle

Learn: Queue visibility, acknowledgement and worker lifecycle. Do: Describe what happens if a worker crashes after receiving a message.

Resources: AWS SQS: Getting started · AWS SQS: Visibility timeout and DLQs

Week 6, Day 3 — Retries, exponential backoff and dead-letter queues

Learn: Retries, exponential backoff and dead-letter queues. Do: Define retry limits and DLQ handling for failed notifications.

Resources: Azure Architecture: Retry pattern · AWS SQS: Dead-letter queues

Week 6, Day 4 — Idempotency and duplicate message delivery

Learn: Idempotency and duplicate message delivery. Do: Make a worker safe if the same job is delivered twice.

Resources: Stripe: Idempotent requests · AWS SQS: Visibility timeout and DLQs

Week 6, Day 5 — Transactional outbox and event contracts

Learn: Transactional outbox and event contracts. Do: Draw a database-write plus event-publish flow that avoids lost events.

Resources: Microservices.io: Transactional Outbox · Apache Kafka: Introduction

Week 7, Day 1 — Partial failures, network partitions and CAP

Learn: Partial failures, network partitions and CAP. Do: Explain a partition scenario and the consistency/availability trade-off.

Resources: System Design Primer: CAP theorem and consistency · System Design Primer

Week 7, Day 2 — Strong, eventual and read-after-write consistency

Learn: Strong, eventual and read-after-write consistency. Do: Choose a consistency expectation for profile edits and bank transfers.

Resources: System Design Primer: CAP theorem and consistency · Martin Kleppmann: Designing Data-Intensive Applications resources

Week 7, Day 3 — Replication, leader/follower and failover

Learn: Replication, leader/follower and failover. Do: Draw primary/replica data flow and describe replica lag.

Resources: PostgreSQL: High Availability, Load Balancing and Replication · System Design Primer

Week 7, Day 4 — Partitioning, sharding and hot keys

Learn: Partitioning, sharding and hot keys. Do: Choose a shard key for a large task table and identify a hotspot risk.

Resources: AWS: Sharding guidance · Martin Kleppmann: Designing Data-Intensive Applications resources

Week 7, Day 5 — Consensus basics and why distributed coordination is hard

Learn: Consensus basics and why distributed coordination is hard. Do: Explain leader election in plain language; do not implement Raft.

Resources: The Raft Consensus Algorithm · Martin Kleppmann: Designing Data-Intensive Applications resources

Week 8, Day 1 — Availability, SLI, SLO and error budgets

Learn: Availability, SLI, SLO and error budgets. Do: Write one SLI and a realistic SLO for your API.

Resources: Google SRE Book: Service Level Objectives · AWS Well-Architected: Reliability pillar

Week 8, Day 2 — Monitoring, logs and the four golden signals

Learn: Monitoring, logs and the four golden signals. Do: Choose latency, traffic, errors and saturation metrics for your API.

Resources: Google SRE Book: Monitoring Distributed Systems · Prometheus: Overview

Week 8, Day 3 — Distributed tracing and OpenTelemetry concepts

Learn: Distributed tracing and OpenTelemetry concepts. Do: Draw a trace spanning API, database and worker.

Resources: OpenTelemetry: Concepts · Google SRE Book: Monitoring Distributed Systems

Week 8, Day 4 — Timeouts, retries, circuit breakers and graceful degradation

Learn: Timeouts, retries, circuit breakers and graceful degradation. Do: Create a failure policy for a slow third-party service.

Resources: Azure Architecture: Circuit Breaker pattern · Azure Architecture: Retry pattern

Week 8, Day 5 — Authentication, authorization and least privilege

Learn: Authentication, authorization and least privilege. Do: Draw an authentication flow and list authorization checks.

Resources: OWASP: Authentication Cheat Sheet · OWASP: Authorization Cheat Sheet · AWS Well-Architected: Security pillar

Week 9, Day 1 — Containers and why teams use Docker

Learn: Containers and why teams use Docker. Do: Create a Dockerfile for your FastAPI application.

Resources: Docker: Get started · The Twelve-Factor App

Week 9, Day 2 — Local multi-service development with Compose

Learn: Local multi-service development with Compose. Do: Run your API and PostgreSQL locally using Compose.

Resources: Docker Compose: Quickstart · Docker: Get started

Week 9, Day 3 — VPCs, subnets, routing and security boundaries

Learn: VPCs, subnets, routing and security boundaries. Do: Draw public/private subnet boundaries for a simple service.

Resources: AWS: What is Amazon VPC? · AWS Well-Architected: Security pillar

Week 9, Day 4 — Object storage and managed relational databases

Learn: Object storage and managed relational databases. Do: Choose which files belong in object storage and which data belongs in PostgreSQL.

Resources: AWS S3: Getting started · AWS RDS: Getting started

Week 9, Day 5 — IAM, deployment architecture, backups and cost

Learn: IAM, deployment architecture, backups and cost. Do: Draw a cloud deployment and list five cost/security controls.

Resources: AWS IAM: Best practices · AWS Pricing Calculator · AWS Well-Architected Framework

Week 10, Day 1 — URL shortener: scope, use cases and requirements

Learn: URL shortener: scope, use cases and requirements. Do: Write functional and non-functional requirements for a URL shortener.

Resources: System Design Primer · Free System Design course: case studies and exercises

Week 10, Day 2 — URL shortener: API, schema and code generation

Learn: URL shortener: API, schema and code generation. Do: Design create and redirect endpoints plus a URL table.

Resources: Free System Design interactive course · PostgreSQL Tutorial

Week 10, Day 3 — URL shortener: caching, scale and abuse protection

Learn: URL shortener: caching, scale and abuse protection. Do: Draw the redirect path and explain hot-link handling.

Resources: Redis: Caching patterns · Cloudflare: Rate limiting · System Design Primer

Week 10, Day 4 — Notification service: API, queue and worker design

Learn: Notification service: API, queue and worker design. Do: Draw API → queue → worker → provider.

Resources: AWS SQS: Getting started · Celery: First steps

Week 10, Day 5 — Notification service: retries, idempotency and DLQ

Learn: Notification service: retries, idempotency and DLQ. Do: Write a failure-handling table for provider timeouts and duplicate jobs.

Resources: AWS SQS: Dead-letter queues · Stripe: Idempotent requests · Microservices.io: Transactional Outbox

Week 11, Day 1 — Choose chat or e-commerce; define scope and requirements

Learn: Choose chat or e-commerce; define scope and requirements. Do: Write the system brief and list explicit assumptions.

Resources: Free System Design course: case studies and exercises · Awesome System Design Resources

Week 11, Day 2 — Design components, APIs and data model

Learn: Design components, APIs and data model. Do: Create a component diagram, endpoint list and core schema.

Resources: C4 model: Diagrams · Microsoft: REST API design · PostgreSQL Tutorial

Week 11, Day 3 — Design real-time delivery or order/payment workflow

Learn: Design real-time delivery or order/payment workflow. Do: Draw one end-to-end sequence diagram.

Resources: MDN: WebSockets API · Redis: Pub/Sub · Stripe: Idempotent requests

Week 11, Day 4 — Identify bottlenecks, failures, security and observability

Learn: Identify bottlenecks, failures, security and observability. Do: Create a risk register with mitigation and monitoring.

Resources: AWS Well-Architected Framework · Google SRE Book: Monitoring Distributed Systems · AWS Well-Architected: Security pillar

Week 11, Day 5 — Architecture review and trade-off presentation

Learn: Architecture review and trade-off presentation. Do: Present the design in 10 minutes and record unanswered questions.

Resources: Architecture Decision Records · Martin Fowler: Software Architecture Guide

Week 12, Day 1 — Finalise problem statement and measurable requirements

Learn: Finalise problem statement and measurable requirements. Do: Write a one-page design brief.

Resources: arc42 architecture documentation template · C4 model: Introduction

Week 12, Day 2 — Finalise diagrams, API contract and data schema

Learn: Finalise diagrams, API contract and data schema. Do: Publish diagrams, API spec and ERD.

Resources: C4 model: Diagrams · FastAPI: Metadata and docs URLs · PostgreSQL Tutorial

Week 12, Day 3 — Implement one end-to-end vertical slice with tests

Learn: Implement one end-to-end vertical slice with tests. Do: Implement one workflow from API request to database response.

Resources: FastAPI Tutorial · pytest: Getting Started · Docker: Get started

Week 12, Day 4 — Add operational readiness: logs, health, retries and security

Learn: Add operational readiness: logs, health, retries and security. Do: Add a health endpoint, structured logs and documented failure behaviour.

Resources: Google SRE Book: Monitoring Distributed Systems · OpenTelemetry: Concepts · OWASP: Authentication Cheat Sheet

Week 12, Day 5 — Mock interview, architecture write-up and retrospective

Learn: Mock interview, architecture write-up and retrospective. Do: Present your design, answer trade-off questions and list next improvements.

Resources: System Design Primer · Free System Design interactive course · Architecture Decision Records

Path 2 · Video-first

Path 2 — Video-first learning with assignments

Best for: People who understand concepts more easily when someone explains and draws them.

Time: 1 hour/day, 5 days/week.

Rule: Do not passively binge-watch. Pause, redraw the diagram from memory, and complete the assignment.

How to use each 60-minute session

  • 25 min: watch a focused section of a free video/course.
  • 10 min: pause and redraw the concept.
  • 20 min: complete the assignment.
  • 5 min: write a short summary.

Recommended free video sources

12-week video-and-assignment sequence

WeekVideo topics to search/watchAssignment (must produce something)
1System design for beginners; client-server; monolith vs microservicesDraw a simple task app architecture and explain every box
2How the internet works; DNS; HTTP; REST APIsWrite and test a small FastAPI API contract
3SQL vs NoSQL; indexes; transactions; database scalingDesign a PostgreSQL schema and explain two indexes
4SOLID; clean architecture; design patternsRefactor one endpoint into router/service/repository
5Load balancing; caching; CDN; rate limitingDraw a scalable read-heavy API and identify cache invalidation
6Message queues; Kafka basics; background workers; retriesImplement a Python producer/worker exercise
7Distributed systems; CAP theorem; replication; consistencyExplain a partition scenario and choose a consistency trade-off
8Circuit breakers; observability; SRE; application securityAdd structured logging, health checks and timeout handling
9Docker; AWS fundamentals; cloud deployment architectureContainerise your API and draw its deployment
10URL shortener design; notification system designPresent each design in a 10-minute recording
11WhatsApp/chat or e-commerce system designDraw components, data model, APIs and failure flows
12Mock system-design interviews; architecture reviewsRecord a 30-minute mock interview and review gaps

Search phrases that help find the right free lesson

Use these exact phrases on YouTube:

  • system design full course for beginners
  • HTTP request lifecycle explained
  • PostgreSQL indexes and query plans
  • clean architecture Python
  • Redis caching explained
  • message queues and dead letter queues
  • CAP theorem explained with examples
  • system design URL shortener walkthrough
  • system design notification service
  • Google SRE book reliability explained

Video note template

For every video, write:

  1. 1. Concept in one sentence.
  2. 2. Diagram from memory.
  3. 3. When would I use it?
  4. 4. What problem does it solve?
  5. 5. What new complexity or failure mode does it introduce?
  6. 6. One small experiment I can run in Python.

Completion test

For each major topic, explain it in your own words without replaying the video. If you cannot redraw the flow or give a practical example, revisit the topic rather than moving on.


Daily video + reading + assignment plan

For each day, search the exact topic on the free channels below. Prefer a focused 10–25 minute explanation over a long playlist. Then read the paired article/documentation and complete the assignment.

Free video channels: freeCodeCamp · Gaurav Sen · ByteByteGo · Hussein Nasser

Week 1, Day 1 — What software architecture means; architecture vs implementation

Watch/search: use the topic phrase “What software architecture means; architecture vs implementation” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: C4 model: Introduction · Martin Fowler: Software Architecture Guide. Assignment: Write a one-paragraph definition and list the main parts of an app you use.

Week 1, Day 2 — System boundaries, users and external dependencies

Watch/search: use the topic phrase “System boundaries, users and external dependencies” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: C4 model: Introduction · arc42 architecture documentation template. Assignment: Draw a system-context diagram for a task-management app.

Week 1, Day 3 — Monolith, modular monolith and microservices

Watch/search: use the topic phrase “Monolith, modular monolith and microservices” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: The Twelve-Factor App · System Design Primer. Assignment: Compare the three styles in a table; choose a sensible starting point for a small product.

Week 1, Day 4 — Functional requirements and quality attributes

Watch/search: use the topic phrase “Functional requirements and quality attributes” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: AWS Well-Architected Framework · arc42 architecture documentation template. Assignment: Write 5 functional requirements and 5 quality attributes for the task app.

Week 1, Day 5 — C4 context and container diagrams

Watch/search: use the topic phrase “C4 context and container diagrams” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: C4 model: Diagrams · Mermaid: Flowcharts. Assignment: Draw context and container diagrams and explain each relationship.

Week 2, Day 1 — URLs, DNS and how a browser finds a server

Watch/search: use the topic phrase “URLs, DNS and how a browser finds a server” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: MDN: What is a URL? · Cloudflare: What is DNS?. Assignment: Trace a URL from browser to server; label DNS lookup and destination.

Week 2, Day 2 — TCP connections, ports and the request path

Watch/search: use the topic phrase “TCP connections, ports and the request path” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: Cloudflare: What is TCP? · MDN: Overview of HTTP. Assignment: Draw the sequence from client connection to server response.

Week 2, Day 3 — TLS, HTTPS and certificates at a high level

Watch/search: use the topic phrase “TLS, HTTPS and certificates at a high level” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: Cloudflare: What is TLS? · MDN: HTTP Guides. Assignment: Explain what TLS protects and where it sits in the request flow.

Week 2, Day 4 — HTTP methods, status codes, headers and statelessness

Watch/search: use the topic phrase “HTTP methods, status codes, headers and statelessness” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: MDN: Overview of HTTP · MDN: HTTP response status codes · MDN: HTTP headers. Assignment: Design CRUD endpoints for tasks and choose response codes.

Week 2, Day 5 — REST resource design, OpenAPI and WebSockets

Watch/search: use the topic phrase “REST resource design, OpenAPI and WebSockets” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: Microsoft: REST API design · FastAPI: Metadata and docs URLs · MDN: WebSockets API. Assignment: Write a small API contract and identify one use case for WebSockets.

Week 3, Day 1 — Tables, entities, primary keys and relationships

Watch/search: use the topic phrase “Tables, entities, primary keys and relationships” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: PostgreSQL Tutorial · MongoDB: Data Modeling. Assignment: Model users, projects and tasks with an ER diagram.

Week 3, Day 2 — SQL joins, constraints and referential integrity

Watch/search: use the topic phrase “SQL joins, constraints and referential integrity” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: PostgreSQL Tutorial · PostgreSQL: Constraints. Assignment: Create tables with primary/foreign keys and test invalid inserts.

Week 3, Day 3 — Indexes, selectivity and query plans

Watch/search: use the topic phrase “Indexes, selectivity and query plans” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: PostgreSQL: Indexes · PostgreSQL: EXPLAIN. Assignment: Add an index to a query you use; compare EXPLAIN output.

Week 3, Day 4 — Transactions and ACID properties

Watch/search: use the topic phrase “Transactions and ACID properties” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: PostgreSQL: Transactions · PostgreSQL: Transaction Isolation. Assignment: Write a transaction for moving a task between projects; explain rollback.

Week 3, Day 5 — SQL vs NoSQL and data modelling trade-offs

Watch/search: use the topic phrase “SQL vs NoSQL and data modelling trade-offs” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: MongoDB: Data Modeling · System Design Primer. Assignment: Choose a storage model for 3 example features and justify each choice.

Week 4, Day 1 — Separation of concerns, cohesion and coupling

Watch/search: use the topic phrase “Separation of concerns, cohesion and coupling” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: Cosmic Python: Architecture Patterns with Python (free online) · Martin Fowler: Software Architecture Guide. Assignment: Identify HTTP, business and persistence responsibilities in one endpoint.

Week 4, Day 2 — SOLID principles in Python

Watch/search: use the topic phrase “SOLID principles in Python” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: DigitalOcean: SOLID principles in Python · Cosmic Python: Architecture Patterns with Python (free online). Assignment: Refactor one class with too many responsibilities.

Week 4, Day 3 — Layered architecture and repository pattern

Watch/search: use the topic phrase “Layered architecture and repository pattern” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: Cosmic Python: Architecture Patterns with Python (free online) · FastAPI Tutorial. Assignment: Split one FastAPI endpoint into router, service and repository.

Week 4, Day 4 — Dependency injection and ports-and-adapters

Watch/search: use the topic phrase “Dependency injection and ports-and-adapters” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: FastAPI: Dependencies · Cosmic Python: Architecture Patterns with Python (free online). Assignment: Inject a repository interface/fake into a service and test it.

Week 4, Day 5 — Design patterns, tests and architecture decisions

Watch/search: use the topic phrase “Design patterns, tests and architecture decisions” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: Refactoring.Guru: Design Patterns · pytest: Getting Started · Architecture Decision Records. Assignment: Add unit tests and write one ADR explaining a design choice.

Week 5, Day 1 — Latency, throughput, capacity and bottlenecks

Watch/search: use the topic phrase “Latency, throughput, capacity and bottlenecks” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: System Design Primer · Free System Design interactive course. Assignment: Estimate requests per second for a toy app using stated assumptions.

Week 5, Day 2 — Vertical/horizontal scaling and load balancing

Watch/search: use the topic phrase “Vertical/horizontal scaling and load balancing” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: NGINX: Load balancing · AWS: What is Auto Scaling?. Assignment: Draw two application instances behind a load balancer.

Week 5, Day 3 — Caching concepts and cache-aside

Watch/search: use the topic phrase “Caching concepts and cache-aside” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: Redis: Caching patterns · Redis: Get started. Assignment: Add a cache-aside flow diagram for a read-heavy endpoint.

Week 5, Day 4 — CDNs, cache headers and content delivery

Watch/search: use the topic phrase “CDNs, cache headers and content delivery” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: AWS: What is a CDN / CloudFront? · MDN: HTTP headers. Assignment: Identify static assets that could be served by a CDN.

Week 5, Day 5 — Rate limiting, pagination and performance testing

Watch/search: use the topic phrase “Rate limiting, pagination and performance testing” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: Cloudflare: Rate limiting · Microsoft: REST API design. Assignment: Design a per-user rate limit and paginated list endpoint.

Week 6, Day 1 — Synchronous vs asynchronous work; producers and consumers

Watch/search: use the topic phrase “Synchronous vs asynchronous work; producers and consumers” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: AWS SQS: Getting started · Celery: First steps. Assignment: Draw an API that queues an email instead of sending it inline.

Week 6, Day 2 — Queue visibility, acknowledgement and worker lifecycle

Watch/search: use the topic phrase “Queue visibility, acknowledgement and worker lifecycle” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: AWS SQS: Getting started · AWS SQS: Visibility timeout and DLQs. Assignment: Describe what happens if a worker crashes after receiving a message.

Week 6, Day 3 — Retries, exponential backoff and dead-letter queues

Watch/search: use the topic phrase “Retries, exponential backoff and dead-letter queues” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: Azure Architecture: Retry pattern · AWS SQS: Dead-letter queues. Assignment: Define retry limits and DLQ handling for failed notifications.

Week 6, Day 4 — Idempotency and duplicate message delivery

Watch/search: use the topic phrase “Idempotency and duplicate message delivery” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: Stripe: Idempotent requests · AWS SQS: Visibility timeout and DLQs. Assignment: Make a worker safe if the same job is delivered twice.

Week 6, Day 5 — Transactional outbox and event contracts

Watch/search: use the topic phrase “Transactional outbox and event contracts” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: Microservices.io: Transactional Outbox · Apache Kafka: Introduction. Assignment: Draw a database-write plus event-publish flow that avoids lost events.

Week 7, Day 1 — Partial failures, network partitions and CAP

Watch/search: use the topic phrase “Partial failures, network partitions and CAP” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: System Design Primer: CAP theorem and consistency · System Design Primer. Assignment: Explain a partition scenario and the consistency/availability trade-off.

Week 7, Day 2 — Strong, eventual and read-after-write consistency

Watch/search: use the topic phrase “Strong, eventual and read-after-write consistency” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: System Design Primer: CAP theorem and consistency · Martin Kleppmann: Designing Data-Intensive Applications resources. Assignment: Choose a consistency expectation for profile edits and bank transfers.

Week 7, Day 3 — Replication, leader/follower and failover

Watch/search: use the topic phrase “Replication, leader/follower and failover” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: PostgreSQL: High Availability, Load Balancing and Replication · System Design Primer. Assignment: Draw primary/replica data flow and describe replica lag.

Week 7, Day 4 — Partitioning, sharding and hot keys

Watch/search: use the topic phrase “Partitioning, sharding and hot keys” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: AWS: Sharding guidance · Martin Kleppmann: Designing Data-Intensive Applications resources. Assignment: Choose a shard key for a large task table and identify a hotspot risk.

Week 7, Day 5 — Consensus basics and why distributed coordination is hard

Watch/search: use the topic phrase “Consensus basics and why distributed coordination is hard” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: The Raft Consensus Algorithm · Martin Kleppmann: Designing Data-Intensive Applications resources. Assignment: Explain leader election in plain language; do not implement Raft.

Week 8, Day 1 — Availability, SLI, SLO and error budgets

Watch/search: use the topic phrase “Availability, SLI, SLO and error budgets” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: Google SRE Book: Service Level Objectives · AWS Well-Architected: Reliability pillar. Assignment: Write one SLI and a realistic SLO for your API.

Week 8, Day 2 — Monitoring, logs and the four golden signals

Watch/search: use the topic phrase “Monitoring, logs and the four golden signals” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: Google SRE Book: Monitoring Distributed Systems · Prometheus: Overview. Assignment: Choose latency, traffic, errors and saturation metrics for your API.

Week 8, Day 3 — Distributed tracing and OpenTelemetry concepts

Watch/search: use the topic phrase “Distributed tracing and OpenTelemetry concepts” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: OpenTelemetry: Concepts · Google SRE Book: Monitoring Distributed Systems. Assignment: Draw a trace spanning API, database and worker.

Week 8, Day 4 — Timeouts, retries, circuit breakers and graceful degradation

Watch/search: use the topic phrase “Timeouts, retries, circuit breakers and graceful degradation” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: Azure Architecture: Circuit Breaker pattern · Azure Architecture: Retry pattern. Assignment: Create a failure policy for a slow third-party service.

Week 8, Day 5 — Authentication, authorization and least privilege

Watch/search: use the topic phrase “Authentication, authorization and least privilege” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: OWASP: Authentication Cheat Sheet · OWASP: Authorization Cheat Sheet · AWS Well-Architected: Security pillar. Assignment: Draw an authentication flow and list authorization checks.

Week 9, Day 1 — Containers and why teams use Docker

Watch/search: use the topic phrase “Containers and why teams use Docker” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: Docker: Get started · The Twelve-Factor App. Assignment: Create a Dockerfile for your FastAPI application.

Week 9, Day 2 — Local multi-service development with Compose

Watch/search: use the topic phrase “Local multi-service development with Compose” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: Docker Compose: Quickstart · Docker: Get started. Assignment: Run your API and PostgreSQL locally using Compose.

Week 9, Day 3 — VPCs, subnets, routing and security boundaries

Watch/search: use the topic phrase “VPCs, subnets, routing and security boundaries” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: AWS: What is Amazon VPC? · AWS Well-Architected: Security pillar. Assignment: Draw public/private subnet boundaries for a simple service.

Week 9, Day 4 — Object storage and managed relational databases

Watch/search: use the topic phrase “Object storage and managed relational databases” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: AWS S3: Getting started · AWS RDS: Getting started. Assignment: Choose which files belong in object storage and which data belongs in PostgreSQL.

Week 9, Day 5 — IAM, deployment architecture, backups and cost

Watch/search: use the topic phrase “IAM, deployment architecture, backups and cost” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: AWS IAM: Best practices · AWS Pricing Calculator · AWS Well-Architected Framework. Assignment: Draw a cloud deployment and list five cost/security controls.

Week 10, Day 1 — URL shortener: scope, use cases and requirements

Watch/search: use the topic phrase “URL shortener: scope, use cases and requirements” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: System Design Primer · Free System Design course: case studies and exercises. Assignment: Write functional and non-functional requirements for a URL shortener.

Week 10, Day 2 — URL shortener: API, schema and code generation

Watch/search: use the topic phrase “URL shortener: API, schema and code generation” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: Free System Design interactive course · PostgreSQL Tutorial. Assignment: Design create and redirect endpoints plus a URL table.

Week 10, Day 3 — URL shortener: caching, scale and abuse protection

Watch/search: use the topic phrase “URL shortener: caching, scale and abuse protection” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: Redis: Caching patterns · Cloudflare: Rate limiting · System Design Primer. Assignment: Draw the redirect path and explain hot-link handling.

Week 10, Day 4 — Notification service: API, queue and worker design

Watch/search: use the topic phrase “Notification service: API, queue and worker design” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: AWS SQS: Getting started · Celery: First steps. Assignment: Draw API → queue → worker → provider.

Week 10, Day 5 — Notification service: retries, idempotency and DLQ

Watch/search: use the topic phrase “Notification service: retries, idempotency and DLQ” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: AWS SQS: Dead-letter queues · Stripe: Idempotent requests · Microservices.io: Transactional Outbox. Assignment: Write a failure-handling table for provider timeouts and duplicate jobs.

Week 11, Day 1 — Choose chat or e-commerce; define scope and requirements

Watch/search: use the topic phrase “Choose chat or e-commerce; define scope and requirements” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: Free System Design course: case studies and exercises · Awesome System Design Resources. Assignment: Write the system brief and list explicit assumptions.

Week 11, Day 2 — Design components, APIs and data model

Watch/search: use the topic phrase “Design components, APIs and data model” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: C4 model: Diagrams · Microsoft: REST API design · PostgreSQL Tutorial. Assignment: Create a component diagram, endpoint list and core schema.

Week 11, Day 3 — Design real-time delivery or order/payment workflow

Watch/search: use the topic phrase “Design real-time delivery or order/payment workflow” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: MDN: WebSockets API · Redis: Pub/Sub · Stripe: Idempotent requests. Assignment: Draw one end-to-end sequence diagram.

Week 11, Day 4 — Identify bottlenecks, failures, security and observability

Watch/search: use the topic phrase “Identify bottlenecks, failures, security and observability” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: AWS Well-Architected Framework · Google SRE Book: Monitoring Distributed Systems · AWS Well-Architected: Security pillar. Assignment: Create a risk register with mitigation and monitoring.

Week 11, Day 5 — Architecture review and trade-off presentation

Watch/search: use the topic phrase “Architecture review and trade-off presentation” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: Architecture Decision Records · Martin Fowler: Software Architecture Guide. Assignment: Present the design in 10 minutes and record unanswered questions.

Week 12, Day 1 — Finalise problem statement and measurable requirements

Watch/search: use the topic phrase “Finalise problem statement and measurable requirements” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: arc42 architecture documentation template · C4 model: Introduction. Assignment: Write a one-page design brief.

Week 12, Day 2 — Finalise diagrams, API contract and data schema

Watch/search: use the topic phrase “Finalise diagrams, API contract and data schema” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: C4 model: Diagrams · FastAPI: Metadata and docs URLs · PostgreSQL Tutorial. Assignment: Publish diagrams, API spec and ERD.

Week 12, Day 3 — Implement one end-to-end vertical slice with tests

Watch/search: use the topic phrase “Implement one end-to-end vertical slice with tests” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: FastAPI Tutorial · pytest: Getting Started · Docker: Get started. Assignment: Implement one workflow from API request to database response.

Week 12, Day 4 — Add operational readiness: logs, health, retries and security

Watch/search: use the topic phrase “Add operational readiness: logs, health, retries and security” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: Google SRE Book: Monitoring Distributed Systems · OpenTelemetry: Concepts · OWASP: Authentication Cheat Sheet. Assignment: Add a health endpoint, structured logs and documented failure behaviour.

Week 12, Day 5 — Mock interview, architecture write-up and retrospective

Watch/search: use the topic phrase “Mock interview, architecture write-up and retrospective” on freeCodeCamp, Gaurav Sen, ByteByteGo or Hussein Nasser. Then read: System Design Primer · Free System Design interactive course · Architecture Decision Records. Assignment: Present your design, answer trade-off questions and list next improvements.

Path 3 · Documentation + projects

Path 3 — Documentation-first learning and building projects

Best for: Developers who prefer reading official documentation, experimenting and learning by building.

Time: 1 hour/day, 5 days/week.

Approach: Read the relevant documentation first, then implement a small proof of concept.

Daily session

  • 15 min: read documentation.
  • 10 min: write a summary and sketch.
  • 30 min: code or test a small experiment.
  • 5 min: record what surprised you.

Documentation bookshelf

12-week reading and build plan

Week 1 — Architecture vocabulary

Read: C4 model and 12 Factor App.

Build: a context and container diagram for a task-management app.

Deliverable: docs/architecture.md with users, dependencies and components.

Week 2 — HTTP and API design

Read: MDN HTTP and FastAPI tutorial.

Build: CRUD endpoints with validation and OpenAPI docs.

Deliverable: endpoint table, example requests and error responses.

Week 3 — Data modelling

Read: PostgreSQL tutorial.

Build: users, projects and tasks tables; add constraints and indexes.

Deliverable: ER diagram and sample SQL queries.

Week 4 — Maintainable code

Read: Refactoring.Guru and selected Martin Fowler articles.

Build: separate transport, business logic and persistence layers.

Deliverable: tests proving business logic can be tested without an HTTP request.

Week 5 — Caching and performance

Read: Redis documentation and relevant System Design Primer sections.

Build: cache a read endpoint; define expiry and invalidation behaviour.

Deliverable: before/after latency observations and a cache-flow diagram.

Week 6 — Background jobs

Read: AWS SQS Developer Guide.

Build: a local Python queue and worker with retries and idempotency.

Deliverable: sequence diagram, retry policy and dead-letter design.

Week 7 — Distributed systems

Read: distributed-systems sections in System Design Primer and System Design 101.

Build: simulate a slow or unavailable dependency and observe timeout/retry behaviour.

Deliverable: failure-mode table and consistency notes.

Week 8 — Reliability and observability

Read: Google SRE Book.

Build: structured logs, request IDs, health endpoints and metrics basics.

Deliverable: service dashboard sketch and incident runbook.

Week 9 — Deployment and cloud

Read: Docker Get Started and AWS Well-Architected.

Build: Dockerise the service and write deployment configuration for a chosen cloud.

Deliverable: deployment diagram, security boundaries and cost assumptions.

Week 10 — URL shortener

Read: relevant case-study sections in System Design Primer.

Build: short-link creation and redirect flow.

Deliverable: requirements, APIs, schema, cache strategy and capacity assumptions.

Week 11 — Notification platform

Read: queue, reliability and event-driven architecture material in the AWS and SRE docs.

Build: API → queue → worker → delivery adapter.

Deliverable: sequence diagram, idempotency plan, retries and dead-letter handling.

Week 12 — Capstone

Choose chat or e-commerce.

Build one working vertical slice and document the rest of the architecture.

Deliverable: diagrams, ADRs, API contract, schema, tests, deployment notes and a short design presentation.

Suggested repository layout


architecture-learning/
  projects/
    task-api/
    url-shortener/
    notification-service/
    capstone/
  docs/
    diagrams/
    adr/
    notes/
  README.md

Architecture Decision Record template


# ADR-001: Choose PostgreSQL for core application data

## Status
Proposed

## Context
What requirement or constraint led to this decision?

## Decision
What are we choosing?

## Alternatives considered
What else could work?

## Consequences
Benefits, costs, risks and follow-up actions.

Completion test

Your repository should let another developer understand the system, run the code, execute tests, inspect diagrams and understand why key technology choices were made.


Daily documentation reading and build plan

Read the linked source, make a small note, then complete the experiment. Official documentation is the reference; use the videos only when you need another explanation.

Week 1, Day 1 — What software architecture means; architecture vs implementation

Read: C4 model: Introduction · Martin Fowler: Software Architecture Guide. Build/experiment: Write a one-paragraph definition and list the main parts of an app you use.

Week 1, Day 2 — System boundaries, users and external dependencies

Read: C4 model: Introduction · arc42 architecture documentation template. Build/experiment: Draw a system-context diagram for a task-management app.

Week 1, Day 3 — Monolith, modular monolith and microservices

Read: The Twelve-Factor App · System Design Primer. Build/experiment: Compare the three styles in a table; choose a sensible starting point for a small product.

Week 1, Day 4 — Functional requirements and quality attributes

Read: AWS Well-Architected Framework · arc42 architecture documentation template. Build/experiment: Write 5 functional requirements and 5 quality attributes for the task app.

Week 1, Day 5 — C4 context and container diagrams

Read: C4 model: Diagrams · Mermaid: Flowcharts. Build/experiment: Draw context and container diagrams and explain each relationship.

Week 2, Day 1 — URLs, DNS and how a browser finds a server

Read: MDN: What is a URL? · Cloudflare: What is DNS?. Build/experiment: Trace a URL from browser to server; label DNS lookup and destination.

Week 2, Day 2 — TCP connections, ports and the request path

Read: Cloudflare: What is TCP? · MDN: Overview of HTTP. Build/experiment: Draw the sequence from client connection to server response.

Week 2, Day 3 — TLS, HTTPS and certificates at a high level

Read: Cloudflare: What is TLS? · MDN: HTTP Guides. Build/experiment: Explain what TLS protects and where it sits in the request flow.

Week 2, Day 4 — HTTP methods, status codes, headers and statelessness

Read: MDN: Overview of HTTP · MDN: HTTP response status codes · MDN: HTTP headers. Build/experiment: Design CRUD endpoints for tasks and choose response codes.

Week 2, Day 5 — REST resource design, OpenAPI and WebSockets

Read: Microsoft: REST API design · FastAPI: Metadata and docs URLs · MDN: WebSockets API. Build/experiment: Write a small API contract and identify one use case for WebSockets.

Week 3, Day 1 — Tables, entities, primary keys and relationships

Read: PostgreSQL Tutorial · MongoDB: Data Modeling. Build/experiment: Model users, projects and tasks with an ER diagram.

Week 3, Day 2 — SQL joins, constraints and referential integrity

Read: PostgreSQL Tutorial · PostgreSQL: Constraints. Build/experiment: Create tables with primary/foreign keys and test invalid inserts.

Week 3, Day 3 — Indexes, selectivity and query plans

Read: PostgreSQL: Indexes · PostgreSQL: EXPLAIN. Build/experiment: Add an index to a query you use; compare EXPLAIN output.

Week 3, Day 4 — Transactions and ACID properties

Read: PostgreSQL: Transactions · PostgreSQL: Transaction Isolation. Build/experiment: Write a transaction for moving a task between projects; explain rollback.

Week 3, Day 5 — SQL vs NoSQL and data modelling trade-offs

Read: MongoDB: Data Modeling · System Design Primer. Build/experiment: Choose a storage model for 3 example features and justify each choice.

Week 4, Day 1 — Separation of concerns, cohesion and coupling

Read: Cosmic Python: Architecture Patterns with Python (free online) · Martin Fowler: Software Architecture Guide. Build/experiment: Identify HTTP, business and persistence responsibilities in one endpoint.

Week 4, Day 2 — SOLID principles in Python

Read: DigitalOcean: SOLID principles in Python · Cosmic Python: Architecture Patterns with Python (free online). Build/experiment: Refactor one class with too many responsibilities.

Week 4, Day 3 — Layered architecture and repository pattern

Read: Cosmic Python: Architecture Patterns with Python (free online) · FastAPI Tutorial. Build/experiment: Split one FastAPI endpoint into router, service and repository.

Week 4, Day 4 — Dependency injection and ports-and-adapters

Read: FastAPI: Dependencies · Cosmic Python: Architecture Patterns with Python (free online). Build/experiment: Inject a repository interface/fake into a service and test it.

Week 4, Day 5 — Design patterns, tests and architecture decisions

Read: Refactoring.Guru: Design Patterns · pytest: Getting Started · Architecture Decision Records. Build/experiment: Add unit tests and write one ADR explaining a design choice.

Week 5, Day 1 — Latency, throughput, capacity and bottlenecks

Read: System Design Primer · Free System Design interactive course. Build/experiment: Estimate requests per second for a toy app using stated assumptions.

Week 5, Day 2 — Vertical/horizontal scaling and load balancing

Read: NGINX: Load balancing · AWS: What is Auto Scaling?. Build/experiment: Draw two application instances behind a load balancer.

Week 5, Day 3 — Caching concepts and cache-aside

Read: Redis: Caching patterns · Redis: Get started. Build/experiment: Add a cache-aside flow diagram for a read-heavy endpoint.

Week 5, Day 4 — CDNs, cache headers and content delivery

Read: AWS: What is a CDN / CloudFront? · MDN: HTTP headers. Build/experiment: Identify static assets that could be served by a CDN.

Week 5, Day 5 — Rate limiting, pagination and performance testing

Read: Cloudflare: Rate limiting · Microsoft: REST API design. Build/experiment: Design a per-user rate limit and paginated list endpoint.

Week 6, Day 1 — Synchronous vs asynchronous work; producers and consumers

Read: AWS SQS: Getting started · Celery: First steps. Build/experiment: Draw an API that queues an email instead of sending it inline.

Week 6, Day 2 — Queue visibility, acknowledgement and worker lifecycle

Read: AWS SQS: Getting started · AWS SQS: Visibility timeout and DLQs. Build/experiment: Describe what happens if a worker crashes after receiving a message.

Week 6, Day 3 — Retries, exponential backoff and dead-letter queues

Read: Azure Architecture: Retry pattern · AWS SQS: Dead-letter queues. Build/experiment: Define retry limits and DLQ handling for failed notifications.

Week 6, Day 4 — Idempotency and duplicate message delivery

Read: Stripe: Idempotent requests · AWS SQS: Visibility timeout and DLQs. Build/experiment: Make a worker safe if the same job is delivered twice.

Week 6, Day 5 — Transactional outbox and event contracts

Read: Microservices.io: Transactional Outbox · Apache Kafka: Introduction. Build/experiment: Draw a database-write plus event-publish flow that avoids lost events.

Week 7, Day 1 — Partial failures, network partitions and CAP

Read: System Design Primer: CAP theorem and consistency · System Design Primer. Build/experiment: Explain a partition scenario and the consistency/availability trade-off.

Week 7, Day 2 — Strong, eventual and read-after-write consistency

Read: System Design Primer: CAP theorem and consistency · Martin Kleppmann: Designing Data-Intensive Applications resources. Build/experiment: Choose a consistency expectation for profile edits and bank transfers.

Week 7, Day 3 — Replication, leader/follower and failover

Read: PostgreSQL: High Availability, Load Balancing and Replication · System Design Primer. Build/experiment: Draw primary/replica data flow and describe replica lag.

Week 7, Day 4 — Partitioning, sharding and hot keys

Read: AWS: Sharding guidance · Martin Kleppmann: Designing Data-Intensive Applications resources. Build/experiment: Choose a shard key for a large task table and identify a hotspot risk.

Week 7, Day 5 — Consensus basics and why distributed coordination is hard

Read: The Raft Consensus Algorithm · Martin Kleppmann: Designing Data-Intensive Applications resources. Build/experiment: Explain leader election in plain language; do not implement Raft.

Week 8, Day 1 — Availability, SLI, SLO and error budgets

Read: Google SRE Book: Service Level Objectives · AWS Well-Architected: Reliability pillar. Build/experiment: Write one SLI and a realistic SLO for your API.

Week 8, Day 2 — Monitoring, logs and the four golden signals

Read: Google SRE Book: Monitoring Distributed Systems · Prometheus: Overview. Build/experiment: Choose latency, traffic, errors and saturation metrics for your API.

Week 8, Day 3 — Distributed tracing and OpenTelemetry concepts

Read: OpenTelemetry: Concepts · Google SRE Book: Monitoring Distributed Systems. Build/experiment: Draw a trace spanning API, database and worker.

Week 8, Day 4 — Timeouts, retries, circuit breakers and graceful degradation

Read: Azure Architecture: Circuit Breaker pattern · Azure Architecture: Retry pattern. Build/experiment: Create a failure policy for a slow third-party service.

Week 8, Day 5 — Authentication, authorization and least privilege

Read: OWASP: Authentication Cheat Sheet · OWASP: Authorization Cheat Sheet · AWS Well-Architected: Security pillar. Build/experiment: Draw an authentication flow and list authorization checks.

Week 9, Day 1 — Containers and why teams use Docker

Read: Docker: Get started · The Twelve-Factor App. Build/experiment: Create a Dockerfile for your FastAPI application.

Week 9, Day 2 — Local multi-service development with Compose

Read: Docker Compose: Quickstart · Docker: Get started. Build/experiment: Run your API and PostgreSQL locally using Compose.

Week 9, Day 3 — VPCs, subnets, routing and security boundaries

Read: AWS: What is Amazon VPC? · AWS Well-Architected: Security pillar. Build/experiment: Draw public/private subnet boundaries for a simple service.

Week 9, Day 4 — Object storage and managed relational databases

Read: AWS S3: Getting started · AWS RDS: Getting started. Build/experiment: Choose which files belong in object storage and which data belongs in PostgreSQL.

Week 9, Day 5 — IAM, deployment architecture, backups and cost

Read: AWS IAM: Best practices · AWS Pricing Calculator · AWS Well-Architected Framework. Build/experiment: Draw a cloud deployment and list five cost/security controls.

Week 10, Day 1 — URL shortener: scope, use cases and requirements

Read: System Design Primer · Free System Design course: case studies and exercises. Build/experiment: Write functional and non-functional requirements for a URL shortener.

Week 10, Day 2 — URL shortener: API, schema and code generation

Read: Free System Design interactive course · PostgreSQL Tutorial. Build/experiment: Design create and redirect endpoints plus a URL table.

Week 10, Day 3 — URL shortener: caching, scale and abuse protection

Read: Redis: Caching patterns · Cloudflare: Rate limiting · System Design Primer. Build/experiment: Draw the redirect path and explain hot-link handling.

Week 10, Day 4 — Notification service: API, queue and worker design

Read: AWS SQS: Getting started · Celery: First steps. Build/experiment: Draw API → queue → worker → provider.

Week 10, Day 5 — Notification service: retries, idempotency and DLQ

Read: AWS SQS: Dead-letter queues · Stripe: Idempotent requests · Microservices.io: Transactional Outbox. Build/experiment: Write a failure-handling table for provider timeouts and duplicate jobs.

Week 11, Day 1 — Choose chat or e-commerce; define scope and requirements

Read: Free System Design course: case studies and exercises · Awesome System Design Resources. Build/experiment: Write the system brief and list explicit assumptions.

Week 11, Day 2 — Design components, APIs and data model

Read: C4 model: Diagrams · Microsoft: REST API design · PostgreSQL Tutorial. Build/experiment: Create a component diagram, endpoint list and core schema.

Week 11, Day 3 — Design real-time delivery or order/payment workflow

Read: MDN: WebSockets API · Redis: Pub/Sub · Stripe: Idempotent requests. Build/experiment: Draw one end-to-end sequence diagram.

Week 11, Day 4 — Identify bottlenecks, failures, security and observability

Read: AWS Well-Architected Framework · Google SRE Book: Monitoring Distributed Systems · AWS Well-Architected: Security pillar. Build/experiment: Create a risk register with mitigation and monitoring.

Week 11, Day 5 — Architecture review and trade-off presentation

Read: Architecture Decision Records · Martin Fowler: Software Architecture Guide. Build/experiment: Present the design in 10 minutes and record unanswered questions.

Week 12, Day 1 — Finalise problem statement and measurable requirements

Read: arc42 architecture documentation template · C4 model: Introduction. Build/experiment: Write a one-page design brief.

Week 12, Day 2 — Finalise diagrams, API contract and data schema

Read: C4 model: Diagrams · FastAPI: Metadata and docs URLs · PostgreSQL Tutorial. Build/experiment: Publish diagrams, API spec and ERD.

Week 12, Day 3 — Implement one end-to-end vertical slice with tests

Read: FastAPI Tutorial · pytest: Getting Started · Docker: Get started. Build/experiment: Implement one workflow from API request to database response.

Week 12, Day 4 — Add operational readiness: logs, health, retries and security

Read: Google SRE Book: Monitoring Distributed Systems · OpenTelemetry: Concepts · OWASP: Authentication Cheat Sheet. Build/experiment: Add a health endpoint, structured logs and documented failure behaviour.

Week 12, Day 5 — Mock interview, architecture write-up and retrospective

Read: System Design Primer · Free System Design interactive course · Architecture Decision Records. Build/experiment: Present your design, answer trade-off questions and list next improvements.

Path 4 · Complete structured course

Path 4 — Complete structured course: System Architecture & System Design

Best for: A single end-to-end course outline that combines concepts, reading, videos, exercises, projects, review and interview preparation.

Starting point: Python developer with basic backend knowledge.

Goals: Build real systems, prepare for interviews, develop architecture judgement and understand distributed/cloud systems.

Pace: 1 hour/day, 5 days/week, 12 weeks.

Course outcomes

By the end, you should be able to:

  • Translate a vague product idea into functional and non-functional requirements.
  • Draw context, container, component and sequence diagrams.
  • Design APIs and relational data models.
  • Explain caching, load balancing, queues, replication and partitioning.
  • Recognise consistency, reliability, security and operational trade-offs.
  • Build and test a small Python backend with sensible architecture.
  • Present a system design and defend your decisions.

Course structure

ModuleTopicsMain output
1. Architecture foundationsArchitecture vocabulary, quality attributes, monoliths, microservices, C4Task app architecture
2. Web and APIsDNS, TCP/TLS, HTTP, REST, auth, paginationFastAPI API contract
3. Data architectureSQL, NoSQL, modelling, indexes, transactions, replicationPostgreSQL schema
4. Code architectureSOLID, layers, dependency inversion, patterns, hexagonal architectureRefactored Python service
5. Scale and performanceLoad balancing, caching, CDN, rate limiting, capacity estimatesScalable API design
6. Async systemsQueues, workers, retries, idempotency, dead-letter queuesNotification worker
7. Distributed systemsConsistency, CAP, partitions, replication, shardingFailure and consistency analysis
8. Operations and securitySLOs, logs, metrics, traces, timeouts, circuit breakers, authOperational readiness checklist
9. Cloud and deploymentDocker, compute, storage, network, managed services, costDeployment diagram
10. Design case studiesURL shortener, notification serviceTwo complete HLDs
11. Advanced case studyChat or e-commerce architectureFull design review
12. Capstone and interviewsBuild, document, present, mock interviewPortfolio-ready case study

Weekly learning rhythm

  • Monday: understand the problem and learn the core concepts.
  • Tuesday: read/watch the relevant resource and take notes.
  • Wednesday: draw the architecture or data flow.
  • Thursday: implement or test a small part.
  • Friday: review, explain aloud and update your notes.

Module detail and free resources

Module 1 — Architecture foundations

Learn: architecture vs design, requirements, quality attributes, system boundaries, C4 diagrams, monolith vs microservices.

Resources: C4 model, 12 Factor App, System Design 101.

Exercise: draw a task-management system at context and container level.

Module 2 — Networking and API design

Learn: DNS, TCP, TLS, HTTP, REST, status codes, auth, pagination, versioning and WebSockets.

Resources: MDN HTTP, FastAPI tutorial.

Exercise: implement a small API and write its OpenAPI contract.

Module 3 — Database architecture

Learn: relational modelling, constraints, joins, indexes, transactions, isolation, SQL vs NoSQL, replication and sharding.

Resources: PostgreSQL tutorial, System Design Primer.

Exercise: design a schema, inspect query plans and justify indexes.

Module 4 — Software design and code architecture

Learn: SOLID, cohesion/coupling, layering, dependency inversion, repository pattern, ports-and-adapters, domain boundaries and ADRs.

Resources: Refactoring.Guru, Martin Fowler, ADR community.

Exercise: refactor a FastAPI app so business logic is independent of HTTP and database details.

Module 5 — Scalability and performance

Learn: latency, throughput, vertical/horizontal scaling, load balancers, cache-aside, invalidation, CDN, rate limiting and capacity estimation.

Resources: System Design Primer, Redis docs.

Exercise: design a read-heavy endpoint and explain when caching helps or hurts.

Module 6 — Queues and event-driven architecture

Learn: producer/consumer, queue semantics, at-least-once delivery, idempotency, retries, exponential backoff, dead-letter queues and event schemas.

Resources: AWS SQS Developer Guide, System Design 101.

Exercise: build a local worker and describe how you would operate it with SQS.

Module 7 — Distributed systems

Learn: network partitions, replication, consistency models, CAP theorem, sharding, leader/follower patterns and partial failure.

Resources: System Design Primer, System Design 101.

Exercise: explain what happens when a replica is unavailable or stale.

Module 8 — Reliability, security and observability

Learn: SLI/SLO/SLA, timeouts, retries, circuit breakers, bulkheads, graceful degradation, authentication, authorization, secrets, logs, metrics and traces.

Resources: Google SRE Book, AWS Well-Architected.

Exercise: write a runbook for an API whose database is slow.

Module 9 — Cloud architecture and deployment

Learn: compute, storage, networking, IAM, containers, managed databases, object storage, deployment environments, backups and cost.

Resources: Docker Get Started, AWS Well-Architected, Azure Architecture Center.

Exercise: draw a secure deployment for your API and mark trust boundaries.

Case studies

Case study A — URL shortener

Requirements: create short links, redirect reliably, optionally expire links and collect basic click counts.

Design: API, code generation, database, cache, redirect flow, abuse controls and analytics.

Questions: How do you avoid code collisions? What should be cached? How do you handle hot links?

Case study B — Notification service

Requirements: accept email/push/SMS notification requests and deliver asynchronously.

Design: API, queue, workers, provider adapters, retry policy, idempotency and dead-letter queue.

Questions: What happens if a provider is down? How do you avoid duplicate sends? How do you observe backlog?

Case study C — Chat or e-commerce

Choose chat to study WebSockets, message ordering, delivery and presence; or e-commerce to study orders, inventory, payment boundaries and consistency.

Do not attempt to build every feature. Implement one end-to-end path and document the rest.

Interview design framework

For each design prompt:

  1. 1. Clarify users, use cases and scope.
  2. 2. Separate functional and non-functional requirements.
  3. 3. Estimate traffic, storage and read/write ratios with explicit assumptions.
  4. 4. Define APIs and core data entities.
  5. 5. Draw the simplest viable high-level architecture.
  6. 6. Walk through one important request end to end.
  7. 7. Identify bottlenecks and scale only where needed.
  8. 8. Discuss failures, security, observability and cost.
  9. 9. Explain trade-offs and alternatives.
  10. 10. Summarise the design and open questions.

Assessment milestones

  • End of week 2: explain an HTTP request and design a clean API.
  • End of week 4: structure a Python service and test business logic independently.
  • End of week 6: explain and implement a background worker with safe retries.
  • End of week 8: explain failure handling and operational signals.
  • End of week 10: present two high-level designs.
  • End of week 12: publish a capstone with diagrams, code, tests and an architecture write-up.

Final capstone submission checklist

  • Problem statement and assumptions
  • Functional and non-functional requirements
  • C4 context/container diagram
  • Sequence diagram for a key workflow
  • API contract
  • Database schema and indexing rationale
  • Architecture decision records
  • Working Python implementation of one vertical slice
  • Automated tests
  • Logging, health checks and failure handling
  • Deployment diagram and security boundaries
  • Cost and scaling considerations
  • 10-minute presentation and mock interview notes

Recommended rule

Start with the smallest architecture that satisfies the requirements. Add a cache, queue, replica, microservice or other infrastructure only when you can explain the problem it solves and the operational complexity it adds.


Complete day-by-day syllabus with resources

Use this as the master checklist. Each day includes a focused topic, free reading and a practical output.

Week 1, Day 1 — What software architecture means; architecture vs implementation

Lesson: What software architecture means; architecture vs implementation. Required output: Write a one-paragraph definition and list the main parts of an app you use.. Study: C4 model: Introduction · Martin Fowler: Software Architecture Guide

Week 1, Day 2 — System boundaries, users and external dependencies

Lesson: System boundaries, users and external dependencies. Required output: Draw a system-context diagram for a task-management app.. Study: C4 model: Introduction · arc42 architecture documentation template

Week 1, Day 3 — Monolith, modular monolith and microservices

Lesson: Monolith, modular monolith and microservices. Required output: Compare the three styles in a table; choose a sensible starting point for a small product.. Study: The Twelve-Factor App · System Design Primer

Week 1, Day 4 — Functional requirements and quality attributes

Lesson: Functional requirements and quality attributes. Required output: Write 5 functional requirements and 5 quality attributes for the task app.. Study: AWS Well-Architected Framework · arc42 architecture documentation template

Week 1, Day 5 — C4 context and container diagrams

Lesson: C4 context and container diagrams. Required output: Draw context and container diagrams and explain each relationship.. Study: C4 model: Diagrams · Mermaid: Flowcharts

Week 2, Day 1 — URLs, DNS and how a browser finds a server

Lesson: URLs, DNS and how a browser finds a server. Required output: Trace a URL from browser to server; label DNS lookup and destination.. Study: MDN: What is a URL? · Cloudflare: What is DNS?

Week 2, Day 2 — TCP connections, ports and the request path

Lesson: TCP connections, ports and the request path. Required output: Draw the sequence from client connection to server response.. Study: Cloudflare: What is TCP? · MDN: Overview of HTTP

Week 2, Day 3 — TLS, HTTPS and certificates at a high level

Lesson: TLS, HTTPS and certificates at a high level. Required output: Explain what TLS protects and where it sits in the request flow.. Study: Cloudflare: What is TLS? · MDN: HTTP Guides

Week 2, Day 4 — HTTP methods, status codes, headers and statelessness

Lesson: HTTP methods, status codes, headers and statelessness. Required output: Design CRUD endpoints for tasks and choose response codes.. Study: MDN: Overview of HTTP · MDN: HTTP response status codes · MDN: HTTP headers

Week 2, Day 5 — REST resource design, OpenAPI and WebSockets

Lesson: REST resource design, OpenAPI and WebSockets. Required output: Write a small API contract and identify one use case for WebSockets.. Study: Microsoft: REST API design · FastAPI: Metadata and docs URLs · MDN: WebSockets API

Week 3, Day 1 — Tables, entities, primary keys and relationships

Lesson: Tables, entities, primary keys and relationships. Required output: Model users, projects and tasks with an ER diagram.. Study: PostgreSQL Tutorial · MongoDB: Data Modeling

Week 3, Day 2 — SQL joins, constraints and referential integrity

Lesson: SQL joins, constraints and referential integrity. Required output: Create tables with primary/foreign keys and test invalid inserts.. Study: PostgreSQL Tutorial · PostgreSQL: Constraints

Week 3, Day 3 — Indexes, selectivity and query plans

Lesson: Indexes, selectivity and query plans. Required output: Add an index to a query you use; compare EXPLAIN output.. Study: PostgreSQL: Indexes · PostgreSQL: EXPLAIN

Week 3, Day 4 — Transactions and ACID properties

Lesson: Transactions and ACID properties. Required output: Write a transaction for moving a task between projects; explain rollback.. Study: PostgreSQL: Transactions · PostgreSQL: Transaction Isolation

Week 3, Day 5 — SQL vs NoSQL and data modelling trade-offs

Lesson: SQL vs NoSQL and data modelling trade-offs. Required output: Choose a storage model for 3 example features and justify each choice.. Study: MongoDB: Data Modeling · System Design Primer

Week 4, Day 1 — Separation of concerns, cohesion and coupling

Lesson: Separation of concerns, cohesion and coupling. Required output: Identify HTTP, business and persistence responsibilities in one endpoint.. Study: Cosmic Python: Architecture Patterns with Python (free online) · Martin Fowler: Software Architecture Guide

Week 4, Day 2 — SOLID principles in Python

Lesson: SOLID principles in Python. Required output: Refactor one class with too many responsibilities.. Study: DigitalOcean: SOLID principles in Python · Cosmic Python: Architecture Patterns with Python (free online)

Week 4, Day 3 — Layered architecture and repository pattern

Lesson: Layered architecture and repository pattern. Required output: Split one FastAPI endpoint into router, service and repository.. Study: Cosmic Python: Architecture Patterns with Python (free online) · FastAPI Tutorial

Week 4, Day 4 — Dependency injection and ports-and-adapters

Lesson: Dependency injection and ports-and-adapters. Required output: Inject a repository interface/fake into a service and test it.. Study: FastAPI: Dependencies · Cosmic Python: Architecture Patterns with Python (free online)

Week 4, Day 5 — Design patterns, tests and architecture decisions

Lesson: Design patterns, tests and architecture decisions. Required output: Add unit tests and write one ADR explaining a design choice.. Study: Refactoring.Guru: Design Patterns · pytest: Getting Started · Architecture Decision Records

Week 5, Day 1 — Latency, throughput, capacity and bottlenecks

Lesson: Latency, throughput, capacity and bottlenecks. Required output: Estimate requests per second for a toy app using stated assumptions.. Study: System Design Primer · Free System Design interactive course

Week 5, Day 2 — Vertical/horizontal scaling and load balancing

Lesson: Vertical/horizontal scaling and load balancing. Required output: Draw two application instances behind a load balancer.. Study: NGINX: Load balancing · AWS: What is Auto Scaling?

Week 5, Day 3 — Caching concepts and cache-aside

Lesson: Caching concepts and cache-aside. Required output: Add a cache-aside flow diagram for a read-heavy endpoint.. Study: Redis: Caching patterns · Redis: Get started

Week 5, Day 4 — CDNs, cache headers and content delivery

Lesson: CDNs, cache headers and content delivery. Required output: Identify static assets that could be served by a CDN.. Study: AWS: What is a CDN / CloudFront? · MDN: HTTP headers

Week 5, Day 5 — Rate limiting, pagination and performance testing

Lesson: Rate limiting, pagination and performance testing. Required output: Design a per-user rate limit and paginated list endpoint.. Study: Cloudflare: Rate limiting · Microsoft: REST API design

Week 6, Day 1 — Synchronous vs asynchronous work; producers and consumers

Lesson: Synchronous vs asynchronous work; producers and consumers. Required output: Draw an API that queues an email instead of sending it inline.. Study: AWS SQS: Getting started · Celery: First steps

Week 6, Day 2 — Queue visibility, acknowledgement and worker lifecycle

Lesson: Queue visibility, acknowledgement and worker lifecycle. Required output: Describe what happens if a worker crashes after receiving a message.. Study: AWS SQS: Getting started · AWS SQS: Visibility timeout and DLQs

Week 6, Day 3 — Retries, exponential backoff and dead-letter queues

Lesson: Retries, exponential backoff and dead-letter queues. Required output: Define retry limits and DLQ handling for failed notifications.. Study: Azure Architecture: Retry pattern · AWS SQS: Dead-letter queues

Week 6, Day 4 — Idempotency and duplicate message delivery

Lesson: Idempotency and duplicate message delivery. Required output: Make a worker safe if the same job is delivered twice.. Study: Stripe: Idempotent requests · AWS SQS: Visibility timeout and DLQs

Week 6, Day 5 — Transactional outbox and event contracts

Lesson: Transactional outbox and event contracts. Required output: Draw a database-write plus event-publish flow that avoids lost events.. Study: Microservices.io: Transactional Outbox · Apache Kafka: Introduction

Week 7, Day 1 — Partial failures, network partitions and CAP

Lesson: Partial failures, network partitions and CAP. Required output: Explain a partition scenario and the consistency/availability trade-off.. Study: System Design Primer: CAP theorem and consistency · System Design Primer

Week 7, Day 2 — Strong, eventual and read-after-write consistency

Lesson: Strong, eventual and read-after-write consistency. Required output: Choose a consistency expectation for profile edits and bank transfers.. Study: System Design Primer: CAP theorem and consistency · Martin Kleppmann: Designing Data-Intensive Applications resources

Week 7, Day 3 — Replication, leader/follower and failover

Lesson: Replication, leader/follower and failover. Required output: Draw primary/replica data flow and describe replica lag.. Study: PostgreSQL: High Availability, Load Balancing and Replication · System Design Primer

Week 7, Day 4 — Partitioning, sharding and hot keys

Lesson: Partitioning, sharding and hot keys. Required output: Choose a shard key for a large task table and identify a hotspot risk.. Study: AWS: Sharding guidance · Martin Kleppmann: Designing Data-Intensive Applications resources

Week 7, Day 5 — Consensus basics and why distributed coordination is hard

Lesson: Consensus basics and why distributed coordination is hard. Required output: Explain leader election in plain language; do not implement Raft.. Study: The Raft Consensus Algorithm · Martin Kleppmann: Designing Data-Intensive Applications resources

Week 8, Day 1 — Availability, SLI, SLO and error budgets

Lesson: Availability, SLI, SLO and error budgets. Required output: Write one SLI and a realistic SLO for your API.. Study: Google SRE Book: Service Level Objectives · AWS Well-Architected: Reliability pillar

Week 8, Day 2 — Monitoring, logs and the four golden signals

Lesson: Monitoring, logs and the four golden signals. Required output: Choose latency, traffic, errors and saturation metrics for your API.. Study: Google SRE Book: Monitoring Distributed Systems · Prometheus: Overview

Week 8, Day 3 — Distributed tracing and OpenTelemetry concepts

Lesson: Distributed tracing and OpenTelemetry concepts. Required output: Draw a trace spanning API, database and worker.. Study: OpenTelemetry: Concepts · Google SRE Book: Monitoring Distributed Systems

Week 8, Day 4 — Timeouts, retries, circuit breakers and graceful degradation

Lesson: Timeouts, retries, circuit breakers and graceful degradation. Required output: Create a failure policy for a slow third-party service.. Study: Azure Architecture: Circuit Breaker pattern · Azure Architecture: Retry pattern

Week 8, Day 5 — Authentication, authorization and least privilege

Lesson: Authentication, authorization and least privilege. Required output: Draw an authentication flow and list authorization checks.. Study: OWASP: Authentication Cheat Sheet · OWASP: Authorization Cheat Sheet · AWS Well-Architected: Security pillar

Week 9, Day 1 — Containers and why teams use Docker

Lesson: Containers and why teams use Docker. Required output: Create a Dockerfile for your FastAPI application.. Study: Docker: Get started · The Twelve-Factor App

Week 9, Day 2 — Local multi-service development with Compose

Lesson: Local multi-service development with Compose. Required output: Run your API and PostgreSQL locally using Compose.. Study: Docker Compose: Quickstart · Docker: Get started

Week 9, Day 3 — VPCs, subnets, routing and security boundaries

Lesson: VPCs, subnets, routing and security boundaries. Required output: Draw public/private subnet boundaries for a simple service.. Study: AWS: What is Amazon VPC? · AWS Well-Architected: Security pillar

Week 9, Day 4 — Object storage and managed relational databases

Lesson: Object storage and managed relational databases. Required output: Choose which files belong in object storage and which data belongs in PostgreSQL.. Study: AWS S3: Getting started · AWS RDS: Getting started

Week 9, Day 5 — IAM, deployment architecture, backups and cost

Lesson: IAM, deployment architecture, backups and cost. Required output: Draw a cloud deployment and list five cost/security controls.. Study: AWS IAM: Best practices · AWS Pricing Calculator · AWS Well-Architected Framework

Week 10, Day 1 — URL shortener: scope, use cases and requirements

Lesson: URL shortener: scope, use cases and requirements. Required output: Write functional and non-functional requirements for a URL shortener.. Study: System Design Primer · Free System Design course: case studies and exercises

Week 10, Day 2 — URL shortener: API, schema and code generation

Lesson: URL shortener: API, schema and code generation. Required output: Design create and redirect endpoints plus a URL table.. Study: Free System Design interactive course · PostgreSQL Tutorial

Week 10, Day 3 — URL shortener: caching, scale and abuse protection

Lesson: URL shortener: caching, scale and abuse protection. Required output: Draw the redirect path and explain hot-link handling.. Study: Redis: Caching patterns · Cloudflare: Rate limiting · System Design Primer

Week 10, Day 4 — Notification service: API, queue and worker design

Lesson: Notification service: API, queue and worker design. Required output: Draw API → queue → worker → provider.. Study: AWS SQS: Getting started · Celery: First steps

Week 10, Day 5 — Notification service: retries, idempotency and DLQ

Lesson: Notification service: retries, idempotency and DLQ. Required output: Write a failure-handling table for provider timeouts and duplicate jobs.. Study: AWS SQS: Dead-letter queues · Stripe: Idempotent requests · Microservices.io: Transactional Outbox

Week 11, Day 1 — Choose chat or e-commerce; define scope and requirements

Lesson: Choose chat or e-commerce; define scope and requirements. Required output: Write the system brief and list explicit assumptions.. Study: Free System Design course: case studies and exercises · Awesome System Design Resources

Week 11, Day 2 — Design components, APIs and data model

Lesson: Design components, APIs and data model. Required output: Create a component diagram, endpoint list and core schema.. Study: C4 model: Diagrams · Microsoft: REST API design · PostgreSQL Tutorial

Week 11, Day 3 — Design real-time delivery or order/payment workflow

Lesson: Design real-time delivery or order/payment workflow. Required output: Draw one end-to-end sequence diagram.. Study: MDN: WebSockets API · Redis: Pub/Sub · Stripe: Idempotent requests

Week 11, Day 4 — Identify bottlenecks, failures, security and observability

Lesson: Identify bottlenecks, failures, security and observability. Required output: Create a risk register with mitigation and monitoring.. Study: AWS Well-Architected Framework · Google SRE Book: Monitoring Distributed Systems · AWS Well-Architected: Security pillar

Week 11, Day 5 — Architecture review and trade-off presentation

Lesson: Architecture review and trade-off presentation. Required output: Present the design in 10 minutes and record unanswered questions.. Study: Architecture Decision Records · Martin Fowler: Software Architecture Guide

Week 12, Day 1 — Finalise problem statement and measurable requirements

Lesson: Finalise problem statement and measurable requirements. Required output: Write a one-page design brief.. Study: arc42 architecture documentation template · C4 model: Introduction

Week 12, Day 2 — Finalise diagrams, API contract and data schema

Lesson: Finalise diagrams, API contract and data schema. Required output: Publish diagrams, API spec and ERD.. Study: C4 model: Diagrams · FastAPI: Metadata and docs URLs · PostgreSQL Tutorial

Week 12, Day 3 — Implement one end-to-end vertical slice with tests

Lesson: Implement one end-to-end vertical slice with tests. Required output: Implement one workflow from API request to database response.. Study: FastAPI Tutorial · pytest: Getting Started · Docker: Get started

Week 12, Day 4 — Add operational readiness: logs, health, retries and security

Lesson: Add operational readiness: logs, health, retries and security. Required output: Add a health endpoint, structured logs and documented failure behaviour.. Study: Google SRE Book: Monitoring Distributed Systems · OpenTelemetry: Concepts · OWASP: Authentication Cheat Sheet

Week 12, Day 5 — Mock interview, architecture write-up and retrospective

Lesson: Mock interview, architecture write-up and retrospective. Required output: Present your design, answer trade-off questions and list next improvements.. Study: System Design Primer · Free System Design interactive course · Architecture Decision Records