In 2012, Adam Wiggins, co-founder of the Heroku platform, presented 12 basic principles. These principles talk about defining new modern web applications from an idea to deployment. This set of principles is now known as the 12-factor app. These principles paved the way for new architectural styles, which evolved into microservice architectures. One of the principles of the 12-factor app was as follows:
"Execute the app as one or more stateless processes"
So, services will be essentially stateless (except the database, which acts as the state store). The shared nothing principle is also applied across the entire spectrum of patterns and practices. This is nothing more than the isolation of components in order to achieve scale and agility.
In the microservice world, this principle...