microservices testing
TRANSCRIPT
Testing in Micro-services
ArchitectureVaruna Srivastava
BangaloreAugust 22nd 2015
Agenda
• Why MicroServices• Monolithic to MicroServices Architecture• Challenges In Testing• Demo using MockServer
No Free Lunch
API
Monolithic Enterprise to Microservice Architecture
Multiple services work together as a system…. ..to provide business feature
Traditional Testing Approach
New Perspective in Testing
Validating small component
Persistence
CertificationAddress
Micro Service Interactions
Certification
Address
Payment
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
Address 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.
Mock Server