Refactoring homework
The homework for this chapter will be similar in scope to what we did in the Refactoring homework section of Chapter 3, Curing Anemic Models with Domain-Driven Design, where you will finish converting the remaining modules of credit processing and user management over to event sourcing. Make your code changes in the code within the -incomplete bookstore app. When you are done, you can check out my fully converted code in the -complete code-base folder.
I've already added in the data model .proto files for each of these two modules and the generated binding classes. This is so you won't have to go through the trouble of installing the protoc compiler. Also, keep in mind that you won't be able to handle the multiuser lookup functionality ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access