What You’ve Done So Far
Welcome to the wonderful world of CQRS. Up to this point you had append-only streams of events but no clear way to turn that into what the home page Application needed to fulfill the requirement of showing a global videos watched count. Now you’ve learned how to do that, and in so doing have unleashed one of the biggest superpowers this architecture can provide.
You also learned about idempotence. You’re going to encounter that word a lot in this book. As light-hearted as we can be with corny pop culture references throughout the rest of this project, there is none of that when it comes to idempotence. To make light of idempotence is to fail at our task.
To really drive that point home, modify queries.incrementVideosWatched ...
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