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 to use an application server like uwsgi #39

Closed
Ahmed opened this issue Nov 2, 2016 · 2 comments
Closed

Need to use an application server like uwsgi #39

Ahmed opened this issue Nov 2, 2016 · 2 comments
Labels

Comments

@Ahmed
Copy link

Ahmed commented Nov 2, 2016

Hi team,

One thing I noticed is the backend is using the built in development server that comes with Django.
It's not suitable for production environment, you can get a better performance by using app server like uwsgi.

Another thing, nginx might not be needed if you use uwsgi directly without using static files like images and css in the backend. It looks like this app is used only as an api end point.

If you need to modify any headers in the returned request, you can have that in a middle ware, and have all the requests have any headers you want.

--
Ahmed

@awm33
Copy link
Member

awm33 commented Nov 2, 2016

@Ahmed Would you be interested in taking this on? Perhaps creating a prod Dockerfile in config/prod?

I found this example repo for using uwsgi in Docker. It uses supervisord to run the uwsgi process. It also places nginx in front of it, though idk if that's necessary, maybe uwsgi+supervisord is all that's needed.

We may still need nginx in front of the services to route certain paths to certain services. We may be able to use the new AWS applications load balancer to achieve the routing instead.

@awm33
Copy link
Member

awm33 commented Jan 24, 2017

Resolved by #48

@awm33 awm33 closed this as completed Jan 24, 2017
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

2 participants