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

what's the performance of ulfius. I need concurrency , how to evaluated the amount of concurrency of ulfius. #30

Closed
skylli opened this issue Oct 23, 2017 · 5 comments

Comments

@skylli
Copy link

skylli commented Oct 23, 2017

Good jod. i havet use u code in some of my project, i want to use it in my iot server. it need concurrency,how to evaluated the amount of concurrency of ulfius??

@babelouest
Copy link
Owner

I haven't made any real performance measures or benchmarks, so I can't tell you the amount of concurrency a program using Ulfius can handle. If you want, you can try to make some.

Usually, ab is a good program to test an http service.

@skylli
Copy link
Author

skylli commented Oct 24, 2017

thank you, i will try later. Is ulfius creat an thread to handle each http request ?

@babelouest
Copy link
Owner

Yes, there is one separate thread per connection.

@tibbis
Copy link

tibbis commented Aug 10, 2018

@babelouest but ulfius_send_http_request() will not be on a separate thread right? Only web sockets?

@babelouest
Copy link
Owner

@GitTibbe , ulfius_send_http_request() is different from ulfius core webservice, it's the http client function and uses libcurl underneath. But it doesn't run any thread in the background.
Its behaviour is thread-safe according to libcurl documentation.

Ulfius websocket server is another part of the framework. When the websocket connexion is established between the client and the server, a single thread is executed to handle all incoming and outcoming websocket messages.
But the websocket thread is independent from the core webservice.

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

No branches or pull requests

3 participants