state in Hydroflow #1184
jhellerstein
started this conversation in
Ideas
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hydroflow state today
external
source_streamanddest_sink)contextobjectinternal
Suggestion: Should
contextbe referenced (or at least referenceable) as#contextlike any singleton?Question: What system state should be in
context, and what system state should come in a stream? For example, should the dynamic global state in the context (e.g.current_tick,current_tick_startandcurrent_stratum,subgraph_last_tick...) instead or additionally be available as a stream? (Not thatcurrent_subgraphis not transducer-global).Possible Rubrics:
context? local runtime state of the transducer.context_streamfor data that is of collection type per tick? That's an open design question. Not necessarily -- maybe we "flatten" such data out of the singleton context??Singleton Example: A Hybrid Logical Clock, which is a function of the local tick and an input packet.
Takes in a stream of packets, computes the HLC as the "max" HLC of all packets and local clock, and then uses
it to create HLC-stamped output packets.
Coming
Async invocation
Ryan A's futures?
mappoll_futuresoperator handles the resultsource_streamJoe/Rohit handwritten req/resp code:
Patterns
Beta Was this translation helpful? Give feedback.
All reactions