$30 off During Our Annual Pro Sale. View Details »

Mensageria com Microsserviços - light

Mensageria com Microsserviços - light

Palestra sobre mensageria com microsserviços apresentada em 10 minutos

Lucas Santos

May 25, 2019
Tweet

More Decks by Lucas Santos

Other Decks in Programming

Transcript

  1. Mensageria
    com microsserviços

    View Slide

  2. lead solutions architect_
    /khaosdoctor @_staticvoid
    lsantos.dev
    @khaosdoctor
    quem sou eu_

    View Slide

  3. ReST
    Representational State Transfer_
    - Request -> Response
    - Comunicação um a um
    - HTTP
    - "Assíncrono"

    View Slide

  4. a Internet usa ReST

    View Slide

  5. mas ele não escala

    View Slide

  6. View Slide

  7. messaging

    View Slide

  8. serialização

    View Slide

  9. mensageria
    - Mais leve
    - Mais rápido
    - Binário
    - Eventos

    View Slide

  10. messaging patterns_

    View Slide

  11. View Slide

  12. Worker Queues_

    View Slide

  13. Producer / Consumer_

    View Slide

  14. P Q
    C
    C

    View Slide

  15. RPC
    Remote Procedure Call_

    View Slide

  16. Request / Reply_

    View Slide

  17. P
    CB_Q
    C
    RPC_Q
    replyTo: CB_Q
    correlationId: xpto
    replyTo: CB_Q
    correlationId: xpto
    correlationId: xpto

    View Slide

  18. Publisher / Subscriber_

    View Slide

  19. P FX
    Q
    2
    C2
    C1
    Q
    1

    View Slide

  20. Routing

    View Slide

  21. P DX
    Q
    2
    C2
    C1
    Q
    1
    Verde
    Azul

    View Slide

  22. Topics

    View Slide

  23. Topics
    - daredevil.error.log
    - daredevil.info.log
    - daredevil.warn.log
    - daredevil.message
    - heimdall.error.log
    - heimdall.info.log
    - heimdall.warn.log
    - heimdall.message

    View Slide

  24. Topics
    - daredevil.error.log
    - daredevil.info.log
    - daredevil.warn.log
    - daredevil.message
    - heimdall.error.log
    - heimdall.info.log
    - heimdall.warn.log
    - heimdall.message
    origem.severidade.tipo

    View Slide

  25. P DX
    Q
    2
    C2
    C1
    Q
    1
    daredevil.#
    *.error.*
    Q
    3
    C3
    heimdall.info.#

    View Slide

  26. Topics
    - daredevil.error.log
    - daredevil.info.log
    - daredevil.warn.log
    - daredevil.message
    - heimdall.error.log
    - heimdall.info.log
    - heimdall.warn.log
    - heimdall.message
    Q1
    Q2
    Q3

    View Slide

  27. referências_
    - blog.codeship.com/microservices-messaging-rest-isnt-al
    ways-best-choice
    - rabbitmq.com/tutorials/tutorial-two-javascript.html
    - rabbitmq.com/tutorials/tutorial-three-javascript.html
    - rabbitmq.com/tutorials/tutorial-four-javascript.html
    - rabbitmq.com/tutorials/tutorial-five-javascript.html
    - rabbitmq.com/tutorials/tutorial-six-javascript.html
    - enterpriseintegrationpatterns.com/patterns/messaging

    View Slide

  28. /khaosdoctor @_staticvoid
    lsantos.dev @khaosdoctor
    obrigado_

    View Slide