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

Serverless is dead, long live to Serverless!

Serverless is dead, long live to Serverless!

Some time ago a piece of news shocked the entire IT world: the Prime Video team abandoned the serverless microservices architecture to embrace the good old monolith. Many commentators quickly shared the news, issuing their verdict: serverless is dead!

But... is it really like that? In reality, things are a little bit different and if we can read the original post without any bias, we could even say that the whole story is excellent news for the serverless world and a great example of evolutionary architecture.

Together, we will delve into its essence and discover why it could be a rebirth rather than the final act.

Mariano Calandra

October 19, 2023
Tweet

More Decks by Mariano Calandra

Other Decks in Programming

Transcript

  1. Drawbacks (on big project) Slower dev. speed Global scaling Cascading

    failure Tech. stack blocked Difficult to evolve
  2. Microservices Service1 project’s scope Class A Class B Class C

    Service2 project’s scope Class D Class E Class F
  3. Serverless computing is a cloud computing execution model in which

    the cloud provider allocates machine resources on demand, taking care of the servers on behalf of their customers. High availability Elasticity Pay-as-you-go Fault tolerant
  4. Bid producer Bid capture Bid tracking Bid analytics Topic (pub/sub)

    Extensibility, Decoupling Data access, homogeneous contracts
  5. Bid producer Bid capture Bid tracking Bid analytics Queues (point-to-point)

    Data persistence, heterogeneous contracts Poor exstensibility, low decoupling
  6. Cohesion «the degree to which the elements inside a module

    belong together» Low cohesion for functionality
  7. Cohesion «the degree to which the elements inside a module

    belong together» High cohesion for functionality
  8. «We realized that distributed approach wasn’t bringing a lot of

    benefits in our specific use case, so we packed all of the components into a single process» Orchestrator Media converter Defect detector Monitoring service
  9. «We designed our initial solution as a distributed system using

    serverless components, which was a good choice for building the service quickly.»
  10. «[…] the overall cost of all the building blocks was

    too high to accept the solution at a large scale.»
  11. I am AWS specialist in VAR Group Mariano Calandra Work

    with us Blog: marianocalandra.medium.com LinkedIn: www.linkedin.com/in/marianocalandra
  12. Q&A

  13. Further reading • Scaling up the Prime Video audio/video monitoring

    service and reducing costs by 90% – AWS Blog • Is serverless overpriced? What can we learn from the PrimeVideo team? – Yan Cui • Even Amazon can't make sense of serverless or microservices – DH Hansson • Monoliths are not dinosaurs – W. Wogels • Foundamentals of Software Architectures – M. Richards & N. Ford • Building Microservices – S. Newman