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

Zašto Cloud, AWS i Serverless

Zašto Cloud, AWS i Serverless

Prezentacija sa OpenIT konferencije 2020.

Darko Mesaros

October 18, 2020
Tweet

More Decks by Darko Mesaros

Other Decks in Technology

Transcript

  1. Zašto Cloud, AWS, i serverless?
    Darko Mesaroš
    Developer Advocate - AWS
    @darkosubotica
    ln/darko-mesaros
    twitch.tv/ruptwelve
    youtu.be/ruptwelve

    View Slide

  2. Ciljevi za Danas!
    • Zašto Cloud?
    • Zašto AWS?
    • Šta je, i zašto je Serverless?
    • (bonus: užasni prevodi na Srpski)

    View Slide

  3. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

    View Slide

  4. View Slide

  5. Photo by Omer Rana on Unsplash

    View Slide

  6. View Slide

  7. View Slide

  8. View Slide

  9. View Slide

  10. Dobro Darko, ne treba baš odma sve to da se ima …

    View Slide

  11. View Slide

  12. View Slide

  13. Photo by Dominik Schröder on Unsplash

    View Slide

  14. View Slide

  15. Zašto Cloud Infrastruktura?
    Uvećana Agilnost i
    performanse
    Skoro
    neograničena
    skalabilnost
    Uvećana
    pouzdanost
    Niži troškovi
    Maksimalna Sigurnost

    View Slide

  16. $(whoami) Darko Mesaroš / Darko Meszaros /
    Дарко Месарош
    ! → " → # → $ → %
    Berlin !
    @darkosubotica
    ln/darko-mesaros
    twitch.tv/ruptwelve
    youtube.com/ruptwelve

    View Slide

  17. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

    View Slide

  18. View Slide

  19. View Slide

  20. View Slide

  21. Šta je AWS?
    Sve što postoji, a da je bitno
    u Vašem Datacentru

    View Slide

  22. View Slide

  23. Customer obsessed
    našeg roadmapa dolazi od zahteva klijenata
    90%

    View Slide

  24. Globalna Platforma
    AWS globalna infrastruktura
    • 24 AWS Regions with 76 Availability
    Zones
    • 5 new AWS Regions coming soon:
    Indonesia, Italy, Japan, South Africa,
    Spain
    • 16 new AZs planned
    216 CloudFront PoPs
    • 205 edge locations
    • 11 regional edge caches
    • 84 cities across 42 countries
    AWS globalna mreža
    • Redundant 100 GbE network
    • 100% encrypted between facilities
    • Private network capacity between
    all AWS Regions except China

    View Slide

  25. A šta ja to tačno mogu u Cloudu?

    View Slide

  26. Amazon EC2
    Virtual servers in the cloud
    Physical servers in
    AWS global Regions
    Guest 1 Guest 2 Guest n
    Hypervisor
    Host server
    EC2 instances

    View Slide

  27. Amazon
    Aurora
    Amazon
    RDS
    Amazon
    DynamoDB
    Amazon
    DocumentDB
    Amazon
    Timestream
    Amazon
    Neptune
    Amazon
    ElastiCache
    Amazon
    QLDB
    Purpose-built databases

    View Slide

  28. Amazon S3
    Durable, available, exabyte-scalable
    Secure, compliant, auditable
    High performance
    Low-cost storage and analytics
    Broad network integration
    Amazon S3
    AWS Lake Formation
    & AWS Glue
    AWS
    Snowball
    Amazon Kinesis
    Data Streams
    AWS
    Snowmobile
    Amazon
    Kinesis
    Data Firehose
    Amazon
    Redshift
    Amazon
    EMR
    Amazon
    Athena
    Amazon Kinesis
    Amazon
    Elasticsearch
    Service
    Amazon
    SageMaker
    Amazon
    Comprehend
    Amazon
    Rekognition

    View Slide

  29. VISION SPEECH TEXT SEARCH CHATBOTS PERSONALIZATION FORECASTING FRAUD DEVELOPMENT
    CONTACT
    CENTERS
    Ground
    Truth
    AWS Marketplace
    for ML
    Neo
    Augmented
    AI
    Built-in
    algorithms
    Notebooks Experiments Processing
    Model training
    and tuning
    Debugger Autopilot
    Model
    hosting
    Model
    Monitor
    Deep Learning
    AMIs & Containers
    GPUs &
    CPUs
    Elastic
    Inference
    Inferentia FPGA
    Amazon
    Rekognition
    Amazon
    Polly
    Amazon
    Transcribe
    +Medical
    Amazon
    Lex
    Amazon
    Personalize
    Amazon
    Forecast
    Amazon
    Comprehend
    +Medical
    AI SERVICES
    ML SERVICES
    ML FRAMEWORKS & INFRASTRUCTURE
    Amazon
    Textract
    Amazon
    Kendra
    Contact Lens
    For Amazon Connect
    SageMaker Studio IDE
    Amazon
    CodeGuru
    Amazon
    SageMaker
    DeepGraphLibrary
    Amazon
    Fraud Detector
    Amazon
    Translate
    The AWS ML Stack
    Broadest and most complete set of machine learning capabilities

    View Slide

  30. View Slide

  31. View Slide

  32. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

    View Slide

  33. Tradicionalna three-tier application
    arhitektura
    Web servers
    Presentation layers
    Application
    servers
    Business logic
    Database servers
    Data layer

    View Slide

  34. Moderna three-tier application arhitektura
    Presentation
    Business logic
    Data
    Queues/messages
    Events Events
    APIs

    View Slide

  35. APIs are the front door of
    microservices

    View Slide

  36. Events are the connective tissue of
    modern applications

    View Slide

  37. A decoupled data strategy improves fault
    tolerance

    View Slide

  38. Decoupling state from servers improves
    resilience and handles error cases better

    View Slide

  39. View Slide

  40. Queues/messages
    Events Events
    APIs

    View Slide

  41. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

    View Slide

  42. Computing evolution – A paradigm shift
    LEVEL OF ABSTRACTION
    FOCUS ON BUSINESS LOGIC
    PHYSICAL MACHINES
    Requires “guess” planning
    Lives for years on-premises
    Heavy investments (capex)
    Low innovation factor
    Deploy in months

    View Slide

  43. Computing evolution – A paradigm shift
    LEVEL OF ABSTRACTION
    FOCUS ON BUSINESS LOGIC
    VIRTUAL MACHINES
    Hardware independence
    Faster provisioning speed (minutes/hours)
    Trade capex for opex
    More scale
    Elastic resources
    Faster speed and agility
    Reduced maintenance

    View Slide

  44. Computing evolution – A paradigm shift
    LEVEL OF ABSTRACTION
    FOCUS ON BUSINESS LOGIC
    CONTAINERIZATION
    Platform independence
    Consistent runtime environment
    Higher resource utilization
    Easier and faster deployments
    Isolation and sandboxing
    Start speed (deploy in seconds)

    View Slide

  45. Computing evolution – A paradigm shift
    AWS Lambda
    AWS Fargate
    LEVEL OF ABSTRACTION
    FOCUS ON BUSINESS LOGIC
    Continuous scaling
    Fault tolerance built-in
    Pay for value
    Zero maintenance
    SERVERLESS

    View Slide

  46. Serverless znači?

    View Slide

  47. Šta je Bezserverje?
    No infrastructure to manage Automatic scaling
    Pay for value Highly available and secure

    View Slide

  48. Serverless != just FaaS

    View Slide

  49. AWS
    Lambda
    AWS
    Fargate
    Amazon
    API Gateway
    Amazon
    SNS
    Amazon
    SQS
    AWS
    Step Functions
    COMPUTE
    DATA STORES
    INTEGRATION
    AWS
    AppSync
    Amazon Aurora
    Serverless
    Amazon
    S3
    Amazon
    DynamoDB
    Amazon
    EventBridge

    View Slide

  50. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

    View Slide

  51. Web application

    View Slide

  52. Mobile application

    View Slide

  53. Data Processing

    View Slide

  54. Positive Chat – Serverless architecture
    Amazon
    DynamoDB
    Amazon
    Cognito
    Amazon API
    Gateway
    WebSocket
    connection
    PositiveChat
    Lambda function
    Connections
    table
    Conversations
    table
    Topics
    table
    Web
    browser
    AWS Cloud
    S3 bucket for
    static assets
    (HTML, CSS, JS)
    Authentication
    Authorization
    To be implemented
    Amazon
    Comprehend
    Amazon
    Translate
    Amazon
    Rekognition
    To be implemented
    https://github.com/danilop/serverless-positive-chat

    View Slide

  55. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

    View Slide

  56. How-to: Serverless Application
    Replace heavy infrastructure Reduce your code
    Start small Use Frameworks

    View Slide

  57. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

    View Slide

  58. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.

    View Slide

  59. Malo knjiga
    Full Stack Serverless
    by Nader Dabit
    Running Serverless
    by Gojko Adžić

    View Slide

  60. “Create application” experience
    Create a serverless application
    from a starter template
    • AWS SAM template for IaC
    • CI/CD pipeline
    • Clone locally for
    development with AWS SAM
    CLI

    View Slide

  61. Malo podcasta
    https://anchor.fm/awsovanje

    View Slide

  62. Thank you!
    © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    Darko Mesaroš
    Developer Advocate - AWS
    @darkosubotica
    ln/darko-mesaros
    twitch.tv/ruptwelve
    youtu.be/ruptwelve

    View Slide