Hi Yulian, UDP itself does not have a notion of a “connection” which in this case should make your life easier since failing over a TCP connection does not work AFAIK. You will need a UDP load-balancer in front of your manager servers which distributes incoming datagrams to the live nodes. When receiving a datagram you determine from which client it came and send it internally to an actor representing that client (and keeping the server side conversation state for this logical connection); you could use the cluster sharding module for that if the number of clients is huge, and depending on how important that conversation state is you should consider using Akka Persistence for those actors (i.e. make them Processors).
The rest of the solution then consists of your already described work distribution mechanism which should work just fine. Regards, Roland 8 feb 2014 kl. 19:16 skrev Yulian Oifa <[email protected]>: > Hello to all. > We need to implement application that will keep UDP connections to > clients.Clients are not akka based as they use standart protocol and > different applications can connect to application. > The desired structure with AKKA would be : > Managers - Cluster of several servers that should maintain network > connections to client and split work for workers. > Workers - Other servers that will do a computation job only. > > The solution should not have single point of failure , and for workers > everything is clear , if some server goes down , others continue to work. > But for managers we are having a problem , since if some server that > initiated UDP connection will go down , clients that where maintained by this > server will get disconnected. > Is there any option that UDP socket will be handled by multiple servers ( e.g > virtual ip address that will be controlled by all available managers ? ). > > Best regards > Yulian Oifa > > > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: http://akka.io/faq/ > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > --- > You received this message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/groups/opt_out. Dr. Roland Kuhn Akka Tech Lead Typesafe – Reactive apps on the JVM. twitter: @rolandkuhn -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: http://akka.io/faq/ >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/groups/opt_out.
