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

5 erros em projetos de microservices que vão de...

5 erros em projetos de microservices que vão destruí-los antes de entrar em produção

Vamos migrar tudo para microservices! Microservices resolve todos os problemas! Viva microservices!

Não é bem assim (claro!). Como em toda "modinha", há excessos e erros de entendimento que simplesmente podem levar seu projeto ao fracasso. E você não quer isso, quer?

Nessa palestra abordaremos 5 erros muito comuns que você deve evitar a todo custo. Inclusive alguns deles você pode estar cometendo agora, sem perceber. Esses erros podem ocorrer desde o projeto inicial até a implantação em produção. Isso se você conseguir implantar!

Junte-se a nós para aprender as melhores práticas para lidar com cada um desses 5 erros, e implemente seu projeto de microservices sem medo.

Elder Moraes

June 20, 2018
Tweet

More Decks by Elder Moraes

Other Decks in Technology

Transcript

  1. Copyright © 2018, Oracle and/or its affiliates. All rights reserved.

    | 5 erros em projetos de microservices que vão destruí-los antes de entrar em produção Elder Moraes Cloud Evangelist Oracle Junho, 2018
  2. Copyright © 2018, Oracle and/or its affiliates. All rights reserved.

    | Safe Harbor Statement The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.
  3. Copyright © 2018, Oracle and/or its affiliates. All rights reserved.

    | Erro #1 Escalar software antes de escalar pessoas 9
  4. Copyright © 2018, Oracle and/or its affiliates. All rights reserved.

    | –  M. Conway (Conway’s Law) 10 “Organizations which design systems (…) are constrained to produce designs which are copies of the communication structure of these organizations”
  5. Copyright © 2018, Oracle and/or its affiliates. All rights reserved.

    | 11 “Lei das Duas Pizzas” Jeff Bezos, CEO da Amazon
  6. Copyright © 2018, Oracle and/or its affiliates. All rights reserved.

    | 12 https://martinfowler.com/articles/microservices.html
  7. Copyright © 2018, Oracle and/or its affiliates. All rights reserved.

    | 13 https://martinfowler.com/articles/microservices.html
  8. Copyright © 2018, Oracle and/or its affiliates. All rights reserved.

    | 15 https://martinfowler.com/articles/microservices.html
  9. Copyright © 2018, Oracle and/or its affiliates. All rights reserved.

    | 16 https://martinfowler.com/articles/microservices.html Padrão “Database per Service”
  10. Copyright © 2018, Oracle and/or its affiliates. All rights reserved.

    | 18 ACID Atomicity Consistency Isolation Durability
  11. Copyright © 2018, Oracle and/or its affiliates. All rights reserved.

    | 19 ACID Atomicity Consistency Isolation Durability Microservices
  12. Copyright © 2018, Oracle and/or its affiliates. All rights reserved.

    | 20 PRODUCT SERVICE DADOS CART SERVICE DADOS Transação
  13. Copyright © 2018, Oracle and/or its affiliates. All rights reserved.

    | 22 https://www.cs.cornell.edu/andru/cs711/2002fa/reading/sagas.pdf
  14. Copyright © 2018, Oracle and/or its affiliates. All rights reserved.

    | 23 T1 T2 T3 T4 C1 C2 C3 Transações de Compensação
  15. Copyright © 2018, Oracle and/or its affiliates. All rights reserved.

    | Erro #3 Não ter um pipeline automatizado 25
  16. Copyright © 2018, Oracle and/or its affiliates. All rights reserved.

    | 27 Maturidade Automação Continuous Integration Continuous Delivery Continuous Deployment
  17. Copyright © 2018, Oracle and/or its affiliates. All rights reserved.

    | Erro #4 Serviços com alto acoplamento 28
  18. Copyright © 2018, Oracle and/or its affiliates. All rights reserved.

    | Quanto mais um serviço sabe sobre outro, mais acoplados eles estão (em qualquer aspecto) 29
  19. Copyright © 2018, Oracle and/or its affiliates. All rights reserved.

    | Erro #5 Serviços que não rodam em containers 31
  20. Copyright © 2018, Oracle and/or its affiliates. All rights reserved.

    | Distribuição Escalabilidade Pipeline Testes