Re: [Cppcms-users] https request
Brought to you by:
artyom-beilis
|
From: Artyom B. <art...@ya...> - 2015-02-05 07:38:26
|
See it really depends on the workload. The asynchronous applications are mostly required for server-side push - i.e. push data from server to client when some event occurs. It looks like it isn't the case. So simplest is just to work with synchronous access and use thread pool - the ordinary approach. To answer this question in more accurate way - describe what exactly you try to do. About Linicom. Most of requests (that are highest load) are served from the data stored in memory + cache - i.e. some of postgresql datais "mirrored" to in memory data structures for efficient use. Some served from DB. It really depends on frequency of access to specific features. It really depends on what and how you do. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ From: Василий Теркин <par...@gm...> To: cpp...@li... Sent: Wednesday, February 4, 2015 3:54 PM Subject: [Cppcms-users] https request Hello everybody.I want to implement OAuth2 in my first pet web project (i have very superficial knowledge of network/multithreded/event-driven programming).Could you please describe me the best approach to handle a huge amount of requests to perform https requests?Should i use synchronous application (sync curl? or i mised something inside cppcms..) and rely on cppcms::applications_pool, which will take care of everything (?), or make asynchronous application and dig into some kind of libcurl-multi (and invent wheel with requests pool, communicating with cppcms, may be dealing with several event loops or anything else).2Artyom: Artyom, may you describe the Linicom project's internals (talking about cppcms)? In my case most of user requsts will retrieve data from postgresql server. I would appreciate for any advice.And thanks for the project! Andrey L. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |