I'm building my own chat server as a personal project and I'm curious about using QUIC instead of the usual networking protocols like MQTT, WebSocket, or XMPP. I've already developed a Flutter mobile app for the frontend and now I'm looking for an effective backend solution. Is QUIC a feasible choice for a chat backend? Have others tried this approach, and if so, why isn't QUIC more commonly used in chat applications?
3 Answers
One potential drawback with QUIC, as well as protocols like MQTT or XMPP, is that they require full Internet connectivity. Many corporate networks limit access, so using protocols like WebSockets makes more sense since they operate over HTTP and can work through proxies, allowing for seamless bidirectional messaging.
There's really no major reason to avoid QUIC for your chat server, but there's also no big incentive to use it over more traditional options. It's pretty much down to compatibility for your specific use case, so I say you should totally give it a shot! Go for it and see how it works out.
I would recommend sticking with something like WebSockets. They help avoid polling and work great for bidirectional communication, which is essential for chat.
Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically