Tuesday, August 25, 2015

Re: Django + microservices: What's correct approach?

Thank you for your responses.

I try to find some guide to create micro-services architecture using Django. I know that micro-service is a design paradigm, so I'm looking for the best way to implement it using Django (+ django-rest-framework).

I also know that there're not a unique response, but I would like to answer questions like that:
Create a Django project for each micro-service or all using the same project?
  • Micro-services must communicate themselves using the same REST API, some way for better approach?
  • How to deploy the project: Running "python manage.py runserver" or something like "python manage.py start MY_MICROSERVICE"?
  • How to communicate the services for reduce response time and using async way?
I know how to implement all of things above, but I'm looking for some recommendation of someone who have had the same problem or who has created micro-services with django.

I hope I explained better now :)

Regards.


El lunes, 24 de agosto de 2015, 17:59:01 (UTC+2), Tom Christie escribió:
Django REST framework is a general purpose API toolkit, and more than capable of building microservice-type services. Likewise there are plenty of frameworks in alternative languages that are also suitable for building APIs that could be characterized as 'microservice'.

The reason you're finding it hard to discover much on the subject is probably due to microservices being an architectural style, rather than a framework choice.

Are there any *specific* technical issues that you're looking for help with? What sort of service are you building, and is this for a Web App frontend, a native client, both or something else?

Aside: Unless you've got automated deployments nailed, great monitoring, a heavily used service with a really nicely designed separation of concerns, and a culture of personal responsibility for the engineers taking code-to-deployment then the microservices probably (as a super-rough rule of thumb) isn't worth the extra up-front infrastructure it requires.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ceefe6b9-ab71-405c-abae-dc09ed3f695f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment