Module 09 Summary
What this module established
stream yields the same content invoke returns - accumulate the chunks rather than calling twice. Time to first chunk is what a user feels; a change that halves total time while doubling it feels slower and reports as an improvement.
Carry forward
- Callbacks observe. Anything that changes the result belongs in the chain where a reader will see it.
- A broken stream leaves a half-sentence: mark it incomplete, do not persist it, retry the whole request.
- Redact on the way in. A log capturing raw content with a plan to clean it later is personal data with a plan attached.
Before moving on
Move on when both latency numbers are reported at p50 and p95, and your logs redact before writing with the limits written down.
