[Cppcms-users] Can Cppcms fully work asynchronously?
Brought to you by:
artyom-beilis
From: redred77 <red...@gm...> - 2015-04-23 15:07:40
|
I have some questions about cppcms. I'm interested about building new project with Cppcms but not familiar with it yet and I want to know in detail. 1. Can cppcms run multiple threads asynchronously? I know it can handle asynchronous requests by event loop but can it be run with thread pool and run several requests simultaneously? Or the thread pool is only for synchronous jobs. 2. Can Cppdb handle asynchronous query? I mean that providing callback at query execution and be called later when query is finished. Maybe this must be handled with cppcms event loop. Is there any example using asynchronous query or it's not possible? 3. What is the difference between running cppcms as multi process mode beside running only single process mode? I found that on windows platform it can't be run as multi process mode. I'm not going to run it on windows for production but is there any other big difference I have to aware? Something like local cache is shared between threads but not shared between processes. Or some performance effect like running 8 processes with single thread mode, or running 1 process with 8 threads. Information about Internal structure about performance would be helpful. 4. Dynamic loading .so files I saw that cppcms highly recommend to use dynamic loading views but I also found that auto update (checking .so file's modification date and auto reloading views) function may affect bad performance. So, dynamic loading views are only good with test mode and static library loading is better for production service? I'm only asking at the aspect of performance. Loading all .so files at startup looks much better for performance. I'm about to load more than 100 .so view files. Thanks in advance. Cppcms looks like well designed and implemented. |