Skilled Coder
@theskilledcoder
Followers
14K
Following
1K
Media
570
Statuses
2K
When NOT to Add a Cache If data changes every request - cache won’t help If cache hit rate < 30% - remove cache If cache invalidation logic is more complex than DB query - rethink cache
2
3
37
When NOT to Add a Cache If data changes every request - cache won’t help If cache hit rate < 30% - remove cache If cache invalidation logic is more complex than DB query - rethink cache
2
3
37
When to Use a Queue 👇 If user request waits on slow IO → add queue If traffic comes in bursts → add queue If failure of one component shouldn’t fail request → add queue When NOT to Use a Queue 👇 If task must complete within request lifecycle → don’t queue If order
4
7
78
When to Use a Queue 👇 If user request waits on slow IO → add queue If traffic comes in bursts → add queue If failure of one component shouldn’t fail request → add queue When NOT to Use a Queue 👇 If task must complete within request lifecycle → don’t queue If order
4
7
78
How to Log 1M Events/Sec Without Slowing Down Your System https://t.co/SXMr0Q55Tc
newsletter.theskilledcoder.com
Why Logging Isn’t as Simple as It Looks
4
55
470
When To Add a Cache If DB CPU > 70% and reads >> writes -> add cache If 80% of traffic hits same 20% data -> add cache If response > 300ms mostly due to DB -> add cache
1
11
148
Mock vs Stub vs Fake Mock: Simulate behavior + verify expectations “Did the system interact as I wanted?” Stub: Give predefined responses - no behavior checking, just data supply. Fake: Lightweight working implementation - behaves real but simpler.
0
4
55
Codex is the main reason I keep my ChatGPT subscription active
3
0
15