drogonframework / drogon

Drogon: A C++14/17/20 based HTTP web application framework running on Linux/macOS/Unix/Windows
MIT License
11.04k stars 1.06k forks source link

How about drogon's performance and latency? #1986

Open bethebest0622 opened 3 months ago

bethebest0622 commented 3 months ago

I am only a http client library user. all i need is non-blocking, asynchronous, reuse the existed connections. (to summarize, low latency, non-blocking).

the typical scene is:

for one http post request, it cost me 20ms, sometimes, i can have 100 requests at the same time, i want them to be handled as soon as possible, request #10 wait request #2 is not acceptable.

I was using libcurlbefore, I use it because it is default library in many linux Os. it drived me mad when it comes to non-blocking, multi-threading request and reuse existed connections.

so, i am planning to replace it with drogon, before that, i am curious: is drogon fast enough, and is it good fit for my scene?

Mis1eader-dev commented 2 months ago

I have not used coroutines personally but using HttpClient with the callback overload of sending a request it will happen asynchronously, you can fire 100 requests independently from one another and they won't wait for the previous request to finish