Contents
What is granularity in Microservices?
A granularity level determines “the service size and the scope of functionality a service exposes (p. 426 of Reference 11).” Granularity adaptation entails merging or decomposing microservices thereby moving to a finer or more coarse grained granularity level.
When should you not use a microservice?
When Not to Use Microservices
- Working on large teams. The team may be building or maintaining several different streams of functionality at once.
- Scaling. If one function in a monolith, by dint of additional data or users, needs more resources, then the whole app has to be scaled.
Are microservices Atomic?
Atomic Microservices are as simple as they get. It’s just a single blob of code, in a programming language of your choice. Overall, Atomic Microservices offer a relatively low level of complexity for development, being as it were a single logical module.
What is fault isolation in microservices?
Microservices also offer improved fault isolation whereby in the case of an error in one service the whole application doesn’t necessarily stop functioning. When the error is fixed, it can be deployed only for the respective service instead of redeploying an entire application.
How do you determine what should be a microservice?
If a module needs to have a completely independent lifecycle (meaning the code commit to production flow), then it should be a microservice. It should have its own code repository, CI/CD pipeline, and so on. Smaller scope makes it far easier to test a microservice.
How do I rollback in microservices?
How to rollback MicroServices
- Step-1: M1 making a call to M2 to update some user data in MySQL and it updated successfully then finally it got success response from M2.
- Step-2: M1 making a call to M3 to update some data in Cassandra and it updated successfully then finally it got success response from M3.