Microservices Without Mocks Part 2 - Robust Responses

Опубликовано: 04 Март 2026
на канале: James Shore
1,155
29

Each week in my Tuesday Lunch & Learn livestream, we look at a useful technical skill, define a challenge related to that skill, and solve the challenge live. This week, in part 2 of our extended microservice example, we’re making our server respond to requests.

Last week (https://www.jamesshore.com/Blog/Lunch..., we created the ability to start and stop a web server. This week, we’ll continue that effort by handling requests. When a request comes in, we need to output "Request received" to the command-line and serve a simple response. As always, we’ll make sure it’s all thoroughly tested, and we won’t use mocks or broad integration tests.

To follow along, download the code from https://github.com/jamesshore/livestream and check out the 2020-06-09 tag. To see the final result, check out the 2020-06-09-end tag or view it on GitHub at https://github.com/jamesshore/livestr....