Search
Lessons (21)
- Concurrency, Resilience & Distributed Workflows
… and distributed transactions Never update a database and publish a message as two unrelated operations. The transactional outbox …
- Time, Consistency and Distributed Transactions
… database, a normal transaction does the job. 2. If not, don't use a distributed lock to pretend …
- Monolith vs Microservices
… debug ❌ Distributed system complexity Calls between parts ✅ Fast, in-memory function calls ❌ Slow, unreliable network calls Transactions ✅ One …
- Data in Microservices: Sagas & the Outbox Pattern
… We need other tools. Why not a distributed transaction (2PC)? Two-phase commit asks every participant "can you …
- SQL vs NoSQL Databases
… when the network between servers breaks (a P artition), a distributed database must choose between: - C onsistency: refuse …
- SQL Language, Identifiers & Data Types
… Many systems call COMMIT and ROLLBACK transaction-control statements. Q7: Identity, sequence and UUID An identity/auto-increment …
- Distributed Coordination: Consensus, Heartbeats and Gossip
… token. </details --- Going deeper Different problems, different tools ![Distributed coordination: leader agreement, heartbeats, gossip membership and checksums solve …
- ACID, Transactions & Locks
… without a distributed lock. Locks and good habits Locks protect conflicting work, but long transactions hold them too …
- Kafka vs RabbitMQ & the Kafka Ecosystem
… What is the difference between Kafka and RabbitMQ? "Kafka is built for distributed event streaming. It stores events …
- AWS Interview Questions: Clear Answers
… Use the distribution hostname for a learning lab, or add a controlled custom domain and suitable ACM certificate …
- DynamoDB Modeling, RDS Scaling and Data Resilience
… If you must reserve stock and create an order together, design an appropriate transaction. A stock decrement alone …
- Cross-Service Data: How to Join Without a Database JOIN
… A reporting or analytics store If the requirement is reporting rather than a transactional user request, copy events …
- Backend Design Scenarios
… but introduces cross-shard queries, rebalancing, routing and distributed-transaction problems. Choose a shard key that matches the …
- AWS: Start Here
… If you choose Singapore, keep a related application and database there unless you have a reason to distribute …
- Message Queues & RabbitMQ
… properties.messageId)) return channel.ack(msg); await db.transaction(async (tx) = { await doTheWork(tx, job); await tx.processedMessages …
- Event-Driven Architecture
… when saving + publishing Transactional outbox pattern Hard to debug "what happened?" Correlation IDs, distributed tracing, an event catalog …
- Kafka for Backend Services
… 1 KAFKA TRANSACTION STATE LOG REPLICATION FACTOR: 1 KAFKA TRANSACTION STATE LOG MIN ISR: 1 bash docker compose …
- Event-Driven Patterns, Step Functions and Reliable Lambdas
… SQS; route with EventBridge; orchestrate with Step Functions. - Use sagas with compensation instead of hoping for distributed transactions.
- CloudWatch: Know What Your App Is Doing
… Select an appropriate percentile such as p95 and inspect request distribution. A runbook an on-call person can …
- Caching, Consistent Hashing and Sharding
… Queries and transactions across shards are possible, but they're slow and complicated. Think about them before you …
- Scaling, Load Balancing & Rate Limiting
… 1. Traffic distribution: spread connections or requests across instances. 2. Health-based routing: stop sending traffic to failed …