Skip to content
Discussion options

You must be logged in to vote

You would have to find a way to communicate events between your workers - you might want to have a look at https://github.com/encode/broadcaster
It's mentioned in the docs @ https://fastapi.tiangolo.com/advanced/websockets/ :
"But have in mind that, as everything is handled in memory, in a single list, it will only work while the process is running, and will only work with a single process.

If you need something easy to integrate with FastAPI but that is more robust, supported by Redis, PostgreSQL or others, check encode/broadcaster."

Replies: 7 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@NicoIIT
Comment options

Answer selected by YuriiMotov
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@erik1110
Comment options

@YuriiMotov
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question or problem question-migrate
10 participants
Converted from issue

This discussion was converted from issue #4199 on February 28, 2023 16:22.