Arquitetura Orientada a Eventos no mundo Serverless

Arquitetura Orientada a Eventos no mundo Serverless

439e623c5d770ae0da8e61ec08452032?s=128

Vinicius Gomes

April 23, 2018
Tweet

Transcript

  1. ARQUITETURA ORIENTADA A EVENTOS NO MUNDO SERVERLESS Vinicius Gomes 1

  2. VINICIUS GOMES Desenvolvedor na ThoughtWorks vvgomes.com/blog twitter.com/vvgomes 2

  3. EXEMPLO Online Restaurant 3

  4. ONLINE RESTAURANT 4 Customers Menu Orders

  5. ONLINE RESTAURANT 4 Customers Menu Orders

  6. ONLINE RESTAURANT 4 Customers Menu Orders

  7. ONLINE RESTAURANT 5 Customers Menu Orders Event !

  8. ONLINE RESTAURANT 5 Customers Menu Orders " Event !

  9. ONLINE RESTAURANT 5 Customers Menu Orders " Event !

  10. ONLINE RESTAURANT 6 Customers Menu Orders " Event !

  11. ONLINE RESTAURANT 6 Customers Menu Orders Publica Consome MenuItemAdded MenuItemAdded

    CustomerSignedUp CustomerSignedUp OrderPlaced OrderOpened OrderPlaced OrderOpened OrderPlaced MenuItemAdded CustomerSignedUp
  12. CQRS + EVENT SOURCING 8 Menu

  13. Service CQRS + EVENT SOURCING 8 github.com/vvgomes/event-driven-restaurant

  14. PRÓXIMO PASSO? 9

  15. SERVERLESS 10

  16. SERVERLESS 11 BaaS

  17. SERVERLESS 11 BaaS FaaS +

  18. SERVERLESS 12

  19. SERVERLESS •Abstração 12

  20. SERVERLESS •Abstração •Implantação 12

  21. SERVERLESS •Abstração •Implantação •Escalabilidade 12

  22. SERVERLESS •Abstração •Implantação •Escalabilidade •Monitoramento 12

  23. SERVERLESS •Abstração •Implantação •Escalabilidade •Monitoramento •Custo 12

  24. Publica Consome MenuItemAdded MenuItemAdded CustomerSignedUp CustomerSignedUp OrderPlaced OrderOpened OrderPlaced OrderOpened

    OrderPlaced MenuItemAdded CustomerSignedUp DE VOLTA AO ONLINE RESTAURANT 13 Customers Menu Orders
  25. CQRS + EVENT SOURCING 14 API Gateway Commands Queries Event

    Bus Query DB Event Store Event Sourcing Event Listener 1 Event Listener n
  26. CQRS + EVENT SOURCING 14 API Gateway Commands Queries Event

    Bus Query DB Event Store Event Sourcing Event Listener 1 Event Listener n
  27. CQRS + EVENT SOURCING 14 API Gateway Commands Queries Event

    Bus Query DB Event Store Event Sourcing Event Listener 1 Event Listener n
  28. CQRS + EVENT SOURCING 14 API Gateway Commands Queries Event

    Bus Query DB Event Store Event Sourcing Event Listener 1 Event Listener n
  29. CQRS + EVENT SOURCING 14 API Gateway Commands Queries Event

    Bus Query DB Event Store Event Sourcing Event Listener 1 Event Listener n
  30. CQRS + EVENT SOURCING 14 API Gateway Commands Queries Event

    Bus Query DB Event Store Event Sourcing Event Listener 1 Event Listener n
  31. CQRS + EVENT SOURCING 14 API Gateway Commands Queries Event

    Bus Query DB Event Store Event Sourcing Event Listener 1 Event Listener n
  32. CQRS + EVENT SOURCING 14 API Gateway Commands Queries Event

    Bus Query DB Event Store Event Sourcing Event Listener 1 Event Listener n
  33. CONSIDERAÇÕES FINAIS 15

  34. SERVERLESS EDA Pontos para pensar… 16

  35. SERVERLESS EDA Pontos para pensar… •Custo de Ops 16

  36. SERVERLESS EDA Pontos para pensar… •Custo de Ops •Vendor Lock-in

    16
  37. SERVERLESS EDA Pontos para pensar… •Custo de Ops •Vendor Lock-in

    •Nível de customização 16
  38. SERVERLESS EDA Pontos para pensar… •Custo de Ops •Vendor Lock-in

    •Nível de customização •Previsibilidade de carga 16
  39. SERVERLESS EDA Pontos para pensar… •Custo de Ops •Vendor Lock-in

    •Nível de customização •Previsibilidade de carga •Natureza do problema 16
  40. SERVERLESS EDA Pontos para pensar… •Custo de Ops •Vendor Lock-in

    •Nível de customização •Previsibilidade de carga •Natureza do problema 16 Código do exemplo: github.com/vvgomes/serverless-restaurant
  41. ARQUITETURA ORIENTADA A EVENTOS NO MUNDO SERVERLESS Vinicius Gomes 17