Stiffstream / restinio

Cross-platform, efficient, customizable, and robust asynchronous HTTP(S)/WebSocket server C++ library with the right balance between performance and ease of use
Other
1.13k stars 92 forks source link

What’s the implementation pattern of restinio ?? asynchronously or synchronously?? Is there any choice item to specify?? #133

Closed zxbzswxr closed 3 years ago

eao197 commented 3 years ago

The model is selected by a user.

Let's see how RESTinio works if it's launched on a single thread:

An example of synchronous processing can see here: https://github.com/Stiffstream/restinio/blob/v.0.6.12/dev/sample/hello_world/main.cpp And an example of asynchronous processing can be seen here: https://github.com/Stiffstream/restinio/blob/v.0.6.12/dev/sample/hello_world_delayed/main.cpp or here: https://github.com/Stiffstream/restinio/blob/v.0.6.12/dev/sample/async_handling_with_sobjectizer/main.cpp or in this demo-project: https://github.com/Stiffstream/restinio-crud-example

zxbzswxr commented 3 years ago

Got it , thanks for your help!! @eao197