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_stream
anddest_sink
)context
objectinternal
Suggestion: Should
context
be referenced (or at least referenceable) as#context
like 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_start
andcurrent_stratum
,subgraph_last_tick
...) instead or additionally be available as a stream? (Not thatcurrent_subgraph
is not transducer-global).Possible Rubrics:
context
? local runtime state of the transducer.context_stream
for 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?
map
poll_futures
operator handles the resultsource_stream
Joe/Rohit handwritten req/resp code:
Patterns
Beta Was this translation helpful? Give feedback.
All reactions