Re: [Cppcms-users] will the comet in the next version of cppcms can communicate between each thread
Brought to you by:
artyom-beilis
From: Artyom <art...@ya...> - 2009-10-17 18:21:53
|
Hello, > I am waiting for the comet of cppcms. I don't know > the communication between threads or process will be > supported in next version of cppcms? This is good question. Comet applications are not usual applications that hold one open connection per thread. Usually running comet service you would program your application using event driven technique, when each request would be handled by single persistent instance of your application class. So all request for the service usually would be redirected to one program. See this example: http://art-blog.no-ip.info/cppcms/blog/post/47 Also all threads, processes and distributed computers would be able to talk to each other using JSON-RPC mechanism. The API and the full API model are not finalized yet but this is the general concept. I hope this information helps. Best regards. Artyom |