Tips and tricks for Testing Micro-Services

23
Tips & Tricks for Testing Micro-services Varuna Srivastava Bangalore April 25th 2015

Transcript of Tips and tricks for Testing Micro-Services

Tips & Tricks for Testing Micro-services

Varuna Srivastava

Bangalore

April 25th 2015

Agenda

• Why MicroServices• Monolithic to MicroServices Architecture• Challenges In Testing

No Free Lunch

API

Monolithic Enterprise to Microservice Architecture

Multiple services work together as a system…. ..to provide business feature

Certify small component

Persistence

CertificationCertificationAddressAddress

Micro Service Interactions

CertificationCertification

AddressAddress

PaymentPayment

Challenges

• Dependency Management• Tackle a Session• Distributed System Complexity (Decentralized Database)• Managing Test Data• Contract Documentation

#1 Dependency Management

Dependency Management

Dependency Management

#2 Session Management

Session Management

#3 Decentralized Database

#4

• Mock Test Data Service environment specific

#5 Contract Documentation

SnowCrash

snowcrash Address.md

• • Aglio -i Address.md –o Address.html

Dredd Address.md

Some Tricks

• Focus on one service end point at a time• Define the boundary of test• Make sure services are designed to support different content type.