Skip to main content
@kneeraazon

LAB // INTERACTIVE BACKEND TELEMETRY BENCH

LIVE API ENDPOINTS ACTIVE

Playground

Production backend patterns running live against this site's own API routes and interactive state machines — the exact primitives behind rate-limited gateways, streaming LLM interfaces, resilient circuit breakers, and indexed SQL query plans.

BENCH.01 // SLIDING-WINDOW TOKEN BUCKETGET /api/playground/rate-limit

Rate limiter, live

A sliding-window limiter guards this endpoint: 5 requests per 10 seconds per visitor. Burst past it and watch the 429s.

5 per 10s
No requests yet. Click “Burst ×8” to trip HTTP 429.
BENCH.02 // HTTP CHUNKED STREAMINGGET /api/playground/stream

Token streaming, live

One HTTP response flushed chunk by chunk — the exact transport mechanics behind low-TTFB LLM interfaces.

Output appears here, token by token.
BENCH.03 // RTT LATENCY OSCILLOSCOPEGET /api/playground/echo

Your latency to this site

Six sequential round-trips from your browser to this site's edge route. Sample #1 absorbs cold connection overhead.

Click “Run probe” to sample 6 live round-trips.
BENCH.04 // RESILIENCE STATE MACHINEFSM // CIRCUIT BREAKER

3-state circuit breaker

Prevent cascading timeouts when an upstream LLM or payment gateway degrades. Trip 3 failures to watch fast-fail isolation.

STATE: CLOSEDFAILURES: 0/3

Breaker CLOSED — upstream calls flowing normally (threshold: 3 failures).

BENCH.05 // POSTGRESQL EXECUTION PLAN COMPARATORORM // SELECTINLOAD VS LAZY N+1

Eliminating N+1 query cascades (50 orders + line items)

Compare naive lazy-loading inside a serializer loop against batched SQLAlchemy selectinload / Django prefetch_related.

DB ROUND-TRIPS2
P95 LATENCY6.4ms
POOL LOCKMINIMAL
-- Query 1: Fetch parent order slice (indexed)
SELECT id, customer_id, status, created_at FROM orders ORDER BY created_at DESC LIMIT 50;

-- Query 2: Single batched IN-clause for all 50 orders
SELECT id, order_id, sku, qty, unit_price FROM order_items
WHERE order_id IN (1001, 1002, 1003, /* ... 50 IDs */ 1050);

Want these resilience patterns engineered into your production stack?

Every milestone ships with rate-limiting, structured logging, and verified query plans.

Let's talk →