Re: [Cppcms-users] 100% cpu usage
Brought to you by:
artyom-beilis
|
From: Marcel H. <ke...@co...> - 2013-07-31 19:16:40
|
On 31.07.2013 20:56, Artyom Beilis wrote: > 1. how do you trigger the loop? which loop? the thread_pool loop? I don't know ;) > 2. I don't understand why are you using asynchronous application for > the WebAPI. You don't do anything asynchronous. * the json_rpc_chat is also async * you wrote that an async handler is able to handle more requests at one than sync one can and it will be designed that the webapi will provide the whole logic for the game, so you can also do rpc request from desktop applications. * async is cool > More than that calling blocking SQL from event loop is BAD idea. Hmmm, how to fix it? > > also is there any way to make it with less dependencies so I can build it Hmmm, there aren't many dependencies :/ just cppcms/cppdb/cryptopp and a self made logger framework logre. logre can also be found at the git page i provided. I also have a logre-less version for you. http://cookiesoft.de/sp.tar.bz2 |