Configure UDP for Remote on Akka.net

Viewed 225
akka {
    actor {
        provider = remote
    }

    remote {
        dot-netty.tcp {
            port = 8080
            hostname = localhost
        }
    }
}

Sample configuration for tcp and it works fine

Any help on how to connect with UDP would be appreciated

1 Answers

At this point UDP connections are not supported. The major constraints are:

  1. Akka requires, that the messages from one actor to another must be passed in the same order, as they were send. UDP doesn't guarantee ordering by itself.
  2. UDP doesn't offer message redelivery, increasing the ratio of lost messages.
  3. UDP datagrams are strictly limited in size, so big messages that doesn't fit into a single datagram, would require additional logic for splitting/combining before and after send.

These requirements are usually solved by network protocols build on top of UDP, like Aeron or QUIC. However, since there are no reliable .NET implementations for both client and server for those, they are not yet available in Akka.NET.

Related