<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Orhan Burak Bozan on Medium]]></title>
        <description><![CDATA[Stories by Orhan Burak Bozan on Medium]]></description>
        <link>https://medium.com/@burakbozan?source=rss-8511576bd355------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xrcUUSynK6bJHOUQ0OWHjw.jpeg</url>
            <title>Stories by Orhan Burak Bozan on Medium</title>
            <link>https://medium.com/@burakbozan?source=rss-8511576bd355------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 16:54:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@burakbozan/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Event Sourcing with Hazelcast]]></title>
            <link>https://medium.com/kloia/event-sourcing-with-hazelcast-889f10e0a529?source=rss-8511576bd355------2</link>
            <guid isPermaLink="false">https://medium.com/p/889f10e0a529</guid>
            <category><![CDATA[eng]]></category>
            <category><![CDATA[cqrs]]></category>
            <category><![CDATA[event-sourcing]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[hazelcast]]></category>
            <dc:creator><![CDATA[Orhan Burak Bozan]]></dc:creator>
            <pubDate>Wed, 08 Jul 2020 06:24:30 GMT</pubDate>
            <atom:updated>2020-07-08T06:24:30.831Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*eIXSvog-H2yh_yFxMYdRJQ.jpeg" /></figure><h3>Challenges of scaling Microservices</h3><p>Internet data and traffic grows exponentially day by day, not linearly. An application may not be able to cope with the increased load even if it is handling the traffic successfully today. The most commonly used methodology to manage the ever-growing pressure is application scaling. Scaling is done in two different ways, <a href="https://en.wikipedia.org/wiki/Scalability">vertical scaling and horizontal scaling</a><a href="https://app.hubspot.com/compose/4602321/blog-post/821882#ftnt1">[1]</a>. Vertical Scaling means adding more resources (CPU, memory) to the existing monolith application. Horizontal Scaling, on the other hand, is adding more nodes to a system providing additional resources. Horizontal Scaling also increases fault tolerance and provides high availability. Note that horizontal scaling is preferred in microservices architectures because of its lower cost. However, achieving these benefits do come with challenges:</p><ul><li>Data decoupling</li><li>Caching data</li><li>Fault tolerance between services because of the interdependence of services</li><li>Monitoring and troubleshooting the business flow which is challenging with modern infrastructure monitoring tools in a distributed environment</li><li>Dealing with networked, shared, multi-resource data management in business critical operations (i.e. transactions in monolith architectures)</li></ul><p>The list can be longer depending on where you are in the process of adopting a microservices architecture. In this paper, we present you with solutions to these problems with our Event Sourcing implementation and with the help of distributed cache and computing features from Hazelcast IMDG.</p><h3>1.2 Choosing Eventual Consistency</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/0*E0DJb86H-izJt_Z-.png" /></figure><p>When dealing with a distributed architecture such as the networked, shared, multi-resource system that we are proposing, it is essential to recognise the common pitfalls of these systems. According to <a href="https://en.wikipedia.org/wiki/CAP_theorem">CAP Theorem</a><a href="https://app.hubspot.com/compose/4602321/blog-post/821882#ftnt2">[2]</a>, it is impossible for a <a href="https://en.wikipedia.org/wiki/Distributed_data_store">distributed data store</a> to simultaneously provide more than two out of the following three guarantees: Consistency, Availability, and Partition Tolerance.</p><p>Since we have a distributed architecture, Partition Tolerance is given. That is to say; partitions are inevitable facts of distributed systems. Thus we cannot give up Partition Tolerance. So, the actual selection is between Availability and Consistency. Availability with Eventual Consistency is a preferred choice against strong consistency in most distributed systems if the system needs to be highly available.</p><p><a href="https://en.wikipedia.org/wiki/Eventual_consistency">Eventual Consistency</a><a href="https://app.hubspot.com/compose/4602321/blog-post/821882#ftnt3">[3]</a> is a method of consistency which informally guarantees that, if no new updates have been to a given data item, eventually all accesses to that item will return the last updated value.</p><p>To understand what we mean by eventual consistency and strong consistency, let’s consider the example of money transfer between two accounts. When these accounts are situated in the same bank, usually a transfer within them is immediate and consistent across these two accounts. However, if you are transferring money from Wells Fargo to Commerzbank, then you see the money subtracted from Wells Fargo account and not yet added to the Commerzbank account. Usually, it takes a couple of business days for the money to show up at your Commerzbank account. Of course, banks provide every kind of logs so that money can be recovered if something goes wrong, but if you observe the external state of the system, you notice that the sum of two accounts is not immediately consistent.</p><p>The choice of eventual consistency brings us the cost of migrating from classical <a href="https://en.wikipedia.org/wiki/ACID">ACID</a><a href="https://app.hubspot.com/compose/4602321/blog-post/821882#ftnt4">[4]</a> systems which guarantee the strong consistency to <a href="https://en.wikipedia.org/wiki/Eventual_consistency">BASE</a><a href="https://app.hubspot.com/compose/4602321/blog-post/821882#ftnt5">[5]</a> systems which in turn offers eventual consistency.</p><p>In this manner, since Hazelcast IMDG offers AP (eventual consistency) with best effort Consistency, we have quickly adopted our components inside our architecture with ease.</p><h3>1.3 Why Event Sourcing?</h3><p>When dealing with a distributed microservice architecture, the challenges of decoupling data and multi-resource data management require particular attention.</p><p>Traditional monolith applications that use external resources rarely work on ACID databases to achieve consistency by doing Transactional Resource Management. In the case of having external resources, the consistency is reached by synchronizing (process/commit/rollback) with the existing transaction context in the best way possible. With the monolith to microservice transition and <a href="https://martinfowler.com/bliki/PolyglotPersistence.html">polyglot persistence</a><a href="https://app.hubspot.com/compose/4602321/blog-post/821882#ftnt6">[6]</a>, regardless of whether they are internal or external, all the resources would be external to each other. So the problem of assuring consistency among several resources/databases/systems arises. One solution might be 2PC (two-phase commit) strategy. However, since 2PC requires locking all the resources inside the transaction context, and the main idea of having microservices is to achieve maximum scalability and interdependence of components, managing multi-resource data operations with 2PC strategies would not be an efficient solution.</p><p>Also, when working on resources that have CRUD (Create / Read / Update / Delete) operations we have realized that designing resources with CRUD operations does not solve all of our problems. The operations on the entities are the results of the work-related <strong>events</strong>, not the CRUD operations.</p><p>A solution to the challenges above is storing all the events operated on the entity instead of storing the latest snapshot. This method is called <strong>Event Sourcing</strong>, and it helps us to establish eventual consistency between multiple resources.</p><p>With event sourcing, we can build entities by aggregating the events occurred instead of reading one row from the traditional ACID compliant database. Also, we can capture the state of an event where some of the events rolled back or failed. That is to say; an entity can provide us with an Eventual Consistent structure in a distributed microservice architecture when it can be expressed as the sum of events (i.e., aggregates) that can be reconstructed, rather than a data line.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*41b5GIMSduQA8CU4K6hObA.png" /></figure><p><em>[Image: Microservices — Event Sourcing]</em></p><h3>1.4 CQRS</h3><p>When we transform our applications from CRUD to event-based architecture, we face some changes. We will no longer have the CRUD resources. We need to solve the questions of how to read the data and how to take action/change an entity in this manner.</p><p>Command Models take actions on entities and change their states, and View / Query models collect and aggregate the events on the resources to read, help us solve this question. These command and query models can also reside in different microservices even if they represent the same resource. This way of representing data is called Command Query Responsibility Segregation (CQRS). CQRS can also be implemented in CRUD based architectures as well, but it eases event-based architectures more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*vfuDb9TeJhhpgHvAbvHQqg.png" /></figure><p><em>[Image: Microservices — Command/Query]</em></p><p>As examples of commands and queries, think of a stock resource. (was a Stock table in traditional architecture) All the read operations of a particular stock item or reading bulk of stock items would be queries. Also, all the write operations like increase stock and update price, that change the state of a particular item would be considered as commands.</p><h3>2.1 Event Sourcing/CQRS challenges</h3><p>Since nature of Event Sourcing/CQRS is different than classical CRUD based single RDBMS transactional systems, we have to plan and resolve concepts below carefully. These concepts may produce thought challenges while implementing microservice based systems if we are not aware the nature of Event Sourcing/CQRS. Let’s look at these:</p><h3>2.1.1 Commands/Entities</h3><p>Generally, in monolithic applications, we may have Entities and CRUD operations. When we need to change multiple entities atomically, we just use Transactions. However, in systems which use Event Sourcing/CQRS, we have Commands instead of CUD (create/update/delete) and Query for R (read). Also, Commands do not need to operate over Entities; they may operate against Aggregates.</p><h3>2.1.2 Event Store</h3><p>Instead of storing Entities, we have Events. We might need to access events to do operations. In traditional architectures, we can run index by entity fields, join and query these entities. However, now we have events stored in Event Store. Each event may contain data and affect multiple entities.</p><h3>2.1.3 Query Functions</h3><p>After storing events, our system must respond queries. Queries can target a single Entity (yes lots of development still needs entities) or view (joined and filtered version of entities). Queries consist of functions which convert Events into these Entities or Views. However, only one row of entity or view might require an evaluation of thousands of events.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*AMnv6FQf3ez6KHP_.png" /></figure><p><em>[Image: Account Balance, Entity — Events Deconstruction]</em></p><p>For example, as you see above, we have deconstructed Account Balance into Events, one of Balance may contain thousands of operations (Credit/Debit). Complex queries like joins and aggregates can also include multiple records of Customer Balance. So this is one of the challenges, we have to solve it to apply Event Sourcing/CQRS on our microservice architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*yN3EhWHJkKqLzeXW6aPlcg.png" /></figure><p><em>[Image: Multiple Events — Entities-Views etc Query Side problem]</em></p><h3>2.2 Solving Query Side problems with Hazelcast</h3><h3>2.2.1 Replays, Snapshot States, Versions</h3><p>Snapshot concept has been introduced to solve query side problems. We are persisting previous State of Entities or previous Result of Queries. When we need the latest state of Entity or Query Result, we just need to apply most recent events to the previously recorded state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*-Q1VX9yDF1d6g_YyCKjmFA.png" /></figure><p><em>[Image: Multiple Events — Snapshot]</em></p><p>To efficiently apply Snapshot strategies, we need to answer some questions:</p><ul><li>Should we persist all snapshot states (after each event)? Alternatively, can we keep only latest states?</li><li>Do we need a persistent store to keep all rows? We have already recorded events as Single Source of Truth. We may have a lot of Entity/Query definitions.</li><li>Since snapshots are only performance helpers, how can we implement proper housekeeping strategies?</li><li>Query Functions are code fragments tied to events. How can we cache and keep versions of these?</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*BHOS_sKn23z3J1l5LEI6IQ.png" /></figure><p><em>[Image: Multiple Events — Entity/Query Snapshots]</em></p><p>At this stage, Hazelcast IMDG comes into help. Since we have persistent Events as Single Source of Truth, we can build Snapshots in memory and use calculated states in a distributed scheme. Hazelcast can help to scale quickly with functionalities below:</p><ul><li>Calculate snapshots, updates to newer states. Also, with Entry Processors, we can eliminate recalculations.</li><li>We can store these Snapshots in memory, especially <strong>High-Density Memory Store</strong> can help us keep the larger size of Snapshots with reduced garbage collections (GC).</li><li><strong>Expire/Evict</strong> old or low priority Snapshots with various policies to make housekeeping.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*01-DLyuicL53w3uUc6MXRQ.png" /></figure><p><em>[Image: Entity/Query Snapshots]</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*_5kwTO8FiMaBCYMBum4Xyg.png" /></figure><p><em>[Image: Entity/Query Snapshots — Hazelcast Usage]</em></p><ul><li>Additionally, we can keep Query Functions withHazelcast User Code Deployment. So Any Query Service can answer, and we can easily define/cache/change query functions without restarting Query Microservices.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*nw2p8SlSMInwKB6wOktBmg.png" /></figure><p><em>[Image: Entity/Query Snapshots — Hazelcast Usage — User Code Query]</em></p><h3>2.3 Solving Monitoring Problems with Sliding Windows</h3><ul><li>In general, Event Sourcing/CQRS is not a standardized way to implement Application Stacks. Common Monitoring/Tracing tools are designed to integrate common Request/Response protocol stacks with CRUD operations over RDBMS/NoSQL. Moreover, it is hard to see desired Command/Event workflows with these tools. We can still monitor/trace microservice per Event or Request, but it is hard to see the effect of Commands and Query calculations. We need helper technologies to integrate Event Sourcing/CQRS into common Monitoring Stacks.</li><li>Event Sourcing requires microservices to communicate through Events. External Commands can produce many events through different microservices. Also, in case of unexpected failures, we do not have timeouts(such as socket-read timeouts, connection errors in Rest) or auto-rollback features(RDBMS rollbacks). So we need some Monitoring/Guardian processes to keep Event Sourcing/CQRS based systems healthy and consistent.</li></ul><h3>2.3.1 Request Tracing</h3><p>After we receive the command, we can collect event generation and handlings. So we may generate topology for each Request(in CQRS, Command). Generating topology helps to monitor Microservices with providing better information for Operation Boundaries for Commands. We cannot keep all information for every command and events, and we have to track in the specific time window. With the help of Hazelcast IMDG:</p><ul><li>We can implement these type of Processes which handle events and provide Tracing information</li><li>We can scale these processes thanks to Hazelcast. Tracing information must keep in memory and automatically expire/evict after required time window.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*TS2NFhyYteXN8vTGsEiwfg.png" /></figure><p><em>[Image: Eventbus, Request Tracing with Hazelcast]</em></p><h3>2.3.2 Timeouts, Error Handlings</h3><p>If we listen Eventbus and keep the current state of Command Operations, we can track timeouts and unexpected failures of microservices. When a microservice dies after receiving event or stuck, we have to generate Control events to help other Microservice to decide what to do next (retry/rollback, move forward, etc.). Together with Tracing information mentioned in 2.3.1, we can generate additional Control events. In this context, Hazelcast can help to:</p><ul><li>Keep current state of Command Operations till finish. We can access Operations very fast when needed.</li><li>Issue Control Events(based on <strong>Scheduling or Eviction</strong>) and atomically update the state of operations(<strong>Entry Processors</strong>).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*aKix6LLfAFTfezEoGJZMCg.png" /></figure><p><em>[Image: Eventbus, Error Handling]</em></p><h3>2.3.3 Event Dispatching</h3><p>CQRS means Command and Query are separated from each other. A successful response of command only implies that system started to operate your request. We have to query or watch specific events to know we reached the desired state(success or fail). However, at the moment not all of the development components may act like that.</p><p>For example, websites may want to keep the user in processing screen after issuing Command. In these type of scenarios, other systems can u occasionally query the desired state of operation. However, we cannot open whole Events/Queries to these systems. With the help of Hazelcast:</p><ul><li>We can keep filtered events as a result of Operation. So these systems can query or consume results.</li><li>We may apply different <strong>filtering/eviction policies</strong>, or we can keep events related to operations only some systems want to dispatch.</li><li>With <strong>Security Features</strong>, we can Authorize external systems to access only permitted events/results.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*bB52H5l8T67alg3i-pKhWg.png" /></figure><p><em>[Image: Event Dispatching with Hazelcast]</em></p><h3>3. Conclusions</h3><p>As a result, Hazelcast IMDG provides indispensable memory functionalities to meet the required maturity level of Event Sourcing/CQRS architecture in Enterprise Applications.</p><ul><li>Queries: <strong>High-Density Memory Store, Entry Processors, Expire/Evict</strong></li><li>Request Tracing: <strong>Expire/Eviction</strong></li><li>Error Handling/Timeouts: <strong>Scheduling, Eviction, Entry Processors</strong></li><li>Event Dispatcher: <strong>Security Features</strong></li></ul><p>bove are critical areas of Hazelcast IMDG which we use in our Event Sourcing/CQRS solution called <a href="https://github.com/kloiasoft/eventapis">Eventapis</a><a href="https://app.hubspot.com/compose/4602321/blog-post/821882#ftnt7">[7]</a>. To be continued with applied code samples…</p><p><a href="https://app.hubspot.com/compose/4602321/blog-post/821882#ftnt_ref1">[1]</a> Scaling: <a href="https://en.wikipedia.org/wiki/Scalability">https://en.wikipedia.org/wiki/Scalability</a></p><p><a href="https://app.hubspot.com/compose/4602321/blog-post/821882#ftnt_ref2">[2]</a> CAP Theorem: <a href="https://en.wikipedia.org/wiki/CAP_theorem">https://en.wikipedia.org/wiki/CAP_theorem</a></p><p><a href="https://app.hubspot.com/compose/4602321/blog-post/821882#ftnt_ref3">[3]</a> Eventual Consistency: <a href="https://en.wikipedia.org/wiki/Eventual_consistency">https://en.wikipedia.org/wiki/Eventual_consistency</a></p><p><a href="https://app.hubspot.com/compose/4602321/blog-post/821882#ftnt_ref4">[4]</a> ACID: <a href="https://en.wikipedia.org/wiki/ACID">https://en.wikipedia.org/wiki/ACID</a></p><p><a href="https://app.hubspot.com/compose/4602321/blog-post/821882#ftnt_ref5">[5]</a> BASE: <a href="https://en.wikipedia.org/wiki/Eventual_consistency">https://en.wikipedia.org/wiki/Eventual_consistency</a></p><p><a href="https://app.hubspot.com/compose/4602321/blog-post/821882#ftnt_ref6">[6]</a> Polyglot Persistence: <a href="https://martinfowler.com/bliki/PolyglotPersistence.html">https://martinfowler.com/bliki/PolyglotPersistence.html</a></p><p><a href="https://app.hubspot.com/compose/4602321/blog-post/821882#ftnt_ref7">[7]</a> Eventapis: <a href="https://github.com/kloiasoft/eventapis">https://github.com/kloiasoft/eventapis</a></p><p><em>Originally published at </em><a href="https://www.kloia.com/blog/event-sourcing/cqrs-with-hazelcast"><em>https://www.kloia.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=889f10e0a529" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kloia/event-sourcing-with-hazelcast-889f10e0a529">Event Sourcing with Hazelcast</a> was originally published in <a href="https://medium.com/kloia">kloia</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DevOpsDays Istanbul 2018 Maceramız]]></title>
            <link>https://medium.com/kloia/devopsdays-istanbul-2018-maceram%C4%B1z-546498054a00?source=rss-8511576bd355------2</link>
            <guid isPermaLink="false">https://medium.com/p/546498054a00</guid>
            <category><![CDATA[trs]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[istanbul]]></category>
            <category><![CDATA[devopsdays]]></category>
            <dc:creator><![CDATA[Orhan Burak Bozan]]></dc:creator>
            <pubDate>Wed, 26 Sep 2018 13:25:10 GMT</pubDate>
            <atom:updated>2018-09-30T19:20:55.374Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fxbQbsgo4fPwHGM05r8Sbw.png" /></figure><p>kloia olarak geçtiğimiz hafta yoğun ama bir o kadar da verimli ve heyecanlı bir hafta geçirdik. 20 Eylül’de sponsor olarak yer aldığımız <a href="https://devopsdays.istanbul/">DevOpsDays İstanbul</a> etkinliğinin bu noktadaki en önemli pay sahibi olduğunu söylememiz hiç de yanlış olmaz:)</p><blockquote>Geçtiğimiz hafta 3.’sü düzenlenen DevOpsDays İstanbul etkinliği hem çok faydalı konular ve konuşmacıların yer alması hem de katılımcı sayısının önceki yıllara göre oldukça artış göstermesi açısından bizleri ve sektörün nabzını tutan kişileri oldukça sevindirdi. Organizasyonun ilk yılından itibaren sponsor olmamızın verdiği sorumluluk ise bizleri bu yıl daha iyi hazırlanmaya teşvik etti.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PiT9ARX_oKTLANV5j8Av8A.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xx0CrGq7eKzCNuB1mGmI8w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0S4Ar6f-yQNQvUSSn6xAAw.jpeg" /></figure><blockquote>Her ne kadar hazırlıklarımıza çok önceden başlasak da, bizim için en yorucu kısmı etkinlik öncesi akşamı stand hazırlıklarımız oldu.</blockquote><p>Standımız artık bu güzel güne hazırdı. Etkinlik sonunda dereceye giren misafirlerin çeşitli hediyeler kazanacağı Quiz’imiz, hediye çantalarımız t-shirt’lerimiz, broşürler, kartvizitler ve hepsinden önemlisi enerjik biz kloian’lar! Kısacası her şey hazırdı.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rTL75l-zpCBnsLhQ_mnYqQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tIry5EMYd5jDsUXis_-a_g.jpeg" /></figure><p>Etkinlik alanına sabah erken saatlerde gittiğimizde heyecanlı ama bir o kadar da yoğun bir günün bizleri beklediğini anlamıştık. Bekleme alanında ciddi bir kalabalık, ana salon içerisinde ise tatlı bir koşturma vardi. Standlar, firmalar, çalışanlar, misafirler.. Kısacası herkes ilk oturumun heyecanını beklemekteydi. Bu bekleme süresini daha tatlı hale getiren şeylerin başında ise organizasyonun yapıldığı Radisson Blu otelinin sıcak içecek ve yiyecek ikramları yer aldı.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eZyhdN3s4HRicO_Kv76dnw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OmoztDKh2BO9BnnAMK7ncA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*maxdMWzu_FGmDwqUfie9hw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-ZAcBVzHHPJhkOQOAUUGMw.jpeg" /></figure><p>Standımızı ziyaret eden misafirlerimizin <a href="https://devops-as-a-service.kloia.com/">DevOps</a>, <a href="https://digitaltransition.kloia.com/">DigitalTransition</a>, <a href="https://taaas.kloia.com/">TestAutomation</a>, AWS servislerimize olan ilgileri bizleri fazlasıyla memnun etti. Ayrıca danışmanlık verdiğimiz teknoloji ve kavramları içeren gezegenlerimizin süslediği standımızın misafirlerimizin beğenisini ve merakını kazanması bizleri oldukça motive etti.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-pEGH0-UPj2nQvVyfeQEmw.jpeg" /></figure><p>Etkinliğe gelen misafirlerimizin Quiz’imize olan ilgilerinden de bahsetmeden geçemeyiz. Bunun yanında ikili sohbetler de oldukça eğlenceli geçti. Seanslar arasındaki kısa molaları eğlenerek ve deneyim kazanarak geçiren misafirlerin memnuniyeti bizleri de fazlasıyla mutlu etti. Quiz esnasında ufak tefek kurnazlık yapmaya çalışan arkadaslar da olmadı değil :)</p><p>Sonuç olarak DevOpsDays’de sorulara doğru cevap vererek dereceye giren katılımcılar hediyeleriyle buluştular.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LzLwN3O2U5d7-mEQmz4AKg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GSmnEjwII5U3JevDHgMxxA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SBUR6QqkkLMLGgkhqU9LIg.jpeg" /></figure><p>Saatler artık etkinlik sonunu gösterdiğinde ekibimiz biraz yorulmuş ama yüzümüzde bir etkinliği daha layığı ile yerine getirmenin haklı ve de güzel gururu vardı. Mükemmel bireysellik güzeldir fakat daha güzeli mükemmel birlikteliktir. Teşekkürler kloia ailesi.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G3jmq0t5SLEOiPs-ugr6ug.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=546498054a00" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kloia/devopsdays-istanbul-2018-maceram%C4%B1z-546498054a00">DevOpsDays Istanbul 2018 Maceramız</a> was originally published in <a href="https://medium.com/kloia">kloia</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Distributed Computing in Microservices: CAP Theorem]]></title>
            <link>https://medium.com/kloia/distributed-computing-in-microservices-cap-theorem-253c16017a99?source=rss-8511576bd355------2</link>
            <guid isPermaLink="false">https://medium.com/p/253c16017a99</guid>
            <category><![CDATA[cap-theorem]]></category>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[eventual-consistency]]></category>
            <category><![CDATA[eng]]></category>
            <dc:creator><![CDATA[Orhan Burak Bozan]]></dc:creator>
            <pubDate>Sun, 26 Feb 2017 17:21:13 GMT</pubDate>
            <atom:updated>2019-12-11T23:47:45.129Z</atom:updated>
            <content:encoded><![CDATA[<p>MicroServices has been a hype for a long time but we observe that the underlying theories about Distributed Computing and also pros&amp;cons of such transition are sometimes not clear.</p><blockquote>Before talking about microservices related technologies, it would be better to do a conceptual refresh about microservices that enables us to think distributed when developing applications with microservices.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/205/1*RVgnMbks_iHP7qRY0NHHdA.png" /><figcaption><strong>Figure-1: Traditional Monolithic Application</strong></figcaption></figure><p>A sample traditional application consists of a big monolithic application containing all the application logic and a single database containing all the data as shown in the figure.</p><p>However, this approach brings two main drawbacks;</p><ul><li>Increasing application complexity</li><li>Troubling to handle load</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*3HC9H5k6BvfFE43NpVgydQ.png" /><figcaption><strong>Figure-2: Internet Traffic Over Time</strong></figcaption></figure><p>The above chart shows the internet traffic over time. As can be seen from the chart, internet data and traffic is growing exponentially, <strong>NOT LINEAR</strong>. That means, if we have an application today handling the traffic successfully, it is not guaranteed that the application will cope with the load next year, even one month later.</p><h3>SCALING</h3><blockquote>In order to handle the load, the most commonly used methodology is <strong>scaling </strong>applications. And scaling is done in two way, <strong>VERTICAL</strong> and <strong>HORIZONTAL</strong> scaling.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/174/1*k8zz6bmq5LSSyGaYdYOhRg.png" /><figcaption><strong>Figure-3: Scale Up</strong></figcaption></figure><p>In <strong>Vertical Scaling</strong>, also known as scale-up, more resources (CPU, memory) added to the existing monolith application.</p><p>What vertical scaling provides us is that we don’t need to do extra development, we just shut down the app, upgrade the machine and run the service again. Also, it requires less networking between the applications. It might be better for process-intensive applications.</p><p>However, the cost of vertical scaling is growing almost exponentially every time the server/machine is scaled up. When the server is a standard server, it has very little cost. The cost of mainframe systems might be a good example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/237/1*GnOe8GtEuPt6uwMElXoJRQ.png" /><figcaption><strong>Figure-4: Scale-Out</strong></figcaption></figure><p>As opposed to Vertical Scaling, <strong>Horizontal Scaling</strong> (Scale-Out) is the methodology of adding more servers with standard capacity and running multiple applications at the same time.</p><p>The best feature of this approach is its LOWER COST compared to Vertical Scaling. Here, instead of upgrading the existing server, more servers/systems with standard capacity are added. Here, maximum performance is achieved even in the cloud. This approach is more fault-tolerant since more copies of the same application are running simultaneously. And it can be better for enterprise applications to use horizontal scaling.</p><p>With the above benefits, horizontal scaling also brings its drawbacks; more networking between the applications, more complex architectural design.</p><blockquote>In today’s modern enterprise applications, because of its <strong>LOWER COST</strong> and <strong>HIGH HARDWARE FAULT TOLERANCE </strong>(which also means high availability, more customers and more <strong><em>money</em></strong>), Horizontal Scaling is preferred.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*--lCE5FgsolbZH95Ymf-Aw.png" /><figcaption><strong>Figure-5: Possible Scaling Out Schemes</strong></figcaption></figure><p>Imagine we have decided to scale our applications horizontally. And the question <strong><em>“HOW TO SCALE HORIZONTALLY?”</em></strong> comes to the mind first.</p><h3>SCALE CUBE</h3><p>In order to answer the question of how to scale horizontally, <strong>Michael Fisher</strong> proposed a three dimensional model of scalability in his book <a href="https://www.amazon.com/Art-Scalability-Architecture-Organizations-Enterprise/dp/0134032802"><em>“The Art of Scalability”</em></a> naming <strong>Scale Cube</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*vGRbOGz6Cv6qgoAzSjcW0Q.png" /><figcaption><strong>Figure-6: Scale Cube by Michael Fisher</strong></figcaption></figure><p>Here, the origin corresponds to the monolithic system. The top-right corner represents the maximum scalability of your application. Since the cube is a 3D model, you don’t need to be in only one direction; that is to say, you can scale your application in any direction you want.</p><p><strong>X-AXIS SCALING</strong> , also known as Horizontal Duplication, is simply cloning the whole application and running these copies behind a load balancer. If you have N copies, then each copy handles 1/N of the load.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*uT-xTt5ig99vV_wg52Wv_A.png" /><figcaption><strong>Figure-7: X-Axis Scaling</strong></figcaption></figure><p>This is the most commonly used scaling method today. However, this approach brings its difficulties.</p><ul><li>All the copies might be <strong>accessing the same data</strong>. Hence, locking mechanisms accross several systems are required.</li><li>This approach doesn’t solve the problem of <strong>High Application Complexity</strong>. Multiple copies will still contain the same complex monolithic applications.</li></ul><p><strong>Y-AXIS SCALING</strong>, named as Functional Decomposition, is the method of scaling by using <strong>microservices</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*d1wEFHZ2U3zvcnKyz6bc7g.png" /><figcaption><strong>Figure-8: Y-Axis Scaling</strong></figcaption></figure><p>Instead of running multiple instances of the same application, in Y-Axis Scaling the application is decomposed into multiple microservices. And each service is responsible for one function.</p><p>Possible decomposition types are;</p><ul><li>Noun-Based Decomposition: Represents the domains of the application. Achieved by creating <strong>Entity-Services</strong> for each for each resource in the application. ex. Customer Service, Product Service, etc.</li><li>Verb-Based Decomposition: Represents the functionalities of the application. Achieved by creating <strong>Capability-Services</strong> for each capability in the application. ex. Login Service, Checkout Service, etc.</li></ul><blockquote>Any well-microserviced application should contain both <strong>Entity-Services</strong> and <strong>Capability-Services</strong>. Using microservice approach brings the freedom of scaling any part of our application wanted. No need to clone the whole application. In this manner, this approach is <strong>Cost Efficient</strong>.</blockquote><p>However, using microservices brings its own difficulties;</p><ul><li>Resource sharing between applications is needed and that increases the networking and bandwidth usage.</li><li>Also, since different resources are shared between different applications, the problem of <strong>Multi Resource Data Management</strong> needs to be solved.</li></ul><p><strong>Z-AXIS SCALING</strong>, also known as Data Partitioning, is scaling by Sharding Databases. Z-Axis Scaling is similar to X-Axis Scaling in running multiple copies of the same application. However, here each copy of application is responsible for <strong>different subset </strong>of the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*zde-Y106ypirW9CAkPh0lw.png" /><figcaption><strong>Figure-9: Z-Axis Scaling</strong></figcaption></figure><p>Here, <strong>routing criteria</strong> should be defined for the incoming request to be processed by which server.</p><p>When compared to X-Axis Scaling, Z-Axis Scaling has the following advantages;</p><ul><li>We don’t have more than one application dealing with the same data</li><li>So this improves memory usage and I/O traffic between applications.</li></ul><p>However,</p><ul><li>We still have the<strong> </strong>increased <strong>application complexity</strong>. We still need y-axis scaling.</li><li>Partitioning Scheme in Database Layer is needed</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*x5n3H53scCcvkhvbK96BIg.png" /><figcaption><strong>Figure-10: X and Y-Axis Scaling Combined</strong></figcaption></figure><p>As, can be seen in the the scale cube, we don’t need to scale out in only one direction. Here for example, the above figure illustrates the microservice architecture with each microservice is scaled in X-Axis.</p><blockquote>Regardless of which scaling method is used, we will be having a Networked Shared Multi Resource Systems<strong>.</strong> And such a system requires DISTRIBUTED COMPUTING.</blockquote><blockquote>When we have a distributed systems of applications, we need to be considering the <strong>COMMON PITFALLS OF DISTRIBUTED COMPUTING</strong> when developing our applications: <strong>CONSISTENCY</strong>, <strong>AVAILABILITY</strong>, <strong>PARTITION TOLERANCE</strong></blockquote><p><strong>CONSISTENCY </strong>is a property of a distributed system that every read receives the most recent write or an error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/301/1*6AKmDc0WLSqzYdq5fyWasg.png" /><figcaption><strong>Figure-11: Consistency</strong></figcaption></figure><p>In other words, in a distributed system when I read from it, I will always see what I have most recently written given a certain key. I should always be getting the most recent update that I wrote.</p><p>As an example of consistency, think of an online shopping application. What consistency states that, in the shopping cart, I should always be getting the previously added items. The shopping cart itself has to be consistent.</p><p><strong>AVAILABILITY</strong> is the property of a distributed system that every request receives a (non-error) response-without guarantee that it contains the most recent write.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/301/1*W9itpbwuv4-ESwN5zWHsqw.png" /><figcaption><strong>Figure-12: Availability</strong></figcaption></figure><p>This feature is also simple to understand. When I ask, I should always get answer. When I try to write, I should write. When I try to read, I should read. The system shouldn’t tell me <em>“sorry come back later”</em>.</p><p>As an example, again think of our online shopping application. In this case, I should always access my shopping cart eventually regardless of its consistency.</p><p><strong>PARTITION TOLERANCE</strong> is the property of a distributed system that the system continues to operate even if there is a partition / communication break (ex.components not communicate)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/301/1*hWokM8ubMwlMVYPIG5p2iw.png" /><figcaption><strong>Figure-13: Partition Tolerance</strong></figcaption></figure><p>Partition here is not the Oracle’s understanding of partition. What the partition described is that since our system is a distributed system, some of the nodes might sometimes be separated from the other nodes. Any kind of problem breaking the network might lead to partitions. That is to say, some part of the system cannot talk with the others.</p><blockquote>And what partition tolerance is requiring that our system should tolerant to the partitions. <strong>What Fault Tolerance for a Software is Partition Tolerance for a Distributed System.</strong> The system should continue to operate even in a partition.</blockquote><p>Again, think of our online shopping application. What partition tolerance forces our system is that we should be accessing our system even some nodes are partitioned.</p><h3><strong>CAP THEOREM</strong></h3><p>CONSISTENCY, AVAILABILITY and PARTITION TOLERANCE are the features that we want in our distributed system together. However, according to <strong>Eric Brewer</strong> it is impossible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/364/1*8JZr1RzAHvJT60XZuRttXA.png" /><figcaption><strong>Figure-14: CAP Theorem</strong></figcaption></figure><blockquote>“Of three properties of shared-data systems (Consistency, Availability and tolerance to network Partitions) only two can be achieved at any given moment in time.” Eric Brewer</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*A2-kY6STgOWyZq273I06Xw.png" /><figcaption><strong>Figure 15: CAP Theroem</strong></figcaption></figure><p>Here, CAP theorem states that every distributes system is on one side of the triangle, and there is no way to be in the center. And each side of the triangle has its own features, advantages and disadvantages.</p><h3><strong>CA - FORFEIT PARTITIONS</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/298/1*gvLxHX_sEVXr3ugSp19Aog.png" /><figcaption><strong>Figure 16: Forfeit Partitions</strong></figcaption></figure><p>The system achieves High Available Consistency.</p><p>To manage data across multiple resources these systems used methods like 2-Phase Commit.</p><p>Single-site databases, RDBMS (Oracle, Postgres, MySQL) could be good eamples of CA systems.</p><h3><strong>CP- BEST EFFORT AVAILABILITY</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*H6KgkimJTQMAqsT0r1vLTw.png" /><figcaption><strong>Figure 17: Forfeit Partitions</strong></figcaption></figure><p>The system achieves Strong Consistency with Partition Tolerance</p><p>Pessimistic Locking methods used for multi resource data management.</p><p>DNS, MongoDB, Redis are the example CP systems.</p><h3>AP- BEST EFFORT CONSISTENCY</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/307/1*7vDmaLjKRRNS8ovNysrRrQ.png" /><figcaption><strong>Figure 18: Best Effort Consistency</strong></figcaption></figure><p>The system offers Full Availability by relaxing consistency.</p><p>Optimistic Locking methods used for multi resource data management.</p><p>CouchBase, Cassandra, Hazelcast are the example CP systems.</p><blockquote>As described earlier in the post, in order to scale the system out, we have to distribute resources. So, Partition Tolerance will be a need rather than an option among the others.</blockquote><p>Actually, when we have monolith systems and databases having CA (Consistent &amp; Available) capabilities, we don’t need distributed computing and no need to consider about partitions.</p><blockquote>However, Partitions are inevitable facts of the distributed systems. And we cannot give up <strong>Partition Tolerance</strong>. So, the actual selection will be between <strong>Availability </strong>and <strong>Consistency. </strong>In most of the distributed systems, availability is preferred against strong consistency.</blockquote><p>Therefore, we should choose a specific approach based on the needs of each microservice.</p><p>For example, for our online shoppping application; for the checkout process we always want to honor requests to add items to a shopping cart because it’s producing revenue and we don’t want to miss our customers. In this case we should choose high availability. We may hide the errors from the customer for a short while.</p><p>However, for example, in our order service, when a customer sends an order we should favor consistency because several services and resources such as payment, shipping, reporting etc. are simultaneously accessing the data.</p><blockquote>One thing should be kept in mind that, the selection between <strong>Availability</strong> and <strong>Consistency</strong> is not binary. Choosing Availability doesn’t mean that the system will be inconsistent, the system will achieve <strong>Best Effort Consistency</strong>.Or favoring Consistency doesn’t make the system unavailable, the system tries to provide Best <strong>Effort Availability</strong>.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*i-uRa6Am9slCC_R84jukAA.png" /><figcaption>Figure-19: <a href="http://blog.nahurst.com/visual-guide-to-nosql-systems"><strong>http://blog.nahurst.com/visual-guide-to-nosql-systems</strong></a></figcaption></figure><p>Above diagram visualize the CAP characteristics of NoSQL systems.</p><h3><strong>DATA MANAGEMENT- ACRONYMS</strong></h3><p>When dealing with different distributed systems, databases and architecture we may face with the Data Management Acronyms: ACID and BASE.</p><p>ACID and BASE are only <strong>acronyms</strong>, they are not the implementation or features of CAP Theorem.</p><blockquote>Before Distributed Architectures and microservices are spread, we only had ACID transactions. However, then after CAP theorem and increaing interest to distributed systems, achieving ACID became impossible. And Eric Brewer defined BASE acronym which is necessary in some cases.</blockquote><h3><strong>ACID</strong></h3><p>The acronym ACID is consists of 4 feaures.</p><p><strong><em>A</em></strong>TOMIC: “The transaction should either success or reverts to the original state.” In other words, all or nothing should be committed.</p><p><strong>C</strong>ONSISTENT: “Any transaction will bring the system from one valid state to another.” Consistent here is different than the consistency in CAP Theorem. The former is for the state of the whole system, however, the latter is about the consistency of a single entity.</p><p><strong>I</strong>SOLATED: “Transactions cannot interfere with each other.” This feature states that for a single entity, only one transaction can occur simultaneously.</p><p><strong>D</strong>URABLE: “Once a transaction has been committed, it will remain so”. This property is related to persistence characteristics of the system. The database should remember everything after the transaction is completed.</p><h3><strong>BASE</strong></h3><p>BASE is an alternative multi resource data management methodology to ACID described by Eric Brewer after proposing CAP Theorem. BASE consists of 3 properties.</p><p><strong>B</strong>ASICALLY <strong>A</strong>VAILABLE: System mostly available and there might be some subsystems temporarily unavailable.</p><p><strong>S</strong>OFT STATE: The state of system could change over time, so even during times without any input given there may be changes in the system going on due to ‘<strong>eventual consistency</strong>’, thus the state of the system is always considered to be ‘soft’.</p><p><strong>E</strong>VENTUAL CONSISTENT: Given that if no new updates are made to a given data item, eventually all accesses will return the last updated value.</p><blockquote><strong>BASE </strong>acronym is actually depends on the concept of <strong>Eventual Consistency</strong>. Before explaining it deeply and giving some examples to eventual consistency, it might be better to have a look at the consistency types.</blockquote><h3>CONSISTENCY TYPES</h3><p><strong>STRONG CONSISTENCY: </strong>Strong consistency is a consistency model where all subsequent accesses to a distributed system will always return the updated value after the update.<br><strong>WEAK CONSISTENCY:</strong> It is a consistency model used in distributed computing where subsequent accesses might not always be returning the updated value. There might be inconsistent responses.<br><strong>EVENTUAL CONSISTENCY: </strong>Eventual consistency is a special type of weak consistency method which informally guarantees that, if no new updates are made to a given data item, eventually all accesses to that item will return the last updated value.</p><blockquote>Although the term Eventual Consistency might be seen as a new concept for us, it has lots of real time examples, not only in software products.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/308/1*8OpaUPB0244KIQBMZQjwtw.png" /><figcaption>Figure-20: AliExpress</figcaption></figure><p>The <strong>payment process in AliExpress</strong> works eventually consistent. When you submit your payment information, it doesn’t immediately return the actual payment status, but rather system will tell you that your payment has submitted. Then after, your payment successes or fails, you will be notified by an email or in-app notification. System guarantees that you will eventually receive your payment result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/233/1*Szds1u7B5o9F8X3-J3Jyiw.png" /></figure><p>Another example is the <strong>Facebook wall</strong>. Imagine that you found something crazy and wanted to share it on your friends wall. After posting it, when you ask your friend to check his/her wall, s/he might not be see the post immediately. But, after for a while or after refreshing the page, s/he will eventually see the link that you’ve posted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/184/1*NaNyLVO9K6Wk7B7mv1FQ0Q.png" /></figure><p>The last example is the Shake Shack. In a self-service restaurant you get you line, you pick up what you want to eat, and you do your payment. If you can pay the meal, you will then get you meal and eat it. However, in a restaurants like Shake Shack, you will first order what you want to eat, and then you do your payment and you will be given a shake, which we call it as <strong>Promise</strong> in Software World. When your burger is ready, you will be notified by your shake, the promise, and then you get your meal.</p><p>REFERENCES</p><ul><li><a href="https://www.nginx.com/blog/introduction-to-microservices/">https://www.nginx.com/blog/introduction-to-microservices/</a></li><li><a href="https://devcentral.f5.com/articles/the-art-of-scale-microservices-the-scale-cube-and-load-balancing">https://devcentral.f5.com/articles/the-art-of-scale-microservices-the-scale-cube-and-load-balancing</a></li><li><a href="http://microservices.io/">http://microservices.io/</a></li><li><a href="https://en.wikipedia.org/wiki/Two-phase_commit_protocol">https://en.wikipedia.org/wiki/Two-phase_commit_protocol</a></li><li><a href="https://en.wikipedia.org/wiki/CAP_theorem">https://en.wikipedia.org/wiki/CAP_theorem</a></li><li><a href="https://en.wikipedia.org/wiki/Eventual_consistency">https://en.wikipedia.org/wiki/Eventual_consistency</a></li><li><a href="http://blog.nahurst.com/visual-guide-to-nosql-systems">http://blog.nahurst.com/visual-guide-to-nosql-systems</a></li><li><a href="http://robertgreiner.com/2014/08/cap-theorem-revisited/">http://robertgreiner.com/2014/08/cap-theorem-revisited/</a></li><li><a href="http://broabandtrafficmanagement.blogspot.com.tr/2012/01/itu-internet-bandwidth-has-grown.html">http://broabandtrafficmanagement.blogspot.com.tr/2012/01/itu-internet-bandwidth-has-grown.html</a></li></ul><p><strong>Orhan Burak Bozan</strong></p><p><strong>Software Consultant</strong></p><p><a href="http://kloia.com/"><strong>kloia</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=253c16017a99" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kloia/distributed-computing-in-microservices-cap-theorem-253c16017a99">Distributed Computing in Microservices: CAP Theorem</a> was originally published in <a href="https://medium.com/kloia">kloia</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>