The Modern
Stack: Building
Web & AI
Applications
with Serverless
Arsy Opraza Akma
Associate Lead Curriculum Developer At Dicoding,
AWS Community Builders
Education:
Arsy Opraza Akma
Work Experiences:
● Associate Lead Curriculum
Developer at Dicoding
● Curriculum Developer At
Dicoding
● UNIKOM Bandung,
Informatics Engineering.
Also follow us @awsugbandung
Skill Issue
Complexity
Complexity
Operational Overhead
Patching
Scaling
Installation
Storage Management
Coding
Deployment
Scalability Issue
Build Modern Applications on AWS
What if we could focus 100% on our code
and features, not our servers?
What if we could only pay for the compute
time we actually use?
Empowering Developers: Focusing on the Code
Patching
Scaling
Installation
Storage Management
Coding
Deployment
What is Serverless?
Run code, manage data, and integrate applications, all without
managing servers. With serverless operational model, there are no
servers to provision, patch, or manage and there is no software to
install, maintain, or operate.
Traditional Development
Changes to Serverless
Event-driven Architecture (EDA)
Is a modern architecture pattern, uses events to trigger and communicate between decoupled services and
is common in modern applications built with microservices.
An event is a change in state, or an update, like an item being placed in a shopping cart on an e-commerce
website.
Reduced
Operational
Cost
Speed to Market Scalability
Key Benefits of Serverless
https://www.datadoghq.com/state-of-containers-and-serverless/
How Serverless Solves Production-Scale
Challenges ???
Serverless is More Than Just Compute
“”
There are servers in
serverless, but developer
don’t have to worry about
servers.
- Sapri
Overview of AWS Lambda
AWS Lambda is a compute service that runs code without the need to
manage servers. Your code runs, scaling up and down automatically, with
pay-per-use pricing.
In Lambda, you write function code. Lambda runs the functions. That’s it.
There are no servers.
AWS Lambda Pricing
Charged based on the number of
requests for your functions and the
duration it takes for your code to
execute.
The AWS Lambda free tier includes one
million free requests per month and
400,000 GB-seconds of compute time
per month.
Lambda Function Input
Process
Output
More Detail
Video Version:
Demo Serverless with Golang
Source code:
Lambda Design Approaches
Microfunctions: Single responsibility
Lambdalith
Lambda Runtime
Lambda Supports OS-only Runtimes
To create Lambda functions in a programming language that is not available
as a managed runtime.
Run Web App with Lambda Web Adapter
● Run familiar web frameworks on Lambda.
● No new code dependency to include.
● No additional costs.
Build With Your Favorite Framework
The Lambda Web Adapter in Practice
AWS Lambda Web Adapter work with Lambda functions packaged as both docker images and Zip
packages.
To use Lambda Web Adapter with docker images, package your web app (http api) in a Dockerfile, and add
one line to copy Lambda Web Adapter binary to /opt/extensions inside your container.
Infrastructure as Code (IaC)
Build, Test, and Deploy with AWS SAM
Overview of AWS SAM
AWS SAM (Serverless Application Model) is an open source framework you can use to build
serverless applications on AWS.
Using a simple YAML template, you can use to describe your application.
When developing a serverless application with AWS SAM, you primarily interact with two
components:
● AWS SAM template – An important file that defines your AWS resources.
● AWS SAM CLI – A command line tool that you can use with your AWS SAM project to
build and run your serverless applications.
AWS SAM Demo
What if you could package your model
once, run it anywhere, and scale it
automatically?
Run Containerized Applications at Any Scale
Amazon Elastic Container Service (Amazon ECS) is a fully managed
container orchestration service that helps you easily deploy, manage, and
scale containerized applications.
Deploy and scale AI/ML workloads including model inference, fine-tuning,
and agentic workflows with Amazon ECS.
AWS Fargate Makes it Easy to Scale
AWS Fargate lets you run applications without worrying about servers (serverless).
You only pay for what you use, and it automatically handles things like server management, resource
allocation, and scaling.
AWS ECR: Managed Container Registry
Amazon Elastic Container Registry (Amazon ECR) as a centralized
repository for storing and distributing Docker container images within an
organization or for public consumption.
Why Using Containers?
https://www.datadoghq.com/state-of-containers-and-serverless/
Demo Deploy Model with ECS
Steps:
● Create a container image.
● Build the image and push it to
AWS ECR.
● Create an AWS ECS cluster.
● Create a task definition.
● Create a service.
Local AWS Services with Localstack
LocalStack is a local cloud emulator that lets you build and test cloud applications entirely on your machine.
Thank You
arasopraza
Arsy Opraza
arsyopraza
arasopraza
Get in touch
aras@dicoding.com youtube.com/@arasopraza

[BDD 2025 - Full-Stack Development] The Modern Stack: Building Web & AI Applications with Serverless