<?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 sivesh kumar on Medium]]></title>
        <description><![CDATA[Stories by sivesh kumar on Medium]]></description>
        <link>https://medium.com/@sivesh-kumar?source=rss-b27aea341ffc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*TvwWxE5yq0FpC3crMcGrOQ.jpeg</url>
            <title>Stories by sivesh kumar on Medium</title>
            <link>https://medium.com/@sivesh-kumar?source=rss-b27aea341ffc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 18:20:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sivesh-kumar/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[9 Data Flow Power Plays Architectural Patterns for Success]]></title>
            <link>https://medium.com/@sivesh-kumar/9-data-flow-power-plays-architectural-patterns-for-success-2fa0b6cbf5e9?source=rss-b27aea341ffc------2</link>
            <guid isPermaLink="false">https://medium.com/p/2fa0b6cbf5e9</guid>
            <category><![CDATA[system-integration]]></category>
            <category><![CDATA[system-design-interview]]></category>
            <category><![CDATA[api-gateway]]></category>
            <category><![CDATA[service-design]]></category>
            <category><![CDATA[dataflow-architectural]]></category>
            <dc:creator><![CDATA[sivesh kumar]]></dc:creator>
            <pubDate>Sun, 21 Jul 2024 14:34:56 GMT</pubDate>
            <atom:updated>2024-07-21T14:34:56.438Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4ywb-Ro9xmrSfRilvaS0Hg.gif" /></figure><p><strong>Request-Response:</strong><br>Description: A client sends a request to a server, which processes the request and sends back a response.<br>Example: A user fills out a form on a website and clicks submit, and the server processes the data and sends back a confirmation message.</p><p><strong>API Gateway:</strong><br>Description: A single entry point for multiple microservices, handling requests by routing them to the appropriate service.<br>Example: An online shopping app where the API Gateway routes user requests to services like product listing, payment processing, and order tracking.</p><p><strong>Batching:</strong><br>Description: Processing data in large blocks (batches) at scheduled times rather than one piece at a time.<br>Example: Payroll systems that process all employees’ salaries at the end of the month.</p><p><strong>Peer-to-Peer:</strong><br>Description: This is a decentralized network where each node (peer) can act both as a client and a server.<br>Example: File sharing networks like BitTorrent, where each user can download and upload files to and from other users.</p><p><strong>Pub-Sub (Publish-Subscribe):</strong><br>Description: A messaging pattern where senders (publishers) send messages to a topic, and receivers (subscribers) receive messages from that topic.<br>Example: Notification systems where a user subscribes to weather updates and receives notifications when new weather data is published.</p><p><strong>ETL (Extract, Transform, Load):</strong><br>Description: A process used in data warehousing to extract data from different sources, transform it into a suitable format, and load it into a database.<br>Example: Consolidating sales data from multiple branches of a store, transforming it into a consistent format, and loading it into a central database for analysis.</p><p><strong>Event Sourcing:</strong><br>Description: Instead of storing just the current state of data, every change (event) is stored so the state can be reconstructed from these events.<br>Example: Banking transactions where each deposit, withdrawal, and transfer is recorded as an event, allowing the account balance to be recalculated at any time.</p><p><strong>Streaming Processing:</strong><br>Description: Real-time processing of data as it is produced, often used for continuous data flow.<br>Example: Real-time analytics of social media feeds to detect trending topics.</p><p><strong>Orchestration:</strong><br>Description: Managing and coordinating multiple services to complete a task or workflow.<br>Example: An online travel booking system that coordinates between flight booking, hotel reservation, and car rental services to complete a travel itinerary.</p><p>If you’ve made it till here, thanks for giving this a read, have a great day! :)</p><p><strong>Follow for More</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/48/0*zTSr66WgukVjzb6z.png" /></figure><p><a href="https://www.linkedin.com/in/sivesh-kumar/">https://www.linkedin.com/in/sivesh-kumar/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/48/0*bdfI5KHkXknk8uqB.png" /></figure><p><a href="https://siveshkumar.com/">https://siveshkumar.com</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/48/0*W5YKXSj6c14Cn16l.png" /></figure><p><a href="https://medium.com/@sivesh-kumar">https://medium.com/@sivesh-kumar</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/48/0*OgdaJLaEgzE_S6R3.png" /></figure><p><a href="https://github.com/sivesh2000">https://github.com/sivesh2000</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/48/0*mQD28Lh52OuOuUUl.png" /></figure><p><a href="https://www.instagram.com/codewithsivesh/">https://www.instagram.com/<br>codewithsivesh/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/48/0*k9g_Vqj-W9Ja85fL.png" /></figure><p><a href="https://whatsapp.com/channel/0029VaIonGZDTkJwCGrAXT0D">https://whatsapp.com/channel/<br>0029VaIonGZDTkJwCGrAXT0D</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2fa0b6cbf5e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ola and Uber System Design]]></title>
            <link>https://medium.com/@sivesh-kumar/ola-and-uber-system-design-2f0da81c59ac?source=rss-b27aea341ffc------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f0da81c59ac</guid>
            <category><![CDATA[how-ola-and-uber-works]]></category>
            <category><![CDATA[system-design-interview]]></category>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[sivesh kumar]]></dc:creator>
            <pubDate>Sat, 20 Jul 2024 18:21:38 GMT</pubDate>
            <atom:updated>2024-07-20T18:21:38.626Z</atom:updated>
            <content:encoded><![CDATA[<p>Ola and Uber, the ride-hailing giants, function very similarly. Here’s a breakdown of how they work for both riders and drivers:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*sI5AVvFVvPxQcOWFg6M0ZQ.gif" /><figcaption>Ola and Uber system design</figcaption></figure><p><strong>For Riders:</strong></p><ol><li><strong>Request a Ride:</strong> Open the app (Ola or Uber) and set your pickup location and destination. You’ll see various ride options with details like car type, estimated time of arrival (ETA), and fare.</li><li><strong>Match with a Driver:</strong> The app’s algorithm matches you with a nearby driver who is available to accept your request. You’ll get the driver’s details and car information within the app.</li><li><strong>Track Your Ride:</strong> The app displays the driver’s location on a map as they head towards your pickup point.</li><li><strong>Take the Ride:</strong> Once the driver arrives, hop in and enjoy the ride! The app provides navigation for the driver, so you can focus on getting where you’re going.</li><li><strong>Pay and Rate:</strong> Payment is typically automatic through your linked payment method. You can also rate your driver and leave a review to help maintain quality service.</li></ol><p><strong>For Drivers:</strong></p><ol><li><strong>Go Online:</strong> Drivers use their partner app (Ola Driver or Uber Driver) to indicate they’re available for rides.</li><li><strong>See Ride Requests:</strong> The app shows nearby ride requests with details like pickup location and destination.</li><li><strong>Accept or Decline:</strong> Drivers have the freedom to choose which rides they want to accept based on factors like distance, direction, and fare offered.</li><li><strong>Pick Up Rider:</strong> The app guides the driver to the rider’s location using GPS.</li><li><strong>Drop Off Rider:</strong> Once at the destination, the driver completes the ride, and payment is automatically processed by the platform (Ola or Uber).</li><li><strong>Rate Rider (Optional):</strong> Drivers can also rate riders, which helps promote a positive experience on the platform.</li></ol><p><strong>Behind the Scenes:</strong></p><ul><li><strong>Matching Magic:</strong> Both Ola and Uber use smart algorithms to efficiently match riders with drivers. These algorithms consider factors like distance, traffic conditions, and driver availability to ensure a quick pick-up.</li><li><strong>Real-time Connection:</strong> The apps provide real-time location updates for both riders and drivers, allowing for smooth coordination and efficient pickups.</li><li><strong>Safety First:</strong> Safety features like trip verification, in-app emergency buttons, and driver background checks are a priority for both Ola and Uber.</li></ul><p><strong>Some Additional Points:</strong></p><ul><li>Both Ola and Uber offer various ride options catering to different needs and budgets. These options may include car types like hatchbacks, sedans, and SUVs.</li><li>Riders can share their ride details with friends and family for added safety and peace of mind.</li><li>Ola and Uber are constantly innovating and adding new features to improve the user experience, making ride-hailing even more convenient and reliable.</li></ul><p>While both Ola and Uber share a similar core functionality, there might be some regional variations in terms of ride options, pricing, and even payment methods.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f0da81c59ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GIT Cheat Sheet]]></title>
            <link>https://medium.com/@sivesh-kumar/git-cheat-sheet-44752b679295?source=rss-b27aea341ffc------2</link>
            <guid isPermaLink="false">https://medium.com/p/44752b679295</guid>
            <category><![CDATA[git-workflow]]></category>
            <category><![CDATA[system-design-concepts]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[architectural-design]]></category>
            <category><![CDATA[git-architecture]]></category>
            <dc:creator><![CDATA[sivesh kumar]]></dc:creator>
            <pubDate>Sun, 14 Jan 2024 20:46:50 GMT</pubDate>
            <atom:updated>2024-01-14T20:46:50.285Z</atom:updated>
            <content:encoded><![CDATA[<p>What is Git?</p><p>Git is a version control system that helps you track changes in your project’s code over time. It allows multiple people to collaborate on the same project without overwriting each other’s work. Git is especially useful for managing code and other text files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dljkidm6JD2R01NcweQ2kg.png" /></figure><h3>Setting up Git</h3><pre>#Configure User Information<br>git config --global user.name &quot;Your Name&quot;<br>git config --global user.email &quot;your.email@example.com&quot;</pre><h3>Creating and Cloning Repositories</h3><pre>git init #Create a new Git repository<br>git clone &lt;repository_url&gt; #Clone an existing repository</pre><h3>Basic Commands</h3><pre>git status #Check the status of your repository<br>git add &lt;file(s)&gt; #Add changes to the staging area<br>git commit -m &quot;Your commit message&quot; #Commit changes<br>git log #View commit history<br>git reset --soft HEAD^ #Undo last commit (soft)<br>git reset --hard HEAD^ #Undo last commit (hard)</pre><h3>Branching and Merging</h3><pre>git branch &lt;branch_name&gt; #Create a new branch<br>git checkout &lt;branch_name&gt; #Switch to a branch<br>git checkout -b &lt;branch_name&gt; #Create and switch to a new branch<br>git merge &lt;branch_name&gt; #Merge branches<br>git branch -d &lt;branch_name&gt; #Delete a branch</pre><h3>Remote Repositories</h3><pre>git remote add origin &lt;repository_url&gt; #Add a remote repository<br>git push -u origin &lt;branch_name&gt; #Push changes to a remote repository<br>git pull origin &lt;branch_name&gt; #Pull changes from a remote repository</pre><h3>Miscellaneous</h3><pre>git diff &lt;commit_hash1&gt; &lt;commit_hash2&gt; #See changes between commits<br>git show --name-only #Show files changed in the last commit<br>git checkout -- &lt;file(s)&gt; #Discard changes in working directory</pre><p>If you’ve made it till here, thanks for giving this a read, have a great day! :)</p><p>Follow for More</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/48/1*E3WuAqdv__ytZoxiT0WrtA.png" /><figcaption><a href="https://www.linkedin.com/in/sivesh-kumar/">https://www.linkedin.com/in/sivesh-kumar/</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/48/1*VWCb5hlm3pwI0yub6-2q2Q.png" /><figcaption><a href="https://siveshkumar.com/">https://siveshkumar.com</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/48/1*HT4D5J9Slxi_R1D2skJkaw.png" /><figcaption><a href="https://medium.com/@sivesh-kumar">https://medium.com/@sivesh-kumar</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/48/1*eOasXO0AHTBzRH4EpUDlxA.png" /><figcaption><a href="https://github.com/sivesh2000">https://github.com/sivesh2000</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/48/1*5r_9rBdKXNfNJYQC25V3gw.png" /><figcaption><a href="https://www.instagram.com/codewithsivesh/">https://www.instagram.com/<br> codewithsivesh/</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/48/1*dAvItxcm1Xd1sS-kLc2w_w.png" /><figcaption><a href="https://whatsapp.com/channel/0029VaIonGZDTkJwCGrAXT0D">https://whatsapp.com/channel/<br> 0029VaIonGZDTkJwCGrAXT0D</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=44752b679295" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 9 HTTP Request Methods]]></title>
            <link>https://medium.com/@sivesh-kumar/top-9-http-request-methods-0005ac844d02?source=rss-b27aea341ffc------2</link>
            <guid isPermaLink="false">https://medium.com/p/0005ac844d02</guid>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[service-design]]></category>
            <category><![CDATA[architectural-design]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[https]]></category>
            <dc:creator><![CDATA[sivesh kumar]]></dc:creator>
            <pubDate>Sun, 07 Jan 2024 11:11:42 GMT</pubDate>
            <atom:updated>2024-01-10T09:34:03.450Z</atom:updated>
            <content:encoded><![CDATA[<p>HTTP (Hypertext Transfer Protocol) defines several methods, also known as HTTP verbs, that indicate the action to be performed on a resource. The main HTTP methods are:</p><ol><li><strong>GET</strong>: Retrieve data from the server.</li></ol><p>Example:</p><pre>GET /api/users/123</pre><p>2. <strong>POST</strong>: Submit data to be processed to a specified resource.</p><p>Example:</p><pre>POST /api/users<br>Content-Type: application/json<br><br>{<br>  &quot;username&quot;: &quot;john_doe&quot;,<br>  &quot;email&quot;: &quot;john@example.com&quot;<br>}</pre><p>3. <strong>PUT</strong>: Update a resource or create a new resource if it doesn’t exist.</p><p>Example:</p><pre>PUT /api/users/123<br>Content-Type: application/json<br><br>{<br>  &quot;username&quot;: &quot;john_doe_updated&quot;,<br>  &quot;email&quot;: &quot;john_updated@example.com&quot;<br>}</pre><p>4. <strong>PATCH</strong>: Apply partial modifications to a resource.</p><p>Example:</p><pre>PATCH /api/users/123<br>Content-Type: application/json<br><br>{<br>  &quot;email&quot;: &quot;john_updated@example.com&quot;<br>}</pre><p>5. <strong>DELETE</strong>: Request the removal of a resource.</p><p>Example:</p><pre>DELETE /api/users/123</pre><p>6. <strong>OPTIONS</strong>: Returns the HTTP methods that the server supports for the specified URL.</p><p>Example:</p><pre>OPTIONS /api/users</pre><p>7. <strong>HEAD</strong>: Similar to GET but without the response body, used to retrieve metadata.</p><p>Example:</p><pre>HEAD /api/users/123</pre><p>8. <strong>TRACE</strong>: Echoes the received request, which can be used for diagnostic purposes.</p><p>Example:</p><pre>TRACE /path/to/resource</pre><p>9. <strong>CONNECT</strong>: Establishes a tunnel to the server for a secure connection (typically used in HTTPS).</p><p>Example: (usually not used directly in regular HTTP requests)</p><pre>CONNECT server.example.com:80</pre><p>These methods define the intended action for the resource identified in the URL. Web applications typically use a combination of these methods to perform CRUD (Create, Read, Update, Delete) operations on resources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*Q5z9wzW1hzF2Jndifpn-hA.png" /></figure><p>If you’ve made it till here, thanks for giving this a read, have a great day! :)</p><p>Follow for More</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/48/1*E3WuAqdv__ytZoxiT0WrtA.png" /><figcaption><a href="https://www.linkedin.com/in/sivesh-kumar/">https://www.linkedin.com/in/sivesh-kumar/</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/48/1*VWCb5hlm3pwI0yub6-2q2Q.png" /><figcaption><a href="https://siveshkumar.com/">https://siveshkumar.com</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/48/1*HT4D5J9Slxi_R1D2skJkaw.png" /><figcaption><a href="https://medium.com/@sivesh-kumar">https://medium.com/@sivesh-kumar</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/48/1*eOasXO0AHTBzRH4EpUDlxA.png" /><figcaption><a href="https://github.com/sivesh2000">https://github.com/sivesh2000</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/48/1*5r_9rBdKXNfNJYQC25V3gw.png" /><figcaption><a href="https://www.instagram.com/codewithsivesh/">https://www.instagram.com/<br> codewithsivesh/</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/48/1*dAvItxcm1Xd1sS-kLc2w_w.png" /><figcaption><a href="https://whatsapp.com/channel/0029VaIonGZDTkJwCGrAXT0D">https://whatsapp.com/channel/<br> 0029VaIonGZDTkJwCGrAXT0D</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0005ac844d02" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Does API Gateway Work]]></title>
            <link>https://medium.com/@sivesh-kumar/how-does-api-gateway-work-8fa4d0be0e17?source=rss-b27aea341ffc------2</link>
            <guid isPermaLink="false">https://medium.com/p/8fa4d0be0e17</guid>
            <category><![CDATA[api-gateway]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[service-design]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[architectural-design]]></category>
            <dc:creator><![CDATA[sivesh kumar]]></dc:creator>
            <pubDate>Sat, 02 Dec 2023 22:32:15 GMT</pubDate>
            <atom:updated>2024-01-10T09:34:50.666Z</atom:updated>
            <content:encoded><![CDATA[<p>API gateway serves as a pivotal API management solution positioned between clients and an array of backend services. It operates as a reverse proxy, adept at receiving and processing all incoming application programming interface (API) calls. In its role, the API gateway consolidates the diverse services necessary to fulfill these calls, orchestrating the flow seamlessly, and subsequently furnishing the relevant outcome. Essentially, it functions as a centralized conduit, streamlining the communication between clients and the multitude of backend services, and optimizing the API ecosystem for enhanced efficiency and cohesion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*P3ksAmYyM63-xgMoDPUl8g.png" /></figure><p>By following these steps, an API Gateway helps streamline and manage the communication between clients and back-end services more efficiently and securely:</p><ol><li><strong>Receive API Request</strong>: The API Gateway is the entry point for API requests. It listens for incoming requests from clients.</li></ol><p>2. <strong>Authentication and Authorization</strong>: Authenticate the user requesting to ensure they have the necessary permissions.<br>Authorize the request based on the user’s credentials and the defined access control policies.</p><p><strong>3. Request Routing</strong>: Determine the destination of the request by mapping the requested endpoint to the appropriate back-end service.</p><p>4. <strong>Request Transformation</strong>: Modify the request payload or headers if needed to match the expected format of the back-end service.</p><p><strong>5. Throttling and Rate Limiting</strong>: Enforce throttling and rate-limiting policies to prevent abuse or excessive use of resources.</p><p><strong>6. Caching:</strong> Check if the response to the request is already cached. If yes, return the cached response to improve performance and reduce the load on back-end services.</p><p><strong>7. Request Forwarding:</strong> Forward the processed request to the appropriate back-end service or microservice. This could involve load balancing across multiple instances.</p><p><strong>8. Response Aggregation:</strong> If the API Gateway is responsible for aggregating data from multiple services, it collects and combines responses before sending them back to the client.</p><p><strong>9. Response Transformation:</strong> Modify the response payload or headers if needed to match the expected format for the client.</p><p>10. Error Handling: Handle errors that might occur during the request processing. This includes validating responses from back-end services and providing meaningful error messages to clients.</p><p><strong>11. Logging and Monitoring:</strong> Log relevant information about the request and response for debugging purposes.<br>Monitor the performance and health of the API Gateway and back-end services.</p><p><strong>12. Security:</strong> Implement additional security measures, such as encryption and protection against common security threats (e.g., SQL injection, cross-site scripting).</p><p><strong>13. Response to Client:</strong> Send the processed response back to the client.</p><p><strong>14. Analytics and Reporting:</strong> Collect analytics and generate reports on API usage, performance, and other relevant metrics.</p><p><strong>15. CORS Handling:</strong> If applicable, handle Cross-Origin Resource Sharing (CORS) to allow or restrict access to resources from different domains.</p><p><strong>16. Cache Management:</strong> Manage the cache by updating or invalidating cached responses based on defined rules or expiration times.</p><h3><strong>Pros:</strong></h3><p><strong>Centralized Management:</strong><br>API Gateways provide a centralized point for managing and controlling APIs, simplifying the administration and configuration of multiple services.</p><p><strong>Security:</strong><br>Enhanced security through features such as authentication, authorization, and encryption. It helps protect against common security threats and ensures that only authorized users can access the APIs.</p><p><strong>Rate Limiting and Throttling:</strong><br>API Gateways enable you to implement rate limiting and throttling to control the number of requests and prevent abuse, ensuring fair usage of resources.</p><p><strong>Request and Response Transformation:</strong><br>Facilitates modification of requests and responses to meet the specific requirements of clients and back-end services, enhancing interoperability.</p><p><strong>Load Balancing:</strong><br>Distributes incoming API requests across multiple instances of backend services, ensuring optimal resource utilization and preventing overloading of any single server.</p><p><strong>Caching:</strong><br>Improves performance by caching responses and reducing the load on backend services. Cached data can be served for repeated requests, minimizing latency.</p><p><strong>Analytics and Monitoring:</strong><br>API Gateways often include tools for monitoring API usage, and performance metrics, and generating analytics reports, aiding in troubleshooting and optimization.</p><p><strong>Versioning and Compatibility:</strong><br>Allows for versioning of APIs, enabling gradual updates without disrupting existing clients. It helps maintain backward compatibility and a smooth transition for users.</p><p><strong>Cross-Origin Resource Sharing (CORS) Handling:</strong><br>Manages CORS to control which domains can access the API, providing security against unauthorized cross-origin requests.</p><h3><strong>Cons:</strong></h3><p><strong>Single Point of Failure:</strong><br>If the API Gateway experiences issues or downtime, it can become a single point of failure, affecting the entire API ecosystem.</p><p><strong>Complexity:</strong><br>Implementing and configuring an API Gateway can be complex, especially in large and distributed systems. Managing the various policies and configurations may require significant effort.</p><p><strong>Latency:</strong><br>Introducing an additional layer (the API Gateway) may contribute to increased latency, although this impact is often minimal and can be mitigated through optimization.</p><p><strong>Learning Curve:</strong><br>Users and administrators may need to learn and understand the features and configuration options of the chosen API Gateway, which can involve a learning curve.</p><p><strong>Cost:</strong><br>Acquiring and maintaining an API Gateway solution may involve additional costs. Depending on the chosen solution, licensing fees, and operational expenses may need consideration.</p><p><strong>Customization Limitations:</strong><br>Some API Gateways may have limitations in terms of customization, and certain advanced requirements may require additional development efforts.</p><p>If you’ve made it till here, thanks for giving this a read, have a great day! :)</p><p>Follow for More</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/48/1*E3WuAqdv__ytZoxiT0WrtA.png" /><figcaption><a href="https://www.linkedin.com/in/sivesh-kumar/">https://www.linkedin.com/in/sivesh-kumar/</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/48/1*VWCb5hlm3pwI0yub6-2q2Q.png" /><figcaption><a href="https://siveshkumar.com/">https://siveshkumar.com</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/48/1*HT4D5J9Slxi_R1D2skJkaw.png" /><figcaption><a href="https://medium.com/@sivesh-kumar">https://medium.com/@sivesh-kumar</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/48/1*eOasXO0AHTBzRH4EpUDlxA.png" /><figcaption><a href="https://github.com/sivesh2000">https://github.com/sivesh2000</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/48/1*5r_9rBdKXNfNJYQC25V3gw.png" /><figcaption><a href="https://www.instagram.com/codewithsivesh/">https://www.instagram.com/<br> codewithsivesh/</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/48/1*dAvItxcm1Xd1sS-kLc2w_w.png" /><figcaption><a href="https://whatsapp.com/channel/0029VaIonGZDTkJwCGrAXT0D">https://whatsapp.com/channel/<br> 0029VaIonGZDTkJwCGrAXT0D</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8fa4d0be0e17" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Top 8 API Architectural Styles]]></title>
            <link>https://medium.com/@sivesh-kumar/the-top-8-api-architectural-styles-c392bfedd5ee?source=rss-b27aea341ffc------2</link>
            <guid isPermaLink="false">https://medium.com/p/c392bfedd5ee</guid>
            <category><![CDATA[architectural-design]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[system-design-interview]]></category>
            <dc:creator><![CDATA[sivesh kumar]]></dc:creator>
            <pubDate>Fri, 24 Nov 2023 19:37:51 GMT</pubDate>
            <atom:updated>2024-01-10T09:35:02.012Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>REST (</strong>Representational State Transfer) is an architectural style for designing networked applications, emphasizing stateless communication</p><blockquote><strong>Pros:</strong><br><strong>Simplicity</strong>: Easy to understand and implement.<br><strong>Scalability</strong>: Stateless nature makes it scalable.<br><strong>Flexibility</strong>: Supports various data formats (JSON, XML).<br><strong>Compatibility</strong>: Works well with HTTP, widely supported.</blockquote><blockquote><strong>Cons:</strong><br><strong>Over-fetching/Under-fetching</strong>: Possible issues with fetching too much or too little data.<br><strong>Limited Functionality</strong>: Not suitable for real-time applications.<br><strong>Standardization</strong>: Lack of a standardized contract.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*xRRk1kBI2e6rIwImnbkgUA.png" /><figcaption>REST API Architectural Styles</figcaption></figure><p><strong>SOAP </strong>is a protocol for exchanging structured information in web services, often using XML</p><blockquote><strong>Pros:</strong><br><strong>Standardized</strong>: Strict standards for communication.<br><strong>Security</strong>: Built-in security features (WS-Security).<br><strong>Language Neutrality</strong>: Can be used with various programming languages.</blockquote><blockquote><strong>Cons:</strong><br><strong>Complexity</strong>: More complex than REST.<br><strong>Performance</strong>: Can be slower due to XML and additional overhead.<br><strong>Resource Intensive</strong>: Consumes more bandwidth and resources.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*0R_biAd48OHxNSbkp37WFw.png" /><figcaption>SOAP API Architectural Styles</figcaption></figure><p><strong>Websockets </strong>provide real-time, bidirectional communication between a client and a server</p><blockquote><strong>Pros</strong>:<br><strong>Real-time Communication</strong>: Supports full-duplex communication.<br><strong>Low Latency</strong>: Minimal latency compared to HTTP.<br><strong>Efficiency</strong>: Reduced overhead compared to HTTP for real-time applications.</blockquote><blockquote><strong>Cons</strong>:<br><strong>Stateful Connection</strong>: Requires more resources to maintain state.<br><strong>Firewall Issues</strong>: Can face firewall-related challenges.<br><strong>Complexity</strong>: More complex than traditional request-response models.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/571/1*6Pf5sJruNbjniHr2xlaOLQ.png" /><figcaption>Websocket API Architectural Styles</figcaption></figure><p><strong>Webhooks </strong>are HTTP callbacks for notifying external systems about events</p><blockquote><strong>Pros</strong>:<br><strong>Event-Driven</strong>: Triggered by events, enabling real-time updates.<br><strong>Scalability</strong>: Can handle asynchronous communication.<br><strong>Efficiency</strong>: Reduces the need for constant polling.</blockquote><blockquote><strong>Cons</strong>:<br><strong>Reliability</strong>: Relies on external systems to deliver events.<br><strong>Security Concerns</strong>: Potential security risks if not implemented carefully.<br><strong>Limited Request Control</strong>: Less control over the request/response process.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/1*uXrXxwbBSrz16zeac_39aA.png" /><figcaption>Webhook API Architectural Styles</figcaption></figure><p><strong>MQTT </strong>is a lightweight messaging protocol for small, efficient data exchanges between devices</p><blockquote><strong>Pros</strong>:<br><strong>Low Bandwidth</strong>: Lightweight protocol, suitable for IoT.<br><strong>Reliability</strong>: Supports Quality of Service levels.<br><strong>Publish/Subscribe Model</strong>: Enables efficient communication in a distributed system.</blockquote><blockquote><strong>Cons</strong>:<br><strong>Complexity</strong>: Can be more complex to set up compared to simpler protocols.<br><strong>Not Ideal for Large Payloads</strong>: Suited for small messages, not large data transfers.<br><strong>Not Suitable for All Use Cases</strong>: May not be the best choice for all applications.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*DvFia1fCA7KmtdvGlaybTQ.png" /><figcaption>MQTT API Architectural Styles</figcaption></figure><p><strong>GraphQL </strong>is a query language for APIs, enabling clients to request specific data from servers</p><blockquote><strong>Pros</strong>:<br><strong>Flexibility</strong>: Clients request only the data they need.<br><strong>Single Endpoint</strong>: One endpoint for multiple resources.<br><strong>Introspection</strong>: Allows querying the schema for information.</blockquote><blockquote><strong>Cons</strong>:<br><strong>Complexity</strong>: Can be complex, especially for simple applications.<br><strong>Learning Curve</strong>: Requires understanding of GraphQL concepts.<br><strong>Caching Challenges</strong>: Caching can be more challenging due to dynamic queries.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/527/1*_xHnEDsVp31elrBvGVOGzw.png" /><figcaption>GraphQL API Architectural Styles</figcaption></figure><p><strong>GRPC </strong>is a framework for high-performance, language-agnostic remote procedure calls (RPC)</p><blockquote><strong>Pros</strong>:<br><strong>Performance</strong>: Fast and efficient due to Protocol Buffers.<br><strong>Language Agnostic</strong>: Supports multiple programming languages.<br><strong>Bidirectional Streaming</strong>: Supports full-duplex communication.</blockquote><blockquote><strong>Cons</strong>:<br><strong>Complexity</strong>: Can be complex, especially for beginners.<br><strong>Tooling Support</strong>: Less mature compared to REST.<br><strong>HTTP/2 Dependency</strong>: Requires HTTP/2 for optimal performance.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*_Ya7LUuxdIhy2mSRXoMEPw.png" /><figcaption>gRPC API Architectural Styles</figcaption></figure><p><strong>AMQP </strong>is a messaging protocol for asynchronous communication between distributed systems</p><blockquote><strong>Pros</strong>:<br><strong>Reliability</strong>: Ensures message delivery and acknowledgment.<br><strong>Routing</strong>: Supports advanced message routing.<br><strong>Message Queues</strong>: Enables decoupling of producers and consumers.</blockquote><blockquote><strong>Cons</strong>:<br><strong>Complexity</strong>: More complex compared to simpler protocols.<br><strong>Learning Curve</strong>: Requires understanding of AMQP concepts.<br><strong>Overhead</strong>: May have more overhead compared to lightweight protocols.<br>Each technology has its own strengths and weaknesses, and the choice depends on the specific requirements and constraints of your application.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/1*ol-o6UPF1KnExSCIMUDI1A.png" /><figcaption>AMQP API Architectural Styles</figcaption></figure><p>If you’ve made it till here, thanks for giving this a read, have a great day! :)</p><p>Follow for More</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/48/1*E3WuAqdv__ytZoxiT0WrtA.png" /><figcaption><a href="https://www.linkedin.com/in/sivesh-kumar/">https://www.linkedin.com/in/sivesh-kumar/</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/48/1*VWCb5hlm3pwI0yub6-2q2Q.png" /><figcaption><a href="https://siveshkumar.com/">https://siveshkumar.com</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/48/1*HT4D5J9Slxi_R1D2skJkaw.png" /><figcaption><a href="https://medium.com/@sivesh-kumar">https://medium.com/@sivesh-kumar</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/48/1*eOasXO0AHTBzRH4EpUDlxA.png" /><figcaption><a href="https://github.com/sivesh2000">https://github.com/sivesh2000</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/48/1*5r_9rBdKXNfNJYQC25V3gw.png" /><figcaption><a href="https://www.instagram.com/codewithsivesh/">https://www.instagram.com/<br> codewithsivesh/</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/48/1*dAvItxcm1Xd1sS-kLc2w_w.png" /><figcaption><a href="https://whatsapp.com/channel/0029VaIonGZDTkJwCGrAXT0D">https://whatsapp.com/channel/<br> 0029VaIonGZDTkJwCGrAXT0D</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c392bfedd5ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>