Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Let's Build Serverless Apps. Wait, why?

Let's Build Serverless Apps. Wait, why?

Serverless is an operating model, where we delegate various activities that do not provide value to our business to other parties. By delegating these things, we can focus on improving business logic and not worrying about infrastructure.

At the end, serverless enables us to have less code, less liability, better integration, better application, more focus, more values to deliver. These are the real values for developers.

This talk will describe few reasons why adopting AWS serverless services might be a good approach for you.

Donnie Prakoso

June 17, 2022
Tweet

More Decks by Donnie Prakoso

Other Decks in Technology

Transcript

  1. Community AWS Community Let’s Build Serverless Apps. Wait, why? donnieprakoso

    @donnieprakoso go.donnie.id/youtube donnieprakoso Donnie Prakoso Developer Advocate, ASEAN AWS
  2. AWS Community Key Takeaways Understand the key reasons of adopting

    serverless services to run your architecture and essential serverless services you need to use.
  3. AWS Community What is serverless? Automatic scaling Highly available and

    secure Pay for use No infrastructure provisioning, no management
  4. 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
  5. AWS Community 6 What does the future look like? ALL

    THE CODE YOU EVER WRITE IS BUSINESS LOGIC
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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.
  11. 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
  12. 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
  13. 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
  14. 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