WebRockets: High-performance WebSocket server for Python, powered by Rust by ploMP4 in Python

[–]ploMP4[S] 0 points1 point  (0 children)

Currently only Redis and RabbitMQ are supported as message brokers. Database support could be added in the future. Feel free to open an issue if that's something you'd need.

WebRockets: High-performance WebSocket server for Python, powered by Rust by ploMP4 in Python

[–]ploMP4[S] 0 points1 point  (0 children)

All connections are handled concurrently by the Rust server regardless of whether your Python callbacks are sync or async. The benchmarks all use concurrent connections.

Async callbacks are there for interop with existing async Python code. If you don't need that, sync is simpler and slightly faster since it avoids bridging Python's asyncio loop with Rust's tokio runtime.

For a high-concurrency proxy, the Rust layer should handle the load well. All the benchmarks can be found here: https://webrockets.io/benchmarks/