Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How about drogon's performance and latency? #1986

Open
bethebest0622 opened this issue Apr 1, 2024 · 1 comment
Open

How about drogon's performance and latency? #1986

bethebest0622 opened this issue Apr 1, 2024 · 1 comment

Comments

@bethebest0622
Copy link

bethebest0622 commented Apr 1, 2024

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 libcurl before, 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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants