Member-only story
Testing Microservices
Testing Microservices based system has its own challenges and you should be well aware of them and the way to handle them. Testing is important in all systems and all architectural types. No system should ever go to production without going through a rigorous testing phase to make sure there are as few bugs as possible. Of course, no system is absolutely bug free, but we should try our best to minimize the number of bugs.
In Microservices, we have lots of processes and the moving parts and the potential of things going wrong is much bigger. In addition, testing Microservices poses additional challenges that not found in traditional architectures. Therefore its extremely important to have well planned and implemented testing.
Tests Types
At least we have three types.
- Unit Tests
- Integration Tests
- End-to-End Tests
Challenges with Microservices Testing
As we discussed before, Microservices systems has lots of moving parts. In other words, we have lots of processes participating in the application probably with different technology stacks. Therefore testing and tracing all the services is not easy.
Lets take below example. Imagine we need to test the calling flow.
