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

Serverless avec Google Cloud : Comment mettre rapidement en production vos applications ?

Serverless avec Google Cloud : Comment mettre rapidement en production vos applications ?

Sur Webikeo: https://webikeo.fr/webinar/serverless-avec-google-cloud-comment-mettre-rapidement-en-production-vos-applications-2
Avec Thibault Ruaro: https://twitter.com/thibaultruaro

L'univers de l'hébergement Cloud est très vaste et nécessite de s'approprier de nouveaux paradigmes afin d'exploiter au maximum ces infrastructures.

Le Serverless est une solution Cloud qui permet de rapidement mettre en production vos applications :
le serveur et le runtime sont gérés directement par la solution permettant aux équipes de développement de se concentrer sur le code métier.

Que ce soit avec Google App Engine, la solution de PaaS (Platform as a Service) ou encore avec les Cloud Functions, la solution FaaS (Function As a Service) ou encore Cloud Run, GCP fournit un environnement et des outils pour être productif dans le Cloud.

Grâce à notre partenariat avec Google Cloud, Zenika est fier de proposer ce webinar de 1h autour du Serverless.

2e4c5b50c932d746d0a060047df5f6f9?s=128

Julien Landuré

November 30, 2021
Tweet

Transcript

  1. None
  2. Thibault RUARO Consultant Formateur Google Cloud 2x certified & Official

    Trainer Auteur d’articles @truar
  3. Julien LANDURÉ CTO Zenika Google Cloud 2x certified & Official

    Trainer Auteur d’articles @jlandure
  4. Back to the future...

  5. App Engine in 2010

  6. Value x Complexity

  7. Containerization

  8. Docker in 2016

  9. Value x Complexity

  10. Orchestration

  11. Kubernetes in 2018

  12. Value x Complexity

  13. Wait! Kubernetes can do so much...

  14. Value x Complexity

  15. Serverless

  16. Timeline *aas AWS Google Cloud 2008 PaaS 2006 IaaS 2012

    IaaS 2011 PaaS 2014 CaaS & FaaS 2014 CaaS 2016 FaaS Azure 2013 IaaS & PaaS 2016 CaaS & FaaS
  17. Cloud Run in 2019 Cloud Functions App Engine Cloud Run

  18. Value x Complexity

  19. Serverless computing refers to the concept of building and running

    applications that do not require server management. It describes a finer-grained deployment model where applications, bundled as one or more functions, are uploaded to a platform and then executed, scaled, and billed in response to the exact demand needed at the moment. Serverless definition https://github.com/cncf/wg-serverless/tree/master/whitepapers/serverless-overview
  20. Value x Complexity

  21. The Serverless spectrum on Google Cloud

  22. Operational Model Programming Model No Infra Management Managed Security Pay

    only for usage Service-based Event-driven Stateless Serverless
  23. Virtual Machine OS Application Runtime Application Virtual Hardware Dedicated Server

    OS Application Runtime Application Virtual Hardware Containers OS Application Runtime Application Virtual Hardware Functions Functions Functions Application Platform OS Application Runtime Application Virtual Hardware Functions Serverless OS Application Runtime Application Virtual Hardware Functions Infrastructure Container Platform Function Compute Engine Kubernetes Engine App Engine Cloud Functions On-Premises Serverless Zone Physical Hardware Cloud Run
  24. Serverless functions Serverless web applications Serverless HTTP workloads Source code-based

    event driven functions Source code-based web apps and API backends HTTP containers fully managed HTTP containers on GKE cluster Cloud Functions App Engine Cloud Run Serverless compute options
  25. Cloud Run

  26. Containers Any language Any library Any binary Ecosystem of base

    images .js .rb .go .py .sh … 0 1 0 1 0 0 1 1 1
  27. Cloud Run Fully managed, deploy your workloads and don’t see

    the cluster. Cloud Run on Anthos Deploy into Anthos, run serverless side-by-side with your existing workloads. Knative Everywhere Use the same APIs and tooling anywhere you run Kubernetes with Knative. Serverless containers with Knative & Cloud Run
  28. Container contract Listen on 0.0.0.0 on port $PORT (default 8080)

    HTTP server must start < 4 min (timeout → 504) Request time < 60 min (default → 5 min) Stateless (in-memory file system, doesn’t persist) Computation only within request (No background activity)
  29. Container resources 1 vCPU per container instance (configurable to 4vCPU)

    512 MiB of memory up to a max of 8 GiB (configurable) 80 concurrent requests per container (configurable 1-1000) 1000 max containers by default (configurable 1-1000) Access to a Metadata Server Sandboxed by gVisor
  30. Pay per use CPU / Memory / Requests 100ms Pay

    per use
  31. Good fit? Constraints? Good fit Stateless HTTP request-response workloads Scale:

    way up, down to zero, bursty Any runtime: any language, any dependencies, etc Constraints Must use containers No background tasks
  32. What’s new ? Min instances Buildpacks

  33. Demo 🤞

  34. Serverless trends State of Serverless 2020 report

  35. • Serverless solutions cover the majority of app use cases

    • Serverless can be interoperable • Serverless enable a better Dev Experience (local emulator & buildpacks) • Serverless container solutions are the future ◦ Cloud Run is one of the TOP project Google Cloud ◦ Release of AWS App Runner ◦ Preview of Azure Container Instance PREVIEW Our point of view
  36. • 👍 Un sujet tendance avec de vrais concepts •

    💪 Un usage “Serverless” large ◦ PubSub & Messaging ◦ Cloud SQL & Serverless exports ◦ Google BigQuery “serverless data warehouse” ◦ AutoML & IA services • 💸 Démarche FinOps : des tarifs avantageux ! • 🔐 Moins de choses à gérer 👉 meilleure sécurité Serverless Everywhere
  37. Thibault RUARO @thibaultruaro Merci 🙌 Avez-vous des questions ? Questionnaire

    de satisfaction https://links.zenika.com/link/gcp-serverless-survey Julien LANDURÉ @jlandure
  38. None