User Tools

Site Tools


Is there any situation where DCI isn't appropriate to use?

Operations that are atomic and scoped to an object don't need DCI, for example simple CRUD functionality. DCI works best with system operations involving multiple objects.

See for example how the Lean Architecture book distinguishes between Atomic Event Architectures and DCI architectures.

Another case is if the Context is very simple. For example, if your analysis shows that there is only one RoleMethod per Role, it suggests that in this case Roles don't have much expressive power. A simple procedural version would be much more readable then - and readability is the goal here.

is_there_any_situation_where_dci_isn_t_appropriate_to_use.txt · Last modified: 2014/04/07 08:19 by gazoot