title: java multi server chat architecture
body: <p>I'm currently on the stage to begin developing a chat (actually porting an older single server version ) using multiple servers(machines).</p>
  
  <p>I want to use java NIO library. </p>
  
  <p>The reason why I'm doing this is because the current implementation is working very slow when a huge number of clients are being connected(around 10k), also the current implementation is based on the IO socket library. I also estimate that in 1 year to have around 40-50k live clients.</p>
  
  <p>So.. I have a few questions:</p>
  
  <ol>
  <li>How many client do you think/estimate NIO can handle since I heard is much better than the old socket implementation?</li>
  <li>do you have any ideas or you can point me to some already implemented architecture of using multi server chat.</li>
  <li>what are the major problems that I might face when using a multi server architecture?</li>
  </ol>
  
  <p>Thanks in advance</p>