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 · May be fixed by #10
Open

Support serving over unix socket #6

adworacz opened this issue Sep 14, 2024 · 0 comments · May be fixed by #10
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
@lilnasy lilnasy linked a pull request Dec 23, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants