Performance
io_uring and observability of batching
The flamegraph from the ingest service made no sense. CPU was pinned at 90%, but no business function showed up hot. The widest band, eating a third of every core, was entry_SYSCALL_64 — the cost of entering and leaving the kernel, repeated millions of times a second. The service wrote each log line with its own write(). It wasn’t slow because of what it did. It was slow because of how often it crossed the boundary.
The syscall is a wall, and you keep paying to cross it
Traditional POSIX I/O is one syscall per operation: read(), write(), recv(), send(). Each one is a controlled trap into ring 0 — the CPU saves user registers, switches the page-table and stack to kernel context, runs the handler, then unwinds the whole thing on the way out. That round trip costs roughly 1-5µs, and that’s before the syscall does any actual work. It’s pure overhead, paid per call.
The arithmetic is brutal at scale. A service handling 100k I/O ops/s spends 100,000 × 1-5µs = 100-500ms of every wall-clock second just transitioning — a tenth to half a core gone before a single byte moves. Push to 1M ops/s and traditional read/write can burn a full millisecond per second on transitions alone, plus the cache pollution from blowing away the L1/L2 working set on every crossing. This is exactly the flamegraph in the hook: the work was cheap, the boundary was not.
The classic fix is to cross less often. Buffer many small writes and flush them as one big writev(); one syscall now carries a thousand records. That’s the whole game of batching at the syscall layer: amortize a fixed per-crossing cost over a variable payload. The next step removes most of the crossings entirely.
io_uring: stop crossing the boundary at all
io_uring (Linux 5.1+) replaces “one syscall per op” with two ring buffers mmap’d into memory shared between user space and the kernel:
- Submission Queue (SQ) — userspace writes operation descriptors (SQEs: read this fd, write this buffer) into a slot, then advances a tail pointer.
- Completion Queue (CQ) — the kernel writes results (CQEs) back into a slot and advances its tail.
In the basic mode you still call io_uring_enter() to tell the kernel “I queued N ops” — but that’s one syscall for the whole batch instead of N. The dramatic mode is IORING_SETUP_SQPOLL: the kernel spawns a thread that continuously polls the SQ tail. Userspace submits work by writing memory and bumping a pointer, and the kernel thread picks it up on its own — zero syscalls per op. (One catch worth knowing: if the SQPOLL thread idles past sq_thread_idle, it sleeps and sets IORING_SQ_NEED_WAKEUP; you then owe one io_uring_enter() to wake it. So zero-syscall holds under sustained load, not on a trickle.)
| Approach | Syscalls per 1M ops | Transition cost / s | Catch |
|---|---|---|---|
One write() per op | 1,000,000 | ~1-5 ms (0.1-0.5 core) | Cache thrash on every crossing |
Buffer + writev() | ~1,000 (batch=1k) | ~1-5 µs | Adds wait latency before flush |
| io_uring (one enter/batch) | ~1,000 | ~1-5 µs | More complex API; CQE reaping |
| io_uring + SQPOLL | ~0 (under load) | ~0 | Burns a poller core; needs privilege |
Beyond removing crossings, io_uring unlocks patterns plain syscalls can’t express:
- Linked operations (
IOSQE_IO_LINK) — chain SQEs so the next one runs only after the previous completes, e.g.accept→read→writesubmitted as one dependent unit. - Provided/registered buffers — pre-register a buffer pool once; the kernel selects a free buffer per op instead of you registering one each time.
- Fixed files — pre-register fds so the kernel skips the per-syscall descriptor-table lookup.
Adoption is now mainstream, not experimental. PostgreSQL 18 (released Sep 2025) shipped async I/O with three io_method modes — sync, worker (the default), and io_uring — where the io_uring backend cuts syscall overhead on cold-cache sequential and bitmap scans (benchmarks report 2-3x throughput gains in cloud-storage scenarios). Note the default is worker, not io_uring, precisely because of the dependency and security concerns below. On the networking side, io_uring shaves single-digit-to-low-double-digit CPU off TLS-proxy and high-fanout socket workloads (the socket layer is where epoll-based proxies spend 70-80% of cycles outside userspace), which is why low-overhead-proxy teams reach for it.
Why this works
Why isn’t io_uring the default everywhere if it’s faster? Security. It has been one of the most exploited kernel subsystems — CVE-2023-2598 (out-of-bounds access) and CVE-2024-0582 (use-after-free in buffer-ring registration) are both local privilege-escalation bugs with public exploits. Google reported that ~60% of kernel exploits submitted to its 2022 bug bounty targeted io_uring, and disabled it by default in several environments. The containerd default seccomp profile and GKE block the io_uring syscalls outright. So in a hardened container, your beautiful zero-syscall design may simply return EPERM. Always have a fallback path to epoll/threads.
You rarely call io_uring directly — your runtime batches for you
Most services never touch the raw rings; they lean on a runtime primitive that buffers in userspace and flushes as one crossing. The shapes rhyme across languages:
- Node.js —
stream.cork()buffers writes in memory;uncork()(deferred viaprocess.nextTick) flushes them as a single_writev()— but only if the stream implements_writev; corking a stream without it can hurt. Pair with backpressure via thewrite()return value. - Go —
bufio.Writercoalesces small writes; combine with atime.Tickerto flush on a max-wait, giving the classic size-or-time window. - Java —
BufferedOutputStreamaccumulates until its buffer fills or youflush(). - Python —
asyncio.Queuefeeding a consumer that drains in chunks (getuntil empty or count cap). - Rust —
tokio::sync::mpscchannels with a batching loop (recv_many/ drain-and-flush on a tick).
Every one of these is the same contract: a bounded buffer with a max-size trigger, a max-wait trigger, and an explicit flush. And every one of them is a place data can silently pile up or get dropped — which is why you instrument it.
The four metrics that tell you the batcher is healthy
A batcher is a tiny queue with a flush policy, and like any queue it can fill, stall, or overflow without throwing an error. Production-grade observability tracks four per-batch metrics; together they let you tune the window and catch backpressure before it becomes data loss.
| Metric | Type | What it reveals | Acts on |
|---|---|---|---|
| Batch-size histogram | Histogram (p50/p99, records & bytes) | Filling to max (good) vs flushing on timer (window too small / traffic light) | Tune max-size / max-wait |
| Batch wait time | Histogram (latency) | How long an item sat before shipping — your latency tax | Check against SLO; shrink window |
| Buffer-depth gauge | Gauge (current items / % cap) | Sustained spikes = downstream can’t keep up (backpressure building) | Alert at > 80% cap; scale/slow producer |
| Drop count | Counter | Items discarded on overflow — should be 0; nonzero = you are losing data | Page on drops > 0 |
The failure mode that hides without these is the quiet drop. Facebook’s Scribe log-delivery system is the canonical war story: a buffered, batching pipeline that — under downstream pressure — must choose between blocking the producer (back up the whole app) or dropping messages. If you only watch throughput, a bursty downstream looks fine right up until the buffer overflows and your tail latency p99 metrics start vanishing from the dashboard because the events that carried them got dropped. The dashboard says “healthy” because the survivors look healthy. The senior reflex: buffer depth and drop count are leading indicators; throughput is a lagging one. Alert on drops > 0 and depth > 80% of cap, and the overflow becomes a page you answer, not an incident you reconstruct.
Why this works
“Drop count should be zero” sounds obvious, but the deeper point is what a nonzero drop means. It is never a tuning nuance — it is the buffer’s last-resort signal that the producer is outrunning the consumer and the bounded queue chose to shed load rather than grow without limit (which would be OOM). A single drop is a backpressure event. Treat one as you would a dropped database write.
A batching writer's batch-size histogram shows almost every flush is far below the configured max size, and batch wait time sits at exactly the max-wait value. What does this tell you?
The senior tradeoff: how aggressively to batch
Bigger batches and longer windows save more syscalls and CPU, but every item now waits longer before it ships — directly inflating tail latency. The whole skill is choosing the window against your SLO, and proving the choice with the metrics above rather than guessing.
A telemetry ingest path does ~200k small writes/s and is CPU-bound on syscall transitions. p99 end-to-end latency SLO is 200ms. Pick the approach a senior defends.
Order the diagnosis steps when a batching ingest path starts losing data under load:
- 1 Check drop count — nonzero means the bounded buffer is shedding load
- 2 Look at the buffer-depth gauge — pinned near cap confirms the buffer is overrun
- 3 Inspect batch wait time / size — is the flush policy keeping up or stalling?
- 4 Find the bottleneck downstream (the consumer that can't drain fast enough)
- 5 Apply backpressure or scale the consumer; only then retune the window
- 01How does io_uring eliminate per-call syscall overhead, and what's the catch with SQPOLL mode?
- 02What are the four batching observability metrics, and which two are leading indicators of trouble?
A syscall costs ~1-5µs in pure transition overhead, so at 100k-1M ops/s a service can burn a tenth to a full core just crossing the kernel boundary. The first fix is to cross less: buffer many small writes and flush as one writev(). io_uring goes further with two mmap’d rings (submission + completion) — one io_uring_enter() submits a whole batch, and SQPOLL mode lets a kernel thread poll the queue for near-zero syscalls under load, at the cost of a poller core, privilege, and seccomp blocking in hardened containers. PostgreSQL 18’s io_uring backend and low-overhead TLS proxies are real adopters, but io_uring’s CVE history (and Google’s 60%-of-exploits finding) is why worker mode is Postgres’s default. In practice you batch through a runtime primitive — Node cork()/uncork(), Go bufio.Writer + ticker, Java BufferedOutputStream, Python asyncio.Queue, Rust tokio mpsc — each a bounded buffer with max-size, max-wait, and flush. Instrument all four metrics: batch size (filling vs timer), wait time (latency tax), buffer depth and drop count (the leading backpressure signals). Throughput lags; depth and drops lead. Page on drops > 0 and depth > 80% of cap, and a silent overflow becomes an alert instead of an archaeological dig.
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