<?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 Saurabh Srivastav on Medium]]></title>
        <description><![CDATA[Stories by Saurabh Srivastav on Medium]]></description>
        <link>https://medium.com/@saurabhsri.mau?source=rss-44ade8102789------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*_JzHfUjjARS8p5eR</url>
            <title>Stories by Saurabh Srivastav on Medium</title>
            <link>https://medium.com/@saurabhsri.mau?source=rss-44ade8102789------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 20:19:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@saurabhsri.mau/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[Microservices in Spring boot]]></title>
            <link>https://medium.com/@saurabhsri.mau/microservices-in-spring-boot-7e4071acca73?source=rss-44ade8102789------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e4071acca73</guid>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[microservices]]></category>
            <dc:creator><![CDATA[Saurabh Srivastav]]></dc:creator>
            <pubDate>Wed, 14 May 2025 04:12:27 GMT</pubDate>
            <atom:updated>2025-05-14T04:12:27.919Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What are Microservices?</strong></p><p><strong>Microservices</strong> is an architectural style where a large application is broken into <strong>smaller, independent services</strong>. Each service handles a specific functionality and communicates with others via <strong>REST APIs</strong> or <strong>message queues</strong>.</p><p><strong>Why do we need Microservices in Spring Boot ?</strong></p><ul><li><strong>Scalability</strong>: If a particular feature (like payments) gets high traffic, we can scale just that service.</li><li><strong>Independent Deployment</strong>: Each microservice can be deployed/updated independently without affecting the entire application.</li><li><strong>Fault Isolation</strong>: If one service (like email) crashes, other services (like login, orders) continue working.</li><li><strong>Technology Flexibility</strong>: Each service can be developed in a different technology/language (though we commonly use Java with Spring Boot).</li><li><strong>Faster Development</strong>: Different teams can work on separate microservices without stepping on each other’s toes.</li></ul><p><strong>Tools/Technologies used with Spring Boot in Microservices:</strong></p><ul><li><strong>Spring Cloud Eureka</strong> — For service registry and discovery</li><li><strong>Spring Cloud Gateway</strong> — For routing API requests</li><li><strong>Spring Cloud Config</strong> — For centralized configuration</li><li><strong>Spring Boot Actuator</strong> — For health checks and monitoring</li><li><strong>Zipkin/Sleuth</strong> — For distributed request tracing</li><li><strong>RabbitMQ/Kafka</strong> — For asynchronous messaging between services</li></ul><p><strong>Example Scenario:</strong></p><p><em>A user places an order for a product:</em></p><ol><li><strong>User Service</strong> → Authenticates the user.</li><li><strong>Product Service</strong> → Verifies product availability.</li><li><strong>Order Service</strong> → Creates the order.</li><li><strong>Payment Service</strong> → Processes the payment.</li><li><strong>Notification Service</strong> → Sends order confirmation email/SMS.</li><li>If tomorrow the <strong>notification service fails</strong>, the other services still work fine — no total app failure.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e4071acca73" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>