Trade-offs Cheat Sheet
Core Trade-off Categories
Consistency vs Availability
Strong Consistency (CP in CAP)
Eventual Consistency (AP in CAP)
Latency vs Throughput
Metric
Definition
Optimization
Optimize for Latency
Optimize for Throughput
SQL vs NoSQL
Decision Matrix
Factor
SQL
NoSQL
SQL: Use When
NoSQL: Use When
Polyglot Persistence (Use Both!)
Synchronous vs Asynchronous
Synchronous
Asynchronous
Hybrid Approach
Push vs Pull
Push Model
Pull Model
Hybrid: Long Polling
Horizontal vs Vertical Scaling
Vertical Scaling (Scale Up)
Horizontal Scaling (Scale Out)
Real-World Strategy
Normalization vs Denormalization
Normalization (SQL Philosophy)
Denormalization (NoSQL Philosophy)
Caching Strategies
Cache-Aside (Lazy Loading)
Write-Through Cache
Write-Behind (Write-Back)
Message Queues
When to Use Message Queues
SQS vs Kafka vs RabbitMQ
Feature
SQS
Kafka
RabbitMQ
API Design
REST vs GraphQL vs gRPC
Factor
REST
GraphQL
gRPC
Summary: Key Interview Questions
Last updated