[BDD 2025 - Full-Stack Development] The Modern Stack: Building Web & AI Applications with Serverless
1.
The Modern
Stack: Building
Web& AI
Applications
with Serverless
Arsy Opraza Akma
Associate Lead Curriculum Developer At Dicoding,
AWS Community Builders
3.
Education:
Arsy Opraza Akma
WorkExperiences:
● Associate Lead Curriculum
Developer at Dicoding
● Curriculum Developer At
Dicoding
● UNIKOM Bandung,
Informatics Engineering.
What is Serverless?
Runcode, 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.
Event-driven Architecture (EDA)
Isa 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.
“”
There are serversin
serverless, but developer
don’t have to worry about
servers.
- Sapri
24.
Overview of AWSLambda
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.
25.
AWS Lambda Pricing
Chargedbased 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.
● Run familiarweb frameworks on Lambda.
● No new code dependency to include.
● No additional costs.
Build With Your Favorite Framework
35.
The Lambda WebAdapter 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.
Overview of AWSSAM
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.
What if youcould package your model
once, run it anywhere, and scale it
automatically?
43.
Run Containerized Applicationsat 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.
44.
AWS Fargate Makesit 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.
45.
AWS ECR: ManagedContainer 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.
Demo Deploy Modelwith 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.
48.
Local AWS Serviceswith Localstack
LocalStack is a local cloud emulator that lets you build and test cloud applications entirely on your machine.