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

Need help porting uWS (C++) for fast HTTP/WebSocket server #3366

Closed
uasan opened this issue Nov 17, 2019 · 6 comments
Closed

Need help porting uWS (C++) for fast HTTP/WebSocket server #3366

uasan opened this issue Nov 17, 2019 · 6 comments

Comments

@uasan
Copy link

uasan commented Nov 17, 2019

Hi.

I used in Node.js uWebSockets.js this vary fast HTTP/WebSocket server.

I would like to used him in Deno, but I did not find ready-made solutions how to port it to Deno, does anyone know how to do porting?

My result benchmark: wrk -c 50 -d 30s -t 50 http://127.0.0.1

Deno - 32 154 RPS
uWebSockets.js - 133 752 RPS

Thanks.

@rsp
Copy link
Contributor

rsp commented Nov 17, 2019

I remember that @alexhultman author of uWebSockets used to be active here helping with the benchmarks in #996, he would be the first person I'd ask about porting uWS to Deno.

@uasan
Copy link
Author

uasan commented Nov 17, 2019

Yes, i asked the author, he replied that Deno does not support native modules, so this will be difficult to do.
https://github.com/uNetworking/uWebSockets.js/issues/230#issuecomment-554779661

Any help is appreciated.

@rsp
Copy link
Contributor

rsp commented Nov 17, 2019

The native bindings have been discussed a number of times. Some references: #296 #1654 #2180 #2385 #2840 #3031 #3025 #3240 there were probably more issues/PRs.

Some time ago @afinch7 showed PRs #2386 and denoland/std#475 but I don't know what was the result of that.

@ry
Copy link
Member

ry commented Nov 17, 2019

We’re working towards native plugins - we’re trying to make it so they can be distributed as rust crates and their tests run independently using “cargo test” ... a lot of the refactors Bartek has been working on the past few weeks are towards this goal.

@bartlomieju
Copy link
Member

Unstable plugin API has been available for some time now. Porting the library is outside of scope for deno. Question about porting existing libs are best suited for Discord server

@Malix-Labs
Copy link

Malix-Labs commented Sep 16, 2024

@bartlomieju I think it would be nice to close as not planned instead :)

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

5 participants