Server less computing is basically driven entirely by economic forces framework Pattern , in fact , Serverless architectures often drive you to use strangely decomposed architectures in the name of saving execution costs : Event driven 、 Function execution based on business rules is a useful decoupling and decomposition pattern .
in fact , No server is more like a deployment option , Not with Microservices Different new software architectures or “ Pattern ”.
Redesign your system as a separate functional part : stay Lambda The middle package calls the other three things , And shut down the timeout when it fails .
however , This will There is no server As a strict cost game , Will miss a key point : Developers love it , Because they don't have to know anything about the underlying infrastructure , You don't have to work with or through the infrastructure team .
Actually , In some cases , The no server option is usually more expensive than running a server . can Extensibility It's also important. , And don't worry about designated machines, etc .
meanwhile , No server is building 、 Deployment and cold start times are greatly reduced , Allow fast iterations . The serverless architecture also prompted us to design responsively ( Events and releases / Subscription workflow ), This reduces coupling and complexity . Rewrite services and migration to beat microservices .
It also makes it easier for us to deal with emergencies in the system , Because functions expand up and down faster than anything else .
Of course , Some people think that : Architecture is constraint driven . Cost is a constraint .“ There is no server ” It's a marketing term , Used to charge according to the resources used , And “ By server ” or “ By application ” Different ways . It has its place , But like anything , Can be abused .
Architecture itself is an economic strategy game . At the beginning , You invest in highly qualified programmers , Not hardware and operators , So as to save money and time to speed up development , Without incurring technical debt .