惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
V2EX - 技术
D
DataBreaches.Net
阮一峰的网络日志
阮一峰的网络日志
Recent Announcements
Recent Announcements
V
V2EX
Hugging Face - Blog
Hugging Face - Blog
T
The Exploit Database - CXSecurity.com
Simon Willison's Weblog
Simon Willison's Weblog
Cisco Talos Blog
Cisco Talos Blog
Microsoft Security Blog
Microsoft Security Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
K
Kaspersky official blog
F
Fortinet All Blogs
GbyAI
GbyAI
Forbes - Security
Forbes - Security
The Cloudflare Blog
博客园 - 司徒正美
博客园_首页
量子位
Schneier on Security
Schneier on Security
G
GRAHAM CLULEY
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
P
Proofpoint News Feed
N
News | PayPal Newsroom
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 聂微东
T
Tor Project blog
V
Vulnerabilities – Threatpost
Y
Y Combinator Blog
Jina AI
Jina AI
Help Net Security
Help Net Security
T
Threat Research - Cisco Blogs
Recent Commits to openclaw:main
Recent Commits to openclaw:main
C
Cybersecurity and Infrastructure Security Agency CISA
Project Zero
Project Zero
N
News and Events Feed by Topic
I
Intezer
B
Blog
美团技术团队
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
L
LINUX DO - 最新话题
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Blog — PlanetScale
Blog — PlanetScale
AWS News Blog
AWS News Blog
T
Tailwind CSS Blog
The Last Watchdog
The Last Watchdog
雷峰网
雷峰网
有赞技术团队
有赞技术团队

The Practical Developer

