Disintegrated Parts

Created: January 27, 2024
Last Modified:June 04, 2024

Running a domain model as an actor system

Just having a core domain model does not mean this domain model is able to properly scale across a cluster of machines. On the other hand, it is not impossible to get a core domain to scale across the cluster either. The trick to be able to do so is to get the correct abstractions in place.

As it turns out there is some common ground between the DDD methodology and the actor model. This common ground is the isolation of information. Within a domain model information is contained in the aggregate. In the actor model this is the actor. Therefore, if an aggregate instance is encapsulated within an actor, at least all active aggregate instances can be distributed over a cluster of machines.

However, we’re not done yet. After the aggregate had been encapsulated all kinds of different questions arise:

Most of these are problems I have already solved before in the Whaally.Domain library.

No webmentions were found.