It is very difficult to get security right. There always seems to be some open door for intruders to sneak in. Security mistakes are made all the time, such as the famous WannaCry ransomware attack (causing $5 billion of damage), Ethereum theft ($32 million heist), and so on. Such attacks always make us take extra steps toward security to avoid such disasters. As microservices are dynamic, any of the instances can go down leading to business loss.
With a focus on handling security and autoscaling, this chapter explores some security fundamentals and microservice best practices to make the system more secure and robust, and make it easy to handle any amount of traffic. With the advent of containers, we will be looking at security at the container level too, as well as the application level. This chapter also focuses on autoscaling with the aim of making the application available at any time to handle any load, with zero downtime during new deployments...