Right way to deal with Server Sent Events and don't block main event loop #5080
Unanswered
tchiotludo
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Do you have a way to reproduce the problem? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have some Server Sent Events events api endpoint.
Sometime time, I've some long operation on this enpoint and it seems that this operation will block the whole event loop from my api. Resulting all the endpoint from api and also healthcheck endpoint is blocked and will lead to a timeout.
I've the feeling I'm doing the right way on the controller (using and the
@ExecuteOn(TaskExecutors.IO)
) repository (using aFlowable.generate(()
) but I've a lots of report that tell me it's not the case.I'll try to reproduce the issue with some
Thread.sleep
around this method, but I'm not able to reproduce it.Is this the right way to do SSE with micronaut ?
Beta Was this translation helpful? Give feedback.
All reactions