AWS serverless offering

Abhishek Shukla
6 min readMar 24, 2023

Whats is serverless

Serverless computing, also known as serverless architecture is a cloud computing model where the cloud provider manages the infrastructure and automatically allocates and scales resources to execute code in response to events or triggers.

In a serverless environment, developers can focus on writing and deploying individual functions or blocks of code without the need to provision or manage servers or infrastructure.

Serverless benefits

The serverless approach offers several advantages, including:

Serverless Benefits
  1. Simplified infrastructure management: Developers don’t need to worry about provisioning, scaling, or managing servers, allowing them to focus on writing code and building applications.
  2. Event-driven scalability: Serverless platforms automatically scale resources based on the incoming workload, ensuring optimal performance and cost efficiency.
  3. Pay-per-use pricing: With serverless, you typically pay only for the actual execution time of your functions, rather than for constantly running servers, resulting in potentially lower costs.
  4. Rapid development and deployment: Serverless architectures enable faster development cycles, as developers can focus on specific functions and deploy them independently, without waiting for full application deployments.
  5. High availability: Cloud providers handle the underlying infrastructure, ensuring that functions are highly available and resilient to failures.

Serverless offering in Amazon AWS

Serverless offering in azure is devided in may categories

Compute

Serverless Offering in Compute
  • AWS Lambda : AWS Lambda is a serverless, event-driven compute service that lets you run code for virtually any type of application or backend service without provisioning or managing servers. You can trigger Lambda from over 200 AWS services and software as a service (SaaS) applications, and only pay for what you use.
  • AWS Fargate : AWS Fargate is a serverless, pay-as-you-go compute engine that lets you focus on building applications without managing servers. AWS Fargate is compatible with both Amazon Elastic Container Service (ECS) and Amazon Elastic Kubernetes Service (EKS).

Application integration

AWS serverless offerings for applicatin integration
  • Amazon EventBridge : Amazon EventBridge Event Bus is a serverless event bus that helps you receive, filter, transform, route, and deliver events.
  • AWS Step Functions : AWS Step Functions is a visual workflow service that helps developers use AWS services to build distributed applications, automate processes, orchestrate microservices, and create data and machine learning (ML) pipelines.
  • Amazon SQS : Amazon Simple Queue Service (Amazon SQS) lets you send, store, and receive messages between software components at any volume, without losing messages or requiring other services to be available.
  • Amazon SNS : Amazon Simple Notification Service (Amazon SNS) sends notifications two ways, A2A and A2P. A2A provides high-throughput, push-based, many-to-many messaging between distributed systems, microservices, and event-driven serverless applications. These applications include Amazon Simple Queue Service (SQS), Amazon Kinesis Data Firehose, AWS Lambda, and other HTTPS endpoints. A2P functionality lets you send messages to your customers with SMS texts, push notifications, and email.
  • Amazon API Gateway : Amazon API Gateway is a fully managed service that makes it easy for developers to create, publish, maintain, monitor, and secure APIs at any scale. APIs act as the “front door” for applications to access data, business logic, or functionality from your backend services.
  • AWS AppSync : AWS AppSync creates serverless GraphQL and Pub/Sub APIs that simplify application development through a single endpoint to securely query, update, or publish data.

Data Store

