#backend
Every summary, chronological. Filter by category, tag, or source from the rail.
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.
Go 1.26's Green Tea GC Cuts Backend Latency 6% for Free
Switching to Go 1.26 enables the Green Tea garbage collector by default, dropping average latency 6% and GC pauses 35% in services handling 5k-20k req/s—no code changes needed.
Two-Layer Caching Slashes Rec Latency via Scoped TTLs
Stack per-user TTL cache (5min) over global TTL cache (5min) for shared interaction matrix and similarities to avoid O(n²) rebuilds on every request, serving most hits from memory without DB touches.
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