The Libuv Thread Pool Trap: Why Node.js Async APIs Stall Under Load Postgres Covering Indexes with INCLUDE: Eliminate Heap Fetches on Read-Heavy Workloads Postgres DISTINCT ON: The Fastest Way to Get the Latest Row Per Group Postgres Transaction Isolation: The Anomalies Your App Actually Faces in Production Linux TCP Tuning for Node.js Microservices: The Kernel Settings That Stop Silent Connection Drops Under Load Postgres HOT Updates and Fillfactor: Why Not All Writes Are Created Equal Database Connection Pool Leaks: Finding the Promise That Never Returns Its Seat Linux OOM Killer in Production: Why Your Node.js Containers Die Without a Stack Trace Postgres Materialized Views: Refresh Strategies That Do Not Lock Your Dashboards API Dependency Health Checks: Why /health Is Not Enough Authorization with Zanzibar Tuples: How Google Manages Permissions and How To Build the Same Check in Node.js Postgres Advisory Locks: The 20-Character Primitive That Replaces Redis for Coordination Dead Letter Queues: The Message Queue Pattern That Saves You at 2 a.m. File Descriptor Exhaustion: The Kernel Limit That Silently Drops Node.js Connections Graceful Degradation: The Pattern That Turns Total Outages into Partial Success PostgreSQL Full-Text Search: Dropping Elasticsearch for 90% of Use Cases S3 Presigned Multipart Uploads: Stop Your API Server from Being a File Upload Bottleneck MessagePack vs JSON: The Binary Serialization Switch That Cut Our Internal RPC Overhead by 40% DNS Caching in Node.js: The Silent Cause of Production Latency Spikes Reliable Cron Jobs: The Pattern That Stops Double Runs, Missed Executions, And The 2 AM Page GraphQL Query Complexity: Stop the OOM Query Before It Reaches Your Resolver Node.js Event Loop Lag: The Hidden Metric Behind Random Latency Spikes API Request Validation with Zod: The Schema That Catches Bad Input Before It Corrupts Your Database Load Shedding in Node.js: How to Reject Traffic Before You Drown Request Hedging: Cut Tail Latency In Half Without Overprovisioning Git Bisect: The Automated Binary Search That Finds Breaking Commits in Minutes Node.js Garbage Collection Tuning: Stop Letting V8 Pause Your Event Loop Node.js Server Timeouts: The Settings That Stop Slow Clients from Holding Sockets Hostage Postgres BRIN Indexes: The Time-Series Secret That Shrinks Indexes by 99% Event Sourcing with PostgreSQL: The Pragmatic 80% Solution Node.js Cluster Mode: Scaling the Event Loop Across CPU Cores Postgres Partial Indexes: Stopping Soft Deletes from Ruining Your Query Performance Request Coalescing with the Singleflight Pattern: Stop Drowning Your Database on Every Cache Miss The Bulkhead Pattern: Why One Slow Endpoint Should Not Drown Your Whole Service Node.js AsyncLocalStorage: End-to-End Request Context Without the Propagation Hell Postgres Deadlocks: Logging the Victim, Reproducing the Race, and Fixing the Lock Order Your Node.js HTTP Client Is the Bottleneck: Connection Pool Tuning That Works Optimistic Locking in Postgres: Stop Losing Data to Race Conditions Postgres Read Replicas: Stop Serving Stale Data to Your Users Cursor Pagination: Why Offset Queries Explode at Scale and How to Fix Them Node.js Worker Threads: 60 Lines That Stop a CSV Upload from Timing Out Every Other Request Reliable Webhook Delivery: Architecture for Outbound HTTP You Can Trust Request Timeouts and Deadline Propagation: Stop the Chain of Slowness Advanced Security Practices in Node.js Graceful Shutdown in Node.js: The 40 Lines That Stop 502s During Deploys Finding Node.js Memory Leaks with Heap Snapshots Idempotency Keys in 30 Lines: Stop Your Webhook From Charging Customers Twice Backpressure In Node.js: The Fix For Slow-Motion Queue Meltdowns Retries Done Right: Jitter, Budgets, and the Stampede You Did Not See Coming The Cache Stampede: Why Your "Just Add Redis" Layer Crashes Postgres at 3 a.m. Postgres SKIP LOCKED: An 80-Line Job Queue You Can Run Without Redis Stop Doing Work Nobody Wants: AbortController in Node.js, Done Right The N+1 Query Problem: We Found 23 In One Codebase And Killed Every One I Tried 5 AI Coding Tools for a Month. Here Is What I Actually Use CI/CD From Zero to Production in 30 Minutes With GitHub Actions Node.js vs Bun vs Deno: Which Runtime Should You Pick in 2025? Kubernetes Resource Requests And Limits: The Numbers That Decide If Your Cluster Is Stable The Three Pillars of Observability Are A Myth: What Actually Matters In Production pnpm Vs npm Vs yarn Vs Bun For Monorepos: Which One Earns The Migration In 2024 JSONB Indexing In Postgres: GIN Vs Expression Indexes, And When Each Is The Right Choice A Code Review Checklist That Ends The Same Three Arguments Every Sprint gRPC Vs REST In 2024: When The Switch Pays For Itself React Suspense For Data Fetching: The Pattern That Replaces Half Your Loading State Code The Five-Stage Rollout: How To Ship A Risky Change Without Holding Your Breath GitHub Actions In A Monorepo: Caching, Path Filters, And Secret Boundaries That Actually Work The Blameless Postmortem That Actually Improves Things: A Template And Six Hard-Won Rules Recursive CTEs In Postgres: How To Query A Tree Without N Round Trips Node.js Streams: When They Actually Help, And When They Just Add Complexity Playwright Vs Cypress In 2024: The Honest Comparison Of Which One Earns The Test Time React Server Components: The Mental Model That Makes The "use client" Boundary Obvious Pod Disruption Budgets: The K8s Object That Keeps Your Service Up During Cluster Maintenance Postgres LISTEN/NOTIFY: The Pub/Sub You Already Have And Are Not Using Chaos Engineering Starter Kit: The Five Drills That Don't Need Netflix-Scale Spec-Driven API Development With OpenAPI: How To Stop Drifting From Your Docs Kubernetes Autoscaling Beyond CPU: The Custom-Metric HPA Pattern That Actually Works Postgres Partitioning For Time-Series: The Boring Setup That Saves Your Database Distributed Locks With Redis: An Honest Look At Redlock And When You Don't Need It HTTP/2 vs HTTP/3: What Actually Changes For Your App, And What Doesn't Image Optimization For The Web In 2023: srcset, AVIF, And The Lighthouse Score You Actually Want Kafka vs RabbitMQ: A Decision Tree That Doesn't Hate You UUID vs Bigint Primary Keys In Postgres: The Index Math That Decides For You Flame Graphs: How To Find The Slow Function In 30 Seconds Without Profiling Theatre Postgres Streaming Vs. Logical Replication: Which One Solves Your Actual Problem ESLint Rules That Earn Their Keep: The Twelve I Enable On Every Project Pre-Commit Hooks That Pay For Themselves: Husky, lint-staged, And The Five Rules That Stick Zero-Downtime Database Migrations: The Six-Step Pattern That Rules Them All Circuit Breakers In Node.js: 50 Lines That Stop A Failing Dependency From Taking Down Your Service Postgres VACUUM Is Not Magic: How Your Hot Table Bloats To 80GB And How To Fix It Kubernetes Liveness And Readiness Probes: The Difference That Causes Half Your Outages Rate Limiting In Production: A Token Bucket In 30 Lines Of Redis The Outbox Pattern: How To Stop Losing Events When Postgres And Kafka Disagree Load Testing With k6: The Three Scenarios That Find Real Bugs (Not Synthetic Numbers) Postgres Row-Level Security For Multi-Tenant Apps: The Pattern That Stops You From Leaking Data Rebase vs. Merge: The Team Policy That Ends The Argument Forever OpenTelemetry in Node.js: Distributed Tracing That Actually Helps During an Incident Feature Flags That Pay Rent: The 4 Flag Types And When To Delete Each ETag, Last-Modified, and the Caching Headers Most APIs Get Wrong Connection Pooling Without the Cargo Cult: pgbouncer in 100 Lines of Config JSONB Is Not a Schema: When To Reach For It in Postgres, And When To Stop Bash Strict Mode: The Three Lines That Stop Your Deploy Script From Lying To You
NDJSON Streaming with Node.js: Send Partial Responses Before You Have the Full Payload
The Practica · 2026-06-06 · via The Practical Developer

