Bun.serve response streaming and idempotency during client retries
When implementing high-throughput APIs using Bun.serve , the use of ReadableStream allows for efficient data transmission by avoiding full payload buffering. However, in scenarios where a client initiates a retry due to a perceived timeout or network flicker while a stream is already active, the server may continue processing the original request while simul