Print

Microservices Without Mocks, Part 1: The Server

Jun 2, 2020

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 1 of our extended microservice example, we’re building and testing a server without using mocks or broad integration tests.

In previous weeks, we’ve demonstrated infrastructure wrappers and testing without mocks. But those episodes all used toy examples. How do these ideas work when you’re writing complex, production-grade code?

In today’s episode, we start an extended example of applying these ideas to production-grade code. We’ll upgrade the simple ROT-13 command-line application from previous weeks into a real, production-grade microservice. Our first task is to build the server, start it, and make sure everything is thoroughly tested... without writing mocks or broad integration tests.

To follow along, download the code from GitHub and check out the 2020-06-02 tag. To see the final result, check out the 2020-06-02-end tag or view it on GitHub.

Visit the Lunch & Learn archive for more.