InterviewSolution
Saved Bookmarks
| 1. |
How would you test microservice based architecture? |
|
Answer» One should have unit and integration tests where all the functionality of a microservice can be tested. One should also have component based testing. One should have contract tests to assert that the expectations by the CLIENT is not breaking. End-to-end TEST for the microservices, however, should only test the critical FLOWS as these can be time-consuming. The tests can be from two sides, consumer-driven contract test and consumer-side contract test. You can also leverage Command Query Responsibility Segregation to query multiple databases and GET a combined view of persisted data. |
|