Singleflight + streaming — can multiple consumers attach to a single stream? #99
Unanswered
aprilkobayashi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The singleflight dedup makes sense for non-streaming requests: collapse N identical requests into 1, share the response. But for streaming, the semantics are trickier.
If two callers request the same stream simultaneously:
Does singleflight:
Option 1 requires a broadcast/fan-out mechanism. Something like:
Which approach does LLMix take? And if it's option 3, is option 1 planned?
All reactions