We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Resolving Long Poll Reload Issues in Phoenix LiveView
33
clicks
Source: danschultzer.com
In a production setup using Phoenix 1.7 LiveView, users reported encountering a persistent reload loop every 7 seconds along with an error message. The problem was investigated and found to be related to long polling techniques. Unlike staging, where the setup worked correctly with a single server, the production environment used multiple servers, causing the load balancer to switch between them, leading to the 410 error during session resumption. The solution recommended is to enable distribution for the LongPoll fallback to ensure all nodes are correctly connected and can share session state, similar to WebSockets.
Related posts
© HashMerge 2024