Peter Kievits
07/18/2024, 2:07 PMSharedFlow
in our backend application. We're receiving updates and are publishing these on the SharedFlow
. This works great because it very easy to understand workflow. However, we would like to implement metrics around this. Specifically the SharedFlow has a predefined buffer, and we'd like to be aware of when it is filling up. We can detect when the buffer is full, because the tryEmit
returns false
. Is there any way for us to get an early warning here, in case of a slow consumer? It looks like we can check the number of consumers on the flow, but there is no way to check the buffer status. Has anyone got any ideas how to monitor this?rnett
07/22/2024, 5:07 PMPeter Kievits
07/23/2024, 6:50 AMSharedFlow
that I'm not sure about.rnett
07/23/2024, 4:11 PMPeter Kievits
07/24/2024, 8:05 AMPeter Kievits
07/24/2024, 8:05 AM