Principles of serverless technology
Serverless technology is based on the following principles.
Lower cost
Cost is based on the actual consumption of the compute resources and power. There is no cost associated to them if there is no consumption.
Event-driven
Serverless functions should be able to execute based on certain events happening. The event should trigger the execution of the function. In other words, serverless should allow functions to decouple themselves from other functions and instead rely on the firing of certain events in which they are interested in.
Single responsibility
Serverless should implement a single functionality and responsibility and it should do that well. Multiple responsibilities should not be coded or implemented within a single function.
Execute quickly
Serverless functions should not take a long time to complete a job. They should be able to execute quickly and return back.