Hello experts,<br>My job is implementing a Chat System between a Web user ( Comet client) and a Swing Desktop Client.<br>After searching google, I found a topic of a Facebook Engineer that make me choose Erlang: <br><a href="http://www.facebook.com/note.php?note_id=14218138919">http://www.facebook.com/note.php?note_id=14218138919</a><br>
<br>So I'm very new to Erlang and Thrift.<br>After studying , Here is my solution:<br><br><ol><li>Comet Server ( using Erlang)</li><ul><li>Accept Comet Clients</li><li>If the client is New, Call <i>Processing Server  </i>using Thrift to generate an <b>ID </b>for him.<br>
</li><li>Store <b>Response Object</b> in a Dict using the abobe <b>ID</b></li><li>Get Message from Comet Client and Call <i>Processing Server  </i>using Thrift to send Message to Swing Desktop Client</li><li>Open a <i>Thrift Server Service (1</i>) that listen from <i>Processing Server</i> action: send message to ID xxx ( and then response to the right comet Client)<br>
</li></ul><li>Processing Server ( Using Java)</li><ul><li>Accept Swing Desktop Client</li><li>Open a <i>Thrift Server Service (2)</i> that listen from<i> Comet Server</i> actions: generate ID, send message ( and then Send to Swing Desktop Client)</li>
<li>Receive message from Swing Desktop Client , then Call <i>Comet Server  </i>using Thrift to send Message to Comet Client</li></ul></ol>Please give me advice if Erlang have a better solution for me.<br>If you don't understand my idea, please tell me. My english is not good.<br>
Thank you very much.<br><br>-- <br>Name: Nguyen Huu Ha<br>HCMC University of Technology<br>Faculty of  Computer Science & Engineering<br>Tel: 01699987252<br>Email: <a href="mailto:summer0nguyen@gmail.com" target="_blank">summer0nguyen@gmail.com</a><br>
Y!h: summer.inthesun<br><br><br>