Re: [Cppcms-users] RES: RES: RES: Run on Windows 7
Brought to you by:
artyom-beilis
From: Artyom <art...@ya...> - 2011-03-24 07:42:39
|
> > Now Work... :0) (the problema was that I buid zlib na pcre whong) > Building anything on Windows is painful... > Well I have fell questions, if you have time to answer. > > Some introduction: > > I look for "CPPCMS" because I have one site that need run fast, this > site was build in "ATL Server" > (http://201.44.136.135/ucsws/establishment/authentication/default.srf) but > now we want move to other technology (or plan is migrate to Linux/apache) > In any case I'd suggest to move to Linux, CppCMS is developed mostly on Linux and it is the recommended deploy configuration. > Questions: > > 1) CPPCMS is a good tool to build very large site that need handle many > (thousands) users? Yes, this is what it was designed for, > 2) What is stability of CPPCMS? See this: http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x And yes, it is stable, it has some unknown bugs like any other software but it is tested and stable software. > 3) We plan use it with FastCGI, because of load balance and failover, how > CPPCMS handle (distributed) sessions in this case? I need something like > mencached, or store sessions on data base? You have several options: 1. You may (and this is best) use encrypted or signed cookies so you save all the data at client side while the data is digitally signed so user can't mess with it. It does not solve **all** problems because sometimes you need server side storage: See this: http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_config#session However you can always specify that is certain cases you want to store data on server side and this is per session option. 2. You may use distributed filesystem like NFS or Windows Share It is by the way would be generally very fast given a file system like ext3 that handles many files very well. (Generally much better then DB) 3. You can provide you own database based session backend (but be aware that database is slow for this kind of job). 4. It is not implemented yet in CppCMS 1.x.x (it exists in 0.0.x) but cppcms provides "scalability server" it is memcached like server that provides support of distributed caching and it should include support of distributed sessions. It was removed during rewriting CppCMS 0.0.x to 1.x.x and hadn't returned back yet. But it would be ready before RC1 of CppCMS 1.x.x > 4) CPPCMS is free? I can sale my products with it, or I need open source of > my products? You need to follow LGPLv3 license requirements. It means that you can use it in closed source products as long as you follow LGPLv3 license restrictions. If you don't want to follow LGPL restriction I'll be able to provide a commercial license, of course for some fee. > 5) I have plan to mix it with PHP, this is possible? Share sessions between > PHP and CPPCMS? There is no support for this. However the simplest way to share a data between PHP and CppCMS would be to use a signed cookie. Create some data in format that C++ and PHP understands sign it with hmac (CppCMS and PHP has built in support for it) and then store it as cookie at client side. > 6) You think that is possible build large site, like Facebook in CPPCMS? > Facebook convert a lot of code In C++, CPPCMS fit in it? As I told that it what it was designed for. I'm not ware of CppCMS based applications deployed for a system of size of Facebook (but I'm not aware of too many systems of scale of facebook at all) > CPPCMS is like an > Thrift? (about performance and scale) > See this: http://art-blog.no-ip.info/wikipp/en/page/benchmarks And it scales very well, I did testing on a small network of 3-4 computers and it scaled quite lineary. It is designed to be scalable, it provides memcached like distributed cache system with two levels of caches, and with advanced cache invalidation. Scalability is major goal and consern of CppCMS. Regards, Artyom |