Search
Lessons (40)
- Replication, Partitioning & Sharding
Scale reads with replicas, split data safely with partitions and shards, and plan for consistency, hot keys and …
- Brokers, Replication & Durability
… Brokers, leaders and followers, in-sync replicas, min.insync.replicas, leader election and KRaft, drawn step by step …
- Database Internals, Replication and Scaling
… The primary sends the change to the replicas. Usually this takes a few milliseconds. 3. Today a replica …
- Running Kafka in Production: The DevOps View
… 3 KAFKA MIN INSYNC REPLICAS: 2 KAFKA OFFSETS TOPIC REPLICATION FACTOR: 3 KAFKA TRANSACTION STATE LOG REPLICATION FACTOR …
- DynamoDB Modeling, RDS Scaling and Data Resilience
Design DynamoDB tables around access patterns, then scale and protect relational databases with replicas, proxies and Multi-AZ …
- Resilience, Disaster Recovery and Multi-Region Design
… everything as code (CloudFormation, CDK, Terraform) and container images replicated with ECR cross-region replication ; AMIs copied to …
- Kafka Producers
… fetch + replicate F2- L: fetch + replicate L-- P: ✅ ack (in-sync replicas have it) acks Producer waits for …
- Testing, Preconditions, and Policy Checks
… json" content = jsonencode({ replicas = var.replicas }) lifecycle { precondition { condition = var.environment != "prod" var.replicas = 2 error message = "Production …
- Deployments: Keep Your App Running
… A Deployment is the manager that says: “I need this many healthy copies of my app.” ] P -- replication …
- Cross-Service Data: How to Join Without a Database JOIN
When Order Service and User Service own separate databases, learn how to compose APIs, replicate data and build …
- Backend Design Scenarios
… Add read replicas when the primary is healthy but read traffic is the constraint. Route only replica-safe …
- Variables, Locals, Outputs, and Validation
… object({ port = number replicas = optional(number, 1) })) default = { api = { port = 8080 } web = { port = 3000, replicas = 2 } } } This maps …
- Internals, Upgrades, Resilience and Interview Questions
… create ReplicaSet, then Pods S- API: Watch: bind unscheduled Pod to a node K- API: Watch: Pod assigned …
- Containers at Scale: ECS Deep Dive and EKS
… more Pods but no capacity The API's horizontal scaler requests ten replicas. Some remain Pending. Increasing the …
- AWS Databases: Choose the Right One
… A read replica can handle selected read workloads, but replication lag means a new write may not be …
- Multi-Region and Disaster Recovery
… A green "replica healthy" light is not enough. After a drill, check the whole path still works: DNS …
- Your Practical Kubernetes Workflow
… and a memory limit. - Keep at least two replicas for a customer-facing app when availability matters. Your …
- Resources, QoS and Scheduling Control
… Do not set minAvailable equal to replicas , or drains will block forever. PriorityClasses let important pods preempt less …
- StatefulSets, DaemonSets, Jobs and CronJobs
… db-headless a headless Service gives each pod its own DNS record replicas: 3 selector: matchLabels: { app: db …
- GitOps, Progressive Delivery and Observability
… v1alpha1 kind: Rollout metadata: name: shop-api spec: replicas: 6 strategy: canary: steps: - setWeight: 10 - pause: { duration: 5m …
- Transactions, Indexes & Concurrency
… deletion and corruption replicate too. Restore-tested independent backups remain necessary.
- SQL vs NoSQL Databases
… SQL databases can scale out too (read replicas, Citus, Vitess, CockroachDB), but it's more work. ACID vs …
- AWS Interview Questions: Clear Answers
… A read replica serves read workloads, with replication behavior and possible lag. Backups let you restore data from …
- What Is Apache Kafka?
… Unlike a traditional queue, Kafka keeps events in a durable, replicated log for a retention period, so many …
- Health Checks and Scaling
… The HorizontalPodAutoscaler (HPA) changes the number of Deployment replicas based on a metric, commonly CPU usage. yaml apiVersion …
- CloudWatch: Know What Your App Is Doing
… More replicas can create more competing connections. Turn findings into a runbook Signal Question Immediate evidence --- --- --- High target …
- Data in Microservices: Sagas & the Outbox Pattern
… API composition, replicated data, or CQRS read models.
- Environments, Workspaces, and Multiple Accounts
… dev may use a small database, while production enables replicas and deletion protection. Reuse the underlying module rather …
- ACID, Transactions & Locks
… is recovered from WAL/replication. Consistency is not a promise that every replica is instantly current; it means …
- Kafka for Backend Services
… 1@localhost:9093 KAFKA OFFSETS TOPIC REPLICATION FACTOR: 1 KAFKA TRANSACTION STATE LOG REPLICATION FACTOR: 1 KAFKA TRANSACTION …
- Extending Kubernetes: CRDs, Operators and Admission
… Exclude kube-system and the webhook's own namespace, keep timeouts short, and run multiple replicas. Remember this …
- Kubernetes: Start Here
… v1 kind: Deployment metadata: name: shop-api spec: replicas: 3 selector: matchLabels: app: shop-api template: metadata: labels …
- Caching & Redis
… You can use both. - Replication + Sentinel: automatic failover to a replica. - Redis Cluster: shards data across nodes using …
- Service Communication: Sync vs Async
… O1 -- "… ×50" U1 end subgraph Batched["✅ Batched or replicated"] O2[Orders page] -- "GET /users?ids=1,2,…,50 …
- Indexes, EXPLAIN & Query Plans
… ROLLBACK; , and run it on production-sized data (a staging copy or a replica). A plan on a …
- Topics, Partitions & Offsets
… kafka-topics.sh --create --topic orders --partitions 6 --replication-factor 3 --bootstrap-server localhost:9092 Naming tips: use …
- Practical Project: Deploy a Real CRM App on EKS
… Deployment metadata: name: crm-core namespace: dev spec: replicas: 1 selector: matchLabels: app: crm-core template: metadata: labels …
- L6 Production Debugging Casebook
… Watch locks, replica lag and errors. 4. Check that new writes and reads match. Then deploy code that …