<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Deepanshu chhabda</title>
    <description>The latest articles on DEV Community by Deepanshu chhabda (@dpnshu_).</description>
    <link>https://dev.to/dpnshu_</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F413608%2F5a3b040a-facd-49b6-9217-5f174572acb4.jpg</url>
      <title>DEV Community: Deepanshu chhabda</title>
      <link>https://dev.to/dpnshu_</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dpnshu_"/>
    <language>en</language>
    <item>
      <title>[1] Notes on "Building Microservices" </title>
      <dc:creator>Deepanshu chhabda</dc:creator>
      <pubDate>Tue, 27 Jul 2021 18:17:14 +0000</pubDate>
      <link>https://dev.to/dpnshu_/1-notes-on-building-microservices-4o8a</link>
      <guid>https://dev.to/dpnshu_/1-notes-on-building-microservices-4o8a</guid>
      <description>&lt;p&gt;Currently reading &lt;a href="https://www.oreilly.com/library/view/building-microservices/9781491950340/"&gt;&lt;strong&gt;Building Microservices: Designing Fine-Grained Systems&lt;/strong&gt;&lt;/a&gt; and trying to curate notes for myself and some greater good 😉. I'm trying to approach this in a minimalistic way keeping the essence of chapters intact.&lt;/p&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Small, and Focused on Doing One Thing Well
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Cohesion -  To have related code grouped together.&lt;/li&gt;
&lt;li&gt;Enforcing SRP by Uncle BOB

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Gather together those things that change for the same reason, and separate those things that change for different reasons.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Key rules&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Small enough and no smaller.&lt;/li&gt;
&lt;li&gt;Is it codebase too big to be managed by a small team?&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Autonomous : Freedom to govern itself
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Golden rule&lt;/strong&gt;: Can you make a change to a service and deploy it by itself without changing anything else?&lt;/li&gt;
&lt;li&gt;Decoupling is an important aspect

&lt;ul&gt;
&lt;li&gt;Modelling the service right &lt;/li&gt;
&lt;li&gt;Choosing right good, decoupled APIs&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Key benefits
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Tech Heterogenity
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Performance improvement can be done easily by consuming a new stack&lt;/li&gt;
&lt;li&gt;Adopting new tech is easy - Start with a service with limited potential impact.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Resilience : Capacity to recover quickly
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Key&lt;/strong&gt; : Bulkheads (Barriers between services)&lt;/li&gt;
&lt;li&gt;Service boundaries are obvious bulkheads&lt;/li&gt;
&lt;li&gt;In monolithic, everthing stops at once. We run it on multiple machines to handle this scenario.&lt;/li&gt;
&lt;li&gt;In microservices, building a system that handles total of failure of one service( and degrade functionality accordingly).&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Scalability
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Scaling is easier for micro than monolithic service. One aspect of complete service can be scaled individually.&lt;/li&gt;
&lt;li&gt;On-demand provisioning (like by AWS) on pieces that need it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Easy of deployment
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Key factors&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Delta in subsequent releases&lt;/li&gt;
&lt;li&gt;Avoiding High Risk, Large Impact deployments &lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;Microservices mitigates above factors' bad consequences&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Organizational Alignment
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt; Working on any one codebase to hit the sweet spot of team size and productivity.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Composability
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Reuse of existing functionality&lt;/li&gt;
&lt;li&gt;Web, native application, mobile web, tablet app, or wearable device&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Replacibility optimization
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Scary Legacy code - vital and risky to replace&lt;/li&gt;
&lt;li&gt;Small service - Low cost to replace&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>microservices</category>
      <category>design</category>
      <category>systems</category>
    </item>
  </channel>
</rss>
