Rust::com Async Stream Receive API#349
Rust::com Async Stream Receive API#349bharatGoswami8 wants to merge 1 commit intoeclipse-score:mainfrom
Conversation
* Proposal for async stream receive api with basic sequence diagram
4c9cf56 to
0628618
Compare
|
Hi @artemsheinacn |
|
Hi @bharatGoswami8, there is no way to detect if events were dropped when the last receive call yielded, right? This kind of behavior is masking potential issue when consumer is not fast enough to go through all the events. It may be out of scope of events API, but it's what I need in FEO signalling as we can't just dismiss and drop the signals. |
@artemsheinacn , Yes, we don't have any way to detect if sample is dropped before consumer read, but in that case what i think consumer app should have a mechanism to read the sample as soon as event received and for that may be read in separate thread and maintain a large queue so no processing load to read thread. |
|
@bharatGoswami8 But why would I implement it using an additional thread and more memory consumption if I can just keep using my implementation of streaming API which provides proper error-state detection? |
@artemsheinacn , let's discussion this at #371 |
|
So, in short this API is not compatible with the FEO signalling implementation. In FEO events are not discardable and with the API from this PR we can't detect if an event was discarded which is an error-state and should lead to panic. |
We can have control parameter with default @darkwisebear , @pawelrutkaq , your opinion on this. |
Improvement: Async Stream Receive API #371