<?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 Contesttrandder on Medium]]></title>
        <description><![CDATA[Stories by Contesttrandder on Medium]]></description>
        <link>https://medium.com/@contesttrandder?source=rss-3bf4cb2f0962------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*yFUVCmMfB3kDOmsX</url>
            <title>Stories by Contesttrandder on Medium</title>
            <link>https://medium.com/@contesttrandder?source=rss-3bf4cb2f0962------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 20:36:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@contesttrandder/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[System Design — Buzzwords to Revise Before Going for an Interview — Part 3]]></title>
            <link>https://interviewnoodle.com/system-design-buzzwords-to-revise-before-going-for-an-interview-part-3-8e7854513457?source=rss-3bf4cb2f0962------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e7854513457</guid>
            <category><![CDATA[system-design-interview]]></category>
            <category><![CDATA[system]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[buzzwords]]></category>
            <category><![CDATA[faang]]></category>
            <dc:creator><![CDATA[Contesttrandder]]></dc:creator>
            <pubDate>Wed, 08 Dec 2021 08:04:13 GMT</pubDate>
            <atom:updated>2021-12-08T18:10:59.514Z</atom:updated>
            <content:encoded><![CDATA[<h3>System Design — Buzzwords to Revise Before Going for an Interview — Part 3</h3><h3>Sharding</h3><p>Separating/breaking larger databases into more easily accessible parts called shards.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*okpjL5s9w0Bv_v0HgHfXmg.jpeg" /><figcaption>Example of sharding</figcaption></figure><p><strong>Advantages of sharding</strong></p><ol><li>Increased Storage Capacity to hold the data.</li><li>Querying a smaller database is faster( as lesser search space )</li><li>Helps a lot in scaling imagine scaling the database across independent servers, each with its own CPU, memory, and disk.</li></ol><p><strong>Disadvantages of sharding</strong></p><ol><li><strong>Resharding the data</strong> -&gt;If a single shard is no longer able to hold more data due to rapid growth of the database itself, then due to uneven data distribution, some smaller shards might reach exhaustion and the data would need to be rehashed to different databases which could mean,</li></ol><p>a) Introduction of new shards into the system.</p><p>b) Finding out a new hashing function to avoid uneven distribution of data among shards.</p><p>2. <strong>Celebrity problem</strong>:</p><p>Also called hotspot key problem, Excessive access to a specific shard could cause a server overload. ( imagine shah rukh khan or justin beiber’s records are in a certain shard, then that specific database is queried again and again leading to slowing down the whole of the system). So we might need to allocate a new shard for each celebrity!</p><p>3. <strong>Join and Denormalization</strong></p><p>Once a DB is sharded among smaller databased, it is harder in a relational database ( be aware of the word relational database I have used here) to perform join operations( Natural join, Outer join, etc) across the DB shards., so we perform an operation called denormalization so that queries can be performed in the given table only rather than on many smaller tables ( smaller tables are formed due to normalization ).</p><p><strong>Few Conclusive points on databases</strong></p><ol><li>Memory is faster to access and disk reads are slow ( so try to avoid reading from the disks as much as we can )</li><li>Sharding should be done on an optimal column or a row based on the use case, and if sharding is done on some random column or row it would lead to abnormal “joins” across the shards, leading to abnormal delay in the system.</li><li>Consistent hashing is a technique to avoid one of the disadvantages of sharding ( that is in this article, written as resharding the data). Would discuss consistent hashing in the upcoming articles soon.</li></ol><p>Please do comment below your thoughts and do suggest any changes which you would suggest for my article and please feel free to share and follow me!</p><p>Peace! :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e7854513457" width="1" height="1" alt=""><hr><p><a href="https://interviewnoodle.com/system-design-buzzwords-to-revise-before-going-for-an-interview-part-3-8e7854513457">System Design — Buzzwords to Revise Before Going for an Interview — Part 3</a> was originally published in <a href="https://interviewnoodle.com/">InterviewNoodle</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[System Design — Buzzwords to revise before going for an Interview — Part 2]]></title>
            <link>https://interviewnoodle.com/system-design-buzzwords-to-revise-before-going-for-an-interview-part-2-ab7839711fe7?source=rss-3bf4cb2f0962------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab7839711fe7</guid>
            <category><![CDATA[system-design-homework]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[system-design-interview]]></category>
            <category><![CDATA[system]]></category>
            <category><![CDATA[faang]]></category>
            <dc:creator><![CDATA[Contesttrandder]]></dc:creator>
            <pubDate>Tue, 16 Nov 2021 06:44:21 GMT</pubDate>
            <atom:updated>2021-11-17T08:35:45.953Z</atom:updated>
            <content:encoded><![CDATA[<h3>System Design — Buzzwords to Revise Before Going for an Interview — Part 2</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rttgze6r4bJSrs71BX3Lzw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@anniespratt?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Annie Spratt</a> on <a href="https://unsplash.com/s/photos/revise?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h4>Caching</h4><p>Caches are introduced in a system to faster the retrieval process and reduce the latency in getting the data from the resource.</p><p>This latency, in general, is due to the costly disk reads which happen during a read from the database.</p><p>Technologies that can be used to implement caching are Redis, Memcached. Amazon Elasticache can be used to implement Redis and Memcached in our system.</p><h4>Scaling</h4><p>There comes a time in our system when our system is no longer producing the latency and throughput rates which we expect from our system, due to the increase in the number of requests received by our system. Then we have to look to expand our system so that our system will be able to handle such incoming requests.</p><p>We can expand our system in two ways- Horizontal Scaling and Vertical Scaling.</p><h4>Proxy and Reverse Proxy</h4><p>A proxy server is any machine that translates traffic between networks or protocols. It’s an intermediary server separating end-user clients from the destinations that they browse. The client believes that they are communicating with the servers but in fact, they are communicating with the proxy server itself. Proxy servers can be used as firewalls, web filters and can also be used to cache the common requests and their responses.</p><p>A reverse proxy is a type of proxy server that retrieves resources on behalf of a client from one or more servers. These resources are then returned to the client, appearing as if they originated from the reverse proxy server itself. It is mainly used to balance the load.</p><h4>Load Balancers</h4><p>In practice, a situation can arise where some servers are being hit multiple times and the server being within its capacity will be slow to respond to these multiple requests at a time, which will decrease the overall latency in the system.</p><p>So we introduce a data structure in between called a load balancer to evenly distribute requests between the servers.</p><p>A load balancer is also called a reverse proxy.</p><p>Formal definition:</p><p>A load balancer is a device that acts as a reverse proxy and distributes network or application traffic across a number of servers.</p><p>Technologies like Nginx can be used to implement load balancers.</p><p>Please upvote and comment your thoughts on this article and please feel free to discuss the points put forward by me in this article!</p><p>Cheers! ☺</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab7839711fe7" width="1" height="1" alt=""><hr><p><a href="https://interviewnoodle.com/system-design-buzzwords-to-revise-before-going-for-an-interview-part-2-ab7839711fe7">System Design — Buzzwords to revise before going for an Interview — Part 2</a> was originally published in <a href="https://interviewnoodle.com/">InterviewNoodle</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[System Design — Buzzwords to revise before going for an Interview — Part 1]]></title>
            <link>https://interviewnoodle.com/system-design-buzzwords-to-revise-before-going-for-an-interview-part-1-1c7c3ad9b140?source=rss-3bf4cb2f0962------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c7c3ad9b140</guid>
            <category><![CDATA[system]]></category>
            <category><![CDATA[faang]]></category>
            <category><![CDATA[system-design-interview]]></category>
            <category><![CDATA[interview]]></category>
            <dc:creator><![CDATA[Contesttrandder]]></dc:creator>
            <pubDate>Mon, 15 Nov 2021 18:23:06 GMT</pubDate>
            <atom:updated>2021-11-17T08:36:36.039Z</atom:updated>
            <content:encoded><![CDATA[<h4>Key terms to revise before your next technical interview.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3baHLoIfmoFuXAtGLlTydA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@sigmund?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Sigmund</a> on <a href="https://unsplash.com/s/photos/software-architecture?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h4>Client-Server Model</h4><p>A client and server networking model is a model in which computers such as servers provide the network services to the other computers such as clients to perform a user based tasks.</p><h4>Protocols in networking</h4><p>In networking, a protocol is a standardized set of rules for formatting and processing data. Protocols enable computers to communicate with one another.</p><h3>TCP vs UDP vs HTTP</h3><p>HTTP requires a TCP connection, HTTP is an abstraction over TCP.</p><p>Overhead of creating UDP connections is much less than TCP connections(because of the concept of handshake in TCP)</p><p>UDP — Would be best for Data Steaming services as negligible time is required to form a connection.</p><p>TCP- Can be used to form more reliable connections.</p><h4>HTTP vs gRPC protocols</h4><p>HTTP protocol uses ASCII characters to communicate between the services/resources, to reduce the latency of the protocol, we can use gRPC protocol instead which uses binary characters to transfer/communicate data.</p><h4>Latency vs Throughput</h4><p>In any system, we want minimum latency and maximum throughput.</p><p>But what is latency and throughput?</p><p>Latency: Time taken between the time at which the response was sent and the time at which the request arrived at the system.</p><p>Throughput- Number of requests processed by a system in a unit of time.</p><p>Comment down your thoughts about the article and Would love to discuss the topics I have shared in my article.</p><p>Peace! ☺</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c7c3ad9b140" width="1" height="1" alt=""><hr><p><a href="https://interviewnoodle.com/system-design-buzzwords-to-revise-before-going-for-an-interview-part-1-1c7c3ad9b140">System Design — Buzzwords to revise before going for an Interview — Part 1</a> was originally published in <a href="https://interviewnoodle.com/">InterviewNoodle</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>