{"id":3792,"date":"2017-01-17T13:36:48","date_gmt":"2017-01-17T17:36:48","guid":{"rendered":"http:\/\/www.acarlstein.com\/?p=3792"},"modified":"2017-01-18T14:40:34","modified_gmt":"2017-01-18T18:40:34","slug":"microservices-brownfield-reporting","status":"publish","type":"post","link":"http:\/\/blog.acarlstein.com\/?p=3792","title":{"rendered":"Microservices: Brownfield: Reporting"},"content":{"rendered":"<p>\u00a0<i class=\"fa fa-arrow-left\"><span style=\"color: transparent; display: none;\">icon-arrow-left<\/span><\/i>\u00a0<a href=\"http:\/\/www.acarlstein.com\/?p=3777\">Microservices: Brownfield: Transactions<\/a><\/p>\n<p>The support reporting for our micro-services architecture system can be a little complex. At difference to a monolithic architecture where you may have a few databases to report from, in the micro-services architecture system, you will have a tons of databases to report from since each micro-service will have its own database.<\/p>\n<p>The report of the data will come from the be split across multiple micro-services and since there is no a central database where you could extract this information you may need to join data across databases. Also, in the micro-service architecture system, reporting can be slow.\u00a0<\/p>\n<p> One way to facilitate the reporting is to have a dedicated reporting micro-service which calls all our micro-services and takes care of collecting and consolidate the data. The only disadvantage is when we are reporting large volumes of data or we wish to obtain a report in real-time.<\/p>\n<p><a href=\"http:\/\/www.acarlstein.com\/?attachment_id=3800\" rel=\"attachment wp-att-3798\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3800 size-full\" src=\"http:\/\/www.elblender.com\/wordpress\/wp-content\/uploads\/2017\/01\/Report-way-one-2.png\" width=\"602\" height=\"378\" srcset=\"http:\/\/blog.acarlstein.com\/wp-content\/uploads\/2017\/01\/Report-way-one-2.png 602w, http:\/\/blog.acarlstein.com\/wp-content\/uploads\/2017\/01\/Report-way-one-2-300x188.png 300w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><\/a><\/p>\n<p>Another way is to have a data dump which is having the micro-services dumping the data to a central database that later can be use to do reporting.\u00a0<\/p>\n<p><a href=\"http:\/\/www.acarlstein.com\/?attachment_id=3801\" rel=\"attachment wp-att-3801\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3801\" src=\"http:\/\/www.elblender.com\/wordpress\/wp-content\/uploads\/2017\/01\/Report-other-way.png\" alt=\"\" width=\"614\" height=\"477\" srcset=\"http:\/\/blog.acarlstein.com\/wp-content\/uploads\/2017\/01\/Report-other-way.png 614w, http:\/\/blog.acarlstein.com\/wp-content\/uploads\/2017\/01\/Report-other-way-300x233.png 300w\" sizes=\"auto, (max-width: 614px) 100vw, 614px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n\n<script>\nvar zbPregResult = '0';\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0icon-arrow-left\u00a0Microservices: Brownfield: Transactions The support reporting for our micro-services architecture system can be a little complex. At difference to a monolithic architecture where you may have a few databases to report from, in the micro-services architecture system, you will have a tons of databases to report from since each micro-service will have its own database. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,1472,1480],"tags":[1515,1482,1479,918,1519],"class_list":["post-3792","post","type-post","status-publish","format-standard","hentry","category-programming","category-architecture","category-microservices","tag-brownfield","tag-micro-services","tag-microservices","tag-real-time","tag-reporting"],"_links":{"self":[{"href":"http:\/\/blog.acarlstein.com\/index.php?rest_route=\/wp\/v2\/posts\/3792","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.acarlstein.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.acarlstein.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.acarlstein.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.acarlstein.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3792"}],"version-history":[{"count":5,"href":"http:\/\/blog.acarlstein.com\/index.php?rest_route=\/wp\/v2\/posts\/3792\/revisions"}],"predecessor-version":[{"id":3802,"href":"http:\/\/blog.acarlstein.com\/index.php?rest_route=\/wp\/v2\/posts\/3792\/revisions\/3802"}],"wp:attachment":[{"href":"http:\/\/blog.acarlstein.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3792"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.acarlstein.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3792"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.acarlstein.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3792"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}