Your API returns a list of 10,000 search results. The database returns the first matching row in 30 milliseconds. The last one arrives 1.7 seconds later. But your API endpoint waits for all of them, serializes the entire array into JSON, sets Content-Length, and then sends the response. The client sits on a loading spinner for two seconds before it can render anything.

This is the buffered response antipattern, and it is everywhere. Any endpoint that returns a collection built from database rows, paginated API calls, or computed results suffers from it. The fix is not to paginate smaller (though you should do that too). The fix is to stream the response as newline-delimited JSON (NDJSON), so the client gets usable data the moment the first row is ready.

I have seen this pattern cut median visual-render time from 1.8 seconds to 320 milliseconds on a search endpoint, with zero changes to the database query. The client starts painting results while the server is still fetching and serializing the remaining rows.

This post covers the server implementation in Node.js (plain http, Express, and Fastify), the client fetch handler that parses NDJSON, the error-recovery protocol, and the one case where you should not stream.

The problem with buffered JSON arrays

When you build a JSON array in memory and serialize it all at once, the response timeline looks like this:

Time 0ms    --- Begin request
Time 30ms   --- First DB row available (server waits)
Time 700ms  --- All rows fetched
Time 1200ms --- JSON.stringify(rows) done
Time 1200ms --- First byte sent to client
Time 1200ms --- Client starts parsing (must download entire body first)

The client cannot do anything useful until JSON.parse succeeds, which requires the entire body. For a 5 MB response over a 10 Mbps mobile connection, that is 4 seconds of blank screen.

With NDJSON streaming, the timeline changes:

Time 0ms    --- Begin request
Time 30ms   --- First DB row available
Time 31ms   --- First NDJSON line sent to client
Time 31ms   --- Client parses first row, renders it
Time 32ms   --- First row visible on screen
Time 50ms   --- Second row available, sent, parsed, rendered
...
Time 700ms  --- Last row sent
Time 701ms  --- Client renders last row

The first paint happens in ~30ms instead of 1200ms+. The user sees results almost instantly, and more results stream in as the server finishes processing them.

What NDJSON looks like

Newline-delimited JSON is exactly what it sounds like: one JSON object per line, terminated by \n.

{"id": "row-1", "title": "First result", "score": 0.95}
{"id": "row-2", "title": "Second result", "score": 0.92}
{"id": "row-3", "title": "Third result", "score": 0.87}

