Tharusha Nuwansara

Zero-dependency Python 3.11+, SQLite WAL, and fault-tolerant AI agent reliability toolkits & 7-Day Hands-On Challenge.
1 joined
Profile picture
Tharusha NuwansaraProfile picture@widerrung53·3m

[Day 11/30] Atomic Token-Bucket API Rate Limiting in SQLite WAL Without Redis...

[Day 11/30] Atomic Token-Bucket API Rate Limiting in SQLite WAL Without Redis Lua Scripts


Enforcing exact burst-and-refill API rate limits across multi-worker Python processes using a 40-line SQLite WAL token bucket instead of Redis.


Verified inside an isolated python3 -I sandbox (106.47 ms across 2 executable blocks, 100% Python 3.11+ standard library):

Profile picture
Tharusha NuwansaraProfile picture@widerrung53·3m

[Day 1/30] Zero-Dependency Python Circuit Breakers & Self-Repairing JSON Rout...

[Day 1/30] Zero-Dependency Python Circuit Breakers & Self-Repairing JSON Routers for Unreliable LLM APIs


How to stop cascading HTTP 429/503 stalls, repair fenced JSON tool payloads, and route around upstream brownouts using pure Python 3.11+ standard library code.


Verified inside an isolated python3 -I sandbox (92.92 ms across 2 executable blocks, 100% Python 3.11+ standard library):