Servers and Remoting

Skip to first unread message

P Martin

Jun 19, 2013, 4:12:51 PM6/19/13
Hi there,

My student and I are using jetlang to implement an actor-based robot control framework. We would like to leverage the newer remoting library to allow for robots to subscribe to logical channels. During our exploration of the code, it occurred to us that if a robot had a server and it went down it would cause the channel to "die" and disconnect the other robots. Does anyone have suggestions on how you could do the remote channels in a more robust way? Should we have multiple servers? (Is that feasible?) Should we have robots create new servers when any others go down?

Any ideas would be great!


Mike Rettig

Jun 20, 2013, 10:16:50 PM6/20/13
The remoting library is designed for stateful client/server asynchronous connections. It provides callbacks for both the client and acceptor disconnect events, so failures can be handled gracefully.  There is also a read timeout event which can be used to detect an unresponsive system which is still connected.

I use it in production every day. The systems I work on implement graceful disconnect logic to handle failures. For example, if a system loses its connection to a server it will automatically disable until the connection is restored.  Jetlang remoting automatically tries to connect when a connection is dropped.

You can have multiple servers and implement some connection logic that automatically round robins on failure or just use a tcp load balancer. Do you expect to have failures? 


You received this message because you are subscribed to the Google Groups "jetlang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

P Martin

Jun 21, 2013, 8:33:48 AM6/21/13
Thanks for your reply! That discussion helps clarify how the remoting works. We do expect robots to come into and out of networks, usually due to power loss. I will look into the callback mechanisms to develop a smart way to recover remote channels.

Thanks for developing this library - I have been using the core jetlang for a few years and find it useful in my research.

Reply all
Reply to author
0 new messages