Security is one of the most important cross-cutting concerns for web applications. Unfortunately, data breaches of well-known sites seem commonplace these days. Taking this into account, information and application security has become critical to web applications. For the same reason, secure applications should no longer be an afterthought. Security is everyone's responsibility in an organization.
Monolithic applications have a bigger surface area for attacks, compared to microservices; however, microservices are distributed systems by nature. Also, in principle, microservices are isolated from each other, so well-implemented microservices are more secure, compared to monolithic applications. A monolith has different attack vectors, compared to microservices. The microservice architecture style forces us to think differently...