How to test functional splitting in microservices
P粉517814372
P粉517814372 2024-02-04 10:58:15
0
1
502

I have a function split into 3 microservices running using kubernetes. Based on the input of the first one, the second one performs the operation and automatically creates a kubernette to handle the final result.

I want to make a test to check the whole process, but I don't know how to do it. I think this might break some testing principles...

Has anyone done something similar and have some advice?

greeting.

P粉517814372
P粉517814372

reply all(1)
P粉938936304

You should test each microservice independently without actually calling each other. If you want to test a second microservice, you should simulate the response of the first microservice and then verify that your service performs the expected actions based on the simulated response

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!