Microservices best practices
As with any technology, the devil is in the details. It is certainly possible to create bad microservices. Let's delve into how some common pitfalls can be avoided and some recommended best practices.
Best practice #1: Decide whether microservices are the right tool
The world's leading technology companies, such as eBay, Facebook, Amazon, Microsoft, Twitter, and PayPal, are all heavy users of microservices architecture and rely on it for much of their development. However, it's not a panacea. It a pattern that is appropriate for many use cases, but also not appropriate for others. Make sure that your particular use case is best suited for this architecture. If it's hard to break down your application into functional domains, a microservice architecture might not be the best choice.
Best practice #2: Clearly define the requirements and design of the microservice
Creating microservices, like other software projects, requires...