No enclosing array brackets. No commas between objects. Each line is independently parseable. The client reads line by line and processes each row as it arrives.

The response headers signal the content type:

Content-Type: application/x-ndjson
Transfer-Encoding: chunked

No Content-Length. HTTP/1.1 chunked transfer encoding lets the server write lines as they become available and close the connection when done.

Server implementation in plain Node.js

Here is the minimal streaming endpoint using Node’s built-in http module, with a simulated database cursor that yields rows one at a time:

import http from 'node:http';
import { Readable } from 'node:stream';

// Simulate a DB cursor that yields rows with a delay
async function* queryRows() {
  for (let i = 0; i < 10000; i++) {
    // Simulate fetching the next row (30ms each)
    await new Promise((r) => setTimeout(r, 30));
    yield { id: `row-${i}`, title: `Result ${i}`, score: Math.random() };
  }
}

const server = http.createServer(async (req, res) => {
  if (req.url === '/search' && req.method === 'GET') {
    res.writeHead(200, {
      'Content-Type': 'application/x-ndjson',
      'Transfer-Encoding': 'chunked',
      'Cache-Control': 'no-cache',
    });

    for await (const row of queryRows()) {
      const line = JSON.stringify(row) + '\n';
      if (!res.write(line)) {
        // Backpressure: client is reading slower than we produce
        await new Promise((resolve) => res.once('drain', resolve));
      }
    }

    res.end();
    return;
  }

  res.writeHead(404).end();
});

server.listen(3001);

The res.write() call sends each NDJSON line immediately. The res.once('drain') handler respects backpressure: if the client’s TCP receive buffer is full (slow consumer), we pause until it drains. Without this, an unbounded stream would heap-allocate data in the kernel buffer until the process runs out of memory.

Express with async iteration

Express does not natively support async request handlers returning streams cleanly, but you can write to the response object directly. Here is the same pattern in Express with a reusable streaming helper:

import express from 'express';

const app = express();

function ndjsonStream(res: express.Response, rows: AsyncIterable<unknown>) {
  res.writeHead(200, {
    'Content-Type': 'application/x-ndjson',
    'Transfer-Encoding': 'chunked',
    'Cache-Control': 'no-cache',
  });

  return (async () => {
    for await (const row of rows) {
      const line = JSON.stringify(row) + '\n';
      if (!res.write(line)) {
        await new Promise((resolve) => res.once('drain', resolve));
      }
    }
    res.end();
  })();
}

app.get('/search', async (req, res) => {
  try {
    const rows = queryRows(req.query.q as string);
    await ndjsonStream(res, rows);
  } catch (err) {
    // If the stream has not started, send a proper error response.
    if (!res.headersSent) {
      res.status(500).json({ error: 'Stream failed to start' });
    } else {
      // Stream already started. Write an error line so the client
      // can distinguish a partial result from a complete failure.
      res.write(JSON.stringify({ error: 'Partial failure', message: String(err) }) + '\n');
      res.end();
    }
  }
});

The error handling split matters. Before res.writeHead sends headers, you can still send a proper JSON error response. After the first res.write, the headers are already sent and you are committed to NDJSON. An error line in the stream lets the client decide what to do with the partial results instead of getting a truncated stream with no explanation.

Fastify with native stream support

Fastify handles this more cleanly because it natively supports returning streams and async generators from route handlers:

import Fastify from 'fastify';

const fastify = Fastify();

fastify.get('/search', async (req, reply) => {
  reply.raw.writeHead(200, {
    'Content-Type': 'application/x-ndjson',
    'Transfer-Encoding': 'chunked',
    'Cache-Control': 'no-cache',
  });

  for await (const row of queryRows(req.query.q as string)) {
    const line = JSON.stringify(row) + '\n';
    if (!reply.raw.write(line)) {
      await new Promise((resolve) => reply.raw.once('drain', resolve));
    }
  }

  reply.raw.end();
  return reply.hijack(); // Tell Fastify not to send its own response
});

await fastify.listen({ port: 3002 });

The reply.hijack() call is critical. Without it, Fastify will try to send its own response after your handler returns, which produces a double-response error. Hijacking tells Fastify: “I handled the entire response lifecycle manually.”

