Search
Lessons (28)
- Kafka vs RabbitMQ & the Kafka Ecosystem
… What is the difference between Kafka and RabbitMQ? "Kafka is built for distributed event streaming. It stores events …
- Batch vs Stream and Data Modeling
… For fast checks, stream, but plan for duplicates and late events ✅ For fraud checks: - Give every event a …
- Big Data: ETL, Warehouses and Streaming
… raw events land durably, ETL/stream processing creates curated lake and warehouse datasets](/img/system-design-l6/big …
- Design a Logging and Monitoring Platform
… The stream is fine. - Logs keep flowing into the stream. Nothing is lost as long as the indexer …
- What Is Apache Kafka?
… What is Kafka? "Apache Kafka is a distributed event-streaming platform. Services publish events to it and other …
- Next.js Rendering: CSR, SSR, SSG, ISR & Server Components
… Then JavaScript hydrates it (attaches event handlers) to make it interactive. mermaid sequenceDiagram participant B as Browser participant …
- Delivery Guarantees: At-Most, At-Least & Exactly Once
… Most business events ✅ Exactly-once (in Kafka) Transactions read committed , sendOffsets in the transaction Stream processing, financial pipelines …
- Event-Driven Patterns, Step Functions and Reliable Lambdas
… EventBridge Event bus with rules and filtering Routing events between services, SaaS and schedules Kinesis / MSK Ordered streams …
- Month 3: LLM Engineering (Weeks 9-12)
… reliability Learn - Streaming : send tokens to the user as they are produced (Server-Sent Events). Slow answers feel …
- React Internals & Concurrent Rendering
… Rendering may happen more than once; network calls and other side effects belong in event handlers, effects, or …
- Real-Time, Pub/Sub, Webhooks and CDC
… an event stream can feed pub-sub consumers, webhook delivery, server-sent updates and database change capture](/img …
- Serverless Architecture
… create a thumbnail export const handler = async (event: S3Event) = { for (const record of event.Records) { const image = await …
- Message Queues & RabbitMQ
… request/reply Apache Kafka Distributed append-only log Event streaming, high throughput, replay (see [Kafka for Backend Services …
- Topics, Partitions & Offsets
… svg) Topics A topic is a named stream of related events: orders , payments , page-views , user-signups . bash …
- Async JavaScript: Promises, async/await and Node's Event Loop
… what runs in which order Node's event loop (built on libuv ) runs in phases . Between every callback …
- Caching & Redis
… ZRANGE , ZREVRANK Leaderboards , priority queues, time windows Stream XADD , XREADGROUP Event log with consumer groups Pub/Sub PUBLISH …
- Kafka for Backend Services
… kafka/topics-partitions-offsets) Stream processing Join, aggregate and window events (Kafka Streams, Flink) [Kafka ecosystem](/learn/kafka …
- Proxies, APIs and Real-Time Protocols
… sending letters). SSE (Server-Sent Events) An open line where only the server talks. A radio station: you …
- AWS Messaging: Queues, Topics and Events
… rules send events to services by type/content Kinesis Ordered, high-volume stream processing SQS basics that prevent …
- Data in Microservices: Sagas & the Outbox Pattern
… Design compensations as business actions . Choreography saga (events) Each service listens for events and reacts. No central coordinator …
- Design a Ride-Sharing Service
… Locations are eventually consistent (they'll be right soon , not instantly). Ride assignment needs strong ownership (right every …
- AWS Data Pipelines in Plain Language
… Does it represent an order created, a payment captured, or an item shipped? Those are different events, and …
- DynamoDB Modeling, RDS Scaling and Data Resilience
… a different PK/SK, eventually consistent, its own throughput. Use for "orders by status". - LSI : same PK, different …
- Message Delivery: Queues, Kafka, Ordering and DLQs
… order placed text Order database + outbox row (one transaction) - event stream: OrderPlaced(order id, version, event id) - inventory …
- Design a Social Media Feed
… and comments live in separate, scalable counters or event streams. Don't rewrite the post every time someone …
- Behavioral Patterns II: Chain, Template, Iterator, Mediator, Memento, Visitor
… arrays, Map , Set , for await (const chunk of stream) , paginated API helpers. --- 4. Mediator ✈️ Analogy: Planes don't …
- Node.js and Express
… 1] & C2[Client 2] & C3[Client 3] -- EL(("🔁 Event loop<br/ one JS thread")) EL -- "start I/O …
- Collaborative Document Editing & Real-Time Sync
… POST /docs/{docId}/restore - { rev } WS /docs/{docId}/stream The messages sent over the WebSocket: jsonc // client - server …