InfoQ

InfoQ

Presentation

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

Recorded at:
Recorded at

Command-Query Responsibility Segregation

Presented by Udi Dahan on Sep 01, 2010 Length 01:15:13     Download: MP3
     Slides
Sections
Architecture & Design
Topics
Design Pattern ,
Architecture
Tags
CQRS ,
QCon ,
QCon London 2010
The next QCon is in London March 5-9, Join us!
 

How would you like to view the presentation?

In case you are having issues watching this video, please follow these simple steps to help us investigate the issue:
1. Right click on the video player and select Copy log
2. Paste the copied information in an email to video-issue@infoq.com (clicking this link will fill in the default details in most email clients).
Note: in case your email client hasn't automatically picked up the email subject, please include in your email the URL of the video too.
3. Done.
We will investigate the issue and get back to you as soon as possible. Thanks for helping us improve our site!
Summary
Udi Dahan discusses the Command Query Responsibility Segregation (CQRS) pattern and its relationship to Domain Driven Design (DDD), detailing on queries and commands, what they are and how they should be used in an asynchronous programming environment.

Bio
Udi Dahan is The Software Simplist, an expert on software architecture and design. A Solutions Architecture and Connected Systems MVP 4 years in a row, Mr. Dahan is also one of 33 experts in Europe recognized by the International .NET Association, an author and trainer for the International Association of Software Architects, and an SOA/Web Services/XML Guru recommended by Dr. Dobbs Journal (DDJ).

About the conference
QCon is a conference that is organized by the community, for the community.The result is a high quality conference experience where a tremendous amount of attention and investment has gone into having the best content on the most important topics presented by the leaders in our community.QCon is designed with the technical depth and enterprise focus of interest to technical team leads, architects, and project managers.
Re: by Maxim Tihobrazov Posted
View database updates? by Dandik M Posted
Slides by Ashwin Jayaprakash Posted
Annoying tone by Wouter Vos Posted
Udi Dahan is not a good researcher by Pedro Gonzalez Posted
Thanks a lot. by Tobias Juderjahn Posted
Good stuff by Dmitry Novoselov Posted
  1. Back to top

    Re:

    by Maxim Tihobrazov

    How to change the system if requirements changed for a particular view? For example we need additional data for a particular view that is already exists and the data is already somewhere in other views and core domain, but it is quite complex to retrieve it?

    And the same question about lack of data in domain entities if we already store it in the views. Again we have to do some complex migration from query source to core data storage.

  2. Back to top

    View database updates?

    by Dandik M

    I really like the concept. We’ve been pushing a lighter version of it in one of our projects.

    None the less, the thirst question that came from almost anyone who we presented the concept to was:

    What about users editing theyr own account information? Let’s say user changes his address, closes browser and then remembers he forgot to change house number. It’s going to be frustrating if he opens his account information and bum – the information he just entered is not there (just because the view database is not yet up to date)!

    Yes this might be a rear use case, but the frustration level as I can imagine might be … well let’s say high.

    What I want to say, the concept is good as long as there are no data updates going on in the system. I can hardly imagine let’s say ERP system without updates, that needs to be reviewed right away after they are done. What is your solution to this scenario?

  3. Back to top

    Slides

    by Ashwin Jayaprakash

    InfoQ should really start uploading the slides separately along with the vids. Even something embedded like scribd if not raw PDFs would be nice. Who has the time to watch every vid?

  4. Back to top

    Annoying tone

    by Wouter Vos

    This guys sounds like he's talking to small children. Very annoying.
    He may have interesting observations on current processes, but we're not stupid, it's not like he's unveiling a big secret here.

  5. Back to top

    Thanks a lot.

    by Tobias Juderjahn

    Great!

  6. Back to top

    Good stuff

    by Dmitry Novoselov

    We use pre-calculated views, but very restrictedly. We only do that when we just can't prepare what is needed to be shown to a user in reasonable amount of time. Then we say something like "Oh God, they want it to show in just 10 seconds. We have no choice but to pre-calculate the screen and store it in the database." And we try to avoid pre-calculation doing a lot of caching and other technical tweaks. But it really seems like it should be a default option.

    And if we changed our minds and built another architecture, we wouldn't have to do all those tweaks. I'll definitely try to use more of this approach in my next project.

  7. Back to top

    Udi Dahan is not a good researcher

    by Pedro Gonzalez

    Udi Dahan is not a good researcher and as other commenters say he does not know what he is talking about.
    He presents many incoherent topics without delivering any value.

Educational Content

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.

Interview: Software Systems Architecture: Working With Stakeholders Using Viewpoints and Perspectives

InfoQ spoke to the authors of Software Systems Architecture on a couple of new topics, the System Context viewpoint and Agile, which have been added to the second edition.

Beauty Is in the Eye of the Beholder

Alex Papadimoulis discusses ugly code, where it comes from, how to avoid it, and how to get rid of it.

Architecting Visa for Massive Scale and Continuous Innovation

John Davies examines Visa’s architecture and shows how enterprises have architected complex integrations incorporating Hadoop, memcached, Ruby on Rails, and others to deliver innovative solutions.

Max Protect: Scalability and Caching at ESPN.com

Sean Comerford unveils ESPN.com’s architecture, what components are used and why, and the current changes the website goes through.

The Seven Deadly Sins of Enterprise Agile Adoption

Are there repeated patterns of failure on Enterprise Agile Enablement efforts? Sanjiv and Arlen discuss Seven Deadly Sins to avoid when adopting Agile in an enterprise.

Questions for an Enterprise Architect

Erik Dörnenburg answers: What is Enterprise and Evolutionary Architecture?, discussing 4 issues: Turning strategy into execution, Ensuring conformance, Where do the architects sit? Buying or building?

Wrap Your SQL Head Around Riak MapReduce

Sean Cribbs explains what Map-Reduce and Riak are, why and how to use Map-Reduce with Riak, and how to convert SQL queries into their Map-Reduce equivalents.