Handling 5K websocket connections with rust axum server
I am using axum server for handling websocket connections. I am reading messages from kafka topic and if the websocket connection is established to receive messages from a particular session then the message will be relayed on to that connection.
I am facing issues when I am load testing the application for 5000 connections (4CPU and 8GB RAM). I am getting i/o timeout error on client side.
I am benchmarking this service against Java spring boot but java service is working fine with very low latency and the configuration is same.