Tips & Tricks for Testing Micro-services
Varuna Srivastava
Bangalore
April 25th 2015
Agenda
• Why MicroServices• Monolithic to MicroServices Architecture• Challenges In Testing
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
#3 Decentralized Database
#4
• Mock Test Data Service environment specific
#5 Contract Documentation
• • 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.