Don't Use Websockets (Until You Try This…)
Using websockets increases the code and infrastructure complexity of your app, especially as you scale horizontally. Depending on your needs, you may be able to use Server Sent Events (SSE) instead. Server Sent Events is more efficient than polling, but simple to implement on both the backend and frontend.
Take the opportunity to connect and share this video with your friends and family if you find it useful.