Skip to content

Document the Long-Poll Transport Limitations#6057

Merged
SteffenDE merged 3 commits intophoenixframework:mainfrom
probably-not:main
Jan 26, 2025
Merged

Document the Long-Poll Transport Limitations#6057
SteffenDE merged 3 commits intophoenixframework:mainfrom
probably-not:main

Conversation

@probably-not
Copy link
Contributor

Currently, Phoenix will automatically enable a long-poll Socket implementation and LiveView will fallback to long-polling automatically, in order to avoid issues with network conditions not allowing WebSockets. This comes with a major undocumented footgun - Long-Polling requires that either all requests go to the same machine (stickiness), or that nodes in a cluster can communicate.

This documents the footgun and warns the user, along with explaining why this happens.

probably-not and others added 2 commits January 22, 2025 14:31
According to the suggestion by @josevalim

Co-authored-by: José Valim <jose.valim@gmail.com>
Move the section to below the Putting it all together section according to suggestion by @josevalim
@probably-not
Copy link
Contributor Author

Hey All, any word on when we can get this in? It's already been approved...

@josevalim
Copy link
Member

Once another maintainer takes a look. No worries though, we will ping you if something is needed :)

@probably-not
Copy link
Contributor Author

Thanks @josevalim 🙏

@SteffenDE SteffenDE merged commit 05a6299 into phoenixframework:main Jan 26, 2025
5 checks passed
@SteffenDE
Copy link
Contributor

Thank you! @probably-not 🙌🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants