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

performances #2

Closed
silviucpp opened this issue Jan 24, 2018 · 4 comments
Closed

performances #2

silviucpp opened this issue Jan 24, 2018 · 4 comments

Comments

@silviucpp
Copy link

Hello,

I just looked over your repo and it's pretty amazing. Congrats ! All interfaces looks pretty nice and self explanatory.

What I'm wonder it's the performance of this servers from a memory usage and requests/second they can serve point of view.

Looking to your results and on what machine you run the tests I see the HTTP/HTTPS server performances being very poor. Have you compared your results with other solutions ?

For example for websocket have you compared the HTTP and websocket performances with https://github.com/uNetworking/uWebSockets which seems a strong candidate ?

Kind regards,
Silviu

@silviucpp
Copy link
Author

I don't think should be too complicated to migrate the HTTP* and websocket implementation over uWebSocksts. The only challenge might be to patch their code to use an external loop (they already support asio)

@chronoxor
Copy link
Owner

I looked with one eye into uWebSockets. They already support Boost.ASIO loop. I have to provide a custom ASIO loop (without boost) and integrate uWebSockets with my CppServer and make examples & benchmarks. I'm going to do this in the next week. Hope we'll get very good performance results!

Concerning HTTP/HTTPS I'm not sure if uWebSockets provide necessary API to create REST service with user defined routing as Restbed does.

@silviucpp
Copy link
Author

yes you are right needs some work to create a similar rest service in top of uWebSockets but shouldn't be so difficult as time the HTTP protocol is already implemented.

@chronoxor
Copy link
Owner

It seems that uWebSockets does not support Asio under Windows paltfrom - uNetworking/uWebSockets#762

tarc pushed a commit to tarc/CppServer that referenced this issue Sep 18, 2020
fix compilation with windows 8.1 sdk
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