Node.js · Streams · Senior · Architecture
Architecture: design a high-throughput log shipping agent in Node.
Short Interview Answer
Readable from sources → transform (parse/enrich) → writable to sinks with pipeline, bounded queues, and retry/backoff.
Detailed Explanation
Use objectMode carefully. Separate CPU-heavy parse to workers. Expose metrics for lag, drop rates, and backpressure events. Prefer proven agents if ops maturity is low.