Fireship · @fireship

Serverless was a big mistake... says Amazon

Uploaded May 6, 2023 · Length 3:48

Serverless was a big mistake... says Amazon

Summary

Amazon's Prime Video saved 90% on AWS bill by switching from serverless to monolith architecture.

  • serverless
  • monolith architecture
  • amazon web services
  • cloud computing
  • cost optimization

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    it is May 6 2023 and you're watching the

  2. 0:03

    code report serverless is the biggest

  3. 0:04

    lie in the history of computers why you

  4. 0:07

    always lying when you go serverless

  5. 0:09

    you're still using a server it's just

  6. 0:11

    not yours you'll compute nothing and be

  7. 0:13

    happy Amazon Prime video just dropped a

  8. 0:15

    shocking article explaining how they

  9. 0:17

    saved 90 on their Amazon web services

  10. 0:19

    bill by switching from serverless

  11. 0:21

    microservices to an Old-Fashioned

  12. 0:23

    monolith architecture that's great news

  13. 0:25

    for Amazon because it'll save a ton of

  14. 0:27

    money but bad news for Amazon because it

  15. 0:29

    just lost a great Revenue Source the

  16. 0:30

    article is sending shockwaves through

  17. 0:32

    Tech right now because one of the main

  18. 0:33

    claims of the serverless vision is that

  19. 0:35

    you can scale infrastructure more

  20. 0:36

    efficiently which in theory should cost

  21. 0:38

    less money I really appreciate Amazon's

  22. 0:40

    transparency here because they're one of

  23. 0:42

    the original pioneers of serverless with

  24. 0:43

    Lambda functions and nowadays you have

  25. 0:45

    tons of platforms offering serverless

  26. 0:47

    services like Purcell and netlify which

  27. 0:49

    are actually just using and reselling

  28. 0:51

    AWS Services behind the scenes there's

  29. 0:53

    almost an entire industry of startups

  30. 0:55

    that make AWS easier to use including

  31. 0:57

    open source projects like the serverless

  32. 0:59

    framework and S SST but not everyone is

  33. 1:01

    drinking the Kool-Aid like dhh the

  34. 1:03

    creator of Ruby on Rails and Basecamp

  35. 1:05

    has been advocating for Majestic

  36. 1:06

    monoliths for the last decade and took

  37. 1:08

    his entire company off the cloud after

  38. 1:10

    they spent over three million dollars in

  39. 1:12

    one year now they just run their own

  40. 1:13

    servers a lot of successful startups

  41. 1:15

    like Dropbox end up leaving the cloud

  42. 1:17

    once they get big enough however I

  43. 1:18

    personally use serverless for my

  44. 1:20

    projects and it's an absolute game

  45. 1:21

    changer for getting things done quickly

  46. 1:23

    although I have accidentally created a

  47. 1:25

    few infinitely scaling infinite Loops

  48. 1:27

    that could have potentially cost me an

  49. 1:28

    infinite amount of money but what's the

  50. 1:30

    difference between a microservice and

  51. 1:31

    model with architecture at Prime video

  52. 1:33

    they needed a tool to analyze audio

  53. 1:35

    content or issues like video freeze and

  54. 1:37

    Corruption to implement this tool they

  55. 1:40

    use multiple serverless functions called

  56. 1:41

    Step functions which are basically the

  57. 1:43

    same thing as Lambda to handle different

  58. 1:45

    responsibilities you have an initial

  59. 1:46

    entry point which kicks off another

  60. 1:48

    service to do a file conversion that

  61. 1:50

    converts an audio video stream into

  62. 1:52

    frames that can be used by the detector

  63. 1:54

    you've got multiple detectors using

  64. 1:55

    machine learning to analyze the video

  65. 1:57

    then finally you have another function

  66. 1:58

    to aggregate the result and store them