Chapter 7: Securing a Microservices Architecture with NATS
Security is no longer an afterthought in information systems design—it is a fundamental requirement of any system that we design today. In a microservices architecture, security becomes increasingly important since it exposes a much larger surface area to consumers (both genuine users and non-genuine users) due to the increased number of independent services that are deployed as microservices. Some traditional security mechanisms used in the enterprise world will not work well in a microservices context. We will discuss the security of microservices by considering the following two traffic flow patterns we have looked at in previous chapters:
- Security of North-South traffic
- Security of East-West traffic
In Chapter 6, A Practical Example of Microservices with NATS, we briefly discussed how an application programming interface (API) gateway can provide security features to the microservices for North...