Elixir Phoenix app websocket issues

Hi All,

It looks like my Elixir Phoenix app needs time to warm up when it’s woken up or restarted due to redeploy.

Fist 3-7 minutes after app restart (due to wake up, redeploy), I have issues with websocket (phoenix liveview), it responds with a huge delay if at all. The websocket switches to long-pull mode according to logs:

2025-05-11T14:27:53Z app[78156d1c9e0358] sin [info]14:27:53.428 [info] CONNECTED TO Phoenix.LiveView.Socket in 32µs
2025-05-11T14:27:53Z app[78156d1c9e0358] sin [info] Transport: :longpoll
2025-05-11T14:27:53Z app[78156d1c9e0358] sin [info] Serializer: Phoenix.Socket.V2.JSONSerializer

Anyone experienced this?

Thanks