11
Best Practices for Microservices
Microservices are a relatively recent development, but fortunately, there is already enough experience to look at best practices. With this, we can profit from earlier hands-on experience and avoid pitfalls to optimize microservices development.
In this chapter, we’ll examine best practices for Django microservices. By the end, you’ll know how to organize your code, document it, and control its versioning.
To achieve this, this chapter covers the following topics:
- Organizing code
- Documenting microservices
- Logging and monitoring
- Error handling
- Versioning microservices
Some best practices for error handling and monitoring have been addressed before in Chapter 5, Creating RESTful APIs for Microservices, and ...
Get Hands-On Microservices with Django now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.