Symfony : multiple mercure subscriptions

373 Views Asked by At

I've developed an app based on this tutorial : https://symfonycasts.com/screencast/turbo

By the way, my app is broadcasting HTML updates on several topics, ie : chat-messages, notifications, chat-channels

So, every pages of my app is subscribing to these topics, and everything works beautifully on a local server, but as soon as I'm deploying this app online, every ajax calls are taking very much time, and the app is stucked.

When I'm disabling the mercure "subscribing" part, everything is working perfectly, but I really don't understand why...

Here is my setup :

  • Debian 11 VPS
  • PHP8.1
  • Mercure 0.14.2
  • Nginx with a reverse proxy configured on the mercure hub

I've tried to configure apache instead of nginx, but I've got the same problem

0

There are 0 best solutions below