Skip to main content

UDP

Constant UDP 

Source
pub const UDP: NetworkingConfig<Udp<()>, NoSer>;
Expand description

A network channel that uses UDP for transport.

Unlike TCP, UDP does not guarantee delivery or ordering, so output streams always have NoOrder guarantees. Because UDP is connectionless, there is no fail_stop policy; only lossy and lossy_delayed_forever are available.

§Availability

UDP is not yet available in “deploy” deployment mode (via Hydro Deploy, including Docker and ECS deployments); attempting to deploy a UDP channel there will panic at compile time. Both UDP modes are available for embedded deployments (the only production deployment option) and Maelstrom testing. In the Hydro simulator, only lossy_delayed_forever is supported, and it requires .test_safety_only(): the simulator will not actually drop packets—it delays “dropped” messages until the end of the execution, which catches safety bugs but cannot test liveness.