Microservices Without Mocks, Part 4: Code Whispering

Jun 24, 2020

Each week in my Tuesday Lunch & Learn livestream, we look at a useful software development skill, define a challenge related to that skill, and solve the challenge live. This week, in part 4 of our extended microservice example, we’re putting the final polish on our microservice.

Over the past several weeks (part 1, part 2, part 3), we’ve created a web server, sent responses, and read requests. This week, we need to implement routing. The infrastructure work is done, so our challenge is to design our routing code well. To do so, we’ll use a technique called (somewhat tongue-in-cheek) “code whispering.” 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 GitHub and check out the 2020-06-23 tag. To see the final result, check out the 2020-06-23-end tag or view it on GitHub.

Visit the Lunch & Learn archive for more.