Skip to content

"Publish to a Linux Production Environment" should suggest using UNIX sockets #3068

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

Closed
Daniel15 opened this issue Mar 25, 2017 · 3 comments
Closed
Labels
Milestone

Comments

@Daniel15
Copy link
Contributor

Currently the Publish to a Linux Production Environment page configures Nginx to proxy localhost:5000. In a production scenario, it's more likely that you'll use a UNIX socket instead. This has lower overheads compared to TCP connections, and is generally how services on Linux listen for local connections.

Here's an example of how I configure my site/blog:
https://github.com/Daniel15/Website/blob/8d1485d5e6e5136bd1753b7031f067aeae596fa3/Daniel15.Web/nginx.conf#L73
https://github.com/Daniel15/Website/blob/8d1485d5e6e5136bd1753b7031f067aeae596fa3/Daniel15.Web/supervisord.conf#L2

@Rick-Anderson
Copy link
Contributor

@Daniel15 great info. Any chance you could submit a PR for this article?

localhost:5000 is for development on local machine - right?

@Rick-Anderson Rick-Anderson added this to the 2017-Q2 milestone Mar 28, 2017
@Rick-Anderson Rick-Anderson removed this from the 2017-Q2 milestone Sep 27, 2017
@Rick-Anderson Rick-Anderson added Pri2 and removed Pri1 labels Oct 5, 2017
@Rick-Anderson Rick-Anderson added this to the Backlog milestone Oct 5, 2017
@RehanSaeed
Copy link

RehanSaeed commented Apr 13, 2018

A UNIX socket is an inter-process communication mechanism that allows bidirectional data exchange between processes running on the same machine.
ServerFault

So this would only work if you had NGINX and an ASP.NET Core app running on the same machine right? In a Docker based scenario, that cannot be guaranteed.

@Rick-Anderson
Copy link
Contributor

Thanks for contacting us.
We don’t have the resources to invest in this area, so we are closing the issue. Should your request generate enough 👍 responses, we’ll reconsider.

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

No branches or pull requests

3 participants