<?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 Dinuka Dulanjana on Medium]]></title>
        <description><![CDATA[Stories by Dinuka Dulanjana on Medium]]></description>
        <link>https://medium.com/@mdinukadulanjana?source=rss-2bb96f08cb00------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*izQOEy9N-Ldy_QPt</url>
            <title>Stories by Dinuka Dulanjana on Medium</title>
            <link>https://medium.com/@mdinukadulanjana?source=rss-2bb96f08cb00------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 10:58:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mdinukadulanjana/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[Virtualization in Distributed Systems]]></title>
            <link>https://medium.com/@mdinukadulanjana/virtualization-in-distributed-systems-13870a7fc089?source=rss-2bb96f08cb00------2</link>
            <guid isPermaLink="false">https://medium.com/p/13870a7fc089</guid>
            <dc:creator><![CDATA[Dinuka Dulanjana]]></dc:creator>
            <pubDate>Thu, 23 Nov 2023 18:51:54 GMT</pubDate>
            <atom:updated>2023-11-23T19:07:13.881Z</atom:updated>
            <content:encoded><![CDATA[<h4>Virtualization Concepts</h4><p>Virtualization encompasses various techniques for creating virtual representations of physical resources, enabling the abstraction of hardware resources and the creation of logical entities that operate independently from the underlying physical infrastructure. This concept is particularly relevant in distributed systems, where it plays a crucial role in managing and optimizing resource utilization, enhancing flexibility, and improving overall system performance.</p><h4>The Role of Virtualization</h4><p><strong>The Backbone of Distributed Efficiency</strong></p><p>In the intricate tapestry of distributed systems, virtualization emerges as the unsung hero, quietly orchestrating a symphony of benefits that elevate the performance of the entire ensemble.</p><p><strong>1. A Ballet of Efficiency</strong></p><p>Picture a stage where multiple performers share the spotlight seamlessly. Virtualization’s prowess lies in efficient resource utilization. By consolidating several virtual machines on a single physical host, it transforms a solitary server into a multitasking virtuoso. This ballet of efficiency not only optimizes performance but also leads to significant cost savings.</p><p><strong>2. Scaling to New Heights</strong></p><p>Like a crescendo building to a climax, virtualization enables scalability that echoes through the distributed landscape. When the demand for resources rises, new virtual machines pirouette onto the stage effortlessly. Conversely, as the demand wanes, these virtual performers gracefully exit, reducing costs and ensuring that resources are allocated with finesse.</p><p><strong>3. The Security Waltz</strong></p><p>In the dance of security, isolation takes center stage. Each virtual machine performs its routine in splendid isolation from its counterparts on the same host. This not only enhances security but also fortifies the system’s fault tolerance. A glitch in one VM is like a soloist missing a step — it might be noticeable, but the show goes on without a stumble.</p><p><strong>4. Snapshot Serenade and Backup Ballet</strong></p><p>Virtualization introduces a magical interlude in the form of snapshots. Like freezing a moment in time, VMs can be effortlessly snapshot for backup or cloning purposes. This not only simplifies disaster recovery but also sets the stage for testing scenarios, allowing for rehearsals before the grand performance.</p><p><strong>5. The Maestro’s Baton: Easy Management</strong></p><p>Enter the maestro, wielding the baton of easy management. Virtualization software takes center stage with centralized tools that configure, monitor, and maintain the virtual orchestra. This simplifies the often intricate choreography of system administration in distributed environments, allowing the maestro to conduct the performance with precision.</p><p><strong>6. Virtualization’s Standing Ovation</strong></p><p>As the curtain descends on this exploration of virtualization’s role in distributed systems, it’s time for a standing ovation. Virtualization, the unassuming backstage hero, transforms the ordinary into the extraordinary, turning a single physical resource into a versatile cast of virtual performers. The show goes on, seamlessly and efficiently, thanks to the magic of virtualization.</p><h4>Hypervisor</h4><p>The hypervisor, also known as the virtual machine monitor (VMM), is the core component of virtualization. It sits between the physical hardware and the VMs, acting as a control center that manages the allocation of physical resources to the VMs and ensures their isolation from one another. The hypervisor translates the instructions of the VMs into commands that the physical hardware can understand, enabling the VMs to run as if they were directly interacting with the hardware.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/0*HwtAcsqlhrnjzGWG" /></figure><h4>Bare-metal hypervisors</h4><p>Bare-metal hypervisors, also known as Type 1 hypervisors, run directly on the physical hardware, bypassing the host operating system. This gives them direct access to the underlying hardware resources, which allows them to provide the highest level of performance and flexibility. Bare-metal hypervisors are typically used for enterprise applications that require high performance and scalability.</p><h4>Hosted hypervisors</h4><p>Hosted hypervisors, also known as Type 2 hypervisors, run as applications within the host operating system. This makes them easier to install and manage than bare-metal hypervisors, but it also means that they have less direct access to the hardware resources. As a result, hosted hypervisors are typically less performant than bare-metal hypervisors. Hosted hypervisors are often used for desktop virtualization and personal computing applications.</p><h4>Benefits of Virtualization in Distributed Systems</h4><p>Virtualization offers a multitude of benefits for distributed systems, enabling efficient resource utilization, enhanced flexibility, improved isolation, simplified management, and reduced costs. These benefits contribute to the overall effectiveness and cost-efficiency of distributed systems.</p><p><strong>Improved Resource Utilization</strong></p><p>Virtualization allows multiple VMs to share a single physical server, leading to more efficient hardware utilization and reducing the number of physical servers required. This consolidation of resources can significantly reduce hardware costs and improve the overall utilization of computational power.</p><p><strong>Increased Flexibility</strong></p><p>VMs can be easily provisioned, migrated, and scaled, enabling rapid deployment and adaptation to changing workload demands. This flexibility allows organizations to quickly respond to changing business needs and optimize resource allocation based on real-time requirements.</p><p><strong>Enhanced Isolation</strong></p><p>Each VM operates in its own isolated environment, preventing conflicts and minimizing the impact of application failures on other VMs. This isolation ensures that application failures or performance issues in one VM do not affect other VMs running on the same physical hardware.</p><p><strong>Simplified Management</strong></p><p>Virtualization simplifies the management of distributed systems by providing a centralized platform for managing VMs, resources, and configurations. This centralization streamlines the management process, reduces administrative overhead, and improves overall system efficiency.</p><p><strong>Reduced Costs</strong></p><p>Virtualization can significantly reduce hardware and maintenance costs by maximizing hardware utilization, streamlining management processes, and reducing the need for physical servers. These cost savings can lead to significant improvements in the overall return on investment (ROI) of IT infrastructure.</p><h4>Applications of Virtualization in Distributed Systems</h4><p>Virtualization plays a crucial role in various distributed systems applications, providing a versatile tool for managing complex IT environments and delivering scalable solutions.</p><p><strong>Cloud Computing</strong></p><p>Cloud providers rely on virtualization to deliver scalable and elastic infrastructure for their services. Virtualization enables cloud providers to efficiently manage and allocate resources across multiple tenants, providing a dynamic and cost-effective approach to cloud computing.</p><p><strong>Data Centers</strong></p><p>Virtualization is essential for managing large data center environments, enabling efficient resource utilization and dynamic workload distribution. Virtualization allows data centers to consolidate resources, optimize resource allocation based on demand, and quickly adapt to changing workloads.</p><p><strong>Software Development and Testing</strong></p><p>Virtualization provides isolated environments for software development and testing, facilitating collaboration and reducing conflicts. Developers can work on different versions of software without affecting each other, and testers can create isolated test environments without disrupting production systems.</p><p><strong>Disaster Recovery and Business Continuity</strong></p><p>Virtual machines can be easily replicated and deployed to recovery sites, ensuring rapid recovery from disruptions. In the event of a disaster or system failure, virtual machines can be quickly restored to a functioning state, minimizing downtime and maintaining business continuity.</p><p><strong>Desktop Deployment and Management</strong></p><p>Virtual desktops simplify desktop management and provide consistent user experiences across diverse hardware platforms. IT administrators can centrally manage virtual desktops, deploy software updates, and enforce security policies, reducing administrative overhead and ensuring consistent user experience.</p><h4>Challenges of Virtualization in Distributed Systems</h4><p>In the enchanting realm of virtualization, where machines dance in the digital limelight, there lies a set of challenges that performers and puppet masters alike must face. Let’s unveil the curtain on the less glamorous side — the challenges that add complexity to the choreography of virtualization in distributed systems.</p><p><strong>1. Performance Potholes</strong></p><p>As the virtual dance floor gets crowded, performance can stumble. Overhead from the virtualization layer might introduce latency and affect the overall speed of the performance. Balancing the act between efficient resource utilization and maintaining optimal performance is a tightrope walk that requires finesse.</p><p><strong>2. Resource Contentions: The Battle for the Limelight</strong></p><p>Imagine multiple performers vying for the spotlight; this is what resource contentions in virtualization can feel like. When VMs compete for resources, conflicts arise. It’s crucial to master the art of resource allocation to avoid a cacophony of contention that disrupts the harmony of the distributed system.</p><p><strong>3. Security Spotlight: Vulnerabilities and Risks</strong></p><p>While virtualization enhances security through isolation, it also introduces new challenges. Vulnerabilities at the hypervisor level or misconfigurations can lead to security breaches. It’s a constant battle to stay one step ahead of potential risks and vulnerabilities, requiring vigilant monitoring and strategic defense measures.</p><p><strong>4. Management Complexity: Juggling the Orchestration</strong></p><p>The centralized management tools that simplify the orchestration of virtual machines can, ironically, become a challenge in themselves. Managing a large number of VMs can be akin to juggling too many balls at once. Efficient administration requires robust management strategies to avoid chaos backstage.</p><p><strong>5. Licensing Labyrinth</strong></p><p>In the world of virtualization, licensing can be a labyrinth. Navigating through the various licensing models and ensuring compliance can be a daunting task. Failure to do so might result in unexpected costs or, worse, legal repercussions. It’s a puzzle that requires careful consideration and strategic planning.</p><p><strong>6. Backup Bottlenecks: Snapshot Overhead</strong></p><p>While snapshots offer a magical moment of freezing time, they can also introduce overhead. Creating and managing snapshots, especially in large-scale distributed systems, can lead to storage bottlenecks. Balancing the benefits of snapshot serenades with the potential drawbacks is a challenge that requires a keen eye for detail.</p><p><strong>7. Epilogue: Taming the Virtual Dragons</strong></p><p>As we lower the curtain on the challenges of virtualization in distributed systems, it’s important to recognize that every dance has its hurdles. Taming the virtual dragons requires a blend of expertise, strategic planning, and a touch of digital wizardry. With the right approach, these challenges become stepping stones to a more refined and resilient virtual performance. The dance goes on, and with each challenge overcome, the magic of virtualization in distributed systems shines even brighter.</p><h4>Conclusion</h4><p>Virtualization is a powerful technology that offers a multitude of benefits for distributed systems, including improved resource utilization, increased flexibility, enhanced isolation, simplified management, and reduced costs. It has revolutionized the landscape of distributed systems, enabling the efficient delivery of IT services and contributing to the overall effectiveness and cost-efficiency of these systems.</p><p>As distributed systems continue to grow in complexity, virtualization will remain an essential tool for optimizing performance, reducing costs, and ensuring the delivery of scalable and reliable IT solutions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13870a7fc089" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Distributed System Architectures and Architectural Styles]]></title>
            <link>https://medium.com/@mdinukadulanjana/distributed-system-architectures-and-architectural-styles-cc3a45c202a4?source=rss-2bb96f08cb00------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc3a45c202a4</guid>
            <dc:creator><![CDATA[Dinuka Dulanjana]]></dc:creator>
            <pubDate>Thu, 23 Nov 2023 18:21:40 GMT</pubDate>
            <atom:updated>2023-11-23T18:28:22.576Z</atom:updated>
            <content:encoded><![CDATA[<p>In the ever-evolving landscape of technology, the demand for scalable, reliable, and high-performance systems has given rise to the prominence of distributed systems. This blog aims to unravel the complexities of distributed system architectures and explore the various architectural styles that form the backbone of modern computing.</p><p>Understanding Distributed Systems: At its core, a distributed system involves multiple interconnected nodes that work together to achieve a common goal. These systems are designed to enhance performance, fault tolerance, and scalability by distributing tasks across a network of computers.</p><h4>Key Characteristics</h4><ol><li><strong>Concurrency:</strong> Distributed systems often handle multiple tasks simultaneously, requiring robust concurrency control mechanisms.</li><li><strong>Fault Tolerance:</strong> The ability to recover gracefully from failures is crucial in distributed systems, where individual nodes may experience issues.</li><li><strong>Scalability:</strong> As demand grows, distributed systems should seamlessly scale to accommodate increased workloads</li></ol><p>There are a number of different distributed system architectures, each with its own advantages and disadvantages. The most common architectures are:</p><h4>Client-Server Architecture:</h4><p>The client-server architecture is a prevalent choice, characterized by a clear separation of concerns between clients and servers. Clients initiate requests, and servers respond with the requested services. This architecture is well-suited for applications with a clear distinction between users and service providers.</p><p>Advantages:</p><ul><li>Simple and easy to understand</li><li>Scalable by adding more servers</li><li>Well-defined roles and responsibilities</li></ul><p>Disadvantages:</p><ul><li>Centralized control can lead to bottlenecks</li><li>Single points of failure</li><li>Complex configuration and management</li></ul><h4>Peer-to-Peer Architecture</h4><p>In contrast to the client-server model, the peer-to-peer architecture eliminates the central server and distributes responsibilities among all nodes, enabling direct communication and resource sharing. This architecture is particularly suited for file sharing and distributed computing applications.</p><p>Advantages:</p><ul><li>Decentralized and fault-tolerant</li><li>Scalable by adding more nodes</li><li>No single points of failure</li></ul><p>Disadvantages:</p><ul><li>Can be more challenging to manage</li><li>Less efficient for applications with clear separation of concerns</li><li>Difficulty ensuring data consistency and security</li></ul><h4>Publish-Subscribe Architecture:</h4><p>The publish-subscribe architecture decouples publishers from subscribers, allowing publishers to broadcast messages to a central broker, who then distributes them to interested subscribers. This architecture is ideal for real-time applications, such as stock tickers and chat applications.</p><p>Advantages:</p><ul><li>Decoupled communication</li><li>Efficient for real-time data dissemination</li><li>Scalable by adding more brokers</li></ul><p>Disadvantages:</p><ul><li>Complexity in managing brokers and subscribers</li><li>Single points of failure if brokers fail</li></ul><h4>Architectural Styles for Distributed Systems: Guiding Design Principles</h4><p>An architectural style provides a set of design principles and guidelines to shape the structure, organization, and interactions within a distributed system. The choice of architectural style influences the system’s flexibility, maintainability, and testability.</p><h3>Common Architectural Styles for Distributed Systems: Embracing Diversity</h3><h4>Layered Architecture:</h4><p>The layered architecture divides the system into distinct layers, each with a specific function. This style promotes modularity, simplifies development, and enhances maintainability.</p><p>Advantages:</p><ul><li>Well-defined boundaries and responsibilities</li><li>Encapsulation and information hiding</li><li>Easy to test and maintain</li></ul><p>Disadvantages:</p><ul><li>Can be less flexible than other styles</li><li>Overhead due to inter-layer communication</li></ul><h4>Object-Based Architecture:</h4><p>The object-based architecture encapsulates data and behavior within objects, promoting modularity and reusability. This style is particularly suited for dynamic and frequently changing systems.</p><p>Advantages:</p><ul><li>Flexibility and adaptability</li><li>Reusable components</li><li>Promotes encapsulation and information hiding</li></ul><p>Disadvantages:</p><ul><li>Can be more complex than other styles</li><li>Performance optimization challenges</li></ul><h4>Data-Centered Architecture:</h4><p>The data-centered architecture revolves around the management and manipulation of data. Data is stored in a central repository, and components interact with it through a defined interface. This style is suitable for data-intensive applications.</p><p>Advantages:</p><ul><li>Data integrity and consistency</li><li>Efficient for data-intensive applications</li><li>Scalability through additional data nodes</li></ul><p>Disadvantages:</p><ul><li>Complexity in managing data repository</li><li>Difficulty in modifying data models</li></ul><h4>Event-Driven Architecture:</h4><p>The event-driven architecture relies on events, notifications sent to interested parties when changes occur within the system. This style promotes responsiveness and loose coupling.</p><p>Advantages:</p><ul><li>Real-time responsiveness and scalability</li><li>Integration with other systems</li><li>Loose coupling and modularity</li></ul><p>Disadvantages:</p><ul><li>Design and implementation complexity</li><li>Debugging and error tracking challenges</li></ul><h3>Choosing the Right Fit: Matching Architecture and Style to Application Needs</h3><p>The selection of an appropriate distributed system architecture and architectural style is crucial for achieving the desired performance, scalability, and fault tolerance. The specific application requirements and constraints should guide this decision.</p><p>For instance, a client-server architecture might be suitable for a web-based application with a clear distinction between users and servers. In contrast, a peer-to-peer architecture would be more appropriate for a file-sharing system where direct communication and resource sharing are paramount.</p><h4>Challenges:</h4><p><strong>1. Complexity:</strong><br> Challenge: Balancing the myriad of requirements, such as scalability, reliability, and security, can be like juggling multiple balls in the air. Each decision affects the overall complexity of the system.<br> Example: Imagine designing a distributed ecommerce platform where the system must handle a surge in traffic during holiday seasons while ensuring data integrity and customer security.</p><p><strong>2. Concurrency:</strong><br> Challenge: Concurrent execution of multiple components introduces the risk of race conditions, deadlocks, and resource contention. Ensuring correctness and efficiency in such an environment requires careful synchronization.<br> Example: In a real time collaborative document editing system, multiple users might be simultaneously editing different sections of a document, necessitating seamless conflict resolution.</p><p><strong>3. Failure:</strong><br> Challenge: Failures, whether in hardware, software, or network, are inevitable in distributed systems. Designing an architecture that can gracefully handle these failures without compromising the system’s overall functionality is a constant challenge.<br> Example: Consider a distributed cloud storage system; a server hosting critical user data might experience a sudden outage. The challenge is to ensure uninterrupted access to data despite such failures.</p><h4>Tips:</h4><p><strong>1. Start with the Requirements:</strong><br> Tip: A deep understanding of the system’s requirements is the foundation of a successful architecture. This involves not only the functional aspects but also the nonfunctional requirements like performance, scalability, and reliability.<br> Example: If designing a financial trading platform, the requirement for low latency processing of transactions becomes a critical factor in choosing the architecture.</p><p><strong>2. Consider the Trade Offs:</strong><br> Tip: No architecture is perfect; each comes with its own set of tradeoffs. It’s essential to weigh these tradeoffs against the specific needs of the system and the organization.<br> Example: In the context of a social media platform, the tradeoff between the simplicity of a monolithic architecture and the scalability of a microservices architecture must be carefully considered.</p><p><strong>3. Use Design Patterns:</strong><br> Tip: Leverage tried and true design patterns to address common challenges. These patterns encapsulate best practices and proven solutions to recurring architectural problems.<br> Example: The Command Query Responsibility Segregation (CQRS) pattern can be applied in scenarios where the read and write operations have divergent requirements, optimizing performance and scalability.</p><p><strong>4. Test the Architecture:</strong><br> Tip: Robust testing is crucial to validating the effectiveness of the chosen architecture. This includes unit tests for individual components, integration tests for interactions between components, and system tests to assess the system as a whole.<br> Example: In a healthcare information system, thorough testing ensures that patient data remains secure and accessible even during peak usage periods.</p><h4>Additional Tips:</h4><p><strong>1. Use Asynchronous Communication:</strong><br> Tip: Asynchronous communication decouples components, allowing them to operate independently and enhancing the system’s responsiveness.<br> Example: In a logistics system, where multiple warehouses need to communicate stock updates, asynchronous messaging can streamline the process, preventing bottlenecks.</p><p><strong>2. Use Caching:</strong><br> Tip: Caching strategically can significantly improve performance by reducing the need for redundant data fetches from databases or external services.<br> Example: In a content delivery network (CDN), caching frequently accessed static content locally minimizes latency for users across different geographical locations.</p><p><strong>3. Design for Failure:</strong><br> Tip: Embrace a mindset of anticipating and mitigating failures. This involves redundancy, graceful degradation, and automatic recovery mechanisms.<br> Example: In an autonomous vehicle control system, the design should account for potential sensor failures, ensuring the vehicle can safely navigate even in adverse conditions.</p><p>In the dynamic landscape of distributed systems, where challenges are abundant and solutions are diverse, these detailed tips act as a roadmap for architects to navigate the complexities and design resilient, high performance systems.</p><h3>Conclusion</h3><p>Distributed system architectures are the backbone of today’s interconnected and data-driven world. As technology advances, understanding these architectures becomes paramount for developers and architects. Whether opting for a client-server model, embracing microservices, leveraging P2P networks, or adopting event-driven and message-driven architectures, the key lies in choosing the right approach to meet the specific requirements of a given application or system. By delving into these architectural styles, we can navigate the complexities of distributed systems and pave the way for a more efficient and resilient digital future.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc3a45c202a4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Software Design Patterns]]></title>
            <link>https://medium.com/@mdinukadulanjana/software-design-patterns-796c7420fbd5?source=rss-2bb96f08cb00------2</link>
            <guid isPermaLink="false">https://medium.com/p/796c7420fbd5</guid>
            <category><![CDATA[software-design-patterns]]></category>
            <dc:creator><![CDATA[Dinuka Dulanjana]]></dc:creator>
            <pubDate>Thu, 23 Nov 2023 17:36:02 GMT</pubDate>
            <atom:updated>2023-11-23T17:36:02.724Z</atom:updated>
            <content:encoded><![CDATA[<p>Software design patterns are widely recognized as valuable tools for software developers. These reusable solutions address recurring problems encountered in software design, providing a blueprint for crafting effective and maintainable code. They serve as a common language among developers, fostering collaboration and enhancing code comprehension.</p><p>The world of software design patterns is rich and varied, encompassing a diverse range of solutions tailored to specific problem domains. These patterns are often categorized into three primary groups:</p><h4>Creational Patterns</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/214/0*_seBSkpQ-_HEHvg7" /></figure><p>Creational patterns focus on the process of object creation, providing mechanisms for instantiating objects in a flexible and controlled manner. Notable examples include:</p><ol><li><strong>Factory Pattern:</strong> Decouples the creation of objects from their usage, allowing for dynamic instantiation based on context.</li></ol><p>2.<strong> Singleton Pattern:</strong> Ensures a class has only one instance, providing global access while maintaining control over object creation.</p><p>3. <strong>Builder Pattern: </strong>Separates object construction from its representation, enabling step-by-step object creation and configuration.</p><h4>Structural Patterns</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/0*XDZUhzwvFLjBefWC" /></figure><p>Structural patterns address the organization and composition of classes and objects, promoting flexibility and reusability in system design. Prominent examples include:</p><p><strong>1.Adapter Pattern:</strong> Allows objects with incompatible interfaces to communicate by translating between them.</p><p><strong>2. Bridge Pattern:</strong> Decouples an abstraction from its implementation, enabling independent changes to both without affecting each other.</p><p><strong>3. Decorator Pattern:</strong> Dynamically adds new responsibilities to an object without modifying its class, promoting flexible enhancements.</p><p><strong>4. Composite Pattern: </strong>Composes objects into tree structures, allowing for hierarchical arrangements and treating individual objects and collections uniformly.</p><p><strong>5. Facade Pattern:</strong> Provides a simplified unified interface to a complex subsystem, shielding clients from intricate internal dependencies.</p><h4>Behavioral Patterns</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/0*IQXSzzdGu7iXcmG7" /></figure><p>Behavioral patterns focus on the communication and interaction between objects, defining patterns for collaboration and achieving specific behavioral goals. Notable examples include:</p><p><strong>1.Observer Pattern:</strong> Defines a one-to-many dependency between objects, allowing observing objects to be notified when a subject object changes.</p><p><strong>2. Strategy Pattern:</strong> Encapsulates an algorithm within an object, enabling dynamic selection and swapping of algorithms at runtime.</p><p><strong>3. Chain of Responsibility Pattern:</strong> A way of passing a request between a chain of objects until one of them handles it.</p><p><strong>4. Command Pattern: </strong>Encapsulates a request as an object, allowing for parameterization, queuing, and logging of requests.</p><p><strong>5. Iterator Pattern:</strong> Provides a way to access the elements of an aggregate object sequentially without exposing its underlying representation.</p><p><strong>6. Memento Pattern: </strong>Allows an object to restore its state to a previous point without exposing its internal state.</p><p><strong>7. Mediator Pattern:</strong> Defines simplified communication between classes by introducing a mediator object to manage interactions.</p><p><strong>8. State Pattern:</strong> Allows an object’s behavior to change when its internal state changes, leading to state-dependent behavior.</p><p><strong>9. Template Method Pattern:</strong> Defines the skeleton of an algorithm as an abstract class, allowing subclasses to provide concrete behavior for specific steps.</p><p><strong>Benefits of Design Patterns</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/0*Ak7qCXrF0Bpcj14D" /></figure><p>Adopting design patterns offers numerous advantages for software development projects:</p><p><strong>1.Improved Code Readability and Maintainability: </strong>Design patterns provide a common vocabulary and structure, making code more understandable and easier to modify.</p><p><strong>2. Increased Code Reusability:</strong> By encapsulating common design solutions, patterns promote reusability, reducing the time and effort required to develop similar functionalities.</p><p><strong>3. Reduced Development Time: </strong>Design patterns provide proven solutions to common problems, accelerating development time and minimizing the need for extensive problem-solving.</p><p><strong>4. Enhanced Communication and Collaboration: </strong>Design patterns establish a shared understanding among developers, facilitating effective communication and collaboration during project development.</p><h3>Real-world Applications</h3><h4>Case Studies: Patterns in Action</h4><p>Explore real-world scenarios where design patterns have been successfully applied. From large-scale systems to everyday coding challenges, discover how patterns elevate the quality of software.</p><h4>Implementation Tips</h4><p>Equip yourself with practical tips for effectively implementing design patterns. Address common challenges and ensure a smooth integration of patterns into your projects.</p><h3>Why Design Patterns Matter</h3><h4>Enhancing Code Quality</h4><p>Design patterns contribute to the overall quality of code by promoting modularity, flexibility, and scalability. They act as time-tested templates, ensuring that solutions are not only functional but also well-crafted.</p><h4>Streamlining Development</h4><p>By offering reusable solutions to common problems, design patterns streamline the development process. Developers can leverage established patterns instead of reinventing the wheel, saving time and effort.</p><h3>Conclusion</h3><p>Software design patterns are invaluable tools for software developers, providing a treasure trove of reusable solutions to common problems encountered in software design. Embracing design patterns fosters a more efficient, collaborative, and maintainable approach to software development.</p><p>By incorporating design patterns into your programming repertoire, you can elevate your coding skills, enhance the quality of your software, and contribute to a more robust and scalable software development landscape. Remember, design patterns are not rigid formulas but rather flexible guidelines that can be adapted to specific contexts.</p><p>As you venture deeper into the world of software design patterns, you will discover a rich tapestry of solutions, each tailored to address a specific challenge. Embrace the continuous learning process, explore diverse resources, and apply your understanding in real-world projects to become a true master of software design patterns</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=796c7420fbd5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Amazon Web Services]]></title>
            <link>https://medium.com/@mdinukadulanjana/amazon-web-services-c15856f87aaf?source=rss-2bb96f08cb00------2</link>
            <guid isPermaLink="false">https://medium.com/p/c15856f87aaf</guid>
            <category><![CDATA[amazon-web-services]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[what-is-aws]]></category>
            <dc:creator><![CDATA[Dinuka Dulanjana]]></dc:creator>
            <pubDate>Fri, 16 Sep 2022 16:08:38 GMT</pubDate>
            <atom:updated>2022-09-16T16:08:38.814Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/848/0*xJkK-kphQPvir_p-.jpg" /></figure><h3>What is AWS?</h3><p>AWS or Amazon Web Services is a cloud service provider that offers various computing services that are accessible over the public internet.</p><p>AWS and other public cloud vendors —like Google Cloud Platform (GCP) and Microsoft Azure— manage and maintain hardware and infrastructure, saving organizations and individuals the cost and complexity of purchasing and running resources on site. These resources may be accessed for free or on a pay-per-use basis.</p><h3>History of AWS</h3><ul><li>2002- AWS services launched</li><li>2006- Launched its cloud products</li><li>2012- Holds first customer event</li><li>2015- Reveals revenues achieved of $4.6 billion</li><li>2016- Surpassed $10 billon revenue target</li><li>2016- Release snowball and snowmobile</li><li>2019- Offers nearly 100 cloud services</li><li>2021- AWS comprises over 200 products and services</li></ul><h3>Important AWS Services</h3><p>Amazon Web Services offers a wide range of different business purpose global cloud-based products. The products include storage, databases, analytics, networking, mobile, development tools, enterprise applications, with a pay-as-you-go pricing model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*N1k6mXl1x5K7DfIw.png" /></figure><h3>Applications of AWS</h3><p>The most common applications of AWS are storage and backup, websites, gaming, mobile, web, and social media applications. Some of the most crucial applications in detail are as follows:</p><h3>1. Storage and Backup</h3><p>One of the reasons why many businesses use AWS is because it offers multiple types of storage to choose from and is easily accessible as well. It can be used for storage and file indexing as well as to run critical business applications.</p><h3>2. Websites</h3><p>Businesses can host their websites on the AWS cloud, similar to other web applications.</p><h3>3. Gaming</h3><p>There is a lot of computing power needed to run gaming applications. AWS makes it easier to provide the best online gaming experience to gamers across the world.</p><h3>4. Mobile, Web and Social Applications</h3><p>A feature that separates AWS from other cloud services is its capability to launch and scale mobile, e-commerce, and <a href="https://www.simplilearn.com/what-is-saas-article">SaaS applications</a>. API-driven code on AWS can enable companies to build uncompromisingly scalable applications without requiring any OS and other systems.</p><h3>5. Big Data Management and Analytics (Application)</h3><ul><li>Amazon Elastic MapReduced to process large amounts of data via the Hadoop framework.</li><li>Amazon Kinesis to analyze and process the streaming data.</li><li>AWS Glue to handle, extract, transform and load jobs.</li><li>Amazon Elasticsearch Service to enable a team to perform log analysis, and tool monitoring with the help of the open source tool, Elastic-search.</li><li>Amazon Athena to query data.</li><li>Amazon QuickSight to visualize data.</li></ul><h3>6. Artificial Intelligence</h3><ul><li>Amazon Lex to offer voice and text chatbot technology.</li><li>Amazon Polly to translate text-to-speech translation such as Alexa Voice Services and echo devices.</li><li>Amazon Rekognition to analyze the image and face.</li></ul><h3>7. Messages and Notifications</h3><ul><li>Amazon Simple Notification Service (SNS) for effective business or core communication.</li><li>Amazon Simple Email Service (SES) to receive or send emails for IT professionals and marketers.</li><li>Amazon Simple Queue Service (SQS) to enable businesses to subscribe or publish messages to end users.</li></ul><h3>8. Augmented Reality and Virtual Reality</h3><ul><li>Amazon Sumerian service enables users to make the use of AR and VR development tools to offer 3D web applications, E-commerce &amp; sales applications, Marketing, Online education, Manufacturing, Training simulations, and Gaming.</li></ul><h3>9. Game Development</h3><ul><li>AWS game development tools are used by large game development companies that offer developer back-end services, analytics, and various developer tools.</li><li>AWS allows developers to host game data as well as store the data to analyze the gamer’s performance and develop the game accordingly.</li></ul><h3>10. Internet of Things</h3><ul><li>AWS IoT service offers a back-end platform to manage IoT devices as well as data ingestion to database services and AWS storage.</li><li>AWS IoT Button offers limited IoT functionality to hardware.</li><li>AWS Greengrass offers AWS computing for IoT device installation.</li></ul><h3>Basic Terminologies</h3><ol><li><strong>Region</strong> — A region is a <strong>geographical area </strong>around the world where AWS’s data centers are located. Each region consists of 2 (or more) availability zones.</li><li><strong>Availability Zone</strong> — It is simply a group of one or more <strong>data centers</strong>.</li><li><strong>Edge Location </strong>— They are <strong>CDN</strong> (Content Delivery Network) <strong>endpoints</strong> for CloudFront. Cached data is stored here to reduce latency to the end users.</li><li><strong>Local Zone</strong> — Allows you to deploy AWS services, like compute and storage services, closer to your end-users for low-latency requirements.</li><li><strong>Wavelength</strong> — It embeds AWS compute and storage services within 5G networks hence allowing developers to build applications that deliver single-digit millisecond latencies to mobile devices and end-users.</li><li><strong>Outposts</strong> — It brings AWS services and infrastructure to virtually any on-premises or edge location helping you build a consistent hybrid experience.</li></ol><h3>Advantages of AWS</h3><p>Following are the pros of using AWS services:</p><ul><li>AWS allows organizations to use the already familiar programming models, operating systems, databases, and architectures.</li><li>It is a cost-effective service that allows you to pay only for what you use, without any up-front or long-term commitments.</li><li>You will not require to spend money on running and maintaining data centers.</li><li>Offers fast deployments</li><li>You can easily add or remove capacity.</li><li>You are allowed cloud access quickly with limitless capacity.</li><li>Total Cost of Ownership is very low compared to any private/dedicated servers.</li><li>Offers Centralized Billing and management</li><li>Offers Hybrid Capabilities</li><li>Allows you to deploy your application in multiple regions around the world with just a few clicks</li></ul><h3>Disadvantages of AWS</h3><ul><li>If you need more immediate or intensive assistance, you’ll have to opt for paid support packages.</li><li>Amazon Web Services may have some common cloud computing issues when you move to a cloud. For example, downtime, limited control, and backup protection.</li><li>AWS sets default limits on resources which differ from region to region. These resources consist of images, volumes, and snapshots.</li><li>Hardware-level changes happen to your application which may not offer the best performance and usage of your applications.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c15856f87aaf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Keys in Database Management System]]></title>
            <link>https://medium.com/@mdinukadulanjana/keys-in-database-management-system-98e7487da3d?source=rss-2bb96f08cb00------2</link>
            <guid isPermaLink="false">https://medium.com/p/98e7487da3d</guid>
            <dc:creator><![CDATA[Dinuka Dulanjana]]></dc:creator>
            <pubDate>Fri, 02 Sep 2022 12:53:08 GMT</pubDate>
            <atom:updated>2022-09-02T12:53:08.785Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/698/0*ESLOTk1ss1AG012E" /></figure><h3>What are Keys in DBMS?</h3><p><strong>KEYS in DBMS</strong> is an attribute or set of attributes which helps you to identify a row(tuple) in a relation(table). They allow you to find the relation between two tables. Keys help you uniquely identify a row in a table by a combination of one or more columns in that table. Key is also helpful for finding unique record or row from the table. Database key is also helpful for finding unique record or row from the table.</p><h3><strong>Why do we require Keys in DBMS?</strong></h3><p>We use a key for defining various types of integrity constraints in a database. A table, on the other hand, represents a collection of the records of various events for any relation. Now, there might be thousands of these records, and some of these might even be duplicated.</p><h3>Types of Keys in Database Management System</h3><p>There are mainly Eight different types of Keys in DBMS and each key has it’s different functionality:</p><ol><li>Super Key</li><li>Primary Key</li><li>Candidate Key</li><li>Alternate Key</li><li>Foreign Key</li><li>Composite Key</li><li>Unique Key</li></ol><h3>1. Super Key</h3><p>A super key refers to the set of all those keys that help us uniquely identify all the rows present in a table. It means that all of these columns present in a table that can identify the columns of that table uniquely act as the super keys.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/289/1*ynMXEseWx2rruFxqRuzNrg.png" /></figure><p>A super key is a candidate key’s superset (candidate key has been explained below). We need to pick the primary key of any table from the super key’s set so as to make it the table’s identity attribute.</p><h3>2.Primary Key</h3><p>The primary key refers to a column or a set of columns of a table that helps us identify all the records uniquely present in that table. A table can consist of just one primary key. Also, this primary key cannot consist of the same values reappearing/repeating for any of its rows. All the values of a primary key have to be different, and there should be no repetitions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/1*wdlEg157SyWcZ62m1Q7eVQ.png" /></figure><p>The PK (PRIMARY KEY) constraint that we put on a column/set of columns won’t allow these to have a null value or a duplicate. Any table can consist of only a single primary key constraint. A foreign key (explained below) that refers to it can never change the values present in the primary key.</p><h3>3. Candidate Key</h3><p>Candidate keys are those attributes that uniquely identify rows of a table. The Primary Key of a table is selected from one of the candidate keys. So, candidate keys have the same properties as the primary keys explained above. There can be more than one candidate keys in a table.</p><p>There can be more candidate keys than just one for any table, but they can never be empty. Every candidate key carries unique information and value. Besides these characteristics, a combination of attributes also works as a set of candidate keys.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/274/0*cvBKnIw0yKgqptoF.png" /></figure><p>Example for candidate key</p><p>“Minimal subset of super key” is called as a Candidate key.</p><p>For Example, STUD_NO in STUDENT relation. It is a minimal super key. It is a super key with no repeated data is called a candidate key.</p><h3>4. Alternate Key</h3><p>As we have stated above, any table can consist of multiple choices for the primary key. But, it can only choose one. Thus, all those keys that did not become a primary key are known as alternate keys.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/551/1*j2NEEwiQaNgwe0MFgPaqrw.jpeg" /></figure><h3>5. Foreign Key</h3><p>Foreign Key is used to establish relationships between two tables. A foreign key will require each value in a column or set of columns to match the Primary Key of the referential table. Foreign keys help to maintain data and referential integrity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*4X3ToUWDOgk6DzRBNTd7Tw.png" /></figure><p>Foreign keys are essential for maintaining a difference between two entities that might be linked with the same information but do not share similar information. In such cases, the tables are linked to maintaining a connection but do not entirely work as a replacement for each other. For instance, any individual working for the marketing department might have marketing department information in its employee table, but that does not mean the table can be similar to the department table held by the marketing department.</p><h3>6. Composite Key</h3><p>The composite key refers to a set of multiple attributes that help us uniquely identify every tuple present in a table. The attributes present in a set may not be unique whenever we consider them separately. Thus, when we take them all together, it will ensure total uniqueness.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*yK2QdFonXATtg3ujeGdCBA.png" /></figure><h3>7. Unique Key</h3><p>Unique Key is a column or set of columns that uniquely identify each record in a table. All values will have to be unique in this Key. A unique Key differs from a primary key because it can have only one null value, whereas a primary Key cannot have any null values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*N4IyeT-TSEIYuwxHMV_tSg.png" /></figure><p>Among the seven types of keys available in the DBMS, a few other types of keys in SQL are also accessible. The key type is called Artificial Keys. An artificial has no relevance or meaning to the business but is often used to tackle conflicting data management situations. For example, if there is no attribute that comprises all required primary key properties or if the primary keys are complex.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=98e7487da3d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Evaluation of DBMS]]></title>
            <link>https://medium.com/@mdinukadulanjana/evaluation-of-dbms-13b32dabef19?source=rss-2bb96f08cb00------2</link>
            <guid isPermaLink="false">https://medium.com/p/13b32dabef19</guid>
            <category><![CDATA[dbms]]></category>
            <category><![CDATA[evalution-of-dbms]]></category>
            <dc:creator><![CDATA[Dinuka Dulanjana]]></dc:creator>
            <pubDate>Thu, 21 Jul 2022 11:54:20 GMT</pubDate>
            <atom:updated>2022-07-21T11:54:20.914Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*IddGcGtnrN5OrzpLRK8KyQ.jpeg" /></figure><p>A database management system (DBMS) is a system software for creating and managing databases. A DBMS enables end users to create, protect, read, update, and delete data in a database.</p><p>There are various database management systems in the market. Each type has its own characteristics and can be used for different purposes. The large number of DBMS makes it difficult to choose which DBMS to implement to solve our problem. To choose the most suitable DBMS, we need to evaluate different systems. We take a structured approach to evaluating database systems</p><p>DBMS is a structured system of collection of programs that enable users to create and maintain a data base and interfaces with the various users as data base administrator, online users, application programmers and naive users.</p><h4>components of DBMS</h4><p>The database management system can be divided into five major components, they are:</p><ul><li>Hardware.</li><li>Software.</li><li>Data.</li><li>Procedures.</li><li>Database Access Language.</li><li>People</li></ul><h4>Software</h4><p>This is the main component, as this is the program which controls everything. The DBMS software is more like a wrapper around the physical database, which provides us with an easy-to-use interface to store, access and update data.</p><p>The DBMS software is capable of understanding the Database Access Language and intrepret it into actual database commands to execute them on the DB.</p><h4>Data</h4><p>Data is that resource, for which DBMS was designed. The motive behind the creation of DBMS was to store and utilise data.</p><p>In a typical Database, the user saved Data is present and <strong>meta data</strong> is stored.</p><p><strong>Metadata</strong> is data about the data. This is information stored by the DBMS to better understand the data stored in it.</p><h4>Procedures</h4><p>Procedures refer to general instructions to use a database management system. This includes procedures to setup and install a DBMS, To login and logout of DBMS software, to manage databases, to take backups, generating reports etc.</p><h4>Database Access Language</h4><p>Database Access Language is a simple language designed to write commands to access, insert, update and delete data stored in any database.</p><p>A user can write commands in the Database Access Language and submit it to the DBMS for execution, which is then translated and executed by the DBMS.</p><p>User can create new databases, tables, insert data, fetch stored data, update data and delete the data using the access language.</p><h4>Users</h4><ul><li><strong>Database Administrators:</strong> Database Administrator or DBA is the one who manages the complete database management system. DBA takes care of the security of the DBMS, it’s availability, managing the license keys, managing user accounts and access etc.</li><li><strong>Application Programmer or Software Developer:</strong> This user group is involved in developing and desiging the parts of DBMS.</li><li><strong>End User:</strong> These days all the modern applications, web or mobile, store user data. How do you think they do it? Yes, applications are programmed in such a way that they collect user data and store the data on DBMS systems running on their server. End users are the one who store, retrieve, update and delete data</li></ul><h3>Evaluation methodology</h3><p>This step involves two analyses; Both of these analyses should be performed to determine the most suitable DBMS.</p><ol><li>Feature analysis</li><li>Performance analysis</li></ol><h3>Feature analysis</h3><p>Features of Database Management System (DBMS):</p><p><strong>Data Structuring:-</strong> All information in a digital repository is organized into a clear hierarchical structure with records, tables or objects. Every piece of information that you can add to your database will be organized in a kind of catalogue, so it will be easier for you to search and update your records later on.</p><p><strong>Database Customization :-</strong>Along with <strong>default and necessary elements</strong> (records, tables, or objects) that compose a database’s structure, there can be created custom elements that meet specific needs of users.</p><p><strong>Data Retrieval:-</strong> DBMS database management system accepts data input from users and stores it. Users can access the database later on to retrieve their records as a file, printed, or viewed on the screen.</p><p><strong>Query Languages:-</strong>A typical DBMS makes it possible to use query languages for <em>collecting, searching, sorting, modifying and other activities</em> that help users manipulate their records in the database.</p><p><strong>Multi-user Accese:-</strong>DBMS provides multiple users access to all types of information stored in one and the same data store. There is also a security feature that prevents some users from viewing and/or modifying certain data types.</p><p><strong>Data Integrity:-</strong>All information in a database is accessible by several or more users but only one user can change the same piece of data at a time. This capability lets prevent database corruptions and failure.</p><p>Analyse the available DBMS by reading the relevant database system documentation and identify its capabilities and check whether they meet the user’s needs. DBMS that do not meet the requirements are eliminated and others are ranked according to their features. This method does not cost more than the other method, but the selected DBMS may have the highest performance</p><h3>Performance Analysis</h3><p>Performance analysis methodology’s purpose is to find DBMS that gives maximum result and performance. For that, database management system will be analysed by its behavior and gather data regarding its performance then rank them. Finding the DBMS with the right performance is helpful to maximise the result because of its speed. It will definitely save more time.</p><h4>Techniques to Analyse the Performance of DBMS</h4><p>There are various methods to judge the performance of the database management system.</p><p>Some of the most used methods are : Analytical and Stimulation modelling and Benchmarking.</p><h4>1. Analytical Modelling</h4><p>This will use two models to map the performance of the DBMS to system parameters by certain equations. Those two models are</p><p><strong>· </strong>Queueing Models</p><p><strong>·</strong> Cost Models</p><p><strong><em>Queueing Models</em></strong></p><p>Queuing models are effective to study the dynamics of a database system when it is modeled as a multi-component system with resource allocation constraints and jobs moving around from one component to another. Examples of such dynamic studies are concurrent transaction control algorithms, data allocation and management in distributed database systems etc.</p><p><strong><em>Cost Models</em></strong></p><p>Cost Models are useful in studying the cost in terms of Physical storage and query processing time. The cost model gives some real insight into the actual physical structure and performance of a database system</p><p>This model effectively calculates the performance of physical databases. They are used to estimate the storage cost. We can determine the average response time to perform a task by the database management system.</p><h4>2. Simulating Modelling</h4><p>In simulation modelling, we construct a real-time model of the system to replicate the behaviour of the actual system. It performs the task and gathers the data, using this gathered data it evaluates the real-time performance of the system. It constitutes an application program, database system, operating system and hardware environment. This is more suitable for evaluating the performance of complex systems. But as the complexity of the system increases the evaluation of the performance of the system becomes more difficult.</p><p>A simulation Modeling is more effective for obtaining better estimates since it not only analyses the database system in isolation but can effectively analyze the database system with the application program running on top of it and the database system itself operating within the constrained environment of an operating system on a real physical hardware.</p><h4>3. Benchmarking</h4><p>An environment for each database management system is created separately as similar as possible to the environment that data is originally acquired to gather optimal results. Also this method is costly and more time consuming.</p><p>A workload and a database is implemented for this process. Tests will be preformed using this workload. Various systems operate on these workloads and the result and data from each implementation is used to compare and evaluate the database management system. Benchmarking provides more accurate results.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13b32dabef19" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[File system vs DBMS]]></title>
            <link>https://medium.com/@mdinukadulanjana/file-system-vs-dbms-bc539b83a1dc?source=rss-2bb96f08cb00------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc539b83a1dc</guid>
            <category><![CDATA[dbms]]></category>
            <category><![CDATA[dbms-vs-file-system]]></category>
            <category><![CDATA[filesystem]]></category>
            <dc:creator><![CDATA[Dinuka Dulanjana]]></dc:creator>
            <pubDate>Fri, 08 Jul 2022 14:19:28 GMT</pubDate>
            <atom:updated>2022-07-08T14:19:28.261Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*9rBJSKbKnER1U-GlTA6NRw.jpeg" /></figure><h3>What is File system?</h3><p>A file system is a technique of arranging the files in a storage medium like a hard disk, pen drive, DVD, etc. It helps you to organises the data and allows easy retrieval of files when they are required. It mostly consists of different types of files like mp3, mp4, txt, doc, etc. that are grouped into directories.</p><p>A file system enables you to handle the way of reading and writing data to the storage medium. It is directly installed into the computer with the Operating systems such as Windows and Linux.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/0*uD_dPyKobkfYnlY_.png" /></figure><p>Following are some of the examples of File Systems:-</p><p><strong>File allocation table (</strong><a href="https://www.techtarget.com/whatis/definition/file-allocation-table-FAT"><strong>FAT</strong></a><strong>)</strong> is supported by the Microsoft Windows OS. FAT is considered simple and reliable, and it is modelled after legacy file systems. FAT was designed in 1977 for floppy disks, but was later adapted for hard disks. While efficient and compatible with most current OSes, FAT cannot match the performance and scalability of more modern file systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LFknHdCQ_cSnLQ4sRnBkEw.png" /></figure><p><strong>Hierarchical file system (HFS)</strong> was developed for use with Mac operating systems. HFS can also be referred to as Mac OS Standard, and it was succeeded by Mac OS Extended. Originally introduced in 1985 for floppy and hard disks, HFS replaced the original Macintosh file system. It can also be used on CD-ROMs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3V9lkuQ39i9aYjKTdDe8Sw.png" /></figure><p><strong>New Technology File System (</strong><a href="https://www.techtarget.com/searchwindowsserver/definition/NTFS"><strong>NTFS</strong></a><strong>)</strong> — is the default file system for Windows products from Windows NT 3.1 OS onward. Improvements from the previous FAT file system include better metadata support, performance and use of disk space. NTFS is also supported in the Linux OS through a free, open-source NTFS driver. Mac OSes have read-only support for NTFS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HBfaXDeXD3wSMrFOCVLG-A.jpeg" /></figure><h4>Advantages of File System</h4><ul><li><strong>Backup</strong>: Data held in files of computer-based systems can be backed up more quickly and automatically. Computer systems provide features that can help with this. It’s also possible to create a custom application for this.</li><li><strong>Compactness</strong>: Data can be stored in a small amount of space.</li><li><strong>Data Retrieval</strong>: Computer-based systems offer improved data retrieval techniques that make it simple and efficient to retrieve data from files.</li><li><strong>Editing</strong>: Any information saved in computers in the form of files can be easily edited. For this, certain application applications or editing tools can be employed.</li><li><strong>File Sharing</strong>: Data saved in computer-based system files can be shared by several users at the same time.</li></ul><h4>Disadvantages of File System</h4><ul><li><strong>Data Redundancy</strong>: It’s possible that the same data is duplicated in many files. This results in data redundancy and memory waste.</li><li><strong>Data Inconsistency</strong>: Due to data redundancy, it’s probable that data won’t be consistent.</li><li><strong>Accessing Data Is Difficult</strong>: It’s not simple to get data out of a file management system. It isn’t as convenient as it should be. When a user needs to access information, they must run a specialized software. For example, we have a graphical user interface in our computers installed using which we access the files stored.</li><li><strong>Limited Data Sharing</strong>: Data is dispersed across multiple files. Moreover, separate files may have different formats, and these files may be housed in several directories belonging to various departments. As a result of this data segregation, data sharing between applications is challenging.</li></ul><h4>Types of file systems</h4><ol><li>Disk file system</li><li>Flash file system</li><li>Tape file system</li><li>Database file system</li><li>Transactional file system</li><li>Network file system</li><li>Shared disk file system</li><li>Minimal file system</li><li>Flat file system</li></ol><h3>What is a Database Management System (DBMS)?</h3><p>Database Management System (DBMS) is a software for storing and retrieving user’s data while considering appropriate security measures. It consists of a group of programs that manipulate the database. The DBMS accepts the request for data from an application and instructs the DBMS engine to provide the specific data. In large systems, a DBMS helps users and other third-party software to store and retrieve data</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OeAYcT7xeTw01d6AF8Bwvg.jpeg" /></figure><h4><strong><em>Advantages of DBMS</em></strong></h4><ul><li><strong>Controls database redundancy:-</strong> It can control data redundancy because it stores all the data in one single database file and that recorded data is placed in the database.</li><li><strong>Data sharing:-</strong> In DBMS, the authorized users of an organization can share the data among multiple users.</li><li><strong>Easily Maintenance:-</strong> It can be easily maintainable due to the centralized nature of the database system.</li><li><strong>Reduce time:-</strong> It reduces development time and maintenance need.</li><li><strong>Backup:-</strong> It provides backup and recovery subsystems which create automatic backup of data from <a href="https://www.javatpoint.com/hardware">h</a>ardware and <a href="https://www.javatpoint.com/software">s</a>oftware failures and restores the data if required.</li><li><strong>multiple user interface:-</strong> It provides different types of user interfaces like graphical user interfaces, application program interfaces</li></ul><blockquote><strong><em>Disadvantages of DBMS</em></strong></blockquote><ul><li><strong>Cost of Hardware and Software:-</strong> It requires a high speed of data processor and large memory size to run DBMS software.</li><li><strong>Size:-</strong> It occupies a large space of disks and large memory to run them efficiently.</li><li><strong>Complexity:-</strong> Database system creates additional complexity and requirements.</li><li><strong>Higher impact of failure:-</strong> Failure is highly impacted the database because in most of the organization, all the data stored in a single database and if the database is damaged due to electric failure or database corruption then the data may be lost forever.</li></ul><h4>Types of Database Management Systems</h4><ol><li>Hierarchical databases</li><li>Network databases</li><li>Relational databases</li><li>Object-oriented databases</li><li>Graph databases</li><li>ER model databases</li><li>Document databases</li><li>NoSQL databases</li></ol><h3>Difference between File System and DBMS</h3><ul><li>A file system is a software that manages and organizes the files in a storage medium, whereas DBMS is a software application that is used for accessing, creating, and managing databases.</li><li>The file system doesn’t have a crash recovery mechanism on the other hand, DBMS provides a crash recovery mechanism.</li><li>Data inconsistency is higher in the file system. On the contrary Data inconsistency is low in a database management system.</li><li>File system does not provide support for complicated transactions, while in the DBMS system, it is easy to implement complicated transactions using SQL.</li><li>File system does not offer concurrency, whereas DBMS provides a concurrency facility.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc539b83a1dc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>