Client: parsing NDJSON from a streaming fetch

The server side is only half the equation. The client needs to read the stream line by line as it arrives. Here is the browser-side handler and the Node.js fetch handler:

// Browser or Node.js 22+ with fetch
async function* streamNdjson(url: string): AsyncIterable<unknown> {
  const response = await fetch(url);

  if (!response.ok || !response.body) {
    throw new Error(`Stream request failed: ${response.status}`);
  }

  const reader = response.body.getReader();
  const decoder = new TextDecoder();
  const buffer: string[] = [];

  function pushLine(line: string) {
    if (line.length > 0) {
      try {
        buffer.push(JSON.parse(line));
      } catch {
        // Malformed line - log and skip
        console.warn('Skipping malformed NDJSON line:', line);
      }
    }
  }

  let remainder = '';
  while (true) {
    const { done, value } = await reader.read();
    if (done) break;

    const chunk = decoder.decode(value, { stream: true });
    const lines = (remainder + chunk).split('\n');
    // The last element may be incomplete - save as remainder
    remainder = lines.pop() ?? '';

    for (const line of lines) {
      pushLine(line);
    }
    // Yield whatever we have accumulated
    if (buffer.length > 0) {
      yield buffer.splice(0, buffer.length);
    }
  }

  // Process the final remainder if the stream did not end with \n
  if (remainder.length > 0) {
    pushLine(remainder);
  }
  if (buffer.length > 0) {
    yield buffer.splice(0, buffer.length);
  }
}

// Usage in the browser
(async () => {
  const results = document.getElementById('results');
  for await (const batch of streamNdjson('/search?q=nodejs')) {
    for (const row of batch) {
      const el = document.createElement('div');
      el.textContent = `${row.title} (score: ${row.score.toFixed(2)})`;
      results!.appendChild(el);
    }
  }
})();

The client yields batches of parsed rows, not single rows, so the UI can do a single DOM batch update per read cycle. On a fast connection each reader.read() may return multiple lines. Batching avoids layout thrash.

Error recovery: the partial-result protocol

Streaming introduces a problem that buffered responses do not have: what happens when the server crashes mid-stream? The client gets an incomplete set of results and cannot easily tell the difference between “the stream ended because all results were sent” and “the stream ended because the server died.”

The fix is a termination line that signals a clean end:

// Server: send a sentinel line before res.end()
res.write(JSON.stringify({ __done: true, totalRows: i + 1 }) + '\n');
res.end();
// Client: check for sentinel
for await (const batch of streamNdjson('/search')) {
  for (const row of batch) {
    if (row.__done) {
      console.log(`Completed: ${row.totalRows} rows`);
      continue; // Do not render this sentinel row
    }
    renderRow(row);
  }
}

If the client reaches the end of the stream without seeing __done: true, it knows the stream was truncated and could retry or display a warning.

When NOT to stream NDJSON

Streaming NDJSON is not free. There are cases where a buffered JSON array is the right call.

The response is small. If you return fewer than 50 rows and the full payload fits in a single TCP packet, the overhead of chunked encoding and client-side streaming parsing is wasted complexity. Just send the array.

The client is not the browser. If your API consumer is another server that needs the entire dataset before processing (aggregations, batch exports, data pipelines), force them to request a buffered format explicitly via the Accept header or a ?format=json query parameter.

You need strong error guarantees. If a partial response is unacceptable (financial transactions, medical data), do not stream. The atomicity of a single JSON response is worth the latency. Send the full result or send nothing.

Your response is highly compressible. A single large JSON array compresses better with gzip than many small NDJSON lines because the compression dictionary can learn patterns across the entire payload. If bandwidth is the bottleneck, serve gzipped JSON arrays and paginate instead.

A production-ready NDJSON helper

Here is a self-contained helper you can drop into a project today:

import { type ServerResponse } from 'node:http';

type StreamResult = { __done: true; totalRows: number } | Record<string, unknown>;

export class NdjsonStreamer {
  private headersSent = false;
  private rowsWritten = 0;

  constructor(private readonly res: ServerResponse) {}

  start(): void {
    this.res.writeHead(200, {
      'Content-Type': 'application/x-ndjson',
      'Transfer-Encoding': 'chunked',
      'Cache-Control': 'no-cache',
    });
    this.headersSent = true;
  }

