Denis Steinman
Denis Steinman

Reputation: 7799

Different IPs are for different apps

At first, I am learning Python and Django only... So I'm a noobie yet.
I need to build a microservice architecture to I could run each my service on a separate server machine. In the Django I need to create an environment, project and apps. So, can I run these apps after on different servers? If no, how can I make it with Django? Do I need to create a separate project for each service?
P.S. If my question is stupid, pls, explain where am I wrong. I am from Java Spring world where I was need to create just new app for each service.

Upvotes: 0

Views: 46

Answers (1)

Kevin Christopher Henry
Kevin Christopher Henry

Reputation: 48952

Either approach will work.

If it makes sense for your services to share the same code base, you can create a single project and use separate apps for each service and separate settings files for each deployment. The settings file would activate the desired app by listing it in INSTALLED_APPS, and would include settings specific to that service.

Or, if you don't need the services to be coupled in that way, you could certainly make each one its own project.

Upvotes: 1

Related Questions