<?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 Lövei Róbert on Medium]]></title>
        <description><![CDATA[Stories by Lövei Róbert on Medium]]></description>
        <link>https://medium.com/@loveirobert?source=rss-6637b8370398------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*s7olqa4jpfyGnrkl.jpg</url>
            <title>Stories by Lövei Róbert on Medium</title>
            <link>https://medium.com/@loveirobert?source=rss-6637b8370398------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 01:05:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@loveirobert/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[Service Discovery in Microservice Based Architectures]]></title>
            <link>https://medium.com/@loveirobert/service-discovery-in-microservice-based-architectures-36757f76f647?source=rss-6637b8370398------2</link>
            <guid isPermaLink="false">https://medium.com/p/36757f76f647</guid>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Lövei Róbert]]></dc:creator>
            <pubDate>Mon, 16 May 2016 16:00:55 GMT</pubDate>
            <atom:updated>2016-05-16T16:15:36.949Z</atom:updated>
            <content:encoded><![CDATA[<p>Microservices are small, independent processes that communicate with each other to form complex applications. They are narrowly focused, independently deployable, loosely coupled, language agnostic.</p><p>The communication between them is usually <strong>REST</strong>, or messaging based.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WKXrTzhvgeT3CxnRROtDoA.png" /><figcaption>Figure 1 — Lack of service discovery</figcaption></figure><p><strong>Problems to consider</strong></p><ul><li>Dynamic number of service instances</li><li>Dynamic network addresses for service instances</li><li>HTTP REST based communication</li><li>Changing location of services</li><li>Question of load balancing</li></ul><p>There are two ways to provide solutions to the problems above. <strong>Client-side or server-side service discovery</strong>. Both have pros and cons, but first look at the structure of client-side service discovery pattern.</p><h4>Client-side service discovery pattern</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o5cxgwhia1s5yHMIrxwJ9A.png" /><figcaption>Figure 2 — Client-side service discovery</figcaption></figure><p>As you can see above services are registering themselves in a service registry, when they are starting up. Their availability is updated with a heartbeat mechanism.</p><p><strong>Drawbacks of client-side service discovery</strong></p><ul><li>Couples the clients with the service registry</li><li>No centralized control on load balancing</li><li>Service discovery has to be implemented in each client microservice (remember we are language agnostic)</li></ul><h4>Server-side service discovery pattern</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hODkqDkiJn9zw7qbmU0enQ.png" /><figcaption>Figure 3 — Server-side service discovery</figcaption></figure><p><strong>Drawbacks of server-side service discovery</strong></p><ul><li>We have to set up and manage load balancer</li></ul><p><strong>Advantages of server-side service discovery</strong></p><ul><li>Loosely coupled clients and registry</li><li>No service discovery implementation in various clients</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36757f76f647" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>