Summary
In this chapter, we learned how to secure Django microservices by implementing north-south security to control client access to services and east-west security to control inter-service access.
We started by exploring north-south and east-west security. Then, we looked at security implementation techniques and learned about JWT as a token-based technique and OAuth 2.0 as a user-based technique. Finally, we built north-south and east-west security into our sample microservices application with JWT.
With this, you know how to secure microservices if application requirements require it. Furthermore, you have gained enough knowledge to implement OAuth 2.0 security if necessary.
In the next chapter, we’ll explore and apply caching, which helps increase and maintain application performance.