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

AWS Lambda function

AWS Lambda function

- Introducing serverless
- Lambda best practices
- Principles of serverless architecture
- Serverless pros and cons
- Common serverless architecture
- Demo

thanhgit

May 04, 2022
Tweet

More Decks by thanhgit

Other Decks in Technology

Transcript

  1. Deploying serverless
    apps in AWS
    Presenter: Thanh Nguyen

    View Slide

  2. Content
    - Introducing serverless
    - Lambda best practices
    - Principles of serverless architecture
    - Serverless pros and cons
    - Common serverless architecture
    - Demo

    View Slide

  3. Marketing buzzword: Serverless ?
    - Serverless is a method of deploying and running applications on cloud
    infrastructure. Serverless platform provider is responsible for capacity,
    scaling, balancing and monitoring
    - Characteristics of Lambda function:
    - Go to market
    - Low cost, adapt at scale
    - Build better applications, easier

    View Slide

  4. Lambda function on AWS

    View Slide

  5. Lambda execution model

    View Slide

  6. Anatomy of lambda function

    View Slide

  7. Lambda best practices
    - Minimize dependencies
    - Leverage “Max memory used” to right-size your functions to
    optimize cost
    - Delete large unused functions (75GB limit per region)

    View Slide

  8. How serverless starting

    View Slide

  9. 3-tier architecture VS serverless architecture

    View Slide

  10. Principles of serverless architecture
    - Write single-purpose stateless functions (single responsibility
    principle)
    - Create thicker, more powerful front-ends
    - Embrace third-party services

    View Slide

  11. Serverless pros and cons
    - Serverless is not a silver bullet in all circumstances. But serverless
    architecture are the latest advance for developers and
    organizations to think about, study and adopt

    View Slide

  12. Serverless cons
    - Not good for latency-sensitive apps
    - Lambda runs in the public cloud, so mission-critical apps shouldn’t
    be based on it
    - Increase complexity when moving from a monolithic approach to a
    more serverless approach

    View Slide

  13. Serverless pros
    - Serverless architecture allow developers focus on software design,
    code rather than infrastructure
    - Low cost, less code, scalable and flexible is good fit for
    startups that want to innovate and move quickly
    - For example:
    - Netflix use lambda to automate validate for backup completions
    - ConnectWise use lambda to process logs such as: extract, transform, load jobs,
    real-time file processing

    View Slide

  14. Compute as backend

    View Slide

  15. Compute as glue (pipeline)

    View Slide

  16. Demo

    View Slide