Search
Lessons (40)
- CQRS & Event Sourcing
… fast, denormalised, eventually consistent. - Event sourcing: store every change as an immutable event; current state = replaying events. - You …
- Batch vs Stream and Data Modeling
… Found a bug in the copy? Rebuild it from the saved events or the source tables. Never let …
- Event-Driven Architecture
… Event sourcing Events are the source of truth The account's state is the sum of Deposited / Withdrawn …
- AWS Data Pipelines in Plain Language
… Store an event time and ingestion time so the difference is visible. Keep raw source data available under …
- Event-Driven Patterns, Step Functions and Reliable Lambdas
… Set reserved concurrency or event source maximumConcurrency so a burst cannot overwhelm your database. AWS reference: [SQS event …
- Kafka vs RabbitMQ & the Kafka Ecosystem
… That makes it a good fit for high-throughput event pipelines, analytics and event sourcing. RabbitMQ is a …
- Cross-Service Data: How to Join Without a Database JOIN
… Use an outbox in each source service so important events are not lost between the database commit and …
- Concurrency, Resilience & Distributed Workflows
… CQRS and event sourcing are useful specialized patterns, not defaults; learn them in [Data in Microservices: Sagas & the …
- Serverless: Lambda and API Gateway
… Asynchronous Lambda invocation and queue-based event sources have their own retry behavior. For POST /orders , an idempotency …
- Domain-Driven Design: Tactical Patterns
… broker), and can even become the source of truth ( event sourcing , see the Microservices lessons). Factories When creating …
- Storage, Search and Location Queries
… This lesson is about using the right tools and keeping one source of truth. Words you need Word …
- What Is Apache Kafka?
… CDC database changes → data warehouse Event sourcing the log IS the source of truth Who uses it: LinkedIn …
- AWS Messaging: Queues, Topics and Events
… Still design safe retries. An EventBridge event json { "source": "academy.shop", "detail-type": "OrderPlaced", "detail": { "order id": "1001 …
- Kafka for Backend Services
… randomUUID(), eventType: "OrderPlaced", schemaVersion: 2, occurredAt: new Date().toISOString(), source: "orders-service", data: { orderId, customerId: input.customerId, totalCents …
- C4 Architecture Diagrams: Context, Container, Component and Code
… publishes event StripePaymentGateway .. PaymentGateway : implements PostgresOrderRepository .. OrderRepository : implements This diagram is not a full copy of the source …
- Big Data: ETL, Warehouses and Streaming
… step by step 1. Land immutable raw events with source, schema version and arrival time. 2. Validate them …
- Architecture Patterns at Scale
… paged. - Contract: the API or event format, and how it changes safely. - Source of truth: which service's …
- GitOps, Progressive Delivery and Observability
… Git is the source of truth Instead of running kubectl apply from laptops or CI, an in-cluster …
- Your Practical Kubernetes Workflow
… Git becomes the source of truth With GitOps, reviewed manifests or Helm values live in Git. A tool …
- Serverless Architecture
… independent scaling and permissions Idempotent handlers Event sources retry; the same event may arrive twice Push work to …
- Normalization & Denormalization
… The normalized source of truth. 2. The event/transactional outbox or refresh job that updates the copy. 3 …
- Which Pattern Do I Need?
… of Responsibility Middleware pipelines, API gateway filters Memento Event sourcing snapshots Key takeaways - Start from the problem you …
- Backend Design Scenarios
… Commit the database first, then invalidate or publish an invalidation event. Data 3. The users table reaches 500 …
- Choosing a Programming Language
… Go, Rust"] S1[source] -- C1[compiler] -- B1[native binary] -- CPU1[CPU] end subgraph INT["Interpreted: Python"] S2[source …
- The Hot SKU Alert Problem
… The row is locked for minutes. ✅ Right: commit price + outbox event in milliseconds. A publisher sends the event …
- Jenkins: From Install to Your First Pipeline
… github-webhook/ , event: push + pull requests Instant; needs Jenkins reachable from GitHub Multibranch scan Branch source scans on …
- Topics, Partitions & Offsets
… size 10 GB retention.ms=-1 Keep forever Event sourcing, audit logs Under the hood, each partition is …
- Caching, Consistent Hashing and Sharding
… The cache is never the source of truth. Walk through a failure The cache machine holding the hot …
- Domain-Driven Design: Strategic Design
… Domains and subdomains, ubiquitous language, bounded contexts, all the context-mapping patterns, and event storming to discover them …
- React Fundamentals
… React state is the single source of truth for the input's value. For big forms, libraries like …
- Design an E-Commerce Checkout
… Then other parts (shipping, receipt email) read that event and act. They must handle getting the same event …
- Caching & Redis
… 3. Events: publish product.updated ; every service with a cached copy removes it. js async function updateProduct(id …
- Design a Chat Application
… they are saved, permanent changes. Offline push notifications are triggered by the saved event, not by a gateway …
- Capacity, Availability, Latency and CAP
… the source of truth (the one place whose answer counts). Estimate storage the same way: text events per …
- Behavioral Patterns II: Chain, Template, Iterator, Mediator, Memento, Visitor
… fixed order of steps async run(source) { const raw = await this.read(source); const records = this.parse(raw …
- Cost Optimization and the Well-Architected Framework
… Use arm64 and avoid unnecessary invocations (filter events at the source). EBS - Move gp2 to gp3 (cheaper, independent …
- Flash Sale: 10 Million Buyers, No Oversell
… Something still has to do "take one only if one is left" atomically, at the durable source of …
- Indexes, EXPLAIN & Query Plans
… Let the database tell you which queries cost the most. Source What it gives you --- --- pg stat statements …
- The L6 System-Design Thinking Loop
… a write that must hit the real database (the source of truth , the one place whose answer counts …
- Practical Project: Deploy a Real CRM App on EKS
Take a containerized CRM (DemoCRM) from source code to a secure AWS deployment: ECR images, an EKS cluster …