Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Axum SSE and backpressure
I'm using Axum SSE to send out events and was wondering what, if any, built-in mechanisms there are to handle back-pressure. For example, when sending out events, if the consumer (web browser) can't process them fast enough or suspends for some reason, then I'm guessing that program's task associated with sending the events will also suspend.
In an ideal scenario, I'd like to drop the SSE consumer's connection instead of suspending my server's tasks.
Thanks for confirming what Axum or even Hyper should do in this scenario.
1 post - 1 participant
🏷️ Rust_feed