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

Ton propre kilt, tissé avec des microservices !

Ton propre kilt, tissé avec des microservices !

Oui, sérieusement, un kilt, tissé avec des microservices, à la mode serverless ! Pourquoi pas ? Vous allez pouvoir repartir avec une photo de vous portant votre propre kilt, avec le motif tartan que vous aurez dessiné vous-même. Et tout cela avec une application déployée sur l’infrastructure de Google Cloud, basée sur des microservices écrits en différents langages, qui tournent sur Cloud Functions, ou encore App Engine.

Nous verrons ensemble comment construire et déployer une telle application, à base de microservices qui réagissent à des événements (stockage d’image), en échangeant des messages via Pub/Sub, en réagissant à des changements dans la la base de données distribuée Firestore. Au delà des fonctions et des applications, nous verrons aussi que l’on peut faire tourner des containers en serverless. Et enfin vous saurez si vous avez le look pour porter un vrai kilt d’Highlander !!!

Guillaume Laforge

May 16, 2019
Tweet

More Decks by Guillaume Laforge

Other Decks in Technology

Transcript

  1. Ton propre kilt,
    tissé avec des
    microservices
    Guillaume Laforge
    Developer Advocate, Google
    @glaforge

    View full-size slide

  2. Once upon
    a time...
    It all started with a fun idea!

    View full-size slide

  3. Weaving...
    microservices

    View full-size slide

  4. Serverless in
    Google Cloud
    Solutions to run your microservices

    View full-size slide

  5. Serverless compute
    No Server
    Management
    Operational Model
    Fully Managed
    Security
    Pay only
    for usage
    Programming Model
    Open
    Event-driven
    Service-based

    View full-size slide

  6. Compute
    Data Analytics ML & AI
    Database &
    Storage
    Smart
    assistants &
    chat
    DevOps
    Messaging
    Full-stack
    serverless
    on Google Cloud

    View full-size slide

  7. Serverless HTTP
    applications Sourced-based web apps
    App Engine
    Serverless
    functions
    and events
    Source-based event
    driven functions
    Cloud
    Functions
    Serverless HTTP
    containers
    Fully managed HTTP
    req/res containers
    HTTP req/res
    containers on GKE
    Cloud Run

    View full-size slide

  8. Cloud Functions
    Serverless functions
    Managed compute: auto-scaling, no infrastructure
    management, pay-per-use
    Streamlined development model
    Write function code, then issue one command to get it
    running
    Events integration
    Run in response to events delivered via HTTP or events
    emitted by other GCP products

    View full-size slide

  9. App Engine Standard
    Source-based developer experience
    Supports multiple language runtimes including
    Node, Python, Java, Go, Ruby, PHP & .NET.
    Optimized for web applications running web app
    frameworks like ExpressJS, Flask or Spring
    Advanced management features
    Application versioning, traffic splitting, auto-TLS
    (https), custom domains, IP firewall, integrated
    logging, monitoring and alerting

    View full-size slide

  10. Serverless agility for containerized apps
    Cloud Run
    One experience,
    where you want it
    One developer experience
    Fully managed or
    Your GKE cluster
    Consistent APIs & tooling
    Portable with Knative
    Without vendor lock-in
    Natively
    Serverless
    No servers to manage
    Focus on writing code
    Scale up fast
    Scale down to zero
    Pay for exact usage
    Container to production
    in seconds
    Just "deploy"
    Any stateless container
    Any language, any library
    URL in seconds

    View full-size slide

  11. Architectural
    diagram
    Or see how well I draw...

    View full-size slide

  12. Demo time!
    Well… sort of...

    View full-size slide

  13. Lessons
    learned
    Yes, there are some :-)

    View full-size slide

  14. I’m not a
    frontend
    developer!

    View full-size slide

  15. Focus on the
    MVP, to find
    the hurdles...

    View full-size slide

  16. Right tool
    for the job?

    View full-size slide

  17. A monolith isn’t
    necessarily bad!

    View full-size slide

  18. Thank you!
    glaforge@

    View full-size slide

  19. App
    Engine
    Java 11
    Cloud
    Functions
    Java 8

    View full-size slide