You store user profile pictures directly in your database as BLOBs. Works fine for 1k users. At 500k users your DB backup takes 6 hours.
what went wrong and what's the fix?
1
Your search works perfectly at 100k records. At 10 million it returns in 8 seconds. Users are leaving.
LIKE '%query%' felt fine in dev.
what now?
1
User clicks "Pay". Your system charges the card. Then crashes before saving the order.
customer is charged. order doesn't exist.
how do you prevent this?
1
Your Kafka consumer is falling behind. Lag keeps growing. Messages are processing fine — just too slow.
what do you do?
1
You deployed at 2pm. By 2:15 your error rate is 3x. You don't know which service caused it.
what's your move?
1
Service A calls Service B. Service B calls Service C. Service C is slow.
now your entire system is down.
how do you design against this?
1
Your PostgreSQL query runs fine with 10k rows. At 10 million rows it times out.
You didn't change a single line of code.
what's happening and how do you fix it?
1
