<?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 Tejas shelke on Medium]]></title>
        <description><![CDATA[Stories by Tejas shelke on Medium]]></description>
        <link>https://medium.com/@tejsshelke8?source=rss-8a7257871a47------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QaS8--ODVzBYmZXeHpYKcg.jpeg</url>
            <title>Stories by Tejas shelke on Medium</title>
            <link>https://medium.com/@tejsshelke8?source=rss-8a7257871a47------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 00:57:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tejsshelke8/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[Introduction to Android Development]]></title>
            <link>https://medium.com/@tejsshelke8/introduction-to-android-development-65422490215f?source=rss-8a7257871a47------2</link>
            <guid isPermaLink="false">https://medium.com/p/65422490215f</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[android-mvc]]></category>
            <category><![CDATA[android-mvvm]]></category>
            <dc:creator><![CDATA[Tejas shelke]]></dc:creator>
            <pubDate>Sun, 15 Mar 2026 05:08:29 GMT</pubDate>
            <atom:updated>2026-03-15T05:08:29.138Z</atom:updated>
            <content:encoded><![CDATA[<p>Smartphones are now an essential component of everyday life. Mobile applications can be used for nearly everything, including managing finances and placing food orders. Android, one of the most popular mobile operating systems worldwide, powers many of these apps. Android development gives tech enthusiasts and developers the opportunity to create apps that can be used by billions of people worldwide. The first step to becoming an Android developer is to comprehend how Android functions and how applications are organized.</p><p><strong>Overview of the Android Operating System:</strong></p><p>The open-source Android operating system was created mainly for touchscreen mobile devices, like tablets and smartphones. Android Inc., which Google later purchased in 2005, was the original developer. Since then, Google has kept refining and enhancing the platform, making it strong, adaptable, and developer-friendly. The Linux kernel, which offers essential system functions like memory management, hardware interaction, and security, is the foundation of the operating system.</p><p><strong>Android’s Open Ecosystem and Global Reach:</strong></p><p>Android’s open ecosystem has contributed to its widespread popularity. Programming languages like Java or Kotlin can be used by developers to create applications, which can then be distributed via platforms like the Google Play Store. Samsung, Xiaomi, OnePlus, and many other companies’ devices run Android because the platform is open and widely supported by manufacturers. Because of this diversity, developers can connect with a huge global audience.</p><p><strong>Understanding How Android Applications Work:</strong></p><p>Understanding the inner workings of Android apps is crucial to comprehending Android development. An Android app is more than just a single, fully functional program. Rather, it is composed of multiple parts that cooperate to offer functionality and user engagement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/1*p3PUBh9NP4BuQuz8JijLsw.png" /></figure><p><strong>Activities: The Core Screen Component of Android Apps:</strong></p><p>The Activity is one of the most crucial elements of an Android application. One screen with a user interface is represented by an activity. In a messaging app, for instance, the screen where users view their list of chats could be one activity, and the screen where they type and send messages could be another. Activities manage user interaction and serve as the application’s entry points.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*yW1aTHltuozaWElB7P5Wyw.png" /></figure><p><strong>Views: Building the User Interface in Android:</strong></p><p>Another crucial component of Android apps is views. The fundamental component of the user interface is a view. Views include things like buttons, text fields, images, and menus. What users see and interact with on the screen is designed using these components. Although the application logic governing those views is written in Java or Kotlin, developers usually define Views using XML layout files that specify the interface’s structure and appearance.</p><p><strong>The Role of the Android Manifest File:</strong><br> The Android Manifest file is another essential component of any Android application. The manifest provides the Android system with crucial information about the application, much like a configuration file. It describes the elements of the application, including services, permissions, and activities.</p><p><strong>Introduction to Android Application Architecture:</strong></p><p>An application’s architecture is hidden behind its components and visible interface. The arrangement of the application’s logic and code is referred to as its architecture. Applications with a well-organized architecture are simpler to scale, debug, and maintain. To handle the complexity of mobile applications, developers have embraced a number of architectural patterns over time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*GpaJtVi7lc7VCohiTZDCTA.png" /></figure><p><strong>Model–View–Controller (MVC) Architecture in Android:</strong></p><p>The Model-View-Controller (MVC) architecture is one conventional method. The data and business logic of the application are represented by the model in this pattern. While the Controller handles user input and modifies the Model or View appropriately, the View is in charge of presenting information to the user. MVC aids in the separation of concerns within an application, but in Android development, it can occasionally result in activities that are too big and challenging to manage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/401/1*jYXCi0fMLmI8KdfZPOn9QA.png" /></figure><p><strong>Model–View–View Model (MVVM) Architecture:</strong></p><p>Many Android developers favor the Model–View–View Model (MVVM) architecture to address these issues. The View Model is introduced by MVVM as a bridge between the data layer and the user interface. The UI-related data is stored and managed by the View Model in a lifecycle-aware manner, which means it endures configuration changes like screen rotations. This lessens needless processing and preserves data consistency. When data from the View Model changes, the View automatically modifies the interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/402/1*hbrSOExUzy5EdTICkUu2bg.png" /></figure><p><strong>The Future of Android Development:</strong></p><p>With new frameworks, tools, and design principles, Android development is still changing quickly. But the basic ideas are still the same. Anyone starting out in Android development will have a strong foundation if they understand what Android is, how applications work through activities and views, and how architecture patterns like MVC and MVVM structure an application.</p><p><strong>Conclusion: Opportunities in Android Development:</strong></p><p>Learning Android development is more than just writing code for aspiring developers; it’s about creating effective, scalable, and user-friendly apps. The ability to create Android applications can lead to exciting opportunities in software development and innovation, given the increasing demand for mobile technology.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65422490215f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Distribution Model in NoSql]]></title>
            <link>https://medium.com/@tejsshelke8/distribution-model-in-nosql-9244edc424bc?source=rss-8a7257871a47------2</link>
            <guid isPermaLink="false">https://medium.com/p/9244edc424bc</guid>
            <category><![CDATA[sharding]]></category>
            <category><![CDATA[nosql-database]]></category>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[peer-to-peer]]></category>
            <category><![CDATA[master-slave-replication]]></category>
            <dc:creator><![CDATA[Tejas shelke]]></dc:creator>
            <pubDate>Thu, 11 Sep 2025 17:00:50 GMT</pubDate>
            <atom:updated>2025-09-11T17:00:50.087Z</atom:updated>
            <content:encoded><![CDATA[<p>When it comes to NoSql one thing to consider is how your data is organized. This is where a distribution model comes in helping to sort out how your data is spread across machines. In a nutshell it’s all, about figuring out how to break up your data in a way that makes sense for your situation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/983/1*KXoIoFnJCN8o4Sssmaqokw.png" /></figure><p>In the world of NoSQL, a distribution model serves as a blueprint, for organizing and dispersing data across a network of servers or nodes. This is particularly crucial for NoSQL databases, which typically deal with amounts of data and require the ability to scale horizontally. Essentially adding servers to the mix to handle the load rather than relying on a single powerful server. The distribution model lays out the groundwork for how data’s broken down copied and managed across these nodes with the goal of delivering top notch performance, rock solid reliability and round the clock availability for applications, on a large scale.</p><p>So how do NoSQL databases manage their data? For starters they rely on something called a distribution model, a strategy, for handling data distribution. When it comes to moving data being able to do it is crucial especially when you’ve got a lot of machines involved. This allows them to share and process information in a way that’s seamless and streamlined making the whole system work together smoothly. When the need arises it’s simple to expand operations. Spread the data across servers. To make things more trustworthy it’s crucial that data is copied and stored in places so it’s always accessible even if something goes wrong. If some of the nodes were to fail to really get the most out of things it’s essential that data can be pulled up rapidly from any location. This is crucial, for optimizing performance. Essentially the faster you can access your data the better everything will run. (Pramod J. Sadalage, 2012)</p><h3><strong>Single Server Distribution in NoSql</strong></h3><p>Single Server Distribution in NoSql, as its name suggests, indicates that the entire database is running on one server, not on many servers. This model of distribution is often the easiest and smallest form of distribution, being primarily used with smaller applications, or in development and testing. Although partitioning is common, when using single server distribution all processing, caching, storage, and data are located on one machine, without any partitioning or replication involved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LyyRsy-3K_2rw0jrUGC0RQ.png" /></figure><p><strong>Single Server Distribution: Key Features</strong></p><p>1. Singular Data Host: With a single server distribution, a single server ultimately contains all of the data, therefore, sharding or breaking apart data into smaller pieces is not required. This means the setup and management can be simple to manage, but the actual data becomes limited.</p><p>2. No Redundant Copies: Whereas data redundancy can be found in a distributed system, with each node storing its own copy of the the database, in a single server system a single copy can exist and it can exist only on that server. If/when that server goes down, your data is not accessible and lost for sure.</p><p>3. Easy to Manage: Compared to a total distributed system, a single server is easier to manage, as you only have a single server to coordinate with. Your provisioning, monitoring and maintenance of the database become less complicated, and less active server administration overhead is required.</p><p>4. Low Latency (small workloads): Single server distribution can natively deliver very low latency to small amounts of data, because the data is all local to a single machine and there is no network latency through access of data on multiple severs.</p><p>5. Poor Scalability and Performance: Single server distribution will not scale horizontally, nor is it able to access or deal with large datasets or volumes of queries in effective ways. As your dataset, or user traffic increases in size, the single server host is usually a bottleneck, and with further size, the performance degrades quickly.</p><p><strong>Examples of Using Single Server Distribution in NoSQL Single server distribution</strong></p><p>• Development and Testing: A single server is fast and easy to set up, making it perfect for development and testing-</p><p>• Small Applications: Applications that have very few users and very little data can successfully run a single server distribution and have no concerns.</p><p>• Prototyping: When developing an application that has little data and little workload early in the development process, a single server solution is a more straightforward and less expensive choice.</p><p><strong>Disadvantages of Single Server Distribution</strong></p><p>Because of the deficiencies in scalability, performance, and fault tolerance, single server distribution is generally not a good option for large scale production. In reality, most large or growing applications end up in a distributed model with sharding and replication for more manageable data volume and reliability<strong>.</strong></p><h3><strong>Sharding</strong></h3><p>Sharding is a term that relates to the process of breaking apart, or partitioning, a very large data set into smaller, portions, or pieces. Those portions will be called shards, which will operate independently as separate objects on other servers in a distributed storage system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2FglPaNrba6MXD_YHVxYCA.png" /></figure><p><strong>What is Sharding in NoSQL Databases?</strong></p><p>In a NoSQL database that is sharded, the data will be split as much as possible across however many servers are available using a shard key. The shard key can be a unique identifier, a hash key, or even pre-determined ranges of values. Each shard only holds a tiny piece or subset of the data set. The shard architecture will usually take the form of a distributed storage architecture where the shards can even exist on separate physical servers. Even though it is only a subset of the data from the data set, which can be partitioned and manipulated by each server as a node makes the processing much more efficient and reliable for scaling and overall data volume.</p><p><strong>Why Sharding is Important ?</strong></p><p>Sharding also solves a number of problems related to managing increasing volumes of data in NoSQL databases:</p><p>1. Horizontal scalability:</p><p>Sharding allows for horizontally scalable by adding more servers (nodes) instead of increasing the capacity of a single server vertically. This permits the company to add additional capacity without doing major changes to their data infrastructure.</p><p>2. Improved Performance:</p><p>Distributing data between multiple servers, means that each server only need’s to handle part of the database, meaning each individual node has to do less work, thus speeding up query requests as data becomes larger, and user requests increase.</p><p>3. Fault Tolerance and High Availability:</p><p>In a sharded situation, if one node or shard were to fail, the other shards could still work and provide the database with partial availability.</p><p>Replication is often used alongside sharding so that copies of each shard are held on different servers, and therefore allows for redundancy and fault tolerance.</p><p><strong>Example of Sharding</strong></p><p>1. E-commerce and social media platforms often use hybrid sharding strategies that mix range-based and hash-based methods. For example:</p><ul><li>Product catalogs are split by category (electronics, clothing, books).</li><li>Order data is sharded by region or order number to handle sales spikes.</li><li>User data is distributed with hash-based sharding to keep the load balanced.</li></ul><p>2. Social media apps typically shard by user ID and content type. That helps by:</p><ul><li>Improving user experience with faster, localized data access.</li><li>Making engagement features scalable.</li><li>Efficiently handling massive datasets — billions of posts, relationships, and interactions.</li></ul><h3><strong>Master-Slave Replication in Nosql</strong></h3><p>Master-Slave Replication is a replication model in NoSQL that uses data redundancy across multiple nodes to create a highly-available, fault tolerant system with improved performance. Under this model, there is one master (primary) node and many slaves (replica) nodes. (Gautam, 2024)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3MAC3Jk6_WKQO6Ny3AAGdw.png" /></figure><p><strong>How Master-Slave Replication Functions ?</strong></p><p>1. Master Node</p><p>The master node is the authoritative data source that only performs data write operations (insert, update, delete) to ensure data consistency.</p><p>Master nodes first write a change and then send (replicate) the change to all of the slave nodes.</p><p>2. Slave Nodes</p><p>Slave nodes take a copy of the data on the master node and keep replicating the changes that are made on the master to maintain a synchronized copy of the data.</p><p>Slaves typically will go out and perform read operations without going to the master, allowing the master to have less load, provide a faster response for its read request, and not overwhelm a single node.</p><p>3. Replication Steps</p><p>Upon a change occurring on the master, that change will be propagated (replicated) to all slaves. Replication may occur in either synchronous (immediate) or asynchronous (delayed) mode:</p><p>- Synchronous Replication: Slaves verify they have received the updates on master before the master commits the write. Synchronous replication has the greatest level of consistency, but could slow down the write operation.</p><p>- Asynchronous Replication: The master completes the write operation without the slaves verifying they have received the updates. Asynchronous replication is faster, but could result in temporary inconsistences until the slave catches up to the master.</p><p><strong>Master-Slave Replication benefits:</strong></p><p>1. Better Read Performance:</p><p>Through the use of slave nodes for read operations, master-slave replication offloads itself from the master node. When read performance is improved, response times are increased for read-heavy applications as well as a higher user load.</p><p>2. High Availability and Fault Tolerance:</p><p>Whether high availability is a requirement or not, failover capability is paramount. Currently if the master node fails, a slave can take over as the master and because a master can only handle write requests, this mount of failover capability gives high availability and solidifies the workings of the system.</p><p>3. Data Redundancy:</p><p>Not only does master-slave replication replicate data, it’s whether it is one node or multiple that is an advantage in terms of redundancy. Even having the data replicated across 10 databased nodes, having data on multiple nodes improves reliability in terms of prevention of data loss in the case of a node failing because data can still be accessed from a different node.</p><p>4. Scalability:</p><p>Through master-slave replicating data, the system can manage a high volume of read requests through slave nodes, which is especially important for use cases with a specific higher read-to-write request ratios.</p><p>5. Load balancing:</p><p>Mainly due to uniquely assigning read and write requests to specific database nodes, resources are more efficiently utilized in terms of resource usage and enhances overall performance.</p><p><strong>When to use Master-Slave Replication</strong></p><p>Master-slave replication is well suited for applications that:</p><p>• Have a read-heavy workload.</p><p>• Have a need for high availability to prevent data loss.</p><p>• Can tolerate eventual consistency or an occasional delay in the replication of data for reads. In sum, master-slave replication is a commonly used pattern in NoSQL to handle data redundancy, scalability of reads, fault tolerance, and high availability while maintaining writes centralized on a master node.</p><p><strong>Example on Master-Slave</strong></p><p>Social Media Platforms: Facebook and Instagram</p><p>Social media giants use a master-slave replication model to handle huge amounts of user content.</p><p>Implementation strategy:</p><ul><li>Master servers handle all photo uploads, status updates, and user interactions.</li><li>Multiple slave servers in different regions handle read requests for timeline feeds, photo viewing, and profile data.</li><li>Asynchronous replication makes recent posts available on slave nodes within seconds.</li></ul><p>Scale characteristics:</p><p>When users upload photos or post updates, writes go to the master servers. But when millions of people browse feeds at once, those read requests are spread across many slave servers, keeping the masters from getting overloaded.</p><h3><strong>Peer-to-Peer replication</strong></h3><p>Peer-to-Peer replication in NoSQL databases represents a specific distributed system architecture where all nodes (or peers) in the network, play equal roles. A peer can act as a client and a server, which means a peer can read data from the database, as well as write data to the database. In contrast, Master-Slave replication has one node (the master) serving as the primary source of data in a replication architecture with any number of nodes (called slaves) that replicate from the master.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*3vepCp-CeDF7DHQPpLs4-A.png" /></figure><p><strong>Key Features of Peer-to-Peer Replication:</strong></p><p>1. Decentralization:</p><p>P2P replication allows for no single point of failure because each node can process requests independently. Each node improving the fault tolerance and availability of the overall system.</p><p>2. Data Synchronization:</p><p>Changes to data at any node are propagated to all other nodes, which allows all nodes to have eventually a consistent view of the data, even though synchronization may be delayed.</p><p>3. Conflict Resolution:</p><p>There may be updates at more than one node for the same data type, necessitating a mechanism to resolve these conflicts. Techniques includes the following:</p><p>▪ Last Write Wins: Keep the most recent update.</p><p>▪ Versioning: A new version is created for each update, allowing applications to resolve conflict in accordance with business rules.</p><p>▪ Custom Conflict Handlers: Using application specific logic to determine which update to keep.</p><p>4. Scalability:</p><p>P2P systems are easy to horizontally scale because you can simply add more nodes to the network. Since each new node can participate as an equal and share the workload you have effectively increased both throughput and storage.</p><p>5. Load Balancing: (Gautam, 2024) (g) (GeeksForGeeks, 2025)</p><p>Work can be balanced across all total nodes which results in better performance as no single node is processing an onslaught of requests. (Agarwal, 2024)</p><p><strong>Example on Peer-to-Peer replication</strong></p><p>BitTorrent Protocol BitTorrent is one of the best-known examples of peer-to-peer file sharing. In this system:</p><ul><li>Every participant (peer) acts as both a client and a server.</li><li>While downloading a file, peers also upload pieces to others.</li><li>There’s no single central server that holds the whole file.</li><li>Each peer keeps parts of the data and helps replicate them across the network.</li><li>The more popular a file is, the more copies exist, which improves availability.</li></ul><p><strong>Conclusion</strong>: Peer-to-Peer replication in NoSQL databases is a powerful technique for constructing distributed systems with high availability, scalability, and fault tolerance. Its design attributes make it particularly applicable to the needs of modern-day applications, allowing it to be selected for a range of NoSQL systems.</p><p><strong>Difference between Master-Slave Replication and Peer-to-Peer Replication </strong>(GeeksForGeeks, 2025)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*JAf-Y_xeQLE91LwwjvxinQ.png" /></figure><h3>References</h3><p>Agarwal, A. (2024, feb 19). Retrieved from Medium: <a href="https://medium.com/@apurvaagrawal_95485/primary-replica-vs-peer-to-peer-replication-1645e6ed8014">https://medium.com/@apurvaagrawal_95485/primary-replica-vs-peer-to-peer-replication-1645e6ed8014</a></p><p>Gautam, S. (2024). Retrieved from enjoyalgorithm: <a href="https://www.enjoyalgorithms.com/blog/master-slave-replication-databases">https://www.enjoyalgorithms.com/blog/master-slave-replication-databases</a></p><p>GeeksForGeeks. (2025). Retrieved from <a href="https://www.geeksforgeeks.org/system-design/difference-between-master-slave-replication-and-peer-to-peer-replication/">https://www.geeksforgeeks.org/system-design/difference-between-master-slave-replication-and-peer-to-peer-replication/</a></p><p>Pramod J. Sadalage, M. F. (2012). <em>NoSQL Distilled.</em> Retrieved from <a href="https://www.thoughtworks.com/content/dam/thoughtworks/documents/books/bk_NoSQL_Ch_13_en.pdf">https://www.thoughtworks.com/content/dam/thoughtworks/documents/books/bk_NoSQL_Ch_13_en.pdf</a></p><p>Vagner, A. (2023). Retrieved from <a href="https://www.scitepress.org/Papers/2023/121427/121427.pdf">https://www.scitepress.org/Papers/2023/121427/121427.pdf</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9244edc424bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>