Search
Lessons (40)
- Delivery Guarantees: At-Most, At-Least & Exactly Once
… Transactions (atomic read-process-write) A stream processor reads from topic A, transforms the record, and writes to …
- Consumers & Consumer Groups
… process, then commit, and make processing idempotent so a repeat does no harm. js const consumer = kafka.consumer …
- Processes, Services & systemd
… what's running? A process is a running program. Each one has a PID (process ID). bash ps …
- Message Queues & RabbitMQ
… remember processed message IDs if (await db.processedMessages.exists(msg.properties.messageId)) return channel.ack(msg); await db …
- Kafka for Backend Services
… 1 KAFKA PROCESS ROLES: broker,controller KAFKA LISTENERS: PLAINTEXT://:9092,CONTROLLER://:9093 KAFKA ADVERTISED LISTENERS: PLAINTEXT://localhost:9092 …
- 500 Users Upload Documents at Once: Design the Background Job Pipeline
Take slow document processing out of the upload request: save the file, write down a job, put it …
- Node.js and Express
… z.string().min(32), }).parse(process.env); Load a local .env with node --env-file=.env server.js …
- Linux Troubleshooting Playbook & Interview Questions
… What is the difference between a process and a thread? What are signals?</strong </summary A process is …
- Async JavaScript: Promises, async/await and Node's Event Loop
… first process.nextTick , then promise microtasks. mermaid flowchart LR T["⏱️ timers<br/ setTimeout / setInterval"] -- P["📥 poll<br/ I …
- Message Delivery: Queues, Kafka, Ordering and DLQs
… Service writes the shipment and the marker "event e-500 processed" in one transaction. 2. Service crashes before …
- AWS Messaging: Queues, Topics and Events
… consumers share processing, with retry and duplicate handling SNS A topic: one message can notify many subscribers EventBridge …
- Microkernel (Plugin) Architecture
… a tiny Markdown processor 1. Define the contract ts // core/contract.ts: the ONLY thing plug-ins import …
- Batch vs Stream and Data Modeling
… the purchase time , or the time your system processed the event? <details <summary Show answer</summary Purchase time …
- Kafka vs RabbitMQ & the Kafka Ecosystem
… processing inside your app A Java library for stateful stream processing : filtering, mapping, joining streams, windowed aggregations, with …
- Zero-Downtime Deploys & Rollbacks
… the few seconds while the single process restarts. Level 2: Blue-green with two instances Run two copies …
- Event-Driven Architecture
… store processed event IDs Ordering Partition by entity key (Kafka); include versions/timestamps Lost events when saving + publishing …
- Python Fundamentals
… while waiting CPU-bound (math, image processing) multiprocessing / ProcessPoolExecutor Separate processes, separate GILs Heavy numeric work NumPy, pandas …
- Concurrency, Resilience & Distributed Workflows
… Providers retry when they receive a timeout or non- 2xx , so deduplicate by event ID and process asynchronously …
- Questions to Ask: "Do You Have Any Questions for Us?"
… handled in the team?" 6. "What tools and processes do you currently use for tracking and documentation?" 7 …
- Health Checks and Scaling
… 3000 Keep liveness simple: “is the process responding?” Do not make it fail just because the database is …
- Vertical Slice Architecture & the Modular Monolith
… 4. Modules communicate through public APIs or in-process events. 5. Enforce boundaries automatically , or they will erode …
- Cost Optimization and the Well-Architected Framework
… 2. NAT gateway data processing : add S3 and DynamoDB gateway endpoints; use interface endpoints for heavy services; keep …
- Preparing for Technical Interview Rounds
Understand each round in a typical developer hiring process and how to prepare for screening, coding, system design …
- Certifications Worth Getting
Which certifications help developers get shortlisted, grouped by cloud, containers, DevOps, data, security and process, and how to …
- VPC Networking Without the Confusion
… It adds ongoing and data-processing costs. An S3 gateway endpoint can instead provide access to S3 through …
- Transformers and Large Language Models
… This helps the model relate tokens across a sequence and process many positions in parallel during training. Modern …
- Deploying & Operating Microservices
… await db.end(); await broker.disconnect(); process.exit(0); }); setTimeout(() = process.exit(1), 25 000).unref(); // force-quit …
- Serverless Architecture
… JSON.stringify(result) }; }; When to use it ✅ Spiky or unpredictable traffic, event processing (uploads, queues, webhooks), scheduled jobs …
- O — Open/Closed Principle
… the growing if/else js // ❌ Every new payment method = edit this function again function processPayment(order, method) { if …
- Choosing an Architecture
… vertical slices (mostly CRUD)"] c1[search slice] c2[update price slice] end Ord -.- OrderPlaced, in-process event Bill …
- AWS Interview Questions: Clear Answers
… You need a tested recovery process. Does receiving an SQS message remove it? No. Receiving hides it for …
- Code Profiling
… the user waited) from CPU time (how much processor work your code did). A request may be slow …
- Data in Microservices: Sagas & the Outbox Pattern
… A separate relay process reads the outbox and publishes to the broker. mermaid flowchart LR subgraph Tx["One …
- Run Containers on AWS with ECR and ECS
… Common causes include the wrong architecture, a process that exits, invalid CPU/memory settings, and image-pull access …
- EC2, Storage and Auto Scaling
… An EC2 instance runs an operating system, your Python process, and any supporting software. AWS supplies the virtual …
- Design an E-Commerce Checkout
… Show the buyer an honest "Processing your payment...". Then reconcile : wait for the provider's webhook (a message …
- Big Data: ETL, Warehouses and Streaming
… raw events land durably, ETL/stream processing creates curated lake and warehouse datasets](/img/system-design-l6/big …
- 10,000 Users Do Not Need 10,000 Database Connections
… It multiplies by every instance and process. ❌ Wrong: "Each instance gets 20 connections." Then autoscaling quietly asks for …
- Deploy a Node.js App to a VPS, Step by Step
… Before a new deploy, sudo ss -ltnp shows exactly which process owns each port, so you never stop …
- Caching & Redis
… Use a small in-process cache in front of Redis, replicate the value where appropriate, and measure the …