Actix-web and udpsockets

Hi,
I'm writing a web service that accepts small messages via HTTP POST and sends those messages out to a single port of a UDP server. I'll be sending a massive number of messages and my SLA for delivery is extremely low. Do I need to setup a pool of UDPSockets to handle a large load, or will one connection work? Right now, I'm using std::net::UdpSocket.

I still have a lot to learn about UDP and networking, as well as concurrency in Rust.

Thanks for taking the time to read this,
Jeramy

I'm now thinking that I should just create an actor that has its own UDPSocket and have one actor per core created and injected during App creation.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.