This is an example of how to build a distributed websocket feed. It allows for horizontal scaling using Redis as a pubsub broker to broadcast messages between application instances.
This is the third version of websocket feeds. It is built with Sanic v21.9+ in mind. Older versions: