I bumped into a picture in a book the other day which illustrates exactly that. It's a shame I don't remember the source. Basically it boils down to:

Is the subdomain type a core domain? (yes) Is the application monetary, transactional, is there a requirement for an audit log? (yes) Use an event sourced domain model + CQRS

Or: Is the subdomain type a core domain? (yes) Is the application monetary, transactional, is there a requirement for an audit log? (no) Use ports and adapters:

Or: Is the subdomain type a core domain? (no) Complex data structures? (Yes) Layered architecture (4 layers)

Or: Is the subdomain type a core domain? (no) Complex data structures? (No) Layered architecture (3 layers)

And I recon there are plenty of other flowcharts similar to that. Anyways.. Yes.. I agree... CQRS is not a silver bullet...

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Albert Starreveld
Albert Starreveld

Written by Albert Starreveld

Passionate about cloud native software development. Only by sharing knowledge and code can we take software development to the next level!

No responses yet

Write a response