How Server less Computing Works ( Server less Computing Part-2)
How Server less Computing Works
Event-Driven Model: Serverless applications are typically designed around events. An event is any action that triggers a serverless function, such as an HTTP request, a file upload, a database update, or a message from a queue. When an event occurs, the serverless platform automatically executes the relevant function (a block of code that handles the event).
Managed by the Cloud Provider: All server-related activities like infrastructure provisioning, scaling, patching, monitoring, and fault tolerance are handled by the cloud provider. This offloads infrastructure concerns from developers.
Stateless Functions: Serverless computing generally works with stateless functions. Every time an event triggers a function, a new instance of the function is invoked, without any memory of previous executions. For tasks requiring state, developers typically integrate external services such as databases or distributed caches.
On-Demand Execution and Scaling: Serverless computing automatically scales with the load. If 1,000 users simultaneously trigger a function, the cloud provider spins up enough instances of the function to handle all the requests. Once the execution is complete, the resources are released. This elasticity makes serverless ideal for highly variable workloads.
Pay-as-You-Go Model: In a traditional cloud environment, you pay for server instances whether they are being used or not. With serverless, you only pay for the actual execution time of your code. This model is highly cost-efficient for workloads that don’t require continuous computation.
Comments
Post a Comment