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

Dev Superpowers

Dev Superpowers

Devs these days have superpowers to build massively-scalable systems incredibly quickly.

Presented at vanvouver.dev's DevTalks v5 on 2024-05-28.

Mattias Andersson

May 27, 2024
Tweet

More Decks by Mattias Andersson

Other Decks in Technology

Transcript

  1. Agenda 5 Stories 7 Properties 1 Template Architecture 84 Services

    3 Rules 1 Flowchart 900 Seconds 139 Build Steps 😅
  2. MATTIAS ANDERSSON ‣ SFU Computing Science grad, 2001 ‣ Dev

    on Microsoft Office Shared Services ‣ Many hats in software development: architecture, security, leadership, etc. ‣ Taught hundreds of thousands to architect, build, & run cloud systems ‣ AWS Community Builder, Serverless
  3. Serverless Story 1: How Many Australians Can You Fit on

    a Website? ‣ “Austin Wilshire and Bernd Hartzer received world-wide attention in August [2016] when they built an alternative Australian Bureau of Statistics Census website for $10 million less than the Australian government.” ‣ “The kicker? The official ABS site crashed almost immediately after launching. Whereas, the site created by Austin and Bernd at a weekend hack-a-thon remained stable because it was built using serverless architecture. It also cost less than $500 compared to the government’s $10 million price tag.” ‣ Said Austin: “[T]o set up the actual architecture, it took me most of Saturday because I’d never touched AWS in my life.”
  4. Serverless Story 2: Serverless Startup Shoots for the Stars ‣

    Sam Kroonenburg took 4 weeks off work (as a Dev Manager at Microsoft) ‣ With the goal to build a Learning Management System w/ Video Lessons, Quiz Engine, Online Store, Sign Up / Login, etc. ‣ And asked himself what he could reuse instead of rebuilding ‣ AWS: S3, Lambda, CloudFront, Elastic Transcoder, etc. ‣ Other services: Auth0, Webtask, Firebase DB, Stripe
  5. Good: Combo Cloud ‣ AWS: S3, Lambda, CloudFront, Elastic Transcoder,

    etc. ‣ Other services: Auth0, Webtask, Firebase DB, Stripe ‣ Combo Cloud ‣ “Best in Class” Multi-cloud
  6. Serverless Story 3: Wait, What?!? ‣ Enterprise setting, traditional system

    project of 20 people ‣ 7 months into a 9-month timeline; overrun guaranteed ‣ 2 people built it over the weekend, using Serverless ‣ Took them 1 month to convince team; whole project finished 1 month early !!!
  7. Serverless Story 4: Another Enterprise: Capital One ‣ “It’s been

    nearly a decade since Capital One made the decision to transition to the cloud… ‣ “In 2021, we closed our last remaining data center… ‣ “Much of our success goes to technologies like AWS Serverless Application Model (SAM), which enables our talented developers to do in minutes what previously took months to do.”
  8. Serverless Story 4: Another Enterprise: Capital One Serverless… enables… talented

    developers to do in minutes what previously took months to do. — Capital One, Fortune 150 Company
  9. What is Serverless? To truly spell it out, the term

    “serverless” is a bit of a misnomer. The servers are still there — they’re physically in Amazon’s data centers — SAM simply removes any infrastructure concerns. — Capital One, Fortune 150 Company
  10. The Shape of Serverless Scales: 1. Automatically 2. Linearly (or

    less) 3. Continuously 4. From zero 5. Based on usage 6. Infinitely 7. Transparently (i.e. expertly-managed) Value Cost
  11. Route 53 Cognito CloudFront API Gateway Simple Storage Service (S3)

    Lambda DynamoDB AWS Certificate Manager (ACM) Step Functions
  12. Sample Serverless Services (AWS) — Data / Machine Learning (ML)

    Simple Storage Service (S3) DynamoDB Rekognition Polly Athena Kinesis Data Firehose Glue Comprehend Lex Transcribe Translate SageMaker On-Demand Serverless Inference Elastic Transcoder Kinesis Video Streams
  13. Sample Serverless Services (AWS) — Connection Lambda API Gateway CloudFront

    Certificate Manager (ACM) WAF CloudFront Functions Lambda@Edge EventBridge Step Functions Cognito Simple Queue Service (SQS) Simple Notification Service (SNS) AppSync Route 53 Identity and Access Management (IAM) AWS STS Simple Email Service (SES)
  14. Sample Serverless Services (AWS) — Setup / Management X-Ray CloudWatch

    CloudFormation AWS Config CloudTrail Control Tower AWS Organizations Macie Key Management Service (KMS)
  15. Sample Serverless Services (GCP) ‣ Google Cloud Storage ‣ BigQuery

    ‣ Firestore ‣ Cloud Functions ‣ Cloud Run ‣ Pub/Sub ‣ Workflows ‣ Eventarc ‣ Cloud Translation ‣ Cloud Vision ‣ Text-to-Speech ‣ Speech-to-Text ‣ Document AI ‣ Vertex AI Recommendations Predictions ‣ Vertex AI Generative AI ‣ Cloud CDN ‣ Cloud Build ‣ Artifact Registry ‣ Cloud Shell ‣ Cloud Monitoring ‣ Cloud Logging ‣ Cloud Trace ‣ Error Reporting ‣ …
  16. Sample Serverless Services (Azure) ‣ Azure Blob Storage ‣ Azure

    Functions ‣ Durable Functions ‣ Azure CDN ‣ Queue Storage ‣ Application Insights ‣ App Service Platform ‣ Azure Container Apps ‣ Azure Cosmos DB Serverless APIs ‣ Azure Repos ‣ Azure Artifacts ‣ Azure AI Speech ‣ Azure AI Language ‣ Azure AI Translator ‣ Azure AI Vision ‣ Azure AI Content Safety ‣ Azure AI Document Intelligence ‣ Azure OpenAI Service ‣ Azure Front Door Classic ‣ API Management v1 Consumption ‣ Azure Active Directory External Identities ‣ …
  17. Serverless Story 5 — Story 1 Reprise: More Australians on

    More Websites! ‣ Headline: “Australian Bureau of Statistics runs 2021 Census on the AWS Cloud” ‣ “In preparation for the 2021 Census, the CDS was thoroughly tested for user demand at more than 2,000 times the expected peak workload. … The CDS scaled to serve forms to over 2.5 million people in a 24-hour period on Census Day. At peak time, over 142 forms were submitted per second.” ‣ The Census website is hosted on Amazon Simple Storage Service (Amazon S3) and uses Amazon CloudFront as a content delivery network and AWS WAF and AWS Shield Advanced for security and distributed denial of service (DDoS) protection. The Census form is submitted via a call to Amazon API Gateway, which validates the message format before invoking an AWS Lambda function, which then inserts the data into an Amazon DynamoDB table. DynamoDB Streams and Amazon Simple Queue Service (Amazon SQS) are used to transport the data to ABS’s processing environment. These services, which are highly scalable and serverless, form the core of the CDS.
  18. Serverless Story 5 — Story 1 Reprise: More Australians on

    More Websites! ‣ Steve Hamilton, chief information officer at ABS said, “The Census Digital Service achieved high levels of security, reliability, and scale thanks to the serverless architecture built on AWS. ‣ “The most important benefit of working with AWS is that ABS doesn’t have to worry about building and operating the underlying infrastructure, and ABS can focus on delivering a simple and easy experience for the people of Australia.”