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

Possiamo fidarci dei nostri Unit Test?

Possiamo fidarci dei nostri Unit Test?

Un vantaggio del paradigma FaaS è la possibilità di immaginare un sistema come cooperazione di funzioni indipendenti, coordinate da contratti ben definiti: romperne anche solo uno potrebbe compromettere l'intero sistema, oltre a minarne l'agilità di evoluzione. Basteranno degli unit test a salvarci?

Mariano Calandra

June 04, 2020
Tweet

More Decks by Mariano Calandra

Other Decks in Programming

Transcript

  1. PROS Modeled around business domain Own their own data Process

    isolation High modularity Independent (implementation & deploy)
  2. CONS No distributed transactions* Steep learning curve E2E is not

    trivial …but above all Distributed system’s issues (*) I’m not sure if this is a real problem J
  3. The property is called customer_id but it contains a username.

    It would be better to rename it! RefactorTrooper ARE WE SAFE?
  4. TAKE AWAY CDCT for testing external behaviour Communication is a

    contract Unit test for testing internal behaviour Why unit testing is not enough when it comes to microservice (medium.com) Code sample (github.com) Further reading What about serverless?
  5. Passionate about microservices and serverless AWS Authorized Instructor ServerlessDays Rome

    co-organizer Work in Claranet Italia (formerly known as XPeppers) MARIANO CALANDRA I AM
  6. Sam Newman – Monolith to microservices, O’Reilly, 2019 REFERENCES Sam

    Newman – Building microservices, O’Reilly, 2015 Whitepaper – Microservices on AWS