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

Support serving over unix socket #6

Open
adworacz opened this issue Sep 14, 2024 · 0 comments
Open

Support serving over unix socket #6

adworacz opened this issue Sep 14, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@adworacz
Copy link

Bun natively supports serving over a unix socket: https://bun.sh/docs/api/http#unix-domain-sockets

Especially when using a proxy server (Caddy/Nginx), unix sockets can lead to significant performance improvements since all the extra HTTP + port setup goes away. In my tests, I saw a 2x performance improvement between the TCP port and Unix socket implementation, with Unix sockets being faster.

@NuroDev NuroDev self-assigned this Dec 7, 2024
@NuroDev NuroDev added the enhancement New feature or request label Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants