title: Java technique which allow switch client to correct work servers
body: <p>I am Java developer, and I never worked with server applications.</p>
  
  <p>Now I plan to write some distributed server with workflow like this:</p>
  
  <ol>
  <li>Client(desktop application) logins to core(auth) server.</li>
  <li>Core server chooses one of the work servers. And redirect client to this server.</li>
  <li>Work server is a specific application that can be hosted on another machine.</li>
  <li>Work server can redirect client to core server, and we can repeat step 2.</li>
  </ol>
  
  <p>So, if I'd like to implement this for myself there will be some demon-application on every real host-server, that will communicate with core server, and run another demons as every work server.) It's real to write this by hand, but I'm worried about security and performance of such solution.</p>
  
  <p>But I'm pretty sure, there must be something, much more better for such workflow. Or, better workflow, for achieve similar results.</p>
  
  <p>I ask you give me right direction for my investigation. I looked to JavaEE and Spring Framework, but there aree too big, and I don't sure, they contain exactly what I need.</p>
  
  <p>Many thanks for any useful information!</p>