Skip to main content
All tags

performance

10 posts

Adding View Transitions to a Static Astro SiteView Transitions turned our multi-page site into a single-page-app feel without any framework. Here's the minimal setup.
astrojavascript
1m
Calling Rust from Python: A Practical FFI WalkthroughWe replaced a 200-line Python hot loop with 50 lines of Rust and got a 40x speedup. Here's the exact FFI setup.
pythonrust
1m
Rate Limiting at the Reverse Proxy: Our Nginx ConfigApplication-level rate limiting burned CPU cycles. Moving it to Nginx cut response times and simplified our code.
nginxperformance
1m
Debugging a CPU Spike on Linux: A Practical WalkthroughA service's CPU spiked to 100% every hour. strace showed the culprit in 30 seconds. Here's the full investigation from top to flamegraph.
linuxperformance
1m
Why Our HPA Was Scaling Too Slowly (and How We Fixed It)The Horizontal Pod Autoscaler was reacting 4 minutes late. The fix was one YAML field we'd ignored.
kubernetesperformance
1m
Four Redis Caching Strategies and When to Avoid ThemCache-aside, read-through, write-through, and write-behind — each solves a different problem. Here's where each one broke for us.
redisperformance
1m
Designing API Rate Limits: Token Bucket vs Sliding WindowToken bucket is simple. Sliding window is fair. Here's the trade-off we made and why we ended up keeping both.
system-designperformance
1m
Tuning PgBouncer for a Read-Heavy APIWe cut p99 query latency by 40% just by changing three PgBouncer settings. Here's the before and after.
postgresqlperformance
1m
A Circuit Breaker Implementation in Go That Saved Our UptimeWhen a downstream dependency started failing, the circuit breaker pattern prevented cascading failures across three services.
gosystem-design
1m
One Index That Fixed a 5-Second QueryA dashboard query was timing out. EXPLAIN ANALYZE showed a sequential scan on a 2M-row table. One index brought it to 8ms.
sqlpostgresql
1m