... | ... | @@ -55,12 +55,18 @@ Having each service now running completely independently also makes deploying a |
|
|
|
|
|
**Micro-services are more flexible when it comes to hardware**
|
|
|
|
|
|
Running completely separated from each other, different microservices may use different versions of the same library with one service for example taking advantage of that brand new feature that was just introduced while another service depending heavily on security is sticking to the LTS version of that same library. Be careful though, this is a double-edged sword!
|
|
|
Running completely separated from each other, different micro-services may use different versions of the same library with one service for example taking advantage of that brand new feature that was just introduced while another service depending heavily on security is sticking to the LTS version of that same library. Be careful though, this is a double-edged sword!
|
|
|
|
|
|
**Micro-services are more flexible when it comes to library usage**
|
|
|
|
|
|
## Batteries included Vs minimalist framework
|
|
|
|
|
|
Django advertises itself as coming with "batteries included". By that meaning that Django has a lot of features and functionalities out of the box. For that very reason a lot of people don't even consider using Django for micro-services as they see the dichotomy between "small service that only performs a few tasks" and "lots of included functionalities".
|
|
|
|
|
|
The fact Django comes with a lot of functionalities doesn't mean you do have to be using all of those features to take advantage of the framework itself.
|
|
|
|
|
|
On the other hand we have minimalist frameworks that come with very few features other than routing. With this type of framework, if you ever need to perform a common action such as connecting to a database or providing authentication, you will have to either write those functionalities or resort to some third party library.
|
|
|
|
|
|
## Is Django really too bloated?
|
|
|
|
|
|
## Storing extra batteries safely (configuring Django for micro-services) |