Replies: 2 comments 3 replies
-
|
To start with something, I thought about simple enum OverflowPolicy {
Fail, // fail on buffer full
Drop, // drop messages when full,
Block // system blocks, until receiver consumes event
}
// registering an actor with a specific policy and channel size:
supervisor.add_actor(
"Zebra",
Zebra::new,
Subscribe::to([Topic1, Topic2]).overflow(Block).capacity(666) )?;Currently there is a single config param defining channel size for all actors. With the method above it's possible to define buffer size per actor.
It would be natural to add something like Thoughts? |
Beta Was this translation helpful? Give feedback.
-
|
Ok, the initial version is under development (see #69), but the discussion is till open, as the first version will just cover simple backpressure handling. Decisions made so far:
Things that won't be implemented in the first iteration, but still worth to be considered:
Open questions
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I would appreciate some ideas and concepts how to implement backpressure handling in Maiko. With focus on initial shape of it (planned for version 0.3.0), but some longer term, strategic planning is welcome. Please share any suggestion you have in mind.
Things to discuss (as example)
Cheers.
Beta Was this translation helpful? Give feedback.
All reactions