Best practices and principles
As we have learned from the first chapter, microservices are a lightweight style of implementing Service Oriented Architecture (SOA). On top of that, microservices are not strictly defined, which gives you the flexibility of developing microservices the way you want and according to need. At the same time, you need to make sure that you follow a few of the standard practices and principles to make your job easier and implement microservice-based architecture successfully.
Nanoservice, size, and monolithic
Each microservice in your project should be small in size and perform one functionality or feature (for example, user management), independently enough to perform the function on its own.
The following two quotes from Mike Gancarz (a member who designed the X Window system), which defines one of the paramount precepts of Unix philosophy, suits the microservice paradigm as well:
"Small is beautiful."
"Make each program do one thing well."
Now, how do we define the...