Slide 1

Slide 1 text

Community AWS Community Let’s Build Serverless Apps. Wait, why? donnieprakoso @donnieprakoso go.donnie.id/youtube donnieprakoso Donnie Prakoso Developer Advocate, ASEAN AWS

Slide 2

Slide 2 text

AWS Community Key Takeaways Understand the key reasons of adopting serverless services to run your architecture and essential serverless services you need to use.

Slide 3

Slide 3 text

What is serverless?

Slide 4

Slide 4 text

AWS Community What is serverless? Automatic scaling Highly available and secure Pay for use No infrastructure provisioning, no management

Slide 5

Slide 5 text

AWS Community There’s a paradigm shift happening 5 Level of abstraction Focus on business logic Serverless Physical machines Virtual machines Containerization AWS Lambda AWS Fargate • Continuous scaling • Fault tolerance built-in • Pay for value • Zero maintenance • Focus on business value

Slide 6

Slide 6 text

AWS Community 6 What does the future look like? ALL THE CODE YOU EVER WRITE IS BUSINESS LOGIC

Slide 7

Slide 7 text

Reason #1: No Server Management

Slide 8

Slide 8 text

AWS Community AWS operational responsibility models Compute Virtual machine Amazon EC2 AWS Elastic Beanstalk Lambda Fargate Databases MySQL MySQL on Amazon EC2 Amazon RDS for MySQL Amazon RDS Amazon Aurora DynamoDB Storage Storage S3 Messaging ESBs Amazon MQ Amazon Kinesis EventBridge/SQS/SNS Analytics Hadoop Hadoop on EC2 EMR Amazon OpenSearch Service Amazon Athena Less More

Slide 9

Slide 9 text

AWS Community 9 AWS Lambda — Event-driven function Event Source Function Services / Other Changes in data state Requests to endpoints Changes in resource state Node.js Python Java C# Go Ruby Bring Your Own

Slide 10

Slide 10 text

AWS Community Anatomy of a Lambda Function 10 Handler function • Function executed on invocation • Processes incoming event Event • Invocation data sent to function • Shape differs by event source Context • Additional information from Lambda service • Examples: request ID, time remaining app.py

Slide 11

Slide 11 text

Reason #2: Get to Market, Fast and Secure

Slide 12

Slide 12 text

AWS Community AWS Lambda AWS Fargate Amazon API Gateway Amazon SNS Amazon SQS COMPUTE DATA STORES INTEGRATION Amazon Aurora Serverless Amazon S3 Amazon DynamoDB Amazon EventBridge STREAMING Amazon Managed Streaming for Apache Kafka (MSK) Amazon Kinesis Amazon MQ

Slide 13

Slide 13 text

AWS Community IAM Role for AWS Lambda

Slide 14

Slide 14 text

Reason #3: Effective Scaling and Cost Efficient

Slide 15

Slide 15 text

AWS Community Auto Scaling for Amazon DynamoDB

Slide 16

Slide 16 text

AWS Community AWS Lambda: Fine-grained pricing • Pay for value • Priced by power rating • Charged in 1ms increments • Low per-request charge • No minimum • Never pay for idle Free Tier 1M requests and 400,000 GBs of compute. Every month, every customer.

Slide 17

Slide 17 text

Reason 4: Flexible and Seamless integrations

Slide 18

Slide 18 text

AWS Community Small pieces, loosely joined

Slide 19

Slide 19 text

AWS Community Trigger Configuration — AWS Lambda

Slide 20

Slide 20 text

Reason 5: Faster Response with Events

Slide 21

Slide 21 text

AWS Community Change Data Capture for DynamoDB Streams

Slide 22

Slide 22 text

AWS Community Event-driven architectures drive reliability and scalability Asynchronous Events Improve responsiveness and reduce dependencies Event Routers Abstract producers and consumers from each other Event Stores Buffer messages until services are available to process

Slide 23

Slide 23 text

AWS Community Event Targets AWS Lambda Amazon Kinesis Data Firehose Amazon SNS Additional Targets Amazon EventBridge SaaS Event Sources Event Routers Custom Event Bus SaaS Event Bus Default Event Bus AWS Service Event Sources Topics

Slide 24

Slide 24 text

AWS Community Event-driven Architecture in Serverless Microservices

Slide 25

Slide 25 text

Wrapping up!

Slide 26

Slide 26 text

AWS Community Why serverless? • What is serverless? Serverless as operating model • Focus on products, not infrastructure • Reason #1: No server management • Reason #2: Get to market, fast and secure • Reason #3: Effective scaling and cost efficient • Reason #4: Flexible and seamless integrations • Reason #5: Faster response with Event-Driven • Serverless fits various use cases, i.e. IT Automation, Microservices, Data processing, Serverless frontend/backend, Architectural patterns

Slide 27

Slide 27 text

Community Download the PPT Code Repo + Demo AWS Community https://bit.ly/aws-community-asean-content Thank you donnieprakoso @donnieprakoso go.donnie.id/youtube donnieprakoso Donnie Prakoso Developer Advocate, ASEAN AWS