#backend
Every summary, chronological. Filter by category, tag, or source from the rail.
Token Bucket Fails at Window Boundaries—Use Sliding Window
Token bucket rate limiting lets clients burst 40 requests across a minute boundary despite 100/min limit; sliding window counters prevent this by tracking requests in the last N seconds from now, enforcing even distribution.
Skip Heavy Clean Architecture in Python Unless Scale Demands It
Over-applying clean architecture in Python FastAPI apps requires 7 changes for one field addition, killing velocity; Django's simple models need just 2 lines, proving less structure ships faster.
Fire-and-Forget Background Tasks: Python's 500ms Rule
Keep request-response under 500ms by decoupling acknowledgment (HTTP 202) from execution. Use reference registries for asyncio, FastAPI BackgroundTasks for light work, multiprocessing for CPU tasks, or Celery for persistent, scalable jobs.
Ditch preferred_username for Azure AD Guest Auth
Using preferred_username as identity anchor worked for employees but failed silently for all B2B guests, causing 403 errors post-launch. Anchor on oid instead for reliable identification.
GPT-5.4 Best for Coding; Kimi K2.6 Tops Value vs Opus 4.7
GPT-5.4 leads in backend, debugging, planning, and reliability across tasks. Kimi K2.6 Code excels in frontend UI and offers superior speed/cost value. Opus 4.7 underperforms on messy backend work unless paired with Verdent's workflows.
AICodeKingGraphQL Fits AI Agents' Token Limits Perfectly
GraphQL's introspection, exact field selection, and types prevent token waste in AI agents, unlike REST which forces over-fetching and lacks runtime self-description.
Scale Stateless Backends by Broadcasting Client Updates
Horizontal scaling routes callbacks to replicas without client SSE/WebSocket connections, silently dropping updates—broadcast via Redis Pub/Sub so the owning replica delivers reliably.
Pure TypeScript Domains: Swap CRUD for Event Sourcing, Zero Rewrites
Use noDDDe's Decider pattern to build pure function-based aggregates decoupled from persistence—test without mocks and switch from SQL state storage to event sourcing by changing one config line.
Primeagen's Live SQL Bootcamp on boot.dev
Casey Muratori live-streams boot.dev's SQL course, building a PayPal clone hands-on from SELECT basics, while roasting GitHub outages and AI code horrors.
The PrimeTimeJS Client for WooCommerce REST API CRUD Ops
Use @woocommerce/woocommerce-rest-api to GET, POST, PUT, DELETE WooCommerce data like products/orders via Axios promises; requires store URL, consumer key/secret.
Showing 15 of 15