Performance
Backpressure, failure isolation, and batch security in production
Your Kafka consumer batches 500 messages per poll. One has a corrupt header. The deserializer throws. Without isolation, you’ve just lost — or replayed — 499 good messages with it. Batching multiplies every failure by the batch size, and the same multiplier is what an attacker reaches for. This is the lesson the throughput tutorials skip.
Lessons 01–05 covered the upside: amortize fixed cost, tune the window, hit the Pareto knee. This is the capstone, and it covers the downside — the operational edge cases that turn a throughput win into a 3 AM page. Every property that makes batching efficient (atomic consume, shared compression, one queue, one window) becomes a failure multiplier the moment something goes wrong. A senior who has run a batched pipeline in production thinks about these four things before the happy path is even merged.
Failure isolation: the poison-message problem
A batch is consumed atomically: you poll() 500 records, process them, then commit one offset. So if processing throws on item 47, what happens to items 1–46 and 48–500? The naive answers are all traps.
- Retry the whole batch. Item 47 is still poison, so it throws again. The consumer never advances its offset. You have an infinite loop, consumer lag climbs without bound, and the partition is frozen behind one bad record. This is the classic poison-message stall — the kind that pages you because dashboards show “lag: 4.2M and rising” while the consumer looks healthy.
- Skip the batch on error. You advance past all 500, losing 499 good messages to discard one bad one. For payments or orders that is data loss; for an audit log it can be a compliance incident.
- Split-and-retry (bisect). On failure, halve the batch and retry each half. The failing half fails again — bisect only that half. Recurse until the batch is a single record, dead-letter that one, and commit the rest. You pay
O(log N)extra requests to isolate one poison item out of N. For a 500-batch that is ~9 retries, not 500.
The cloud primitive for this is AWS Lambda’s BisectBatchOnFunctionError for Kinesis and DynamoDB Streams event sources: on a function error Lambda splits the batch in two and retries each half independently, narrowing to the offending record. Pair it with ReportBatchItemFailures, where the function returns the sequence number of the first failure so Lambda only retries from that point forward instead of re-running the whole window.
None of this is complete without the back stop: a dead-letter queue (DLQ) plus a re-drive job. Records that fail past maximumRetryAttempts land in the DLQ (an SQS queue or a Kafka DLQ topic) with the original payload and error context. An operator inspects them out of band, fixes the schema or the bug, and re-drives the DLQ back into the main stream. A pipeline without a DLQ does not have failure isolation — it has a place where messages silently die.
| Failure mode | Naive outcome | Senior fix |
|---|---|---|
| One item throws in a batch of N | Retry whole batch → infinite loop, lag explodes | Split-and-retry to isolate, then DLQ the one poison item |
| Producer faster than consumer | Unbounded in-mem queue → OOM kill | Bounded queue + an explicit overflow policy (block/drop/spill) |
| Compressed batch decompresses huge | Wire-size check passes, broker OOMs on expand | Enforce a post-decompression size cap, not just wire size |
| Duplicate payload replayed inside one batch | Per-batch dedup sees one key, processes all copies | Per-item idempotency key (nonce), validated per record |
| Static window wrong for current load | Over-batch at low load (latency) or under-batch at high load | Adaptive window: AIMD control loop on p99 vs SLO |
Backpressure and bounded queues
At some point in every production system, producer rate exceeds consumer rate — a downstream slowdown, a GC pause, a deploy that doubles traffic. The queue between them is where that mismatch goes. The first decision is whether the queue is bounded at all.
- Unbounded in-memory queue. Works beautifully until the producer outruns the consumer for long enough to fill the heap, then the JVM OOM-kills the process and you lose everything in flight. This is a classic anti-pattern — the queue that “never fills” until the one time it does, at 2 AM, taking the whole node with it.
- Bounded + block. When the queue is full, the producer blocks. This is the heart of Reactive Streams: the consumer signals demand with
request(n)and the producer may only emit that many — backpressure as a first-class protocol (Akka Streams, Project Reactor, RxJava all implement it). Latency degrades gracefully and throughput settles at the rate of the slowest stage. This is the right default when losing data costs more than added latency. - Bounded + drop. When full, discard the new item (or the oldest). Lossy by design, and correct when freshness beats completeness — StatsD over UDP is the canonical example: a dropped metric sample is invisible, but a producer that stalls on a full buffer breaks the very observability you needed.
- Bounded + spill-to-disk. Page overflow to a local on-disk buffer (a write-ahead log), drained behind the in-memory queue. Durable across producer spikes at the cost of disk IOPS and added end-to-end latency. Vector, Fluentd, and Filebeat all offer this for log shipping.
One nuance worth getting right: spill-to-disk is a capacity lever, not the overflow policy itself — even a disk buffer is finite, so it still needs a when_full rule. Vector’s disk buffer defaults to when_full: block, propagating backpressure all the way to the source, and only switches to drop_newest when you explicitly choose to shed load. The point is that “spill” buys you a much larger, durable buffer before block-or-drop ever triggers.
The choice between these is a product decision, not a technical one. The question is: what is the cost of one lost item versus one second of added latency? For payments, a lost item is unacceptable — block. For a metrics firehose, a one-second stall blinds your dashboards — drop. Answer it once per pipeline and encode the answer in the queue config; don’t let it be an accident of which default the library shipped.
A payment-events pipeline: the consumer slows during a downstream incident and the bounded queue is filling. Pick the overflow policy a senior defends.
Security: the batch boundary as an attacker primitive
A batch boundary is leverage, and leverage is what attackers want. Three exploit classes recur.
Decompression bombs. A small compressed payload that expands to gigabytes on the receiver. The concrete Kafka incident is CVE-2023-34455 (with the incomplete-fix follow-up CVE-2023-43642): the snappy-java decompressor read a 4-byte chunk-length field and allocated a byte array of that size without an upper-bound check. A crafted frame declaring 0x7FFFFFFF made the broker try to allocate ~2 GB and throw OutOfMemoryError — a remote DoS affecting Kafka 0.8.0 through 3.5.0, fixed in snappy-java 1.1.10.1+. The general defense: validate the post-decompression size, not just the wire size. A 1 MB compressed batch can legitimately carry far more, so a wire-level limit is no protection at all.
Replay inside a batch. If your idempotency key is per-batch instead of per-item, an attacker submits one batch containing the same payload 100 times. The dedup check at the batch boundary sees one unique key and happily processes all 100 copies. Idempotency must be per-item, with a per-item nonce checked against a dedup store as each record is applied.
Reordering under partial failure. Batched writes to a KV store may not preserve submission order once split-and-retry kicks in: the retried half lands after the half that succeeded. If ordering carries meaning — event sourcing, CRDT merge, a state machine — attach a sequence number per item and have the consumer reject out-of-order records. Never assume batch order survives a retry.
The unifying rule: every batch property — total size, item count, idempotency key, ordering — must be validated post-decompression and per-item, never at the wire boundary or per-batch. A compressed batch is an opaque envelope; what’s inside is the attack surface.
Adaptive batching: closing the loop
A static window — linger.ms=10, batch.size=16384 — is wrong at every load except the one you tuned for. At low traffic it adds latency waiting for a batch that never fills; at high traffic it caps throughput below what the system could sustain. Adaptive systems treat the window as a control variable driven by a feedback signal.
- Signal. Observed p99 latency against the SLO ceiling. When
p99 < SLO − margin, grow the window for more throughput. Whenp99 > SLO, shrink it to protect latency. - AIMD (additive increase, multiplicative decrease). The exact control loop TCP congestion control uses: nudge the window up by a small step each healthy interval, halve it on an SLO breach. It probes gently for headroom and backs off hard under stress — the same instinct that keeps the internet stable applies to your batch window.
- Production examples. Kafka’s
batch.sizeis static, butlinger.mscan be driven by a sidecar reacting to latency. Envoy’s adaptive concurrency filter runs a closely related control loop — a gradient controller (Netflix’s algorithm) that measures minRTT under light load and shrinks the in-flight concurrency limit as sampled latency rises above it. Same idea, controlling concurrency instead of window size. - Cost. You add an observability surface (per-window latency histograms) and a control loop that can itself oscillate if tuned badly. Worth it past roughly 100k QPS, where the gap between the right window at peak and at trough is large; below that, a well-chosen static window is simpler and fine.
Why this works
Why reuse TCP’s AIMD instead of a smarter controller? Because AIMD’s multiplicative decrease guarantees fast convergence away from overload, while additive increase keeps you from slamming back into it — the property that makes it stable under shared, noisy load. A PID controller can be tighter but is far easier to mistune into oscillation. For a batch window where the cost of over-shooting is an SLO breach, “back off hard, probe gently” is the conservative default.
The senior pre-ship checklist
Before a batched pipeline ships, a senior can answer all six of these. If any answer is “we didn’t decide,” that’s the gap that pages you.
- Poison-message recovery path? Split-and-retry to isolate, DLQ the bad item, re-drive job to replay fixes.
- Overflow behavior? Block, drop, or spill — chosen explicitly from the cost of a lost item vs added latency.
- Maximum post-decompression payload size? A real cap on the expanded size, not just the wire size.
- Per-item idempotency story? A per-item nonce checked against a dedup store, never a per-batch key.
- Static or adaptive window? Static is fine below ~100k QPS — just know which you chose and why.
- Observability surface? Batch-size histogram, queue-depth gauge, DLQ rate, consumer lag — the four signals that catch all of the above before they page you.
A batch of 500 Kafka records throws on record 47. How does split-and-retry isolate the poison item?
A 1 MB compressed Kafka batch passes the wire-size limit but OOMs the broker. What is the correct defense, per CVE-2023-34455?
Order the split-and-retry isolation steps for a poison record in a batch:
- 1 Processing throws somewhere in the batch; the whole batch is marked failed
- 2 Halve the batch and retry each half independently
- 3 Recurse only into the half that still fails, ignoring the half that passed
- 4 Bisect down to a single poison record
- 5 Dead-letter that one record and commit the offsets of all the good ones
- 01A consumer batches 500 Kafka messages per poll. Message 47 throws during deserialization. Walk through the split-and-retry isolation pattern and what makes it cheap.
- 02A producer is faster than the consumer and the bounded queue is full. What changes between block, drop, and spill-to-disk, and how do you choose?
- 03Why is per-batch idempotency unsafe, and how does CVE-2023-34455 generalize the lesson about batch boundaries?
Production batching fails in ways the throughput-tuning lessons don’t cover, and each one is the batch’s efficiency turned against you. One bad item kills a whole batch — fix it with split-and-retry to isolate the poison record in O(log N) requests, then dead-letter it and re-drive (AWS Lambda’s BisectBatchOnFunctionError is this primitive). One slow consumer overflows the queue — bound it and pick block, drop, or spill on purpose, because the choice is a product decision about the cost of a lost item versus latency, not a technical accident. One malicious batch amplifies an attack by orders of magnitude — defend with post-decompression size caps (CVE-2023-34455), per-item idempotency, and sequence numbers, because a compressed batch is an opaque envelope you must validate per-item. Static windows are fine below ~100k QPS; above it, run an AIMD control loop on observed p99 versus SLO, the same congestion logic TCP uses. The six-item pre-ship checklist — poison path, overflow policy, decompression cap, per-item nonce, window choice, observability — is what separates a batching tutorial from a batching pipeline.
appears again in260
- Why GraphQL gets N+1junior
- DataLoader mechanics: tick-boundary batchingmiddle
- Batch function contracts: ordering, shapes, errorsmiddle
- Federation and lookahead: batching beyond DataLoadermiddle
- Query complexity defences: depth, cost, persisted queriesmiddle
- Senior GraphQL API: scheduling contract, tenant isolation, observabilitysenior
- The journey of a request: seven stops from socket to responsejunior
- Accept and parse: from kernel queue to a typed requestmiddle
- Routing and middleware: choosing what runs, and in what ordermiddle
- Handler and response: from business logic to bytes on the wiremiddle
- Streaming and backpressure: when the client reads slower than you writesenior
- Timeouts and tail latency: budgets, deadlines, and the fan-out trapsenior
- Middleware and DI: the two patterns that shape every backendjunior
- Writing middleware: signatures, next(), and the three framework modelsmiddle
- Inversion of control: how dependencies reach a classmiddle
- DI scopes and lifecycles: singleton, request, transientmiddle
- DI as a testing seam: fakes, mocks, and the boundary that matterssenior
- DI containers in production: resolution graphs, circular deps, and when not tosenior
- Blocking vs non-blocking I/O: two ways to waitjunior
- The event loop: one thread, ordered phasesmiddle
- What blocks the loop: CPU work and sync callsmiddle
- Offloading CPU work: worker threads and the libuv poolmiddle
- Backpressure and bounded concurrencysenior
- Throughput under load: tail latency and saturationsenior
- Why pool: the cost of creating a connectionjunior
- Pool sizing: why bigger is not fastermiddle
- Acquisition and timeouts: the wait queue is the real latency dialmiddle
- Why idempotency: making retries safejunior
- Server-side state machine: four states of an idempotency keymiddle
- Retry strategies: backoff, jitter, and thundering herdmiddle
- Outbox and inbox: effectively-once across the dual-write boundarymiddle
- Concurrency and cache architecture for idempotency at scalesenior
- Observability, production failures, and global-scale designsenior
- The event loop: one thread, three queuesjunior
- Tasks, microtasks, and scheduler.yield()middle
- Timer accuracy, throttling, and idle workmiddle
- Microtask starvation, Long Tasks, and LoAFsenior
- Node.js event loop: phases, nextTick, and loop lagsenior
- React, Vue, and INP observability in productionsenior
- The render pipeline: six stages from bytes to pixelsjunior
- Stage costs and the renderer process modelmiddle
- Invalidation, dirty bits, and containmiddle
- Compositor layers: promotion, overlap, and GPU memorymiddle
- DevTools flame strip and the frame lifecyclemiddle
- Layout thrash: forced synchronous layoutsenior
- BeginMainFrame, compositor-driven animations, and GPU memorysenior
- Production observability: LoAF, INP, and the full attack surfacesenior
- What V8 is and why performance varies 100×junior
- V8''''s four-tier JIT pipeline and profile-guided tieringmiddle
- Hidden classes, transition trees, and memory layoutmiddle
- Inline caches, IC states, and deoptimizationmiddle
- Orinoco GC: parallel scavenger, concurrent marking, and write barriersmiddle
- TurboFan''''s speculative engine and the deopt-loop trapsenior
- V8 in production: isolates, pointer compression, and real failuressenior
- Service worker lifecycle and cache strategiesmiddle
- Service worker edge cases: version skew, durability, and navigation trapssenior
- What the reconciler does: render vs commitjunior
- The fiber object and the double-buffer treemiddle
- Render phase purity and commit phase sub-stepsmiddle
- Reconciliation: diffing heuristics and the key trapmiddle
- Priority lanes, time-slicing, and useTransitionmiddle
- Bailout, memoisation, and tearingsenior
- React Profiler, the Compiler, and production observabilitysenior
- Rendering strategies: SSG, SSR, ISR, streaming, and hydrationjunior
- SSG, SSR, ISR, streaming, and RSC — how each worksmiddle
- Hydration cost: selective, progressive, islands, resumabilitymiddle
- Hydration mismatch: causes, detection, and the determinism rulesenior
- RSC, per-route strategy, and production observabilitysenior
- Core Web Vitals: what LCP, INP, and CLS measurejunior
- LCP: four phases, one dominant costmiddle
- INP: input delay, processing, presentationmiddle
- CLS: why layout shifts happen and how to stop themmiddle
- Lab vs field: why the two disagree and how to use eachmiddle
- Metric tradeoffs, RUM attribution, and the CI+field loopsenior
- The full picture: URL to LCP to INP as a relay racejunior
- Eight layers traced: from the service worker to the second navigationmiddle
- Five canonical breaks: where production reliably diessenior
- The three-track method: reading traces and building a monitored systemsenior
- What is a cache stampede and why it makes things worsejunior
- Lock and single-flight: bounding concurrent rebuildsmiddle
- XFetch: coordination-free probabilistic early expirationmiddle
- Stale-while-revalidate and CDN request coalescingmiddle
- Detecting stampedes and designing TTL for productionmiddle
- Metastable failure, fencing tokens, and production postmortemssenior
- What a relation is: tables, rows, keys, and constraintsjunior
- Constraints, keys, and Postgres data typesmiddle
- Normal forms, denormalization, and why schemas stickmiddle
- JSONB, arrays, and when a side table winsmiddle
- Heap storage, TOAST, and column alignmentsenior
- Schema integrity: deferral, versioning, and production failure modessenior
- Relational vs document, wide-column, graph, and key-valuesenior
- What an index is and how it speeds up queriesjunior
- The leading-column rule and composite index designmiddle
- Partial, expression, and covering indexesmiddle
- Index types: GIN, GiST, BRIN, Hash, Bloom, and HOT updatesmiddle
- Index-only scans, the Visibility Map, and INCLUDEsenior
- Production failure modes and the index audit playbooksenior
- Index design exercise: full-text search strategysenior
- EXPLAIN and execution plans: what the planner decides and whyjunior
- Scan types: Seq, Index, Bitmap, Index-Onlymiddle
- Join algorithms and the row-estimate cascademiddle
- pg_statistic, ANALYZE, and production observabilitymiddle
- Extended statistics: fixing correlated-column estimate failuressenior
- Plan cache, cost-constant tuning, and planner internalssenior
- Production failure modes and plan stabilitysenior
- MVCC: why readers and writers never wait for each otherjunior
- Row versions and snapshots: the on-disk mechanicsmiddle
- HOT updates and isolation levels: what you gain and what you paymiddle
- Vacuum and bloat: keeping the storage tax boundedmiddle
- CLOG, XID wraparound, and MultiXact: deep visibility internalssenior
- SSI internals and production autovacuum tuningsenior
- Real-world MVCC failures, deployment patterns, and distributed snapshotssenior
- Connection pools: amortising the cost of a Postgres backendjunior
- PgBouncer session, transaction, and statement modesmiddle
- Pool sizing: the (cores × 2) + spindles formula and the two-layer stackmiddle
- Pool exhaustion and idle-in-transaction: the 3 AM failure modemiddle
- Migrating to transaction mode: rollout playbook and PgBouncer 1.21 prepared statementsmiddle
- The Postgres process model and why raising max_connections degrades throughputsenior
- Pooler landscape 2026, serverless connection storms, and the full failure-mode taxonomysenior
- What a schema migration is and why it replaces ad-hoc DDLjunior
- ADD COLUMN: instant in PG 11+ vs rewrite in older Postgresjunior
- The lock-queue failure mode: why instant DDL can freeze the databasemiddle
- Safe DDL patterns: NOT VALID, CONCURRENTLY, and unsafe-op fixesmiddle
- Expand-contract: zero-downtime for breaking schema changesmiddle
- Advisory locks, migration tools, and deploy coordinationsenior
- Migration failure taxonomy and production disciplinesenior
- Why sharding exists: the single-Postgres ceilingjunior
- Shard-key selection: hash, range, list, and directory strategiesmiddle
- Partitioning vs sharding: same word, two different thingsmiddle
- Co-location and Citus: the invariant that makes sharding usablemiddle
- The hot-shard failure mode: detection, isolation, and durable policymiddle
- Schema-based sharding and multi-tenancy alternativessenior
- Online resharding, 2PC, and the operational cost of shardingsenior
- The seven acts: from CREATE TABLE to Citusjunior
- Acts 1–3 in depth: schema, indexes, and planner statisticsmiddle
- Acts 4–6 in depth: MVCC bloat, connection pooling, and safe migrationsmiddle
- Act 7 in depth: sharding, co-location, and the seven-tier tradeoff cascademiddle
- Observability, anti-patterns, and production triagesenior
- Raft roles, terms, and why majority quorums prevent split brainjunior
- How Raft replicates a log entry and decides it is safe to commitmiddle
- Raft leader election: timeouts, voting rules, and the four safety propertiesmiddle
- Raft in the real world: partitions, slow disks, and client routingmiddle
- Raft extensions: pre-vote, learners, snapshots, and linearizable readssenior
- Raft in production: membership changes, Multi-Raft, and observabilitysenior
- Where data fetching happens — and why it decides LCPjunior
- Fetch waterfalls — diagnosis and the Promise.all curemiddle
- React Server Components and Suspense streamingmiddle
- Client-side cache: TanStack Query, SWR, and stale-while-revalidatemiddle
- LCP, prefetch, and race conditions in interactive fetchingmiddle
- Senior internals: RSC payload, caching layers, and production failure modessenior
- Bits on the wirejunior
- Latency mathmiddle
- Bufferbloat and congestionsenior
- The physical frontiersenior
- The three-way handshakejunior
- Sequence numbers and connection statemiddle
- Flow control and congestion controlmiddle
- BBR, production observability, and beyond TCPsenior
- DNS: what it does and why it existsjunior
- The resolver walk: referrals, record types, and gluemiddle
- TTL, caching, and DNS propagationmiddle
- The 1-RTT handshake: key shares and ECDHEmiddle
- Session resumption and 0-RTTmiddle
- CDN: putting content next doorjunior
- Anycast and GeoDNS: routing to the nearest edgemiddle
- Tiered cache and Cache-Controlmiddle
- Vary header and cache keysmiddle
- Stale-while-revalidate and cache stampedesenior
- Edge workers and edge-side compositionsenior
- CDN operations and observabilitysenior
- WebSocket: the HTTP upgrade handshakejunior
- WebSocket frame format: opcodes, masking, fragmentationmiddle
- WebSocket vs SSE vs long-polling: choosing the right transportmiddle
- WebSocket backpressure: when clients can''''t keep upmiddle
- Reconnection: jittered backoff, thundering herd, message resumptionsenior
- WebSocket at scale: HTTP/2 multiplexing, permessage-deflate, C10Msenior
- WebSocket in production: proxies, security, and distributed architecturesenior
- What reverse proxies dojunior
- Balancing algorithms: round-robin to power-of-two-choicesmiddle
- L4 vs L7 load balancing and client-IP preservationmiddle
- Health checks, connection draining, and slow startmiddle
- Session affinity, consistent hashing, and the right fixmiddle
- Retry storms, circuit breakers, and load sheddingsenior
- Resilient LB architecture: anycast, zone-aware routing, and observabilitysenior
- Why QUIC and not TCP+TLSjunior
- QUIC streams and head-of-line blockingjunior
- Integrated handshake and 1-RTTmiddle
- Connection IDs and network migrationmiddle
- Loss detection and congestion controlmiddle
- 0-RTT resumption and packet encryptionsenior
- Deployment tradeoffs and CPU costsenior
- DDoS: what it is and why it worksjunior
- Amplification attacks and state exhaustionmiddle
- Rate limiting: algorithms and architecturemiddle
- WAFs, firewalls, mTLS, and HSTSmiddle
- DNS cache poisoning and BGP hijackingsenior
- Defense-in-depth architecture and attack economicssenior
- The twelve layers: one URL, seven actorsjunior
- DNS, TCP, TLS in sequence: where the milliseconds gomiddle
- Critical render path and Core Web Vitalsmiddle
- Proxy intercepts and security gates: rate limiters, WAF, mTLSmiddle
- Alternate paths: QUIC 0-RTT, WebSocket upgrade, connection migrationmiddle
- Observability: distributed traces, USE/RED, and samplingsenior
- Resilience: cascading retries, circuit breakers, and error budgetssenior
- What the three signals are: logs, metrics, and tracesjunior
- Metrics and cardinality: the cost model of a time-series databasemiddle
- Logs and volume: the cost model of structured loggingmiddle
- Traces and sampling: the cost model of distributed tracingmiddle
- Join keys and exemplars: making the three signals composemiddle
- Observability 2.0: wide events and the cost shiftsenior
- Failure modes and engineering practice: cardinality budgets, PII, and samplingsenior
- Why structured logs exist: the diary vs the spreadsheetjunior
- The production log schema: fields every line must carrymiddle
- Log levels and alert routingmiddle
- Sampling strategies and log costmiddle
- PII redaction and log injectionsenior
- Trace context propagation in logssenior
- OTel Logs Data Model and audit logs as a subsystemsenior
- OTel signals, Semantic Conventions, and the OTLP wire formatmiddle
- Auto-instrumentation and manual spans: the 80/20 of OTelmiddle
- The OTel Collector: receivers, processors, exporters, and deployment patternsmiddle
- Sampling strategies: head, tail, and parent-basedmiddle
- Vendor neutrality, eBPF instrumentation, the Operator, and browser/serverless OTelsenior
- Operating the OTel Collector: reliability, version skew, failure modes, and governancesenior
- RED and USE: two checklists, one triage disciplinejunior
- Instrumenting RED in Prometheus: counters, histograms, and cardinality disciplinemiddle
- USE on Linux: CPU, memory, disk, network, and PSImiddle
- Golden signals, dashboard layout, and service mesh auto-REDmiddle
- Cardinality as a cost driver: labels, PII, exemplars, and samplingmiddle
- Native histograms, SLO tie-in, and production failure patternsmiddle
- SLI, SLO, and the error budget: reliability by the numbersjunior
- Choosing SLIs and SLO targets: ratios, not feelingsmiddle
- Multi-window multi-burn-rate alerting: why AND beats ORmiddle
- Error budget policy, latency SLOs, and composite journeysmiddle
- Iceberg SLIs, composite SLO math, and SLA vs SLOsenior
- Production SLO failures, self-observability, security, and the big picturesenior
- Flame graphs: reading the picture that shows where time goesjunior
- Sampling vs instrumentation profiling: why 99 Hz wins in productionmiddle
- Profile types: CPU, memory, off-CPU, mutex — which one to reach formiddle
- Continuous profiling: always-on flame graphs with eBPF and trace-id correlationmiddle
- How flame graphs are built from samples, and the production workflows that use themmiddle
- Linux perf, eBPF internals, PGO, and the limits of samplingsenior
- Profiling in production: security, war stories, OTel profiles, and the infrastructure designsenior
- The debugging funnel: SLO → RED → trace → profilejunior
- OTel architecture: one SDK, four signals, one wire formatmiddle
- Cost discipline: keeping observability under 5% of infra spendmiddle
- The incident loop: from pager to postmortem to preventionmiddle
- Scale, security, and the ROI of observable systemssenior
- At-most-once, at-least-once, exactly-once: the three delivery contractsjunior
- The three failure legs — where duplicates and losses actually happenmiddle
- Consumer-side dedup: the cheapest path to exactly-once processingmiddle
- Kafka exactly-once semantics: idempotent producer and transactionsmiddle
- SQS visibility timeout, DLQ, and the outbox patternmiddle
- Exactly-once in production: impossibility proof, hybrid patterns, and real incidentssenior
- What OAuth is and why passwords are not the answerjunior
- Authorization code flow with PKCEmiddle
- ID token validation and JWKS cache managementmiddle
- Refresh token rotation and scope-based least privilegemiddle
- Sender-constrained tokens: DPoP and mTLSsenior
- OAuth in production: audience attacks, observability, and real failuressenior