Method signature conventions
Coming up with good examples to do a home run on a topic for a book can be very hard. For this chapter, I’ve decided to go with something that is part of my day-to-day job.
I work with a platform that is centered around event-driven architecture, or more specifically, with event sourcing. This topic might be unfamiliar to you, so let’s dive into what this specifically is, to give you the context.
In traditional CRUD (short for Create, Read, Update, Delete) systems, the primary focus is on the concrete data that is commonly stored in a relational or document database. These systems revolve around the four fundamental operations – creating new records, retrieving existing records, updating records, and deleting records.
The data in such systems represents the outcome of a user’s actions, and the system’s flow typically follows a one-to-one mapping from the user’s input form to the database. However, this...