{"id":762,"date":"2016-04-05T18:02:39","date_gmt":"2016-04-05T12:32:39","guid":{"rendered":"http:\/\/stepbystepschools.net\/?p=762"},"modified":"2016-04-05T18:03:12","modified_gmt":"2016-04-05T12:33:12","slug":"762","status":"publish","type":"post","link":"https:\/\/www.stepbystepschools.net\/?p=762","title":{"rendered":"Design pattern Training in Andheri Mumbai (Lesson learn CQRS)."},"content":{"rendered":"<p>We continuously conduct <a href=\"http:\/\/stepbystepschools.net\/?page_id=319\" target=\"_blank\">Design pattern training in Mumbai<\/a>, we also have one on this coming Saturday and Sunday. In past design pattern training we were asked lot of times about CQRS architecture pattern. So this week we had added this also as the part of the course.<\/p>\n<p>So in this article let us take a quick look in to this pattern. Please note as I have said it\u2019s a QUICK LOOK we will not be showing any code at this moment.<\/p>\n<p>If you look around you will find developers using layered architecture approach. In this approach they divide the project in to atleast three layers UserInterface, Model and Data layer.<\/p>\n<p>Normally developers try to use the same model for read and write purpose.<\/p>\n<p><a href=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2016\/04\/1.png\" rel=\"attachment wp-att-763\"><img loading=\"lazy\" class=\"aligncenter wp-image-763 size-full\" src=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2016\/04\/1.png\" alt=\"1\" width=\"362\" height=\"68\" srcset=\"https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2016\/04\/1.png 362w, https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2016\/04\/1-300x56.png 300w\" sizes=\"(max-width: 362px) 100vw, 362px\" \/><\/a><\/p>\n<p>Now this model is normally driven from real world domain. For example let\u2019s say you have a project where you have customer, customer can have a multiple addresses and every address can have phones.<\/p>\n<p>So most probably you would end up in to a model which has 1 to many relationship as shown in the below figure. In short you will three classes with aggregation or composition relationship.<\/p>\n<p><a href=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2016\/04\/2.png\" rel=\"attachment wp-att-764\"><img loading=\"lazy\" class=\"aligncenter wp-image-764 size-full\" src=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2016\/04\/2.png\" alt=\"2\" width=\"446\" height=\"109\" srcset=\"https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2016\/04\/2.png 446w, https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2016\/04\/2-300x73.png 300w\" sizes=\"(max-width: 446px) 100vw, 446px\" \/><\/a><\/p>\n<p>Now this model is good for writing \/ inserting in to database. But if we want to load huge amount of records in to this kind of hierarchical model it would not be a good idea. We would probably love to see a single flat class which has all properties from customer, address and phone.<\/p>\n<p>In simple words \u201cReading\u201d data is a very different ball game as compared to \u201cWriting\u201ddata.<\/p>\n<p>So what CQRS says separate these concerns in to different buckets.<\/p>\n<p>\u201cCreate one model structure for write and a different model structure for read\u201d.<\/p>\n<p><a href=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2016\/04\/3.png\" rel=\"attachment wp-att-765\"><img loading=\"lazy\" class=\"aligncenter wp-image-765 \" src=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2016\/04\/3.png\" alt=\"3\" width=\"477\" height=\"247\" srcset=\"https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2016\/04\/3.png 576w, https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2016\/04\/3-300x155.png 300w\" sizes=\"(max-width: 477px) 100vw, 477px\" \/><\/a><\/p>\n<p>Do not forget to watch our youtube video on Learn design pattern step by step using a project.<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/YDobmucohqk\" width=\"500\" height=\"330\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We continuously conduct Design pattern training in Mumbai, we also have one on this coming Saturday and Sunday. In past design pattern training we were asked lot of times about CQRS architecture pattern. So this week we had added this &hellip; <a href=\"https:\/\/www.stepbystepschools.net\/?p=762\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[1,64,42],"tags":[22,62,63,20],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Design pattern Training in Andheri Mumbai (Lesson learn CQRS). - Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.stepbystepschools.net\/?p=762\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Design pattern Training in Andheri Mumbai (Lesson learn CQRS). - Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai\" \/>\n<meta property=\"og:description\" content=\"We continuously conduct Design pattern training in Mumbai, we also have one on this coming Saturday and Sunday. In past design pattern training we were asked lot of times about CQRS architecture pattern. So this week we had added this &hellip; Continue reading &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.stepbystepschools.net\/?p=762\" \/>\n<meta property=\"og:site_name\" content=\"Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai\" \/>\n<meta property=\"article:published_time\" content=\"2016-04-05T12:32:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-04-05T12:33:12+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2016\/04\/1.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sukesh Marla\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.stepbystepschools.net\/#website\",\"url\":\"https:\/\/www.stepbystepschools.net\/\",\"name\":\"Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai\",\"description\":\"MVC 5\/Core, AngularJS 1.x, 2.0, 4.0, Design Pattern, Architecture, SSIS, SSAS, SSRS, Data Science, Big data, Hadoop classroom training\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.stepbystepschools.net\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.stepbystepschools.net\/?p=762#primaryimage\",\"url\":\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2016\/04\/1.png\",\"contentUrl\":\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2016\/04\/1.png\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.stepbystepschools.net\/?p=762#webpage\",\"url\":\"https:\/\/www.stepbystepschools.net\/?p=762\",\"name\":\"Design pattern Training in Andheri Mumbai (Lesson learn CQRS). - Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai\",\"isPartOf\":{\"@id\":\"https:\/\/www.stepbystepschools.net\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.stepbystepschools.net\/?p=762#primaryimage\"},\"datePublished\":\"2016-04-05T12:32:39+00:00\",\"dateModified\":\"2016-04-05T12:33:12+00:00\",\"author\":{\"@id\":\"https:\/\/www.stepbystepschools.net\/#\/schema\/person\/88d563b9535849b699d9b5efa09d559c\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.stepbystepschools.net\/?p=762#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.stepbystepschools.net\/?p=762\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.stepbystepschools.net\/?p=762#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.stepbystepschools.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Design pattern Training in Andheri Mumbai (Lesson learn CQRS).\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.stepbystepschools.net\/#\/schema\/person\/88d563b9535849b699d9b5efa09d559c\",\"name\":\"Sukesh Marla\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.stepbystepschools.net\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7f960ad602065c0f897d127d81b3adf8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7f960ad602065c0f897d127d81b3adf8?s=96&d=mm&r=g\",\"caption\":\"Sukesh Marla\"},\"sameAs\":[\"http:\/\/www.JustCompile.com\"],\"url\":\"https:\/\/www.stepbystepschools.net\/?author=2\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Design pattern Training in Andheri Mumbai (Lesson learn CQRS). - Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.stepbystepschools.net\/?p=762","og_locale":"en_US","og_type":"article","og_title":"Design pattern Training in Andheri Mumbai (Lesson learn CQRS). - Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai","og_description":"We continuously conduct Design pattern training in Mumbai, we also have one on this coming Saturday and Sunday. In past design pattern training we were asked lot of times about CQRS architecture pattern. So this week we had added this &hellip; Continue reading &rarr;","og_url":"https:\/\/www.stepbystepschools.net\/?p=762","og_site_name":"Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai","article_published_time":"2016-04-05T12:32:39+00:00","article_modified_time":"2016-04-05T12:33:12+00:00","og_image":[{"url":"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2016\/04\/1.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"Sukesh Marla","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/www.stepbystepschools.net\/#website","url":"https:\/\/www.stepbystepschools.net\/","name":"Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai","description":"MVC 5\/Core, AngularJS 1.x, 2.0, 4.0, Design Pattern, Architecture, SSIS, SSAS, SSRS, Data Science, Big data, Hadoop classroom training","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.stepbystepschools.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.stepbystepschools.net\/?p=762#primaryimage","url":"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2016\/04\/1.png","contentUrl":"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2016\/04\/1.png"},{"@type":"WebPage","@id":"https:\/\/www.stepbystepschools.net\/?p=762#webpage","url":"https:\/\/www.stepbystepschools.net\/?p=762","name":"Design pattern Training in Andheri Mumbai (Lesson learn CQRS). - Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai","isPartOf":{"@id":"https:\/\/www.stepbystepschools.net\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.stepbystepschools.net\/?p=762#primaryimage"},"datePublished":"2016-04-05T12:32:39+00:00","dateModified":"2016-04-05T12:33:12+00:00","author":{"@id":"https:\/\/www.stepbystepschools.net\/#\/schema\/person\/88d563b9535849b699d9b5efa09d559c"},"breadcrumb":{"@id":"https:\/\/www.stepbystepschools.net\/?p=762#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.stepbystepschools.net\/?p=762"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.stepbystepschools.net\/?p=762#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.stepbystepschools.net\/"},{"@type":"ListItem","position":2,"name":"Design pattern Training in Andheri Mumbai (Lesson learn CQRS)."}]},{"@type":"Person","@id":"https:\/\/www.stepbystepschools.net\/#\/schema\/person\/88d563b9535849b699d9b5efa09d559c","name":"Sukesh Marla","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.stepbystepschools.net\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7f960ad602065c0f897d127d81b3adf8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7f960ad602065c0f897d127d81b3adf8?s=96&d=mm&r=g","caption":"Sukesh Marla"},"sameAs":["http:\/\/www.JustCompile.com"],"url":"https:\/\/www.stepbystepschools.net\/?author=2"}]}},"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=\/wp\/v2\/posts\/762"}],"collection":[{"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=762"}],"version-history":[{"count":6,"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=\/wp\/v2\/posts\/762\/revisions"}],"predecessor-version":[{"id":771,"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=\/wp\/v2\/posts\/762\/revisions\/771"}],"wp:attachment":[{"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=762"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=762"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=762"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}