简体   繁体   中英

How to delegate threads to multiple servers and keep a track in which thread is on which server using Java

We have a solution which runs on 13 servers. I wish to know how do we explicitly delegate threads to different servers and keep a track of which thread was on which server.

Your application need to implement asynchronous event handling. One instance (node) of the application will trigger an event to another instance. On receiving the event, the second instance may decide what it should do. That way the thread on the first instance will delegate to a thread in the second instance. Once the second instance is done with the handling, it may notify back to the first instance. Not sure of the architecture of your product (messaging between multiple nodes, if there is any event handling mechanism which is already there etc). You may like to check Node.js, Akka. But not really sure if that will work for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM