Attila Bertók

22%
Flag icon
One elegant way to avoid synchronization on domain objects is to make your domain objects immutable. Use them for querying and rendering. When the time comes to alter their state, do it by constructing and issuing a “command object.” This style is called “Command Query Responsibility Separation,” and it nicely avoids a large number of concurrency issues.
Release It!: Design and Deploy Production-Ready Software
Rate this book
Clear rating