Day 17: πππ πππ¦πππ
2 min readNov 8, 2023
πππ πππ¦πππ:
π Serverless-developers donβt have to manage servers anymore
π Fully managed serverless ec2 is AWS Lambda, cost effective
π Maximum execution time: 900 seconds (15 minutes)
π Integrated with many programming languages
What is Event-Driven Architecture: Lambda functions can be triggered by various AWS services (e.g., S3, API Gateway, SNS, etc.) and custom events. This enables event-driven and reactive application design.
- Auto-Scaling: Lambda functions automatically scale based on the incoming traffic or events. You donβt need to configure the scaling settings manually.
- Stateless and Parallel Execution: Lambda functions are designed to be stateless, which promotes horizontal scaling. They can execute in parallel, and you can run multiple instances of a function simultaneously to handle increased workloads.
- Logging and Monitoring: AWS Lambda provides built-in logging and monitoring capabilities through services like Amazon CloudWatch, which allows you to track the performance and troubleshoot issues in your functions.
- Security and Permissions: You can define fine-grained permissions and access control policies for your Lambda functions using AWS Identity and Access Management (IAM), enhancing security.
Use cases:
- Real-time Data Processing:
- This use case is valuable for processing and analyzing streaming data, making it highly relevant for IoT applications, social media analysis, and more. It enables you to extract real-time insights from data streams, which can be critical for making timely decisions and detecting anomalies.
2.Serverless Microservices:
- Building serverless microservices with AWS Lambda allows you to create a flexible and scalable architecture. It is useful for various scenarios, such as e-commerce systems, authentication and authorization, and content delivery networks, where you need to break down your application into smaller, manageable components that can operate independently and be seamlessly scaled.
3.Real-time Notifications:
- Real-time notifications are essential in many applications, including mobile apps, web applications, and IoT devices. AWS Lambda can be used to send notifications via email, SMS, or push notifications in response to specific events, keeping users informed and engaged.