Django as Microservice

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Django as Microservice

Adnan Muttaleb
Hi

This my first post here, so excuse me if I am breaking any convention. I am thinking of how useful if we can create a minimal version of django using something as follow:

python manage.py createservice

So instead of creating full fledged project, we create a project (service) that more the fulfill the requirements of Microservice System instead of Monloithic System. The service version intuitivly will only contains feature that are common for a service in Microservice architecture, such as: ORM, REST-FRAMEWORK..ETC. and will exclude other features that are unlikely to be used in a service, such as: Forms, Admin-Site, Session Managment, ..etc. My list of what to include or exclude are just examplary. I am glade to here your opinions :).


--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/1e5fdd82-c2c2-4ec1-8991-009507a37e5c%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Django as Microservice

Adam Johnson-2
Hi Adan,

Did you know startproject takes a URL for the template? See docs: https://docs.djangoproject.com/en/2.2/ref/django-admin/#startproject . You could use this to provide your microservice template in a separate location, for example a GitHub repo with a download URL.

For more advanced project templating, I've seen https://github.com/cookiecutter/cookiecutter used quite a lot. It offers a lot more features than startproject, for example fields to fill in, and is generic. This lists 26 Django templates at current.

I think because of these it's unlikely a new management command needs adding to Django core at this time. However if you do have a microservice template, please share it with the community. Perhaps there are suggestions you can bring from it back into Django core's default template to make it a bit more useful for the microservice use case.

Thanks,

Adam

On Wed, 7 Aug 2019 at 14:58, Adnan Muttaleb <[hidden email]> wrote:
Hi

This my first post here, so excuse me if I am breaking any convention. I am thinking of how useful if we can create a minimal version of django using something as follow:

python manage.py createservice

So instead of creating full fledged project, we create a project (service) that more the fulfill the requirements of Microservice System instead of Monloithic System. The service version intuitivly will only contains feature that are common for a service in Microservice architecture, such as: ORM, REST-FRAMEWORK..ETC. and will exclude other features that are unlikely to be used in a service, such as: Forms, Admin-Site, Session Managment, ..etc. My list of what to include or exclude are just examplary. I am glade to here your opinions :).


--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/1e5fdd82-c2c2-4ec1-8991-009507a37e5c%40googlegroups.com.


--
Adam

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAMyDDM2msy009UgEmD-LcOL7CFYW595u%2BsZtD5gJ0xNJYAzkxA%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Django as Microservice

Adnan Muttaleb
In reply to this post by Adnan Muttaleb
Hi Adam

Actually I do not know, and I completly agree with you, we only need a new template not new management command. Many thanks.   

بتاريخ الأربعاء، 7 أغسطس، 2019 7:16:44 م UTC+3، كتب Adnan Muttaleb:
Hi

This my first post here, so excuse me if I am breaking any convention. I am thinking of how useful if we can create a minimal version of django using something as follow:

python manage.py createservice

So instead of creating full fledged project, we create a project (service) that more the fulfill the requirements of Microservice System instead of Monloithic System. The service version intuitivly will only contains feature that are common for a service in Microservice architecture, such as: ORM, REST-FRAMEWORK..ETC. and will exclude other features that are unlikely to be used in a service, such as: Forms, Admin-Site, Session Managment, ..etc. My list of what to include or exclude are just examplary. I am glade to here your opinions :).


--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/9ee375a8-dcf4-4fea-b8c7-2cc67ee46001%40googlegroups.com.