AWS Serverless offering for Data
  • Amazon S3 : Amazon Simple Storage Service (Amazon S3) is an object storage service offering industry-leading scalability, data availability, security, and performance. Customers of all sizes and industries can store and protect any amount of data for virtually any use case, such as data lakes, cloud-native applications, and mobile apps. With cost-effective storage classes and easy-to-use management features, you can optimize costs, organize data, and configure fine-tuned access controls to meet specific business, organizational, and compliance requirements.
  • Amazon EFS : Amazon Elastic File System (EFS) automatically grows and shrinks as you add and remove files with no need for management or provisioning.
  • Amazon DynamoDB : Amazon DynamoDB is a fully managed, serverless, key-value NoSQL database designed to run high-performance applications at any scale. DynamoDB offers built-in security, continuous backups, automated multi-Region replication, in-memory caching, and data import and export tools.
  • Amazon RDS Proxy : mazon RDS Proxy is a fully managed, highly available database proxy for Amazon Relational Database Service (RDS) that makes applications more scalable, more resilient to database failures, and more secure.
  • Amazon Aurora Serverless : Amazon Aurora Serverless is an on-demand, autoscaling configuration for Amazon Aurora. It automatically starts up, shuts down, and scales capacity up or down based on your application’s needs. You can run your database in the cloud without managing any database instances.
  • Amazon Redshift Serverless : Amazon Redshift Serverless makes it easy to run and scale analytics without having to manage your data warehouse infrastructure while only paying for what you use.
  • Amazon Neptune Serverless : Amazon Neptune serverless allows you to run and instantly scale graph workloads, without the need to manage and optimize database capacity. With Neptune serverless, you can create a graph database for your workload using the three most popular graph query languages: Apache TinkerPop Gremlin, openCypher, and SPARQL.
  • Amazon OpenSearch Serverless : Amazon OpenSearch Serverless is a serverless option in Amazon OpenSearch Service. As a developer, you can use OpenSearch Serverless to run petabyte-scale workloads without configuring, managing, and scaling OpenSearch clusters. You get the same interactive millisecond response times as OpenSearch Service with the simplicity of a serverless environment.

Scenarios for Serverless

AWS serverless offerings can be applied to a wide range of use cases, providing benefits such as scalability, cost efficiency, and rapid development. Here are some common use cases where AWS serverless technologies excel:

  1. Web Applications: Building web applications with AWS Lambda and Amazon API Gateway allows developers to create scalable and cost-effective backends. They can handle HTTP requests, authentication, and data processing, while scaling automatically based on demand.
  2. Real-time File Processing: Serverless functions can be used to process and analyze data from streaming sources like Amazon Kinesis or Apache Kafka. For example, you can extract insights from logs, analyze social media streams, or perform real-time data transformations.
  3. Data Processing and ETL: AWS Lambda is often used for processing and transforming data, performing extract, transform, load (ETL) tasks, or orchestrating data pipelines. Services like AWS Glue and AWS Step Functions can be combined with Lambda to build scalable and serverless data processing workflows.
  4. Chatbots and Voice Assistants: Serverless architectures are well-suited for building chatbots and voice assistants that interact with users through messaging platforms or voice interfaces. AWS Lambda can handle the backend logic and integrate with services like Amazon Lex or Amazon Polly for natural language understanding and speech synthesis.
  5. Internet of Things (IoT): Serverless functions can process and react to data coming from IoT devices, such as sensor data, telemetry, or device updates. AWS IoT Core can trigger Lambda functions based on device events, enabling real-time processing and decision-making at the edge.
  6. Mobile Backends: AWS serverless offerings are ideal for building mobile backends, providing authentication, data storage, and logic execution. Services like AWS AppSync and AWS Cognito can handle real-time data synchronization, offline capabilities, and user authentication for mobile applications.
  7. Scheduled Tasks and Batch Processing: AWS Lambda supports scheduled triggers, allowing you to automate tasks such as data backups, file processing, report generation, or running batch jobs. By using serverless functions, you can execute these tasks reliably and cost-effectively without the need for dedicated servers.
  8. Event-driven Workflows: AWS Step Functions enables the creation of serverless workflows that coordinate and manage multi-step processes across multiple services. This is useful for building complex, event-driven applications like order processing, user onboarding, or approval workflows.

Summary

AWS provides a rich ecosystem of services that can be combined to create powerful serverless applications, allowing developers to focus on writing code and delivering value while leveraging the scalability and cost-effectiveness of serverless computing.

--

--

Abhishek Shukla

Having 20+ years of IT experience , Enterprise architect . Azure Solution architect expert, Microsft certified trainer, AWS cloud practioner (CLF-C01)