<?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 Nishanth G on Medium]]></title>
        <description><![CDATA[Stories by Nishanth G on Medium]]></description>
        <link>https://medium.com/@nishanth-g?source=rss-673f62a176f1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Jf6hf9EonuGzdIN5JeZObQ.gif</url>
            <title>Stories by Nishanth G on Medium</title>
            <link>https://medium.com/@nishanth-g?source=rss-673f62a176f1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 16:14:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nishanth-g/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[The Dawn of Quantum Computing: An Exponential Leap in Software Engineering]]></title>
            <link>https://nishanth-g.medium.com/the-dawn-of-quantum-computing-an-exponential-leap-in-software-engineering-961e2fab95b9?source=rss-673f62a176f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/961e2fab95b9</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[future]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[quantum-computing]]></category>
            <dc:creator><![CDATA[Nishanth G]]></dc:creator>
            <pubDate>Tue, 23 May 2023 08:53:06 GMT</pubDate>
            <atom:updated>2023-05-23T08:53:06.587Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*6uYO94RP3SYzhpDkqACicA.jpeg" /></figure><p>We are currently on the precipice of a new era in software engineering, an era powered by quantum computing. Quantum computing promises to revolutionise not only the field of software engineering but the entire technology landscape. In this article, we will delve into the mechanics of quantum computing, its implications for software engineering, and why it might be time for developers to prepare for this quantum leap.</p><h4><strong>Understanding Quantum Computing</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/227/1*900miC57mFpI_5HV4we9hg.jpeg" /></figure><p>Quantum computing is based on the principles of quantum mechanics, a branch of physics that describes nature at its most fundamental level. Unlike classical computing, which uses bits as the smallest unit of data (each bit is either a 0 or a 1), quantum computing uses quantum bits, or qubits. Qubits can exist in both states at once, thanks to a property called superposition. When you add another qubit, the potential computing power doubles — an exponential increase. This unique property allows quantum computers to solve complex problems much faster than classical computers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xaxIMtVC5jMxz-pEnd_jkA.jpeg" /></figure><h4>Impact on Software Engineering</h4><p>How will quantum computing change software engineering? Here are some aspects to consider:</p><p>1. <strong>Algorithm Development: </strong>Quantum algorithms will need to be developed to harness the power of quantum computing. This will require a deep understanding of quantum mechanics, along with software engineering skills.</p><p>2.<strong> Coding Practices: </strong>Quantum computers will need new programming languages and tools. Software engineers will need to understand these new tools and adapt their coding practices accordingly.</p><p>3. <strong>Security:</strong>Quantum computers can potentially break many current encryption algorithms. Software engineers will need to develop new cryptographic methods to protect data.</p><h4><strong>The Quantum Readiness</strong></h4><p>Is it time for software engineers to start learning quantum computing? While it might be too early for most, the pioneers will reap the rewards. In the coming years, as quantum computing becomes more prevalent, having quantum programming skills will become a highly desirable asset.</p><p>There are already quantum programming languages, such as Q#, and quantum computing platforms like IBM’s Quantum Experience and Google’s Quantum Computing Service. These platforms provide an opportunity for software engineers to get hands-on experience with quantum computing.</p><h4>A Quantum Future</h4><p>The advent of quantum computing is poised to herald a new era of technological innovation. It has the potential to solve problems that are currently beyond the reach of classical computers, from modeling complex biological systems to optimising large-scale logistical problems. For software engineers, it offers a new and exciting challenge.</p><p>But there’s also a word of caution — the principles of quantum mechanics are fundamentally different from those we’ve used to build classical computers. For many software engineers, this will be like learning a whole new way of thinking about computing. However, those willing to invest the time and effort to understand and master this emerging technology will be at the forefront of the next major evolution in software engineering.</p><p>In conclusion, while quantum computing is still in its infancy, its potential to revolutionise software engineering is undeniable. Now is the time for forward-thinking software engineers to prepare for this quantum leap. As William Pollard once said, “Learning and innovation go hand in hand. The arrogance of success is to think that what you did yesterday will be sufficient for tomorrow.” In the context of software engineering, there’s no better time than now to embrace this wisdom.</p><p>As an evolving field, quantum computing offers a plethora of opportunities for exploration, research, and discovery. With this in mind, the role of software engineering will be pivotal in paving the way for the quantum future. So, let’s embrace this change, prepare for the future, and take a giant leap towards a new era of innovation and discovery.</p><p>Follow this space for more insightful articles about the ongoing evolution of technology. If you found this article helpful or thought-provoking, please share it with your colleagues and friends. The future of software engineering is in our hands, and your contribution to this dialogue is highly appreciated.</p><h4>The Quantum Skill Set</h4><p>Software engineers and developers need to start building a quantum skill set today. This skill set includes understanding quantum mechanics, quantum algorithms, and quantum programming languages. Many resources are available to help you learn these skills, including online courses, textbooks, and interactive quantum computing platforms.</p><p>The journey into quantum computing is not an easy one. The principles of quantum mechanics are notoriously counterintuitive, and quantum programming is a whole new paradigm. However, the rewards for those who are willing to take on this challenge are immense.</p><h4>Challenges and Opportunities</h4><p>Despite the huge potential of quantum computing, it also brings with it new challenges. Quantum computers are incredibly sensitive to environmental disturbances, and keeping a qubit in a superposition state long enough to do useful computations is a significant technical hurdle.</p><p>However, these challenges also present opportunities. Just as the difficulties in manufacturing silicon chips led to the growth of the semiconductor industry, the challenges of building and maintaining quantum computers could lead to new industries and job opportunities.</p><h4>Conclusion: The Quantum Revolution</h4><p>The quantum revolution is coming, and it promises to change the world of software engineering in ways we can’t fully predict. However, one thing is clear: those who are prepared for this revolution will have the opportunity to shape the future of technology.</p><p>As software engineers, we have a responsibility to keep learning and evolving. The rise of quantum computing is not just a challenge, but an invitation to explore a whole new world of possibilities. By embracing this new technology, we can contribute to creating a future where the seemingly impossible becomes possible.</p><p>The revolution is not just in quantum computers, but in our minds. The transition to a quantum mindset may be the greatest challenge — and the greatest opportunity — that the next generation of software engineers will face. But given the history of our field, it’s a challenge we’re more than capable of meeting. So let’s embrace the quantum revolution and see where it takes us.</p><p>If you liked this article and found it informative, please hit the clap button and share it with your network. Your support helps bring awareness to the upcoming quantum revolution and its implications on the world of technology.</p><p>In the next article, we’ll look at how quantum computing impacts the field of artificial intelligence, an equally exciting and transformative domain of tech. Until then, keep exploring, keep learning, and prepare for the quantum future!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=961e2fab95b9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Federated Learning: A New Frontier in Data Privacy and Machine Learning]]></title>
            <link>https://nishanth-g.medium.com/federated-learning-a-new-frontier-in-data-privacy-and-machine-learning-119d5de5e20a?source=rss-673f62a176f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/119d5de5e20a</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Nishanth G]]></dc:creator>
            <pubDate>Mon, 22 May 2023 06:27:10 GMT</pubDate>
            <atom:updated>2023-05-22T06:27:10.284Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/323/1*DSKX3H8maFneffLB6b9a-Q.png" /></figure><p><strong>I</strong>magine living in a world where your devices learn from your habits and preferences, all while ensuring your data stays securely in your own hands. In this digital age, where data privacy is of utmost concern, this might seem like a utopian idea.</p><p>Yet, this is the world that Federated Learning is paving the way towards. But what exactly is Federated Learning and how does it promise to revolutionise the way we understand and implement machine learning? Let’s find out..</p><p><strong>The ABCs of Federated Learning</strong></p><p><strong>F</strong>ederated Learning, first proposed by Google in 2017, is a privacy-preserving machine learning approach. It enables multiple devices or servers to collaboratively learn a shared prediction model while keeping all the training data on the original device. This makes it the perfect solution for data that cannot or should not be moved due to legal, privacy, or practical considerations.</p><p>The heart of Federated Learning is a distributed machine learning approach that enables model training on a large corpus of decentralised data. By allowing devices to collaboratively learn from data without actually sharing the data itself, federated learning offers an innovative way to use collective intelligence without breaching privacy.</p><h4><strong>Why Federated Learning?</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*dsSaDkEZLSVaWnDB3gaOsA.png" /></figure><p>The real power of machine learning lies in the volume of data that is fed into the models. More data generally leads to better models, and better models lead to improved user experiences. But here’s the catch — in an era where data privacy concerns loom large, how can we strike the balance between data usage and privacy?</p><p>Federated learning promises to reconcile this by moving the learning to the data, rather than moving data to the learning. Each participating device (a smartphone, for example) contains local data, which is used to train a local model. Instead of sending the data to a centralized server, it sends a summary of what it has learned (the model updates) to the server. This protects privacy since the raw data never leaves the device.</p><h4>The Mechanics of Federated Learning: A Step-by-Step Breakdown</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NoIZCMx41SE15fhwRg4bRg.png" /></figure><p>Here’s how federated learning works:</p><p><strong>1. Initialization: </strong>A global model is initialized on a central server. This model is then sent to each participating device.</p><p><strong>2.</strong> <strong>Local Training: </strong>Each device uses its local data to train the model, adjusting the parameters to better fit the data.</p><p><strong>3.</strong> <strong>Model Update Sharing:</strong> After the local training is complete, the devices send their model updates to the central server. These updates are a summary of what the model has learned, not the data it has learned from.</p><p><strong>4.</strong> <strong>Aggregation: </strong>The central server collects the updates from all the devices. It then uses these updates to construct an improved global model.</p><p><strong>5.</strong> <strong>Global Model Update:</strong> The updated global model is sent back to the devices, and the cycle begins again.</p><p>This process of training, sharing, aggregating, and updating continues iteratively, improving the model with each round.</p><h4>Federated Learning: The Implications</h4><p>The advent of federated learning marks a shift in the data privacy paradigm. With this technology, industries such as healthcare, banking, and telecommunications, that handle sensitive data, can now leverage machine learning models without compromising data privacy.</p><p>Beyond privacy, federated learning is a step towards AI democratisation. It enables every device to contribute to the learning process, creating a network of learners that collectively improves the model. The intelligence of all, used for the benefit of all, without compromising the privacy of any.</p><h4>Challenges and Future Prospects</h4><p>Despite its advantages, federated learning isn’t without its challenges. The most significant include:</p><p><strong>1.</strong> <strong>Communication Overhead:</strong> The process of sending updates between devices and the server requires significant communication resources.</p><p><strong>2.</strong> <strong>Non-IID Data:</strong> Devices may hold data that is not identically and independently distributed (non-IID). This could cause the model to have a biased learning process, as it may overfit to certain types of data.</p><p><strong>3. Systems Heterogeneity:</strong> Different devices have varying computational and storage capabilities. This variation could lead to delays and inconsistencies during the model update process.</p><p><strong>4. Privacy and Security: </strong>While federated learning is a significant step towards preserving privacy, it’s still vulnerable to certain attacks. For instance, an adversary might infer sensitive information from the model updates shared during the learning process.</p><p>Despite these challenges, the future prospects of Federated Learning are immense. As research and understanding in this field mature, better solutions to these problems will inevitably emerge, further solidifying federated learning as a standard for privacy-preserving machine learning.</p><h4>Wrapping It Up</h4><p>At its core, Federated Learning is an innovative approach to data privacy and machine learning. By training models on local devices and sharing only model updates, it provides a safeguard against data privacy concerns while still enabling machine learning’s transformative power.</p><p>But like any emerging technology, it has its share of challenges. Communication overheads, non-IID data, systems heterogeneity, and privacy concerns are all hurdles that need to be addressed. Yet, these challenges also present opportunities for research and development, pushing the boundaries of what’s possible in the realm of privacy-preserving machine learning.</p><p>As we stand on the cusp of this new era in machine learning, it’s clear that Federated Learning isn’t just a passing fad. It’s a promising and vital technology that has the potential to redefine the boundaries of privacy and machine learning, ushering us into a future where we can harness the power of data without compromising on its privacy. In the vast, uncharted waters of AI and machine learning, Federated Learning appears to be a beacon of hope, guiding us towards a safer, more privacy-conscious world.</p><p>In essence, Federated Learning empowers us to make the most out of our data-rich world, without giving up our claim to privacy. And that, undoubtedly, is a brave new world worth striving for.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=119d5de5e20a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Leveraging Vector Databases with Redis: A Comprehensive Guide]]></title>
            <link>https://nishanth-g.medium.com/leveraging-vector-databases-with-redis-a-comprehensive-guide-bd7b6edeee0d?source=rss-673f62a176f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd7b6edeee0d</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Nishanth G]]></dc:creator>
            <pubDate>Mon, 10 Apr 2023 09:04:09 GMT</pubDate>
            <atom:updated>2023-04-14T14:58:45.873Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s data-driven world, vector databases are essential for efficient information retrieval and analysis. This article will guide you through a comprehensive and easy-to-understand example of using Redis to build a vector database, highlighting the advantages and use cases of this powerful tool.</p><h4><strong>So what is a Vector Database you ask !!!</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*5V66Z631PPOqTH4QoGLoeA.jpeg" /></figure><p>A vector database is a specialized type of database designed to store and manage high-dimensional data, often represented as vectors. These databases enable efficient similarity search and retrieval of data points based on their vector representations. In contrast, traditional databases, such as relational databases, store data in structured tables and primarily focus on exact-match queries using predefined indexes.</p><p><strong>So now you got an idea about what is a Vector Database…</strong></p><h4><strong>So how does it work ?</strong></h4><p>Vector databases store data as points in a high-dimensional space, where each data point is represented as a vector. The relationships between data points are determined by measuring the similarity or distance between their vectors. Common similarity measures include Euclidean distance, cosine similarity, and Manhattan distance.</p><p>To enable efficient similarity search, vector databases leverage various indexing techniques and data structures, such as <strong>k-d trees, ball trees, VP-trees,</strong> and <strong>Hierarchical Navigable Small World (HNSW) graphs.</strong> These indexing methods help to reduce the search complexity and speed up the process of finding nearest neighbors for a given query vector.</p><p><strong>The main components of a vector database are:</strong></p><ol><li><strong>Vector representation: </strong>A method for converting raw data, such as text, images, or audio, into high-dimensional vectors that can be stored in the database.</li><li><strong>Indexing:</strong> A technique for organizing and storing the vectors in the database to enable efficient search and retrieval.</li><li><strong>Querying:</strong> A process for finding similar data points in the database by comparing the query vector to the indexed vectors and identifying the nearest neighbors based on a similarity measure.</li></ol><h4>Comparison with traditional databases:</h4><ol><li><strong>Data storage and organization: </strong>Traditional databases, such as relational databases, store data in structured tables with predefined schemas, while vector databases store data as high-dimensional vectors. This makes vector databases more suitable for handling unstructured data or data with complex relationships.</li><li><strong>Querying:</strong> Traditional databases focus on exact-match queries and rely on predefined indexes to speed up search and retrieval. Vector databases, on the other hand, support similarity search, which allows finding data points that are similar to a given query vector. This is particularly useful for tasks like image search, recommendation systems, and natural language processing, where exact matches may not be as relevant as approximate matches.</li><li><strong>Scalability:</strong> Vector databases can efficiently handle large-scale, high-dimensional data without significant performance degradation. In contrast, traditional databases may face performance challenges when dealing with large amounts of unstructured or complex data.</li><li><strong>Use cases: </strong>Traditional databases are well-suited for structured data storage and management, such as transactional data in business applications. Vector databases are more appropriate for applications that require similarity search and retrieval, such as content-based recommendation systems, information retrieval, and machine learning tasks.</li></ol><p><strong>Hiiiiiiiii..</strong> just checking if ur still reading and if you have reached so far then</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jf6hf9EonuGzdIN5JeZObQ.gif" /></figure><p><strong>Now let’s keep going ….</strong></p><p>In summary, vector databases offer a unique approach to data storage and retrieval, focusing on high-dimensional data and similarity search. They are particularly useful for applications dealing with unstructured or complex data, where traditional databases may not be as efficient or effective.</p><h4>Enough Talk !!! , show me some real action you ask</h4><p>As a next steap you will be guided through a comprehensive and easy-to-understand example of using Redis to build a vector database, highlighting the advantages and use cases of this powerful tool.</p><p><strong>Prerequisites:</strong></p><ol><li>Basic understanding of Python</li><li>Redis installed on your machine or a Redis cloud instance</li></ol><p><strong>Step 1: </strong>Install dependencies For this example, we’ll need the following Python packages:</p><ul><li>redis (Python client for Redis)</li><li>numpy (library for mathematical functions and arrays)</li><li>hnswlib (library for efficient approximate nearest neighbor search)</li></ul><p>To install these packages, run the following command:</p><pre>pip install redis numpy hnswlib</pre><p><strong>Step 2:</strong> Import the required libraries First, we need to import the necessary Python libraries:</p><pre>import redis<br>import numpy as np<br>import hnswlib</pre><p><strong>Step 3:</strong> Connect to Redis Now we’ll establish a connection to the Redis server:</p><pre>redis_client = redis.Redis(host=&quot;localhost&quot;, port=6379, db=0)</pre><p>Replace the host and port values with those of your Redis instance if needed.</p><p><strong>Step 4:</strong> Create a vector index Next, we’ll create an index for our vector database using hnswlib:</p><pre>dim = 128 # Dimension of the vectors<br>index = hnswlib.Index(space=&#39;cosine&#39;, dim=dim)</pre><p>Here, we’re using <strong>cosine similarity </strong>to measure the similarity between vectors.</p><p><strong>Step 5:</strong> Add data to the vector index For this example, we’ll generate random vectors and add them to our index:</p><pre>num_elements = 1000<br>data = np.random.randn(num_elements, dim)<br>labels = np.arange(num_elements)</pre><pre>index.init_index(max_elements=num_elements, ef_construction=100, M=16)<br>index.add_items(data, labels)</pre><p>This code generates 1000 random 128-dimensional vectors and adds them to the index.</p><p><strong>Step 6:</strong> Save the index to Redis We’ll save the index to Redis using a key-value pair:</p><pre>index_key = &quot;vector_index&quot;<br>serialized_index = index.serialize_index()<br>redis_client.set(index_key, serialized_index)</pre><p><strong>Step 7:</strong> Load the index from Redis To load the index from Redis, use the following code:</p><pre>loaded_serialized_index = redis_client.get(index_key)<br>loaded_index = hnswlib.Index(space=&#39;cosine&#39;, dim=dim)<br>loaded_index.load_index_data(loaded_serialized_index)</pre><p><strong>Step 8:</strong> Query the vector index Now we can perform a search for the nearest neighbors of a given query vector:</p><pre>query_vector = np.random.randn(1, dim)<br>num_nearest_neighbors = 5<br>labels, distances = loaded_index.knn_query(query_vector, k=num_nearest_neighbors)</pre><pre>print(&quot;Nearest neighbors:&quot;, labels)<br>print(&quot;Distances:&quot;, distances)</pre><p>This code generates a random query vector and finds its 5 nearest neighbors in the loaded index.</p><p>Wow you made it to the end , you are truly amazing</p><p>I hope the article has helped you understand or get started with Vector databasis</p><h3>Thats all Folks …</h3><p>IF you have read so far then ….</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*WkgDEaIWD0fe2APXPW3IuA.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd7b6edeee0d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hands on Introducing to Apache Kafka]]></title>
            <link>https://nishanth-g.medium.com/hands-on-introducing-to-apache-kafka-d93e836e781c?source=rss-673f62a176f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/d93e836e781c</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Nishanth G]]></dc:creator>
            <pubDate>Sun, 15 Aug 2021 06:52:00 GMT</pubDate>
            <atom:updated>2021-08-16T01:35:52.491Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>He who seeks does not find, but he who does not seek will be found.</blockquote><blockquote>Franz Kafka</blockquote><p>That was a totally unrelated quote from a german writer whose name is also Kafka</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8bQVvPlLDCly6-PHeVARrA.png" /></figure><p>Before we get started with Kafka we will first understand why we would need a Messaging system</p><h4>Why do we need a Messaging system ?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lh3jT2UkqtKZ95Ik2MPCYw.png" /></figure><p>Let’s consider the above image where System 1 and System 2 are two servers communicating with each other using a data pipeline ,We only wish that real world applications had a simple design as above .</p><p>In reality most of the real world applications would have</p><ul><li>multiple systems communicating with each other which will require complex data pipelines</li><li>Each data pipeline could have its own specification and requirement</li><li>adding / removing data pipelines could become complex</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9uIVAWZq7U6J-OFpvP0n-w.png" /></figure><h4>Messaging system :</h4><ul><li>It reduces the complexity of data pipelines</li><li>makes the communication between the systems more manageable</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RaYPJ9wW5ib1Z_Q_8X4Kaw.png" /></figure><ul><li>It can provide communication’s that is independent of platform/language</li><li>It provides a common paradigm</li><li>Can establish Asynchronous communication</li></ul><p>I hope i was able to convince you why we need a Messaging system</p><p>Next we will see Basics of Kafka and simple implementation of it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*m3mqfgkYCHnZXkMd.jpg" /></figure><h4>What is Kafka ?</h4><p>Kafka is a distributed publish-subscribe messaging system. In a publish-subscribe system, messages are persisted in a topic. Message producers are called publishers and message consumers are called subscribers. Consumers can subscribe to one or more topic and consume all the messages in that topic</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DoFIBQwIEWkX_Lm2uXh2yQ.png" /></figure><h4>Features of Kafka:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BY3dw-KlnrR19kLDDx56hg.png" /></figure><h3>Basics of Kafka</h3><p>Apache.org states that:</p><ul><li>Kafka runs as a cluster on one or more servers.</li><li>The Kafka cluster stores a stream of records in categories called topics.</li><li>Each record consists of a key, a value, and a timestamp.</li></ul><h3>Topics and Logs</h3><p>A topic is a feed name or category to which records are published. Topics in Kafka are always multi-subscriber — that is, a topic can have zero, one, or many consumers that subscribe to the data written to it. For each topic, the Kafka cluster maintains a partition log that looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/0*C0DNWtMvs56zlxf5.png" /></figure><h3>Partitions</h3><p>A topic may have many partitions so that it can handle an arbitrary amount of data. In the above diagram, the topic is configured into three partitions (partition{0,1,2}). Partition0 has 13 offsets, Partition1 has 10 offsets, and Partition2 has 13 offsets.</p><h3>Partition Offset</h3><p>Each partitioned message has a unique sequence ID called an offset. For example, in Partition1, the offset is marked from 0 to 9.</p><h3>Replicas</h3><p>Replicas are nothing but backups of a partition. If the replication factor of the above topic is set to 4, then Kafka will create four identical replicas of each partition and place them in the cluster to make them available for all its operations. Replicas are never used to read or write data. They are used to prevent data loss.</p><h3>Brokers</h3><p>Brokers are simple systems responsible for maintaining published data. Kafka brokers are stateless, so they use ZooKeeper for maintaining their cluster state. Each broker may have zero or more partitions per topic. For example, if there are 10 partitions on a topic and 10 brokers, then each broker will have one partition. But if there are 10 partitions and 15 brokers, then the starting 10 brokers will have one partition each and the remaining five won’t have any partition for that particular topic. However, if partitions are 15 but brokers are 10, then brokers would be sharing one or more partitions among them, leading to unequal load distribution among the brokers. Try to avoid this scenario.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IJ7avslMW2W-6k4kxKEMKQ.png" /></figure><h3>Zookeeper</h3><p>ZooKeeper is used for managing and coordinating Kafka brokers. ZooKeeper is mainly used to notify producers and consumers about the presence of any new broker in the Kafka system or about the failure of any broker in the Kafka system. ZooKeeper notifies the producer and consumer about the presence or failure of a broker based on which producer and consumer makes a decision and starts coordinating their tasks with some other broker.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eH-y6aNNY1DPPHq2te7RvA.png" /></figure><h3>Cluster</h3><p>When Kafka has more than one broker, it is called a Kafka cluster. A Kafka cluster can be expanded without downtime. These clusters are used to manage the persistence and replication of message data.</p><p>Kafka has four core APIs:</p><ol><li>The <strong>Producer API</strong> allows an application to publish a stream of records to one or more Kafka topics.</li><li>The <strong>Consumer API</strong> allows an application to subscribe to one or more topics and process the stream of records produced to them.</li><li>The <strong>Streams API</strong> allows an application to act as a stream processor, consuming an input stream from one or more topics and producing an output stream to one or more output topics, effectively transforming the input streams to output streams.</li><li>The <strong>Connector API</strong> allows building and running reusable producers or consumers that connect Kafka topics to existing applications or data systems. For example, a connector to a relational database might capture every change to a table.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3O5BpnUI8ejq58urixlOiw.png" /></figure><h4>Types of Kafka Cluster:</h4><ul><li>Single node — Single broker Cluster</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZtUDG9-vfSqLSLU2Xxiggg.png" /></figure><ul><li>Single node — Multiple broker Cluster</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6uFRXGqswQxBjL_jOYg9NQ.png" /></figure><ul><li>Multiple node — Multiple broker Cluster</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*exnxpGPyf_etz7gON98S-Q.png" /></figure><p>Up to now, we’ve discussed theoretical concepts to get ourselves familiar with Kafka. Now, we will be using some of these concepts in setting up of our single broker cluster.</p><ul><li>Download &amp; install Kafka</li></ul><pre>Download:<br><br>```shell<br>$ wget https://mirrors.estointernet.in/apache/kafka/2.8.0/kafka_2.13-2.8.0.tgz<br>```</pre><pre>Install:<br><br>```<br>$ tar -xzf kafka_2.13-2.8.0.tgz<br>$ cd kafka_2.13-2.8.0<br>```</pre><ul><li>Start ZooKeeper</li></ul><pre>QuickStart:<br><br>```bash<br># Start the ZooKeeper service<br># Note: Soon, ZooKeeper will no longer be required by Apache Kafka.<br>$ bin/zookeeper-server-start.sh config/zookeeper.properties<br>```</pre><pre>```shell<br># Start the Kafka broker service<br>$ bin/kafka-server-start.sh config/server.properties<br>```</pre><pre>Create topics:<br><br>```bash<br>$ bin/kafka-topics.sh --create --topic events --bootstrap-server localhost:9092<br>```<br><br>```shell<br>$ bin/kafka-topics.sh --describe --topic events --bootstrap-server localhost:9092<br>```</pre><pre>Ingest Events:<br><br>```shell<br>$ bin/kafka-console-producer.sh --topic events --bootstrap-server localhost:9092<br>My first event<br>My second event<br>```<br><br>Read Events:<br><br>```shell<br>$ bin/kafka-console-consumer.sh --topic events --from-beginning --bootstrap-server localhost:9092<br>```<br><br>Server Props:<br><br>```java<br>export KAFKA_HEAP_OPTS=&quot;-Xmx256M -Xms128M&quot;<br>```<br><br>Get offsets:<br><br>```shell<br>$ bin/kafka-run-class.sh kafka.tools.GetOffsetShell --broker-list localhost:9092 --topic events --time -1<br>```<br></pre><pre>Consumer groups:<br><br>```shell<br># List consumers<br>$ bin/kafka-consumer-groups.sh --list --bootstrap-server localhost:9092<br>```<br><br>Read Events with Consumer Group:<br><br>```shell<br># With config<br>$ bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic events --from-beginning --consumer.config config/consumer.properties<br># With group.id<br>$ bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic events --from-beginning --group my-cg<br>```<br><br>Describe Topic:<br><br>```shell<br>$ bin/kafka-consumer-groups.sh --bootstrap-server localhost:9092 --group my-cg --describe<br>```<br><br>Inflate Partitions:<br><br>```shell<br>$ bin/kafka-topics.sh --topic events --alter --partitions 4 --zookeeper localhost:2181<br>```<br><br>Describe Consumers:<br><br>```shell<br>$ bin/kafka-consumer-groups.sh --bootstrap-server localhost:9092 --describe --group myconsumer --offsets<br>```</pre><p><strong>That’s all folks and as always if you have read so far then …..</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jf6hf9EonuGzdIN5JeZObQ.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d93e836e781c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Elasticsearch part -1 :]]></title>
            <link>https://nishanth-g.medium.com/elasticsearch-part-1-5ba00a04cf8a?source=rss-673f62a176f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ba00a04cf8a</guid>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[search-engines]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Nishanth G]]></dc:creator>
            <pubDate>Tue, 20 Jul 2021 19:14:20 GMT</pubDate>
            <atom:updated>2021-07-22T02:45:13.151Z</atom:updated>
            <content:encoded><![CDATA[<h3>Elasticsearch part -1: A Gentle Introduction</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*t-OkxcgFTvkh0wARIVsMFQ.png" /></figure><h3>What is Elasticsearch?</h3><ul><li>Elasticsearch is a distributed, open-source search and analytics engine for all types of data, including textual, numerical, geospatial, structured, and unstructured.</li><li>Built on Apache Lucene and developed in Java</li><li>It allows you to store, search, and analyze huge volumes of data quickly and in near real-time and give back answers in milliseconds. It’s able to achieve fast search responses because instead of searching the text directly, it searches the index.</li><li>It uses a structure based on documents instead of tables and schemas and comes with extensive REST APIs for storing and searching the data.</li><li>The data is stored in the form of schema-less JSON documents.</li></ul><h3>What is Elasticsearch used for?</h3><p>The speed and scalability of Elasticsearch and its ability to index many types of content mean that it can be used for a number of use cases:</p><ul><li>Application search</li><li>Website search</li><li>Enterprise search</li><li>Logging and log analytics</li><li>Infrastructure metrics and container monitoring</li><li>Application performance monitoring</li><li>Geospatial data analysis and visualization</li><li>Security analytics</li><li>Business analytics</li></ul><h4>Few Companies that use Elasticsearch ..</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*29udcEcQrX3QwE72r8tnBw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/1*wqBaqwxqb3wO_jQOSQi_uQ.jpeg" /></figure><h3>How does Elasticsearch(ES) work?</h3><p>In order to understand the work flow we wound first look into the Key concepts of ES</p><h4>Documents</h4><ul><li>In ES data is stored as Documents which are the basic unit of information</li><li>the Document in just an JSON object</li><li>Similar to rows in relational DB (ex:MySQL)</li><li>The document can contain fields that is similar to columns in relational DB</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vj8cEYzybdXqpVjNdWo2rA.png" /></figure><h4>Indices</h4><ul><li>An index is a collection of documents that have similar characteristics.</li><li>An index is the highest level entity that you can query against in Elasticsearch.</li><li>Similar to a database in a relational DB.</li><li>Any documents in an index are typically logically related.</li></ul><h4>Inverted Index</h4><ul><li>An index in Elasticsearch is actually what’s called an inverted index, which is the mechanism by which all search engines work. It is a data structure that stores a mapping from content, such as words or numbers, to its locations in a document or a set of documents.</li><li>It is a hashmap-like data structure that directs you from a word to a document. An inverted index doesn’t store strings directly and instead splits each document up to individual search terms (i.e. each word) then maps each search term to the documents those search terms occur within.</li><li>For example, in the image below (Figure: inverted-index-1), the term “retire” occurs in document 2, so it is mapped to that document, similarly the term “blue” appears in both and hence is mapped to both the documents. This serves as a quick look-up of where to find search terms in a given document.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ahW_4v5CyZyD0mboy7bjJA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*e7ZejrtSSFQf6aS6o5f6eA.png" /><figcaption>inverted-index-1 inverted-index-2</figcaption></figure><ul><li>By using distributed inverted indices, Elasticsearch quickly finds the best matches for full-text searches from even very large data sets.</li><li><strong>Advantage of Inverted Index are:</strong></li><li>Inverted index is to allow fast full text searches, at a cost of increased processing when a document is added to the database.</li><li>It is easy to develop.</li><li>It is the most popular data structure used in document retrieval systems, used on a large scale for example in search engines.</li><li><strong>Inverted Index also has disadvantage:</strong></li><li>Large storage overhead and high maintenance costs on update, delete and insert.</li></ul><h4><strong>Mapping</strong></h4><ul><li>It is basically used to specify the schema for an index. It defines the fields within an index, the datatype for each field, and how the field should be handled by Elasticsearch. Mapping is also used to configure metadata associated with the type.</li></ul><h4>Shards</h4><ul><li>Elasticsearch provides the ability to subdivide the index into multiple pieces called shards.</li><li>Each shard is in itself a fully-functional and independent “index” that can be hosted on any node within a cluster.</li><li>By distributing the documents in an index across multiple shards, and distributing those shards across multiple nodes, Elasticsearch can ensure redundancy, which both protects against hardware failures and increases query capacity as nodes are added to a cluster.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bt1sYF1bY2QHqKLtLPpnFA.png" /></figure><h4>Replicas</h4><ul><li>Elasticsearch allows you to make one or more copies of your index’s shards which are called “replica shards” or just “replicas”. Basically, a replica shard is a copy of a primary shard. Each document in an index belongs to one primary shard. Replicas provide redundant copies of your data to protect against hardware failure and increase capacity to serve read requests like searching or retrieving a document.</li></ul><h4>Cluster</h4><ul><li>Cluster is a group of one or more node instances that are connected together. The performance of the cluster depends on the distribution of tasks, searching, and indexing, across all the nodes within the cluster.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JkgxFotRwkpOJ-i7nPzX0Q.png" /></figure><h4>Node</h4><ul><li>A node is a single server that is a part of a cluster. A node stores data and participates in the cluster’s indexing and search capabilities. An Elasticsearch node can be configured in different ways:</li><li><strong>Master Node</strong> — Controls the Elasticsearch cluster and is responsible for all cluster-wide operations like creating/deleting an index and adding/removing nodes.node.data: false and node.master: true</li><li><strong>Data Node</strong> — Stores data and executes data-related operations such as search and aggregation.node.data: true</li><li><strong>Client Node</strong> — Forwards cluster requests to the master node and data-related requests to data nodes.node.data: false</li><li>ES allows to configure a node to either be allowed to store data locally or not. Storing data locally basically means that shards of different indices are allowed to be allocated on that node. By default, each node is considered to be a data node, and it can be turned off by setting node.data to false.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZJJkJZ97aS1MU5XcgtEwKg.png" /></figure><h3>The Elastic Stack (ELK)</h3><ul><li>Elasticsearch is the central component of the Elastic Stack, a set of open-source tools for data ingestion, enrichment, storage, analysis, and visualization.</li><li>It is commonly referred to as the “ELK” stack after its components</li></ul><p>E — Elasticsearch,</p><p>L — Logstash,</p><p>K — Kibana</p><p>and now also includes Beats</p><h4>Kibana</h4><ul><li><a href="https://www.knowi.com/blog/grafana-vs-kibana/">Kibana</a> is a data visualization and management tool for Elasticsearch that provides real-time histograms, line graphs, pie charts, and maps. It lets you visualize your Elasticsearch data and navigate the Elastic Stack.</li></ul><h4>Logstash</h4><ul><li>Logstash is used to aggregate and process data and send it to Elasticsearch. It is an open-source, server-side data processing pipeline that ingests data from a multitude of sources simultaneously, transforms it, and then sends it to collect. It also transforms and prepares data regardless of format by identifying named fields to build structure, and transform them to converge on a common format.</li></ul><h4>Beats</h4><ul><li>Beats is a collection of lightweight, single-purpose data shipping agents used to send data from hundreds or thousands of machines and systems to Logstash or Elasticsearch. Beats are great for gathering data as they can sit on your servers, with your containers, or deploy as functions then centralize data in Elasticsearch.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-kFnISdsTplk_7qxcqVTyQ.png" /></figure><p>Thats bring’s us to the End 👀….</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-YIqTB6YTmXwDMUp15zshQ.jpeg" /></figure><p>This is just a friendly intro to ES which hopefully the post gave you an Basic idea of what ES is and just making the</p><blockquote>Unknown unknowns as known unknowns ..</blockquote><p>Hopefully i get the motivation to post a Deep Dive Elasticsearch part -2 story</p><p>and as<strong> alwayssss…..</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jf6hf9EonuGzdIN5JeZObQ.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ba00a04cf8a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hashing in context of Load Balancing]]></title>
            <link>https://nishanth-g.medium.com/hashing-in-context-of-load-balancing-392b317fe40e?source=rss-673f62a176f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/392b317fe40e</guid>
            <category><![CDATA[design]]></category>
            <category><![CDATA[geek]]></category>
            <category><![CDATA[system]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Nishanth G]]></dc:creator>
            <pubDate>Fri, 16 Apr 2021 05:16:46 GMT</pubDate>
            <atom:updated>2021-04-17T01:50:43.015Z</atom:updated>
            <content:encoded><![CDATA[<p>One of the slightly tricky concepts to understand is hashing in the context of load balancing.</p><p>In order to understand this, please check out <a href="https://www.cs.cmu.edu/~guna/15-123S11/Lectures/Lecture17.pdf"><strong>how hashing works at a conceptual level</strong></a>. The <strong>TL;DR</strong> is that hashing converts an input into a fixed-size value, often an integer value (the hash).</p><p>One of the key principles for a good hashing algorithm is that the function must be <a href="https://en.wikipedia.org/wiki/Hash_function#Deterministic"><strong>deterministic</strong></a>, which is a fancy way for saying that identical inputs will generate identical outputs when passed into the function. So, deterministic means — if I pass in the string “Hello” (case sensitive) and the function generates a hash of 11002, then every time I pass in “Hello” it must generate “11002” as an integer. And if I pass in “hello” it will generate a different number (consistently).</p><p>you might be wondering how to handle a situation where the hashing function generate’s the same hash for more than one input — this is not the end of the world and there are ways to deal with it. In fact it becomes more likely the more the range of unique inputs are. But when more than one input deterministically generates the same output, it’s called a <strong>collision</strong>.</p><p>few methods to handle collision are <strong>Chaining, Rehashing, Linear Probing, Quadratic Probing. </strong>feel free to read about them before moving on</p><p>Here we are going to only discuss about<strong> Server selection with hashing</strong> though there are other methods as well..</p><h3>IP Hashing based Server selection</h3><p>You can configure your load balancer to <a href="https://www.cs.cmu.edu/~adamchik/15-121/lectures/Hashing/hashing.html">hash</a> the IP address of incoming requests, and use the hash value to determine which server to direct the request too. If I had 5 servers available, then the hash function would be designed to return one of five hash values, so one of the servers definitely gets nominated to process the request.</p><p>IP hash based routing can be very useful where you want requests from a certain country or region to get data from a server that is best suited to address the needs from within that region, or where your servers cache requests so that they can be processed fast.</p><p>In the latter scenario, you want to ensure that the request goes to a server that has previously cached the same request, as this will improve speed and performance in processing and responding to that request.</p><p>If your servers each maintain independent caches and your load balancer does not consistently send identical requests to the same server, you will end up with servers re-doing work that has already been done in as previous request to another server, and you lose the optimization that goes with caching data.</p><p>Before we go further i want to point out that selecting a Server using hashing is just one of the methods discussed and there are few other ways like<strong> Round Robin , Weighted Round Robin, Load-based server selection, Path or Service based selection, Mixed Bag etc …</strong></p><h4>Hashing for Routing in LB:</h4><p>With the above knowledge firmly in mind, let’s apply it to routing and directed requests to servers. Let’s say you have 4 servers to allocate loads across. An easy to understand method would be to hash incoming requests (maybe by IP address, or some client detail), and then generate hashes for each request. Then you apply the modulo operator to that hash, where the right operand is the number of servers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZZWHWhqIWpPNnR1NYDOElw.png" /></figure><pre>request#1 =&gt; hashes to 34<br>request#2 =&gt; hashes to 23<br>request#3 =&gt; hashes to 30<br>request#4 =&gt; hashes to 14<br><br>// You have 4 servers =&gt; [Server A, Server B ,Server C ,Server D]<br><br>// so modulo 4for each request...<br><br>request#1 =&gt; hashes to 34 =&gt; 34 % 4= 3=&gt; send this request to servers[4] =&gt; Server D<br><br>request#2 =&gt; hashes to 23 =&gt; 23 % 4= 2=&gt; send this request to servers[2] =&gt; Server B<br><br>request#3 =&gt; hashes to 30 =&gt; 30 % 4= 4=&gt; send this request to  servers[4] =&gt; Server D<br><br>request#4 =&gt; hashes to 14 =&gt; 14 % 4= 3=&gt; send this request to servers[3] =&gt; Server C</pre><p>As you can see, the hashing function generates a spread of possible values, and when the modulo operator is applied it brings out a smaller range of numbers that map to the server number.</p><p>You will definitely get different requests that map to the same server, and that’s fine, as long as there is “<a href="https://en.wikipedia.org/wiki/Hash_function#Uniformity">uniformity</a>” in the overall allocation to all the servers.</p><h3>Adding Servers, and Handling Failing Servers</h3><p>So — what happens if one of the servers that we are sending traffic to dies? The hashing function (refer to the pseudo code snippet above) still thinks there are 5 servers, and the mod operator generates a range from 0–4. But we only have 4 servers now that one has failed, and we are still sending it traffic. Oops.</p><p>Inversely, we could add a sixth server but that would <em>never</em> get any traffic because our mod operator is 5, and it will never yield a number that would include the newly added 6th server. Double oops.</p><pre>/ Let&#39;s add a 5th server<br>servers =&gt; [Server A, Server B ,Server C ,Server D ,Server E]<br><br>// let&#39;s change the modulo operand to 5<br>request#1 =&gt; hashes to 34 =&gt; 34 % 5= 3=&gt; send this request to servers[3] =&gt; Server D<br><br>request#2 =&gt; hashes to 23 =&gt; 23 % 5= 4=&gt; send this request to servers[4] =&gt; Server E<br><br>request#3 =&gt; hashes to 30 =&gt; 30 % 5= 0 =&gt; send this request to  servers[0] =&gt; Server A<br><br>request#4 =&gt; hashes to 14 =&gt; 14 % 5= 1=&gt; send this request to servers[1] =&gt; Server B</pre><p>We note that the server number after applying the mod changes (though, in this example,</p><p>In effect, the result is that the requests are now being routed to new servers altogether, and we lose the <strong>benefits of previously cached data on the servers.</strong></p><p>For example, let’s assume request#4 used to go to Server E, but now goes to Server C. All the cached data relating to request#4 sitting on Server E is of no use since the request is now going to Server C. You can calculate a similar problem for where one of your servers dies, but the mod function keeps sending it requests.</p><p>It sounds minor in this tiny system. But on a very large scale system this is a poor outcome. #SystemDesignFail.</p><p>So clearly, a simple hashing-to-allocate system does not scale or handle failures well.</p><h3>A popular solution — Consistent Hashing</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*YlNjxXhjhjf9L4EooCzpZA.jpeg" /></figure><p>Unfortunately this is the part where I feel word descriptions will not be enough. Consistent hashing is best understood visually.</p><p>The key problem with naive hashing, as we discussed, is that when</p><p>(A) a server fails, traffic still gets routed to it,</p><p>and</p><p>(B) you add a new server, the allocations can get substantially changed, thus losing the benefits of previous caches.</p><p>There are two very important things to keep in mind when digging into consistent hashing:</p><ol><li>Consistent hashing <em>does not eliminate the problems</em>, especially B. But it does reduce the problems a lot. At first you might wonder what the big deal is in consistent hashing, as the underlying downside still exists — yes, but to a much smaller extent, and that itself is a valuable improvement in very large scale systems.</li><li>Consistent hashing applies a hash function to incoming requests <em>and the servers</em>. The resulting outputs therefore fall in a set range (continuum) of values. This detail is very important.</li></ol><p>Please keep these in mind as you watch the below recommended video that explains consistent hashing, as otherwise its benefits may not be obvious.</p><p>I strongly recommend this video as it embeds these principles without burdening you with too much detail.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FtHEyzVbl4bg&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DtHEyzVbl4bg&amp;image=http%3A%2F%2Fi.ytimg.com%2Fvi%2FtHEyzVbl4bg%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ef4b3633d9c5685eaa50861711a36c79/href">https://medium.com/media/ef4b3633d9c5685eaa50861711a36c79/href</a></iframe><h4>well its been a slightly long post than usual but if u have read so far then u deserve this 🍪</h4><p><strong>and as always …</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jf6hf9EonuGzdIN5JeZObQ.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=392b317fe40e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Custom Lookups in Django]]></title>
            <link>https://nishanth-g.medium.com/custom-lookups-in-django-69fd13e35bdb?source=rss-673f62a176f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/69fd13e35bdb</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[django]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Nishanth G]]></dc:creator>
            <pubDate>Wed, 14 Apr 2021 18:23:41 GMT</pubDate>
            <atom:updated>2021-04-16T02:08:24.272Z</atom:updated>
            <content:encoded><![CDATA[<p>before we check on Custom Lookups, let’s see the basics and understand what is a Lookup</p><h4>So what’s a Lookup …</h4><p>As per the Django docs</p><blockquote>Field lookups are how you specify the meat of an SQL <strong>WHERE</strong> clause. They’re specified as keyword arguments to the <strong>QuerySet</strong> methods <a href="https://docs.djangoproject.com/en/3.1/ref/models/querysets/#django.db.models.query.QuerySet.filter"><strong>filter()</strong></a>, <a href="https://docs.djangoproject.com/en/3.1/ref/models/querysets/#django.db.models.query.QuerySet.exclude"><strong>exclude()</strong></a> and <a href="https://docs.djangoproject.com/en/3.1/ref/models/querysets/#django.db.models.query.QuerySet.get"><strong>get()</strong></a>.</blockquote><p>not very clear but an example would make it so much more easy</p><pre>Entry.objects.filter(id__in=[1, 3, 4])</pre><p>in the above example ‘<strong>in</strong>’ is what is called a Lookup and what the above query does is filters all the <strong>Entry</strong> data where their<strong> id’s </strong>belong to any<strong> </strong>of the values in the list <strong>[1, 3, 4]</strong></p><p>Now i hope you have some idea of how and where a Lookup is used</p><p>Django has many builtin lookups and if none are specified as such then the default is ‘exact’ for ex:</p><pre>Entry.objects.get(id=14)</pre><p>is the same as</p><pre>Entry.objects.get(id__exact=14)</pre><p>a few examples of builtin lookups are [in,iexact, contains , gt ,gte ,lt ,startswith ….]</p><p>you can check the link for rest of them: <a href="https://docs.djangoproject.com/en/3.1/ref/models/querysets/#field-lookups">https://docs.djangoproject.com/en/3.1/ref/models/querysets/#field-lookups</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*dDUNiGmvAfXKhUVvuFUtkw.png" /></figure><h3>Let’s jump and address the 🐘 in the 🏠 — — — — Custom 👀👆🏻</h3><p>haha sry i got carried away with the emoji’s ,</p><h3>So what and why do we need Custom Lookups ?</h3><p>Why , the answer is simple bcz there might be no Lookup that would fetch you data as per your complex requirement</p><p>Lets check a very simple example from Djangodocs that would give u enough info to start with working on Custom Lookups</p><p>We will write a custom lookup <strong>ne</strong> which works opposite to <strong>exact</strong>. <strong>Author.objects.filter(name__ne=&#39;Jack&#39;)</strong> will translate to the SQL:</p><pre>&quot;author&quot;.&quot;name&quot; &lt;&gt; &#39;Jack&#39;</pre><p>This SQL is backend independent, so we don’t need to worry about different databases.</p><p>There are two steps to making this work. Firstly we need to implement the lookup, then we need to tell Django about it:</p><pre><strong>from</strong> <strong>django.db.models</strong> <strong>import</strong> Lookup</pre><pre><strong>class</strong> <strong>NotEqual</strong>(Lookup):<br>    lookup_name = &#39;ne&#39;</pre><pre>    <strong>def</strong> as_sql(self, compiler, connection):<br>        lhs, lhs_params = self.process_lhs(compiler, connection)<br>        rhs, rhs_params = self.process_rhs(compiler, connection)<br>        params = lhs_params + rhs_params<br>        <strong>return</strong> &#39;<strong>%s</strong> &lt;&gt; <strong>%s</strong>&#39; % (lhs, rhs), params</pre><p>To register the <strong>NotEqual</strong> lookup we will need to call <strong>register_lookup</strong> on the field class we want the lookup to be available for. In this case, the lookup makes sense on all <strong>Field</strong> subclasses, so we register it with <strong>Field</strong> directly:</p><pre><strong>from</strong> <strong>django.db.models</strong> <strong>import</strong> Field<br>Field.register_lookup(NotEqual)</pre><p>Lookup registration can also be done using a decorator pattern:</p><pre><strong>from</strong> <strong>django.db.models</strong> <strong>import</strong> Field</pre><pre>@Field.register_lookup<br><strong>class</strong> <strong>NotEqualLookup</strong>(Lookup):</pre><p>for more info checkout: <a href="https://docs.djangoproject.com/en/3.1/howto/custom-lookups/">https://docs.djangoproject.com/en/3.1/howto/custom-lookups/</a></p><p><strong>That’s all folks and as always if you have read so far then …..</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jf6hf9EonuGzdIN5JeZObQ.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69fd13e35bdb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Interesting SQL function’s worth knowing]]></title>
            <link>https://nishanth-g.medium.com/interesting-sql-functions-worth-knowing-982def8878fd?source=rss-673f62a176f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/982def8878fd</guid>
            <category><![CDATA[it]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Nishanth G]]></dc:creator>
            <pubDate>Sun, 11 Apr 2021 05:44:31 GMT</pubDate>
            <atom:updated>2021-04-16T02:08:35.940Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>COALESCE(), Stored Procedure, SELECT INTO, CASE</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*JwMX2smoYasgkddKDCaPLQ.jpeg" /></figure><h3>COALESCE()</h3><p>COALESCE takes any number of arguments and returns the first value that is not null.</p><pre>COALESCE(x,y,z) = x if x is not NULL<br>  COALESCE(x,y,z) = y if x is NULL and y is not NULL<br>  COALESCE(x,y,z) = z if x and y are NULL but z is not NULL<br>  COALESCE(x,y,z) = NULL if x and y and z are all NULL</pre><p>COALESCE can be useful when you want to replace a NULL value with some other value. In this example you show the name of the party for each MSP that has a party. For the MSP with no party (such as Canavan, Dennis) you show the string None.</p><pre>SELECT name, party<br>      ,COALESCE(party,&#39;None&#39;) AS aff<br>  FROM msp WHERE name LIKE &#39;C%&#39;</pre><h3><strong>Stored Procedure</strong></h3><p>A stored procedure is a prepared SQL code that you can save, so the code can be reused over and over again.</p><p>So if you have an SQL query that you write over and over again, save it as a stored procedure, and then just call it to execute it.</p><p>You can also pass parameters to a stored procedure, so that the stored procedure can act based on the parameter value(s) that is passed.</p><pre>CREATE PROCEDURE <em>procedure_name </em>AS <em>sql_statement </em>GO;</pre><pre>EXEC <em>procedure_name</em>;</pre><h4>Example</h4><pre>CREATE PROCEDURE SelectAllCustomers AS SELECT * FROM Customers GO;</pre><p>Execute the stored procedure above as follows</p><pre>EXEC SelectAllCustomers;</pre><h3>Stored Procedure With Parameters</h3><p>list each parameter and the data type separated by a comma as shown below.</p><p>The following SQL statement creates a stored procedure that selects Customers from a particular City with a particular PostalCode from the “Customers” table:</p><pre>CREATE PROCEDURE SelectAllCustomers @City nvarchar(30), @PostalCode nvarchar(10)<br>AS<br>SELECT * FROM Customers WHERE City = @City AND PostalCode = @PostalCode<br>GO;</pre><pre>EXEC SelectAllCustomers @City = ‘London’, @PostalCode = ‘WA1 1DP’;</pre><h3>SELECT INTO</h3><p>The SELECT INTO statement copies data from one table into a new table.</p><pre>SELECT *<br>INTO <em>newtable</em> [IN <em>externaldb</em>]<br>FROM <em>oldtable<br></em>WHERE <em>condition</em>;</pre><p>Copy only some columns into a new table</p><pre>SELECT <em>column1</em>, <em>column2</em>, <em>column3</em>, ...<br>INTO <em>newtable</em> [IN <em>externaldb</em>]<br>FROM <em>oldtable<br></em>WHERE <em>condition;</em></pre><h4><strong>Examples</strong></h4><pre>SELECT * INTO CustomersBackup2017<br>FROM Customers;</pre><pre>SELECT  CustomerName, ContactName INTO CustomersBackup2017 IN &#39;Backup.mdb&#39;<br>FROM Customers;</pre><pre>SELECT Customers.CustomerName, Orders.OrderID<br>INTO CustomersOrderBackup2017<br>FROM Customers<br>LEFT JOIN Orders ON Customers.CustomerID = Orders.CustomerID;</pre><h3><strong>CASE</strong></h3><p>The CASE statement goes through conditions and returns a value when the first condition is met (like an if-then-else statement). So, once a condition is true, it will stop reading and return the result. If no conditions are true, it returns the value in the ELSE clause.</p><p>If there is no ELSE part and no conditions are true, it returns NULL.</p><pre>CASE<br>    WHEN <em>condition1</em> THEN <em>result1</em><br>    WHEN <em>condition2</em> THEN <em>result2</em><br>    WHEN <em>conditionN</em> THEN <em>resultN</em><br>    ELSE <em>result</em><br>END;</pre><h4>Examples</h4><pre>SELECT OrderID, Quantity,<br>CASE<br>    WHEN Quantity &gt; 30 THEN &#39;The quantity is greater than 30&#39;<br>    WHEN Quantity = 30 THEN &#39;The quantity is 30&#39;<br>    ELSE &#39;The quantity is under 30&#39;<br>END AS QuantityText<br>FROM OrderDetails;</pre><pre>SELECT CustomerName, City, Country<br>FROM Customers<br>ORDER BY<br>(CASE<br>    WHEN City IS NULL THEN Country<br>    ELSE City<br>END);</pre><h3>Thats all Folks…</h3><p>i recommend you guys check out this amazing tutorials if you are interested and want to learn SQL, <a href="https://sqlzoo.net/wiki/SQL_Tutorial">https://sqlzoo.net/wiki/SQL_Tutorial</a></p><p>and as always if u have read so far then ..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jf6hf9EonuGzdIN5JeZObQ.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=982def8878fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Interesting Kill Signal’s in UNIX]]></title>
            <link>https://nishanth-g.medium.com/interesting-kill-signals-in-unix-e61eee100bc0?source=rss-673f62a176f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/e61eee100bc0</guid>
            <category><![CDATA[operating-systems]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Nishanth G]]></dc:creator>
            <pubDate>Fri, 09 Apr 2021 06:58:51 GMT</pubDate>
            <atom:updated>2021-04-16T02:08:21.437Z</atom:updated>
            <content:encoded><![CDATA[<h3>SIGTERM, SIGKILL, SIGSTOP and SIGCONT</h3><h3>What is SIGTERM?</h3><p>SIGTERM means SIGnal and TERMinate ,In UNIX-like systems the SIGTERM signal is used for terminating a program.</p><p>The SIGTERM can also be referred as soft kill because the process that receives the SIGTERM signal may choose to ignore it.</p><p>In other words, it’s the polite and safe way of killing a process.</p><p>By default, kill command sends the SIGTERM signal. You may explicitly mention it with -15 .</p><p>How to use SIGTERM command</p><pre>kill &lt;process_id&gt;</pre><p>or</p><pre>kill -15 &lt;process_id&gt;</pre><p>or</p><pre>kill -SIGTERM &lt;process_id&gt;</pre><h3>What is SIGKILL?</h3><p>The SIGKILL is used for immediate termination of a process. This signal cannot be ignored /blocked. The process will be terminated along with its threads.</p><p>It is the brutal way of killing a process and it should only be used as the last resort. Suppose you have an unresponsive process that you want to close. The SIGKILL can be used in such a case.</p><p>You can use the option -9 to send the SIGKILL signal with the kill command to kill the process immediately</p><h3>SIGTERM vs SIGKILL:</h3><ul><li>SIGTERM gracefully kills the process whereas SIGKILL kills the process immediately.</li><li>SIGTERM signal can be handled, ignored and blocked but SIGKILL cannot be handled or blocked.</li><li>SIGTERM doesn’t kill the child processes. SIGKILL kills the child processes as well.</li></ul><p>With SIGTERM, a process gets the time to send the information to its parent and child processes. It’s child processes are handled by init.</p><p>Use of SIGKILL may lead to the creation of a zombie process because the killed process doesn’t get the chance to tell its parent process that it has received a kill signal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*-6nPuq06rjGYR_Pupgg8dA.jpeg" /><figcaption>Credit:<a href="https://turnoff.us/geek/dont-sigkill/"><em>Turnoff.us</em></a></figcaption></figure><h3>What is SIGSTOP ?</h3><p>Wikipedia has great definitions for <a href="http://en.wikipedia.org/wiki/SIGSTOP">SIGSTOP</a>:</p><blockquote><em>When SIGSTOP is sent to a process, the usual behaviour is to pause that process in its current state. The process will only resume execution if it is sent the SIGCONT signal. SIGSTOP and SIGCONT are used for job control in the Unix shell, among other purposes. SIGSTOP cannot be caught or ignored.</em></blockquote><h3><strong>and SIGCONT:</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*gYS6m3uk13bWTB-L4ZMWMQ.png" /><figcaption>credit:<a href="https://turnoff.us/geek/dont-sigkill/"><em>Turnoff.us</em></a></figcaption></figure><blockquote><em>When SIGSTOP or SIGTSTP is sent to a process, the usual behaviour is to pause that process in its current state.</em></blockquote><blockquote><em>The process will only resume execution if it is sent the SIGCONT signal.</em></blockquote><blockquote><em>SIGSTOP and SIGCONT are used for job control in the Unix shell, among other purposes.</em></blockquote><p>In short, SIGSTOP tells a process to “hold on” and SIGCONT tells a process to “pick up where you left off”. This can work really well for rsync jobs since you can pause the job, clear up some space on the destination device, and then resume the job. The source rsync process just thinks that the destination rsync process is taking a long time to</p><p>respond.</p><p><strong>How to use them</strong></p><pre>kill -SIGSTOP &lt;process_id&gt;<br>kill -SIGCONT &lt;process_id&gt;</pre><h3><strong>Thats all Folks …</strong></h3><p>IF you have read so far then ….</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jf6hf9EonuGzdIN5JeZObQ.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e61eee100bc0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MMap’s in Python]]></title>
            <link>https://nishanth-g.medium.com/mmaps-in-python-63b044c3014a?source=rss-673f62a176f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/63b044c3014a</guid>
            <category><![CDATA[memories]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Nishanth G]]></dc:creator>
            <pubDate>Sat, 03 Apr 2021 16:31:59 GMT</pubDate>
            <atom:updated>2021-04-16T02:08:31.612Z</atom:updated>
            <content:encoded><![CDATA[<p>yes you read it correct its 2 M’s</p><h3>So what’s MMap ?</h3><p>The extra M stands for ‘Memory’. Memory mapping is a process through which machine level constructs are used to map a file directly for use in a program from disk. It maps the entire file in the disk to a range of addresses within the computer program’s address space. The program can access the files on the disk in the same way it accesses data from random access memory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/527/1*5zz42fTTNfioTySnTWweOg.png" /></figure><p>The mmap function uses the concept of virtual memory to make it appear to the program that a large file has been loaded to main memory.</p><p>But in reality the file is only present on the disk. The operating system just maps the address of the file into the program’s address space so that program can access the data on the filesystem directly, instead of using normal I/O functions. Memory-mapping typically improves I/O performance because it does not involve a separate system call for each access and it does not require copying data between buffers — the memory is accessed directly.</p><p>Memory-mapped files can be treated as mutable strings or file-like objects, depending on your need. A mapped file supports the expected file API methods, such as close(), flush(), read(), <a href="https://pymotw.com/2/readline/index.html#module-readline">readline()</a>, seek(), tell(), and write(). It also supports the string API, with features such as slicing and methods like find().</p><h3>Now lets see how to implement mmap function in Python</h3><p>We can use mmap module for file I/O instead of simple file opeartion.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/861b4484f60f4fee772d34532dc81c85/href">https://medium.com/media/861b4484f60f4fee772d34532dc81c85/href</a></iframe><ol><li>we first <a href="https://www.askpython.com/python/python-import-statement">import</a> the mmap module</li><li>then define the filepath of the file in the disk</li><li>then we create the file_object using <strong>open()</strong> system call</li><li>After getting the file object we create a memory mapping of file into the address space of the program using the mmap function</li><li>Then we read the data from mmap object</li><li>and print the data.</li></ol><h3>Description of mmap function</h3><p>mmap_object<strong>=</strong> mmap.mmap(file_object.fileno(),length<strong>=</strong>0,access<strong>=</strong>mmap.ACCESS_READ,offset<strong>=</strong>0)</p><p>mmap requires a file descriptor for the first argument.</p><p>The argument length takes the size of memory in bytes to be mapped and the argument access informs the kernel how the program is going to access the memory.</p><p>The argument offset instructs the program to create a memory map of the file after certain bytes specified in the offset.</p><ul><li>The file descriptor for the first argument is provided by the <strong>fileno()</strong> method of the file object.</li><li>The length in the second argument can be specified <strong>0 </strong>if we want the system to automatically select a sufficient amount of memory to map the file.</li><li>The access argument has many options. <strong>ACCESS_READ</strong> allows the user program to only read from the mapped memory. <strong>ACCESS_COPY</strong> and <strong>ACCESS_WRITE</strong> offer write mode access. In <strong>ACCESS_WRITE</strong> mode the program can change both the mapped memory and file but in <strong>ACCESS_COPY</strong> mode only the mapped memory is changed.</li><li>The offset argument is often specified <strong>0</strong> when we want to map the file from the start address.</li></ul><h3>We saw how to read a file using MMap , now let see how to Write</h3><p>To write some data to a memory-mapped file, we can use the <strong>ACCESS_WRITE</strong> option in the access argument and use <strong>mmap_object.write()</strong> function to write to the file after creating the file object by opening the file in <strong>r+</strong> mode.</p><p>Here we have to take care of the point that mmap doesn’t allow mapping of empty files. This is due to the reason that no memory mapping is needed for an empty file because it’s just a buffer of memory.</p><p>If we will open a file using <strong>“w”</strong> mode, mmap will cause ValueError.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6f1b30b26d3849705837a726122c3dff/href">https://medium.com/media/6f1b30b26d3849705837a726122c3dff/href</a></iframe><p>An important point we have to keep in mind regarding the above example is that the input should be <a href="https://www.askpython.com/python/string/python-string-bytes-conversion">converted into bytes</a> before writing to mmap.</p><p>Also, mmap starts writing data from the first address of the file and overwrites the initial data. If we have to save previous data, we can do so by specifying the appropriate offset in mmap function call.</p><h3>Conclusion</h3><p>Simple read/write operations make many system calls during execution which causes multiple copying of data in different buffers in the process.</p><p>Using mmap provides us a significant improvement in terms of performance because it skips those function calls and buffers operations especially in programs where extensive file I/O is required.</p><p>That brings us to the End of this Article</p><p>If u have read so far ….</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jf6hf9EonuGzdIN5JeZObQ.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63b044c3014a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>