Technical - System Design Flashcards
1
Q
CDN / Cache Invalidation
A
2
Q
WAF
A
3
Q
Load Balancers (L7 vs L4)
A
4
Q
Session Affinity / Sticky Sessions
A
5
Q
Cache Architecture (w/examples)
A
6
Q
Queue Architecture (Kafka vs RabbitMQ)
A
7
Q
SOA vs EDA vs MSA
A
8
Q
Database commit strategies
A
9
Q
Database sharding
A
10
Q
NoSQL vs SQL
A
11
Q
Database partitioning
A
12
Q
API Gateway
A
13
Q
Kafka
A
- Producers: Write messages to 1…n topics
- Partitioning strategy specific by producer, default partitions by key (messages of same key always in order)
- Consumer: Pull messages from 1…n topics based on consumer offset
- Topic > Partitions > Segment
- Partitions stored on 1 or more broker based on replication factor (lead > follower)
14
Q
API Best Practices
A
- Idempotent
- Versioned
- Large response = paginated (offset, limit)
- /offset=20&limit=10 - Long response time = asynchronous
15
Q
Cache-Control HTTP Directives
A
Directives used in http headers to control caching behavior (ex: max-age, no-cache, public, private)