Resource-limited flow graph nodes #1683
Replies: 2 comments
-
|
Some additional context that is relevant for further work on the idea. While the original motivation was about preventing concurrent access to non-safe program components by multiple nodes, the direction it seemingly moves toward is about generalized resource control. That very similar to other FG use cases and techniques that we know for a while, including: We may want to somehow simplify expression of such patterns (including examples in #1677 with the flow graph. So, we need to look at their similarities and differences, and figure out which (if any) new node types should be added and/or how the existing node types can be adjusted for the purpose. |
Beta Was this translation helpful? Give feedback.
-
|
One aspect that has been raised by #1677 is that we need a better way to combine token or resource use and concurrency limits. It may be that a serial node also needs a resource. Existing patterns decouple the token/resource acquisition from concurrency limits. For example, a reserving join node might get a token and data and forward to a serial function node that is currently occupied. This leads to situations where a token/resource is acquired for a node but then the resource cannot be immediately used, causing unnecessary idleness in the graph. Two possible approaches are to bring the reservation consumption closer to the node, so it is only acquired when there is also sufficient concurrency headroom available, or to make concurrency limits a resource/token that can be consumed by a join node (or other node type) outside of the concurrency-limited node. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This discussion is to collect opinions/ideas regarding further evolution of the RFC #1677.
Beta Was this translation helpful? Give feedback.
All reactions