Quick architecture question on iceoryx2 for token streaming #1614
julienzarka
started this conversation in
General
Replies: 1 comment
|
Hi @julienzarka, we are currently quite busy to get iceoryx2 v0.9.0 out. We are definitely interested in a quick call but it will most probably be early next week. |
0 replies
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.
Hi team,
I'm building an on-device LLM kiosk, and iceoryx2 is already in our stack as the zero-copy SHM transport between micro services. Before I commit to a design, I wanted to run a streaming use case past you and get your read.
Context. On a Cortex-A78 class, one service runs Gemma 3 270M locally and emits tokens at roughly 50 to 100 tokens per second, about 256 tokens per answer. Two peer subscribers consume the stream in parallel: a TTS component that turns tokens into
speech, and a UI front-end that renders the live transcript. I do not want our rule engine to see every token. It only watches lifecycle events (stream started, stream complete).
What I am leaning towards. A per-session iceoryx2 service, named something like ai.llm.stream.{session_id}, created when a rule activates and torn down when the stream completes. The intuition is that per-session services give us natural cleanup, no cross-session token leakage, and per-session ACL via a subscriber token issued at activation time.
Where I am not sure. Three alternatives I am also considering:
The questions I'd love your view on:
If the answer to question 1 is "expensive", I would probably fall back to option 1 (single global service plus payload session_id) and accept the wider fan-out. Curious whether you'd steer us the same way, or if there's a better idea I haven't thought of.
No rush, but if you have 15 minutes for a written reply or a quick call this week or next, that would save us from a wrong turn before I commit code.
Thanks,
Julien
All reactions