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

A onda agora é função como serviço

A onda agora é função como serviço

Jonata Weber

April 01, 2017
Tweet

More Decks by Jonata Weber

Other Decks in Programming

Transcript


  1. A onda agora é Função como Serviço

    View Slide

  2. https://fmlnerd.com/2016/08/16/30k-page-views-for-0-21-a-serverless-story/

    View Slide

  3. Server less???

    View Slide

  4. ~devopsless

    View Slide

  5. atividade vs resultado

    View Slide

  6. Hardware

    View Slide

  7. Hardware
    SO

    View Slide

  8. Hardware
    SO
    app

    View Slide

  9. Hardware
    SO
    app

    View Slide

  10. Hardware
    Virtual Machines
    app
    Cloud Computing

    View Slide

  11. Hardware
    Virtual Machines
    app

    View Slide

  12. Hardware
    Virtual Machines
    app
    Backend as a Service (BaaS)

    View Slide

  13. Hardware
    Virtual Machines
    function function function function function

    View Slide

  14. Hardware
    Virtual Machines
    function function function function function
    Function as a Service (FaaS)

    View Slide

  15. Monolítica
    Microservice
    Function
    Function
    Function
    Function
    Function
    Function
    Function
    Function
    Function
    Microservice
    Microservice
    Microservice
    Microservice

    View Slide

  16. Google Cloud Functions

    View Slide

  17. Arquitetura

    View Slide

  18. #1
    Instale o Google Cloud SDK
    https://cloud.google.com/sdk/docs/

    View Slide

  19. #2
    Crie suas funções

    View Slide

  20. View Slide

  21. #3
    Disponibilize suas funções

    View Slide

  22. View Slide

  23. Eventos
    ● HTTP
    ● Cloud Storage
    ● Cloud Pub/Sub
    ● Firebase (DB, Storage, Analytics, Auth)

    View Slide

  24. APIs suportadas
    Cloud Storage
    Cloud Bigtable
    Cloud Spanner
    Cloud Datastore
    Cloud Machine Learning Platform
    Cloud Natural Language API
    Cloud Speech API
    Cloud Translation API
    Cloud Vision API
    Cloud BigQuery
    Cloud Pub/Sub
    Stackdriver Logging
    Firebase (DB, Storage, Analytics, Auth)

    View Slide

  25. Custo

    View Slide

  26. Empresas que suportam FaaS

    View Slide

  27. View Slide

  28. “The Serverless Framework is a core
    component of The Coca-Cola Company's
    initiative to reduce IT operational costs and
    deploy services faster.”
    -- Patrick Brandt, Solutions Architect at The Coca-Cola Company

    View Slide

  29. Demo

    View Slide

  30. View Slide

  31. View Slide

  32. View Slide

  33. View Slide

  34. View Slide

  35. View Slide

  36. Mais exemplos:
    https://serverless.com/framework/docs/providers/aws/examples/
    Exemplo usando Google Cloud Functions
    https://github.com/serverless/examples/tree/master/google-node-simple-http-endpoint

    View Slide

  37. Possibilidades
    ● Aplicações web
    ● Back-ends móveis
    ● Back-ends da IoT
    ● Processamento de arquivos
    ● Processamento de streams
    ● Processamento de reconhecimento de imagens
    ● MapReduce
    ● Chatbots

    View Slide

  38. Considerações finais

    View Slide

  39. Obrigado!
    [email protected]
    @JonataWeber

    View Slide

  40. Referências
    https://martinfowler.com/articles/serverless.html
    https://martinfowler.com/articles/microservices.html
    http://readwrite.com/2012/10/15/why-the-future-of-software-and-apps-is-serverless/
    https://www.iron.io/what-is-serverless-computing/
    https://en.wikipedia.org/wiki/Serverless_computing
    https://www.youtube.com/watch?v=2oNovfw3V08
    https://aws.amazon.com/lambda/
    https://read.acloud.guru/evolution-of-business-logic-from-monoliths-through-microservices-to-functions-ff4
    64b95a44d#.bto01rhmv

    View Slide