Replies: 1 comment
-
Glad you were able to resolve this <3 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was able to run the pub/sub communication with a Javascript Frontend and the FastAPI backend all dockerized (yeah!).
But the current issue I have is when I scale the backend, that I have e.g. 4 instances.
In this case it seems like the instances are not communicating via the redis broadcaster. Instead each instance is just publishing notification to the clients which are directly connected to.
Any ideas what could be the reason?
//EDIT: Ok, I found the reason: The PubSubEndpoint had the wrong hostname for redis. I used "localhost", which works locally, but for production, I need to use the redis hostname from the docker compose file
Code
Docker Compose YAML
Beta Was this translation helpful? Give feedback.
All reactions