<?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 Vineet Mishra on Medium]]></title>
        <description><![CDATA[Stories by Vineet Mishra on Medium]]></description>
        <link>https://medium.com/@pspvin.mishra3?source=rss-774654fa8b6f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*7C1UX5FrvkaX9iOdNzAM6g.jpeg</url>
            <title>Stories by Vineet Mishra on Medium</title>
            <link>https://medium.com/@pspvin.mishra3?source=rss-774654fa8b6f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 16:53:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pspvin.mishra3/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[Kafka’s advanced and unique, real interview questions]]></title>
            <link>https://medium.com/@pspvin.mishra3/kafkas-advanced-real-interview-questions-0c30ab139bec?source=rss-774654fa8b6f------2</link>
            <guid isPermaLink="false">https://medium.com/p/0c30ab139bec</guid>
            <category><![CDATA[kafka-consumer]]></category>
            <category><![CDATA[kafka-streams]]></category>
            <category><![CDATA[messaging]]></category>
            <category><![CDATA[apache-kafka]]></category>
            <category><![CDATA[kafka]]></category>
            <dc:creator><![CDATA[Vineet Mishra]]></dc:creator>
            <pubDate>Sun, 18 Oct 2026 18:15:47 GMT</pubDate>
            <atom:updated>2026-10-18T18:19:48.433Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>1. What is consumer lag? What causes it? How to resolve it?</strong></p><ul><li>Kafka consumer lag is the difference between the latest broker offset and the last committed consumer offset.</li><li><strong>Cause</strong>: meaning your consumers are processing messages slower than producers are writing them.</li><li><strong>Diagnosis</strong>:</li></ul><pre>kafka-consumer-groups.sh - bootstrap-server localhost:9092 - describe - group my-consumer-group</pre><ul><li><strong>Monitor Metrics: </strong>Track records-lag-max via JMX, or use dedicated tools like <strong>Kafka Lag Exporter</strong>, <strong>Burrow</strong>, or <strong>Prometheus/Grafana</strong></li><li><strong>Resolution: </strong>Either add more consumer or if number of consumer is less than or equal to number of partition, then adding more consumer will not have any impact as they will remain idle, so better strategy would be to increase number of partitions beyond number of partitions and then increase number of consumers.</li><li><strong>Prevention:</strong> Avoid blocking or synchronous operations, like writing databases, calling external API in poll() loops. Use asynchronous operations by using internal queues and offload heavy transformations. Also, process records parallely instead of sequentially.</li><li><strong>Configuration optimization:</strong> <br>a) Lower max.poll.records to prevent timeouts in case of slow processing<br>b) Increase <strong>fetch.min.bytes</strong> &amp; <strong>max.partition.fetch.bytes ,</strong> this will help increase batch size and will be helpful if consumers are fast.<br>c) Switch from older assignors to CooperativeStickyAssignor to reduce stop-the-world rebalance downtime. Tune session.timeout.ms, heartbeat.interval.ms, and max.poll.interval.ms to keep group membership stable.</li></ul><h4>2. What is split brains problem in Kafka?</h4><p>The <strong>split-brain problem</strong> in Apache Kafka happens when a network partition or communication failure causes a cluster to divide into isolated groups, leading to multiple active leaders (or “brains”) making independent, conflicting decisions.<br><strong><em>Root causes:<br>1. </em>Network Partitions:</strong> A network drop or lag isolates a subset of brokers from the rest of the cluster (or from ZooKeeper / KRaft metadata controllers).</p><p><strong>2. Dual Leaders / Isolated Writes:</strong> If the configuration allows a partition’s leader to keep accepting writes with a low synchronization requirement — such as min.insync.replicas=1—the isolated leader continues to process data while the rest of the cluster elects a new leader</p><p><strong>3.</strong> <strong>Data Divergence and Loss: </strong>When the network heals, the two conflicting streams of writes cannot be reconciled cleanly, resulting in truncation, data corruption, or silent data loss.</p><p><strong><em>Key Prevention &amp; Durability Configurations:<br>1. </em></strong><strong>min.insync.replicas=2 (or higher):</strong> Ensures that a write must be acknowledged by at least two synchronized replicas, preventing an isolated single leader from accepting writes on its own.<br>2. <strong>replication.factor=3:</strong> Maintains multiple backup copies of partition data across distinct brokers.<br>3. <strong>unclean.leader.election.enable=false:</strong> Disables the election of a replica outside of the In-Sync Replicas (ISR) list as a leader, prioritizing data consistency over availability.<br>4. <strong>producer.acks=all (or </strong><strong>-1):</strong> Requires full acknowledgment from all in-sync replicas before a write is marked as successful by the producer.<br>5. <strong>Epoch and Generation Numbers:</strong> Modern Kafka and consensus layers use monotonically increasing epoch/generation numbers so that older, isolated leaders are fenced off and their stale write requests are automatically rejected.</p><h4>3. What will happen if number of partitions are increased in a topic?</h4><ul><li><strong>Disruption of Key-Based Ordering:</strong> If your producer uses <strong>message keys</strong>, Kafka routes messages to partitions using a hash of the key (hash(key) % num_partitions). Changing the partition count alters this modulo formula. Future messages with the same key will land in a new partition, breaking per-key ordering guarantees. <em>(This is not an issue if you use null/random record keys).</em></li><li><strong>Existing Data Stays Put:</strong> Existing messages do not move. Historical data remains in the old partitions, while the newly added partitions start completely empty until new messages arrive.</li><li><strong>Higher Consumer Parallelism:</strong> Within a single consumer group, Kafka assigns at most <strong>one partition per consumer thread</strong>. Adding partitions allows you to scale out your consumer group by adding more active consumer instances (up to the new partition count).</li><li><strong>Consumer Rebalance:</strong> Adding partitions triggers a consumer group <strong>rebalance</strong>, temporarily pausing consumption while partition assignments are recalculated across active consumers.</li><li><strong>Stream Processing Impact:</strong> If you use stream-processing frameworks (like Kafka Streams) that rely on key-based joins or group-bys, adding partitions can break stream alignment unless topics are co-partitioned.</li><li><strong>Increased Broker Overhead:</strong> More partitions mean more open file handles (file descriptors), increased memory consumption for producer/consumer buffers, and higher metadata traffic on the controller.</li><li><strong>Longer Recovery Times:</strong> If a broker crashes or shuts down uncleanly, recovery time and leader election delays scale proportionally with the number of partitions on the cluster.</li><li><strong>One-Way Operation:</strong> You <strong>cannot decrease</strong> the number of partitions for a topic once increased; the only way to shrink a topic is to create a new one and migrate your data/clients.</li></ul><h4>4. What will happen if there are n partitions and n+k consumers, where k&gt;0?</h4><p>k consumers will remain completely idle.</p><h4>5. What will happen if there are n+k partitions and n consumers, where k&gt;0?</h4><ul><li>Every single consumer will be assigned at least one partition.</li><li>Some consumers will be assigned <strong>more than one partition.</strong></li><li>Consumers handling multiple partitions process a higher volume of messages, which increases CPU/memory usage and makes them more prone to <strong>consumer lag</strong> if the message throughput per partition is high or uniform.</li></ul><h4>6. What is a consumer group? Can there be a consumer without consumer group?</h4><p>In distributed streaming systems like <strong>Apache Kafka</strong>, a <strong>consumer group</strong> is a collection of one or more consumers that work together to read and process data from a set of topics.</p><p>A consumer group can legally consist of just <strong>one consumer</strong>. In this scenario, that single consumer receives messages from <strong>all partitions</strong> of the topic.</p><p>In Kafka, if you do not specify a group.id when initializing a consumer, it runs in a &quot;simple&quot; or standalone mode. It reads directly from assigned partitions or topics without any group coordination, rebalancing protocols, or broker-managed offset tracking (meaning your application has to manage offsets manually).</p><h4>7. What is linger time in kafka?</h4><p>In Apache Kafka, <strong>linger time</strong> (linger.ms) is a producer configuration parameter that defines how long the producer is willing to wait before sending a record batch out to a Kafka broker. If the batch fills up to its maximum byte limit (batch.size) <em>before</em> the linger time expires, Kafka sends the batch immediately without waiting out the rest of the timer. Linger time applies independently to each topic-partition. Defaults to 5ms in newer versions (or 0 in older versions, meaning send immediately unless heavy load naturally forces batching).</p><h4><strong>8. What are assigners in kafka?</strong></h4><p>In Apache Kafka, <strong>assignors</strong> (partition assignors) are the algorithms and logic that decide which consumer in a consumer group reads from which topic partitions</p><p><strong>Built-in partitioner:<br><em>8.1 RangeAssignor:</em></strong> Operates on a per-topic basis by sorting the partitions and consumers numerically.</p><p><strong><em>8.2 RoundRobinAssignor:</em></strong>Takes all partitions from all subscribed topics and distributes them in a circular, round-robin fashion across all consumers.Produces a very even load balance, but causes heavy partition movement (zero stickiness) whenever group membership changes.</p><p><strong><em>8.3 StickyAssignor: </em></strong>Aims for an even distribution like RoundRobin, but explicitly tries to <strong>preserve existing partition ownership</strong> as much as possible during a rebalance. This minimizes unnecessary data movement and protects local consumer caches.</p><p><strong><em>8.4 CooperativeStickyAssignor: </em></strong>Uses an <strong>incremental cooperative rebalance</strong> protocol. Instead of stopping all consumers (“stop-the-world” eager rebalancing), only the specific partitions being moved are revoked while the rest of the consumers keep processing messages uninterrupted. Widely recommended for modern production clusters and dynamic environments like Kubernetes.</p><p><strong><em>8.5 StreamsPartitionAssignor</em></strong>: Used internally by <strong>Kafka Streams</strong> to co-localize partitions with local state stores and maintain standby tasks.</p><p><strong>How assigners work?</strong></p><ol><li><strong>Subscription:</strong> Members of a consumer group register their topic subscriptions with the Kafka broker acting as the <strong>group coordinator</strong>.</li><li><strong>Delegation:</strong> The coordinator collects the subscriptions and designates one consumer in the group to execute the assignment strategy (or handles it directly depending on the protocol version).</li><li><strong>Execution:</strong> The chosen assignor processes the list of available Cluster partitions and client subscriptions, mapping out which consumer gets what.</li><li><strong>Propagating Results:</strong> The coordinator pushes the final assignment map back to every individual consumer in the group.</li></ol><h4><strong>9. What is hot partition problem? Root Cause and symptoms?</strong></h4><p>A <strong>hot partition</strong> occurs when a single partition in an Apache Kafka topic receives a disproportionately high volume of messages, data bytes, or processing load compared to other partitions.</p><p><strong><em>Root cause:</em></strong></p><p><strong>Key Skew:</strong> Using low-cardinality keys (such as tenant_id where one major tenant generates 90% of traffic) or placing all viral/frequent IDs onto the same key.</p><p><strong>Default Hash Partitioning:</strong> Messages with the same key always route to the exact same partition to preserve ordering.</p><p><strong>Null or Missing Keys:</strong> Sending messages with null keys in older Kafka versions relies on round-robin or sticky strategies that can pool unevenly if not managed.</p><p><strong><em>Symptoms:</em></strong></p><p><strong>Uneven Broker Load:</strong> The broker hosting the leader of that hot partition experiences high CPU and memory utilization while other brokers idle.</p><p><strong>Consumer Lag Build-up:</strong> Because a single partition can only be consumed by <strong>one consumer</strong> within a consumer group at a time, adding more consumers to the group <strong>does not</strong> help clear the lag on that specific partition.</p><p><strong>Missed Heartbeats &amp; Rebalance Storms:</strong> An overloaded consumer processing a hot partition may miss heartbeat intervals, triggering unnecessary consumer group rebalances and worsening overall lag.</p><p><strong><em>Fix:<br></em>1.Redesign Partition Keys (High Cardinality): </strong>Keys that distribute traffic more evenly.</p><p><strong>2. Apply Key Salting: </strong>by appending a small random number or hash suffix, this will split the single logical stream across multiple physical partitions. Your downstream consumer will then need to aggregate or merge results if order across the salt variants matters.</p><p><strong>3. Implement Custom Partitioner Logic: </strong>Write a custom producer Partitioner class instead of relying purely on default hash routing. Use strategies like <strong>Weighted Round Robin</strong> or the <strong>Power of Two Choices</strong> algorithm to route high-volume traffic more intelligently across available partitions.</p><p><strong>4. Increase Partition Count</strong></p><p>5. <strong>Decouple the Kafka background fetch/heartbeat loop from heavy business logic processing </strong>(e.g., using internal worker thread pools or asynchronous processing) so slow message handling does not trigger false consumer dropouts and rebalance loops.</p><h4>10. What will happen if producer sends a message without partition key?</h4><ul><li><strong>Sticky Partitioning (Default):</strong> Instead of bouncing every single message to a different partition immediately, Kafka’s sticky partitioner batches multiple messages together and sends the entire batch to one partition before “sticking” to the next partition. This improves throughput and reduces CPU and network overhead.</li><li><strong>Load Distribution:</strong> Over time, messages are spread out evenly across all available partitions in the topic.</li><li><strong>No Ordering Guarantee:</strong> Because messages are not bound to a specific partition by a key, related messages may land on different partitions. Global or key-level message ordering is <strong>not</strong> preserved.</li><li><strong>Balanced Workload:</strong> It prevents “hotspotting” (where a single partition gets overwhelmed because of a heavy or skewed key), provided your producers aren’t all hitting the exact same sticky partition simultaneously.</li><li><strong>Explicit Alternative:</strong> If you need a message to go to a specific partition without a key, you can still manually specify the partition number directly in the ProducerRecord</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0c30ab139bec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[API Security: Rate Limiter, CORS, XSS, CSRF, SQL Injection, Firewall, VPN]]></title>
            <link>https://medium.com/@pspvin.mishra3/api-security-rate-limiter-cors-xss-csrf-sql-injection-firewall-vpn-b7ce9fba0d57?source=rss-774654fa8b6f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7ce9fba0d57</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[rest-api]]></category>
            <category><![CDATA[network-security]]></category>
            <dc:creator><![CDATA[Vineet Mishra]]></dc:creator>
            <pubDate>Sun, 11 Oct 2026 17:05:43 GMT</pubDate>
            <atom:updated>2026-10-11T17:05:43.146Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>1.Rate Limiter</strong>: If there is no rate limit, hackers can overwhelm the backend servers with large number of fake requests, which will cause legit user to wait very long for their turn to get access for the resources they are interested in. This will create a bad user experience for users visiting the website, this will also cause huge loss to the website’s business. There is a specific term for this kind of thing in the world of cyber security, k/a, DDoS (Distributed Denial of Service) Attack. To avoid this DDoS, security experts came with the concept of Rate Limit(RL). This RL can be applied at <strong>service endpoint level or user/ip level</strong> etc. So, when a rate limit of say x request is applied, then, after sending x number of requests in a certain time window, user or request sender needs to wait for the time window to get over before sending in the new request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/519/1*JK501YE0pAXotUmBmorHXw.png" /></figure><p><strong>2. CORS(Cross Origin Resource Sharing): </strong>It’s a property related with HTTP calls to control which domain can call your backend APIs from the browser. All our browser are by default designed to follow single origin policy, i.e. request and response in a particular browser window is allowed from a single origin only. For example, if your api is meant to allow request from a domain like <strong>app.domainX.com</strong>, ( eg: <a href="http://app.domain1.com/v1/xyz">http://app.domainX.com/v1/xyz</a>) then it <strong>will not allow</strong> any request from any other domain like <strong>app.any_other_domain.com</strong>, (eg: <a href="http://app.domain1.com/v1/xyz">http://app.any_other_domain.com/v1/xyz</a>) in the same browser window. If this CORS with single origin property is not present in browser, then any malicious website can pretend to be the original website, and can cause, “man in the middle attack”, and steal the user’s data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/519/1*XfxFQ3FZnmC6Woc6Jam0uA.png" /></figure><p><strong>3. SQL &amp; NoSQL injection: </strong>These attack happens when user inputs are directly embedded in SQL queries. Attackers can send inputs to modify queries and read some data. eg:</p><pre>select * from users where username = ‘admin’ — — ‘ and password = ‘xyz’;</pre><p>Here,”- -” bypasses the checks entirely. Attackers can then read, modify or delete user data. We can protect our databases from injection attacks by using parameterized query and by using ORM frameworks like JPA or hibernate to prevent direct access to databases to avoid passing parameters directly to native queries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*R_X0b5ULt88TZb6nfd30Ow.png" /></figure><p><strong>4. Firewall:</strong> acts as a gatekeeper to your network and filters out malicious traffic. It sits between your API servers/internal network and incoming traffic. It will check every incoming request and identify suspicious patterns like malformed URL, repeated or large number of request from a single source or user domain(in case any hacker is using multiple bots to attempt DDos attack) or ip address pattern and block away or filter the malicious traffic from legitimate pattern. e.g.: AWS Web Application Firewall.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/380/1*t3qt7LALGzv-tAqgUhyeHw.png" /></figure><p><strong>5. VPN: </strong>In an organization there could be some APIs which are public facing and can be directly looked up via public internet e.g. Amazon’s home page can be accessed by anyone and then some APIs which could be private and should be accessible via some specific private networks only e.g. Employee Time Entry Management portal in a company, which could be accessed by the employee’s of the company only. VPN or Virtual Private Networks are those networks which protect theses internal API’s from direct access through public internet or we can say VPNs allow secured flow of private data through internet or any other public network. Or in general, VPNs protect a smaller private network within a larger and more widely accessed network. e.g. McAfee VPN or VPN of any organization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/391/1*NFRE7gMQDHMoC9qFItCJmQ.png" /></figure><p><strong>6. CSRF: </strong>also k/a Cross Site Request forgery, this is a kind of attack which tricks a user’s browser in making unwanted request to hoisted Web APIs, e.g. You are logged into a net banking website, and bank system uses cookies for authentication, and let’s say bank’s server is not very secure and uses only browser session cookies for authentication, then if a hacker can get access to the browser’s session cookie, then it will probably be able to make a money transfer request from the users account in bank’s website. So, in order to avoid this kind of situation, for some specific or say critical APIs within a website, a CSRF token is also used in combination with session cookie. Session cookie just validates that request comes from a already validated session but CSRF token guaranties that request which originated from a specific page in users browser was served from website’s authentic server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*D9T0BsH0HdGPX5plrjLU9w.png" /></figure><p><strong>7. XSS: </strong>also k/a cross-site scripting, this is a kind of attack where a hacker tries to inject javascript code in website’s backend through inputs in it’s web pages e.g. let’s say a hacker inputs this in comment section:</p><pre>&lt;script&gt; document.print(session.cookie)&lt;/script&gt;  </pre><p>Now, if comments are not validated before saving this comment in backend’s database, then, when other user comes and reload the page, their session cookie may get printed in the website’s pages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/364/1*WyplVPHFdJdnqzq7rmd8Tw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7ce9fba0d57" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reverse Proxy vs Load Balancer vs API Gateway]]></title>
            <link>https://medium.com/@pspvin.mishra3/reverse-proxy-vs-load-balancer-vs-api-gateway-4d32dee95d1f?source=rss-774654fa8b6f------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d32dee95d1f</guid>
            <category><![CDATA[system-design-concepts]]></category>
            <category><![CDATA[api-gateway]]></category>
            <category><![CDATA[reverse-proxy]]></category>
            <category><![CDATA[load-balancer]]></category>
            <category><![CDATA[internet]]></category>
            <dc:creator><![CDATA[Vineet Mishra]]></dc:creator>
            <pubDate>Mon, 28 Sep 2026 11:52:01 GMT</pubDate>
            <atom:updated>2026-09-28T12:30:15.020Z</atom:updated>
            <content:encoded><![CDATA[<p>The moment you enter system design you might come across these three terms every now and then. And understanding of these terms is what seperates engineers who can just build system, from engineers who can design them. Now, Let’s begin.</p><p>First thing to understand if either of these are not present, then all client calls, say REST or anything will directly hit the backend servers. Then, there will be no control on incoming requests, no rate limiting or no request filters, so basically no security for origin servers, as they become totally exposed.</p><h3><strong>1. Reverse Proxy:</strong></h3><p>Basically, all three of them are reverse proxy of some kind. A client never discovers your origin servers or backend. A reverse proxy actually sits at network level and never understands your business logic. Users or clients, basically send their request to reverse proxy and it’s the reverse proxy that communicates with backend.</p><p>Now, reverse proxy have these four abilities:</p><ol><li><strong>SSL Termination of incoming request</strong>. Since reverse proxy is deployed at the edge, so all the TLS handshake is managed by reverse proxy. Suppose, if there is no reverse proxy, then the TLS handshake, which is a very CPU heavy operation involving Encryption, Certificate Validation, Key exchange, it will be done thousands of times by each of the backend servers. But because of reverse proxy(RP), it is done only once at the edge servers, where RP is present. Backend after SSL termination at RP, receives only plain HTTP requests.</li><li><strong>Caching</strong>: Depends on TTL strategy, how long a generated response from backend stays in the edge server. Let’s say a call is made for a GET request 10000 times in 2 minutes, then only the first time backend is hit, rest 9999 times only the cached response in RP is sent and backend never wakes up.</li><li><strong>Compression: </strong>It compresses the output before communicating with client, in formats like gzip, which saves network bandwidth and helps in faster communication.</li><li><strong>Security: </strong>It also does Rate Limiting, Identifying malicious pattern, header checks, reject malformed url.</li></ol><p>Eg: Ngnix, HaProxy, Caddy, Envoy.</p><h3>2. Load Balancer:</h3><p>It is everything like reverse proxy but with one extra capability of intelligent load distribution of incoming traffic. Mostly using default Round Robin technique but can be configured to distribute it via weightage. It also keeps track of backend server health, so if in case any server goes down, LB knows, not to send any further request to it. <br><strong><em>Note</em></strong>: Here we are talking about Level 4 Load Balancers or Network Load Balancers only. eg: AWS-NLB</p><h3>3. API Gateway:</h3><p>It is also everything like reverse proxy but with one extra capability of knowing your APIs, it knows which end points are public or which requires authentication, which user or client belong to which access tier.</p><p>Instead of every microservice doing authentication of user tokens every time, API Gateway does it once for every user.</p><p>API Gateway can also do request transformation say from JSON to XML or vice versa.</p><p>Finally, It is the API Gateway that give URL migration some meaning, say from <a href="https://v1/xyz">https://v1/xyz</a> to <a href="https://v2/xyz">https://v2/xyz</a>, if there is no Gateway where will we do this migration? Not easily possible, correct?</p><p>API Gateway also give you visibility on api related metrics, like which is getting more hit, which is giving more 404 etc, which is timing out more. <br>Eg: Kong, AWS API Gateway.</p><p>Here is a diagram that will make more sense for us to understand, what to place where, in a large globally distributed microservices architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V0Vd-GYO_ukEWnCRulu5Zw.png" /></figure><p><strong><em>Note</em></strong>: CDN is nothing but a global distribution of large sets of reverse proxies.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d32dee95d1f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>