  async write(row: Record<string, unknown>): Promise<void> {
    if (!this.headersSent) this.start();
    this.rowsWritten++;
    const line = JSON.stringify(row) + '\n';
    if (!this.res.write(line)) {
      await new Promise((resolve) => this.res.once('drain', resolve));
    }
  }

  end(): void {
    if (!this.headersSent) this.start();
    const sentinel: StreamResult = { __done: true, totalRows: this.rowsWritten };
    this.res.end(JSON.stringify(sentinel) + '\n');
  }

  abort(reason: string): void {
    if (!this.headersSent) {
      this.res.writeHead(500, { 'Content-Type': 'application/json' });
      this.res.end(JSON.stringify({ error: reason }));
      return;
    }
    this.res.write(JSON.stringify({ __error: true, message: reason }) + '\n');
    this.res.end();
  }
}

Usage:

app.get('/search', async (req, res) => {
  const stream = new NdjsonStreamer(res);

  try {
    for await (const row of queryRows()) {
      await stream.write(row);
    }
    stream.end();
  } catch (err) {
    stream.abort(String(err));
  }
});

This handles header-sent detection (so you can call start() lazily), backpressure with drain, the sentinel line, and clean error recovery. It is 40 lines and solves the entire streaming contract.

The backpressure trap

The most common bug I see in NDJSON server implementations is ignoring the return value of res.write(). Node’s Writable stream has internal buffering. res.write() returns false when the internal buffer exceeds the highWaterMark (default 16 KB). If you ignore it and keep writing, data is buffered in memory until the process exhausts its heap.

The drain handler in the examples above is not optional. It is the difference between a stream that handles 10,000 rows and one that OOMs at 2,000. If you cannot await the drain (e.g., in a synchronous loop), pipe through a Transform stream with an appropriate highWaterMark instead:

import { Transform } from 'node:stream';

const serialize = new Transform({
  objectMode: true,
  highWaterMark: 100, // Max 100 rows buffered in memory
  transform(row, _enc, callback) {
    callback(null, JSON.stringify(row) + '\n');
  },
});

Readable.from(queryRows())
  .pipe(serialize)
  .pipe(res);

The Transform stream’s highWaterMark limits how many rows are held in memory when the downstream (the client) is slow. Combined with backpressure from the TCP socket, this prevents unbounded memory growth without explicit drain handling.

The takeaway

Buffered JSON arrays are the default because they are the easiest thing to write. But any endpoint that returns a collection built from slower data sources (database queries, API calls, computed results) benefits from NDJSON streaming. The pattern is small: iterate, serialize, write, await drain, repeat. Add a sentinel line for error detection. Use the NdjsonStreamer helper or pipe through a Transform with a capped highWaterMark.

The first byte of the first row arrives in the same event-loop tick as the first database result. Everything after that is incremental rendering. Your users stop staring at loading spinners and start seeing results while your server is still working.

Before your next API review, run through this checklist:

  • Does this endpoint return a collection that could be rendered incrementally?
  • Is the response larger than a single TCP packet (roughly 1,500 bytes)?
  • Would the user benefit from seeing partial results before the full response is ready?
  • Have you handled backpressure with drain or pipe() with a capped buffer?
  • Does the client know whether the stream completed successfully or was truncated?

If the answer to all five is yes, switch to NDJSON streaming. If the answer to the first three is no, keep the buffered array. You have both tools now. Use the one that fits the problem.


A note from Yojji

Streaming partial responses across an API is the kind of performance engineering that looks trivial in a demo and turns out to require careful backpressure handling, error recovery protocols, and client-side parsing logic to get right in production. Yojji’s engineering teams build this level of pragmatism into every API they design, whether it is a real-time search endpoint or a high-throughput event pipeline.

Yojji is an international custom software development company founded in 2016, with offices in Europe, the US, and the UK. Their full-cycle teams specialize in the JavaScript ecosystem, cloud-native infrastructure on AWS, Azure, and Google Cloud, and shipping production systems where the details of response encoding, backpressure, and error semantics are not afterthoughts. They are worth a conversation if your next project demands APIs that perform under real traffic.