<?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 THAMIDU NIPUN on Medium]]></title>
        <description><![CDATA[Stories by THAMIDU NIPUN on Medium]]></description>
        <link>https://medium.com/@thamidun998?source=rss-48dc2e2e4b5b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*IHMDGR0MYzNRyRJp1MdXhw.jpeg</url>
            <title>Stories by THAMIDU NIPUN on Medium</title>
            <link>https://medium.com/@thamidun998?source=rss-48dc2e2e4b5b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 10:30:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thamidun998/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[Types of Virtualization]]></title>
            <link>https://medium.com/@thamidun998/types-of-virtualization-cff3ebef51b8?source=rss-48dc2e2e4b5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/cff3ebef51b8</guid>
            <dc:creator><![CDATA[THAMIDU NIPUN]]></dc:creator>
            <pubDate>Thu, 16 Nov 2023 16:02:59 GMT</pubDate>
            <atom:updated>2023-11-16T16:02:59.207Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>First We learn about what is Virtualization?</strong></p><p>The process of creating a virtual (as opposed to real) version of a network, server, storage device, or even an operating system is known as virtualization. It enables the autonomous operation of numerous virtual instances or environments running concurrently on a single physical computer.</p><p>The best approach for small, medium-sized, and big enterprises to cut IT costs and increase productivity is through virtualization. With virtualization, you may run several operating systems and applications on a single server, combine hardware to achieve significantly more output from fewer servers, and manage, maintain, and roll out new applications more easily.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/261/1*QZ-9ZEbVtDOHv4iWEGUQtA.png" /></figure><p>Here are a few essential points about virtualization:</p><ol><li><strong>Hardware virtualization</strong> involves creating virtual machines that mimic physical hardware, allowing multiple operating systems to run on a single physical machine.</li></ol><p><strong>2. Software Virtualization</strong>: This type creates isolated environments at the application level, enabling multiple instances of an application to run independently.</p><p><strong>3. Benefits</strong>: Virtualization brings benefits like improved resource utilization, scalability, easier maintenance, and the ability to run different operating systems and applications on the same hardware.</p><p><strong>4</strong>. <strong>Use Cases:</strong> Virtualization is widely used in data centers, cloud computing, software development, testing environments, and even on personal computers (through tools like virtual machine software).</p><p><strong>Virtualization comes in various forms, each serving different purposes in computing.</strong></p><h3>Types of Virtualization</h3><p>You probably know a little about virtualization if you have ever divided your hard drive into different partitions. A partition is the logical division of a hard disk drive to create, in effect, two separate hard drives.</p><ol><li>Hardware Virtualization</li><li>Application Virtualization</li><li>Network Virtualization</li><li>Desktop Virtualization</li><li>Storage Virtualization</li><li>Server Virtualization</li><li>Data virtualization</li></ol><h3><strong>Hardware Virtualization</strong></h3><p>The process of creating virtual machines (VMs) within a single physical computer to mimic physical hardware is known as hardware virtualization. A hypervisor, commonly referred to as a Virtual Machine Monitor (VMM), oversees this process and allows for the simultaneous operation of multiple operating systems (OS) on the same hardware.</p><h4><strong>Hypervisor:</strong></h4><ul><li>A hypervisor is a software layer that abstracts physical hardware resources and manages the allocation of these resources to multiple VMs.</li><li>There are two main types of hypervisors: Type 1 (bare-metal) and Type 2 (hosted).</li><li>Type 1 hypervisors run directly on the physical hardware without the need for an underlying OS. Examples include VMware vSphere/ESXi and Microsoft Hyper-V.</li><li>Type 2 hypervisors run on top of an existing operating system. Examples include VMware Workstation and Oracle VirtualBox.</li></ul><h4><strong>Virtual Machines (VMs):</strong></h4><ul><li>VMs are isolated, independent instances of operating systems running on a single physical server or host.</li><li>Each VM has its own virtual CPU (vCPU), memory, storage, and network interfaces.</li><li>These VMs act as separate entities, allowing multiple OS environments (such as Windows, Linux, etc.) to run concurrently on the same physical hardware.</li></ul><h4><strong>Benefits of Hardware Virtualization:</strong></h4><ul><li>Resource Utilization: Hardware virtualization optimizes the utilization of physical server resources by running multiple VMs on one physical machine, reducing hardware costs and power consumption.</li><li>Isolation: VMs are isolated from each other, ensuring that if one VM crashes or encounters issues, it doesn’t affect other VMs running on the same hardware.</li><li>Flexibility and Scalability: Hardware virtualization allows for flexibility in deploying different OS environments on the same physical hardware. It also enables easy scalability by adding or removing VMs as needed.</li></ul><h4><strong>Use Cases:</strong></h4><ul><li>Data Centers: Hardware virtualization is extensively used in data centers to consolidate servers, optimize resource usage, and facilitate efficient management of computing resources.</li><li>Development and Testing: It’s valuable in creating testing environments where various OS configurations can be tested without the need for separate physical machines.</li><li>Cloud Computing: Virtualization forms the backbone of cloud services, enabling providers to deliver computing resources (such as virtual servers) to users on-demand</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*kx73tZ1objXX-CupHAIgpg.jpeg" /></figure><h3>Application Virtualization</h3><p>Application virtualization keeps the operating system and the hardware it runs on apart from the application. This division eliminates the need for separate instances to be stored on and operated from separate devices, allowing programs to be performed directly from data center hardware.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*bsWt6rztxl3pwmWg81stUw.png" /></figure><h4>Encapsulation of Applications:</h4><ul><li>Applications and their dependencies are encapsulated within a virtual container, creating a self-contained unit that includes the necessary files, libraries, and settings.</li><li>This encapsulation allows applications to be portable across different environments without conflicts or dependencies on the host system.</li></ul><h4>Isolation and Sandbox Environment:</h4><ul><li>Application virtualization creates a sandboxed environment for each application, ensuring that it operates independently from other applications and the underlying OS.</li><li>This isolation prevents conflicts between applications and avoids interference with system settings, providing a more stable and secure environment for running applications.</li></ul><h4>Deployment and Management:</h4><ul><li>Virtualized applications can be easily deployed across various systems without traditional installation procedures. They can run without altering the host system’s registry or file structure.</li><li>Centralized management of virtualized applications allows for easier updates, patches, and version control, reducing compatibility issues and simplifying maintenance.</li></ul><h4>Benefits of Application Virtualization:</h4><ul><li><strong>Compatibility</strong>: It enables running legacy applications on modern operating systems without compatibility issues or conflicts.</li><li><strong>Flexibility:</strong> Applications can be easily moved between different systems, allowing for seamless deployment and migration.</li><li><strong>Resource Efficiency:</strong> Multiple versions of the same application or different applications can coexist on the same system without interference, optimizing resource utilization.</li><li><strong>Security:</strong> Sandbox environments provide an additional layer of security, preventing applications from affecting the underlying system and enhancing overall system security.</li></ul><h4><strong><em>Use Cases:</em></strong></h4><ul><li><strong>Enterprise Environments:</strong> Large organizations use application virtualization to deploy standardized software across multiple devices without individual installations, easing management and ensuring consistency.</li><li><strong>Software Development:</strong> Developers use virtualized applications to create consistent testing environments and isolate development tools from the rest of the system.</li><li><strong>Remote Access:</strong> Virtualized applications can be accessed remotely, providing users with access to applications without needing them to be installed locally.</li></ul><h3>Network Virtualization</h3><p>Network virtualization involves abstracting and decoupling network resources, creating multiple virtual networks that operate independently on a shared physical network infrastructure. It allows the creation of isolated, customizable, and software-defined networks (SDNs) without requiring physical segmentation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wRmP3fNW1bbVK-RonnGP7g.png" /></figure><h4>Advantages of Network Virtualization</h4><h4>Reduces cost</h4><p>When you shift to a virtual environment, one physical server transforms into a virtual machine that can work on many things at once. This is not possible in a non-virtualized environment because when you are not using the app on the server, the computer is basically idle.</p><p>A virtual machine, on the other hand, can have a different OS and run different apps while being hosted on a single physical server. This is a more cost-effective solution because it reduces the need for multiple physical servers.</p><h4>Enhances resilience during downtime and reduces downtime</h4><p>When something happens to the physical server, someone has to fix it. This can take hours or days, depending on the issue. This becomes easy with a virtual environment, as you can easily clone the virtual machine and deploy the solution. This takes minutes, as opposed to hours in a physical environment.</p><h4>Centralised control</h4><p>The virtual environment allows segmentation into multiple virtual machines. This allows the developers to quickly resolve issues without hampering work or production. This is an ideal situation for testing, as the developer can create a clone quickly and run tests.</p><p>This is very useful in the case of releasing a new software patch to the system, as the developers can clone the system, apply the software update, test it, and then release it in the main application. This increases the speed and ease of the implementation of new software.</p><h4>Increases productivity and efficiency</h4><p>This brings the next benefit of <a href="https://konverge.co.in/services/virtualization-services/">network virtualization</a>– increased productivity and efficiency. When you have few physical servers to maintain, IT teams spend less time on hardware and infrastructure maintenance. With a virtual network, installing, uploading, updating, and maintaining all the virtual machine’s environments becomes easy. This saves them from the laborious tasks of manually maintaining everything, which increases efficiency and hence productivity.</p><h4>Network visibility</h4><p>Having a centralized network gives complete visibility into the entire network and infrastructure. The administrators can manage the network traffic, examine abnormalities, and produce reports on traffic behavior.</p><h4>Eco-friendly</h4><p>Cutting down on physical components reduces your power consumption. This is a more eco-friendly option, as it reduces costs and your data center’s carbon footprint.</p><h4>Challenges in Network Virtualization</h4><h4>New skills for IT staff</h4><p>This is one of the major challenges faced during network virtualization. The staff needs to be trained and experienced in handling the shift to the virtual machine. Since the system is no longer their traditional standard, it needs to be operated, maintained, and designed differently, which requires a different set of skills altogether.</p><h4>Lower performance</h4><p>The shift from physical hardware to virtual systems often causes performance issues. Virtual system saturation causes performance depletion initially if not implemented with proper planning and with the right resources.</p><h4>Changing standards</h4><p>Standards play an important role in running a system smoothly. The administrator must stay abreast of the latest standards better than when they were working on the hardware system. Another challenge that comes across is that the idea of a virtual network is considered a no-hardware solution and is considered to be a costless affair.</p><p>A virtual network is cost-efficient in the long run, but it does require an initial investment both in terms of time and money. The hardware in the virtual network needs to be more robust than the hardware used in the traditional old setup, which is again costly.</p><h4>Difficult management</h4><p>When everything is shifted to a virtual network, locating data becomes difficult because both virtual machines and containers can be transferred between servers. Since there are several virtual machines and containers, there are several endpoints under the administrator’s purview.</p><h3>Desktop Virtualization</h3><p>The process of relocating your desktop session and putting it on a server so you can access it from anywhere is known as desktop virtualization. It appears more like private clouds and SaaS, isn’t that right? This article provides a brief overview of desktop virtualization and explains the pros and cons for a corporation looking to deploy it. The process of relocating your desktop session and putting it on a server so you can access it from anywhere is known as desktop virtualization. It appears more like private clouds and SaaS, isn’t that right? This article provides a brief overview of desktop virtualization and explains the pros and cons for a corporation looking to deploy it.</p><h4>Advantages of Desktop Virtualization</h4><ul><li>accessing your desktop environment from <strong>anywhere</strong> through LAN, WAN (including broadband from home), etc. at any time you want.</li><li>Most of the Desktop Virtualization (DV) solutions support <strong>local</strong> USB drives, local printing, and local graphics acceleration (remember that the desktop and applications are rendered on a server and not on the local computer).</li><li>Centralized operating system and application updates / migrations can be done regularly by a trained technician at the data center collectively for a group of virtual desktops.</li><li>Desktop Virtualization solutions <strong>integrate</strong> with corporate directories like Active Directory, LDAP, etc. and User Access Policies can be applied to all users based on their role, location, type of device, etc.</li><li>Desktop virtualization enhances <strong>security</strong> as the administration is centralized—antivirus and firewall policies can be applied and monitored from the data center. The applications that can be accessed and run by the users can be restricted and even tracked.</li><li>Faster, more reliable, and easier backup and<strong> recovery</strong> of all the user data is possible due to centralized hosting and administration.</li><li>Desktops, laptops, thin smart phones, and many more <strong>devices</strong> could be used by authorized users to access the centralized hosted applications.</li></ul><h4><strong>Disadvantages of Desktop Virtualization</strong></h4><ul><li>Desktop virtualization is<strong> capex-intensive</strong>. One needs to buy desktop virtualization software, licenses, servers, centralized storage infrastructure, upgrade network infrastructure to support more bandwidth, etc., in addition to buying computers and thin clients for each user.</li><li>There is <strong>no reduction</strong> in the number of end-user client machines (computers) that are needed in the network.</li><li>The<strong> licenses</strong> for operating systems, applications, etc. still need to be bought for each user (mostly), and there is no reduction in costs there.</li><li>Thin-clients are sometimes as expensive or more expensive than individual computers, as, with huge volumes, computer prices plummet drastically as they are manufactured and distributed in bulk quantities.</li><li>The network infrastructure needs to handle all that <strong>extra bandwidth</strong> that desktop virtualization is going to introduce. Otherwise, it has to be upgraded. The WAN links need to have sufficient bandwidth to handle all those remote DV users as well.</li><li>If the bandwidth on the remote end is not sufficient or if there is congestion on the LAN, the <strong>display quality</strong> may not be as good (when images are streamed from the server) as processing and viewing applications right from a desktop.</li></ul><h4>Conclusion</h4><p>Virtualization offers a wide array of benefits across various aspects of computing, including resource optimization, scalability, flexibility, and simplified management. Here’s a summary:</p><p>Resource Optimization: Virtualization optimizes resource utilization by allowing multiple virtual instances to run on a single physical machine. This maximizes the efficiency of hardware, reducing costs and energy consumption.</p><p>Flexibility and Scalability: It enables easy scaling of computing resources based on demand. Virtualization allows for the creation, modification, and movement of virtual environments without physical constraints, ensuring adaptability to changing needs.</p><p>Simplified Management: Centralized management of virtualized resources streamlines administration tasks such as deployment, maintenance, and updates. It simplifies IT management, reducing the complexities associated with diverse hardware and software environments.</p><p>Security and Isolation: Virtualization provides isolation between different virtual instances, enhancing security by preventing interference and reducing the impact of potential threats.</p><p>Disaster Recovery and Redundancy: Virtualization facilitates efficient disaster recovery strategies by allowing for the creation of backups, snapshots, and rapid restoration of virtual environments. It enhances redundancy and business continuity.</p><p>Agility in Development and Testing: Virtualization is valuable for creating consistent testing environments and facilitates the development process by isolating development tools from the host system.</p><p>Remote Accessibility: It enables remote access to resources, supporting remote work, collaboration, and access to critical applications from various devices and locations.</p><p>Overall, virtualization transforms how computing resources are utilized, managed, and accessed. It’s a foundational technology that continues to drive innovation, enabling businesses and individuals to operate more efficiently, securely, and flexibly in the digital landscape.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cff3ebef51b8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Architecture of Distributed System]]></title>
            <link>https://medium.com/@thamidun998/architecture-of-distributed-system-e444a1e0fb09?source=rss-48dc2e2e4b5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e444a1e0fb09</guid>
            <dc:creator><![CDATA[THAMIDU NIPUN]]></dc:creator>
            <pubDate>Thu, 16 Nov 2023 12:41:00 GMT</pubDate>
            <atom:updated>2023-11-16T12:41:00.607Z</atom:updated>
            <content:encoded><![CDATA[<p>A distributed system’s architecture describes how its parts are put together and work together to accomplish a common objective. Several independent computers that interact with one another via a network to function as a single cohesive system make up distributed systems.</p><p><strong>First, what is a distributed system?</strong></p><p>A collection of independent computers working together to achieve a common goal is called a distributed system. Nodes, the computers that make up a distributed system, can be found anywhere in the globe. Through a network, the nodes converse with one another and exchange resources like information, processing power, and storage.</p><p>There are many different applications for distributed systems.</p><ol><li>E-commerce: Order processing, customer information management, and delivery tracking are all done by distributed systems on e-commerce websites.</li><li>Social media: The user interface, user data storage and exchange, and content delivery are all handled by social media websites through distributed systems.</li><li>Search engines: To index the web, handle user requests, and present results, search engines rely on distributed systems.</li><li>Scientific computing: To execute intricate computations and simulations, scientific computing applications take advantage of distributed systems.</li><li>Cloud computing: Cloud computing providers use distributed systems to offer networking, storage, and processing power, among other services.</li></ol><p><strong>Distributed systems offer several advantages over traditional single-machine systems,</strong></p><ol><li>Scalability: By adding more nodes, distributed systems are easily scalable to manage higher workloads.</li><li>Fault tolerance: In a distributed system, in the event of a node failure, the remaining nodes can keep the system up and running.</li><li>Geographic distribution: By distributing systems over several sites, latency can be decreased and performance can be enhanced.</li><li>Resource sharing: Nodes in distributed systems are able to share resources, including data, computing power, and storage.</li></ol><p><strong>However, distributed systems also have several challenges.</strong></p><ol><li>Complexity</li><li>Communication overhead</li><li>Consistency</li><li>Failure handling</li></ol><h3>What are Distributed Architectures?</h3><p>Distributed architecture refers to a model where software components that reside on networked computers communicate and coordinate their actions to achieve a common goal. In this approach, computation tasks are divided among several machines rather than relying on a central server.</p><p>A distributed system is broadly divided into two essential concepts: software architecture (further divided into layered architecture, object-based architecture, data-centered architecture, and event-based architecture) and system architecture (further divided into client-server architecture and peer-to-peer architecture).</p><ol><li><strong>Software Architecture</strong></li><li><strong>System Architecture</strong></li></ol><h3><strong>Software Architecture</strong></h3><p>The logical arrangement of software elements and how they interact with other structures is known as software architecture. It is completely focused on components, such as the web front end of an e-commerce system, and operates at a lower level than system architecture. The following are the four primary distributed system architectural styles in software components:</p><ol><li><strong><em>Layered Architecture</em></strong></li></ol><p>Software can be approached modularly with a layered architecture. It is more effective when each component is separated. For improved outcomes, the open systems interconnection (OSI) concept, for instance, employs a layered architecture. It reaches its objective by making successive contacts with layers. Cross-layer coordination is used while implementing layered architecture in certain situations. When using cross-layer, interactions can bypass any layer that is next to them until the request is fulfilled and improved performance is achieved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*gmAYT6VFxwaPSb6MfCNo5g.png" /></figure><p>One kind of software that divides components into parts is called layered architecture. Top-down requests are made, and bottom-up responses are given. Layered architecture has the benefit of maintaining organization and allowing for the independent modification of each layer without compromising the integrity of the system as a whole.</p><p><strong><em>2. Object-based Architecture</em></strong></p><p>The arrangement of items in this architectural style is based on free coupling. This lacks a distinct architecture, such as layers. This lacks a set of sequential steps that must be completed for each call, just like in layers. Every component is referred to as an object, and via a specific connector or interface, each object can communicate with other objects. These are far more straightforward, allowing for direct communication between all the various components via direct method calls.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*cyqE9uGmOZIBDO4UZ1nHJw.png" /></figure><p>Basic object-to-object communication takes place via method calls, often known as remote procedure calls (RPC). REST API Calls, Web Services, and Java RMI are examples of common RPC systems. These architectures’ main structural feature is their lack of structure. In this case, connector means RPC or RMI, and component means object.</p><p><strong><em>3.Data-centered Architecture</em></strong></p><p>This design, as its name implies, is centered on a data center, where a central data repository serves as the primary means of communication. There are two types of this common repository: active and passive. This issue is more akin to a producer-consumer one. Producers submit their goods to shared data storage, from which customers can obtain data upon request. This shared resource might even be a straightforward database. However, the concept is that this shared common storage is how things communicate with one another. This facilitates many components (or objects) by giving them access to a persistent storage area (like a MySQL database). This permanent storage holds all of the data pertaining to the system’s nodes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*xcML5v0DVVBd4gShUDl3gw.png" /></figure><p>All communication between objects happens through a data storage system in a data-centered system. It supports its stores’ components with a persistent storage space such as an SQL database, and the system stores all the nodes in this data storage.</p><p><strong><em>4. Event base architecture</em></strong></p><p>All communication in an event-based architecture occurs through events. A notification of an occurrence is sent to the system. This implies that information will be available, and notification will be sent to everyone who receives this event. These events can be URLs to resources or data at different periods. As a result, the recipient is able to interpret the information they get and take appropriate action.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*deaz3phqAUEGfK12BkMnGQ.png" /></figure><p><strong>Benefits of Event-Based Architecture</strong></p><ul><li><strong>Scalability</strong>: Components can be added or removed without directly impacting other parts of the system.</li><li><strong>Flexibility and Agility</strong>: Enables easier modifications, updates, and additions of new functionalities.</li><li><strong>Asynchronous Communication</strong>: Components operate independently, improving responsiveness and system resilience.</li><li><strong>Modularity and Reusability:</strong> Encourages modular design and reusability of components.</li><li><strong>Fault Tolerance:</strong> Provides resilience against failures in individual components.</li></ul><p><strong>Considerations and Challenges:</strong></p><ul><li><strong>Event Ordering</strong>: ensuring events are processed in the right sequence</li><li><strong>Scalability Concerns:</strong> Balancing event throughput and ensuring efficient event handling at scale.</li><li><strong>Complexity Management:</strong> Designing for the complexity of event handling and orchestration</li><li><strong>Reliability:</strong> ensuring event delivery and handling in distributed environments.</li></ul><h3>System Architecture</h3><p>System-level architecture focuses on the entire system and the placement of components of a distributed system across multiple machines. The client-server architecture and peer-to-peer architecture are the two major system-level architectures that hold significance today. An example would be an e-commerce system that contains a service layer, a database, and a web front.System-level architecture focuses on the entire system and the placement of components of a distributed system across multiple machines. The client-server architecture and peer-to-peer architecture are the two major system-level architectures that hold significance today. An example would be an e-commerce system that contains a service layer, a database, and a web front.</p><ol><li><strong>client-server architecture</strong></li></ol><p>A client, which is typically a user’s computer or device, and a server, which is a powerful machine or system that hosts resources or services, split tasks or processes in a client-server architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*2VcaOtpN6RFJ_cs4UbSDJw.png" /></figure><p>Centralized security is a standard design element in client-server architecture. Any server user can access data, including passwords and usernames, because they are kept in a secure database. Compared to peer-to-peer, this makes it more reliable and secure. Because of the client-server design and the security database’s capacity to permit more meaningful resource utilization, this stability is possible. Though it isn’t as quick as a server, the system is far more safe and stable. A distributed system’s single point of failure and lack of server-level scalability are its drawbacks.</p><p><strong>Advantages:</strong></p><ul><li>Easier to Build and Maintain</li><li>Better Security</li><li>Stable</li></ul><p><strong>Disadvantages:</strong></p><ul><li>A single point of failure</li><li>Less scalable</li></ul><p>2<strong>. peer-to-peer (p2p ) architecture</strong></p><p>Peer-to-peer, or P2P, architecture is a decentralized paradigm in which no central server is required for communication or resource sharing between individual devices (called peers) in a network. Every peer in the network has the ability to function as a server and a client, sharing resources on its own and using those of other peers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*7fqTdyISp7dxlxBi07xvbA.png" /></figure><p>If a new node wishes to provide services, it can do so in two ways: One way is to register with a centralized lookup server, which will then direct the node to the service provider. The other way is for the node to broadcast its service request to every other node in the network, and whichever node responds will provide the requested service.</p><p><strong>Differences between client-server and peer-to-peer Architecture</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*jf75dKtMmsxkYtsKO2d4rw.png" /></figure><p><strong>Centralized vs Decentralized Architectures</strong></p><p>Within distributed system overlays, centralized and decentralized architectures are the two primary organizational forms that we observe. A straightforward client-server design in which the server serves as the central unit can explain the centralized architecture. With these features, it can also be thought of as a centralized lookup table.</p><ul><li>Low overhead</li><li>A single point of failure</li><li>Easy to Track</li><li>Additional Overhead.</li></ul><h3>conclusion</h3><p>Distributed architecture has revolutionized computing by providing scalability, resilience, and efficient resource utilization. Its impact can be seen across a spectrum of applications, from internet-based services to blockchain technology and beyond.</p><p>While the benefits of distributed systems are substantial, addressing challenges such as complexity, security, and effective network management remains crucial for ensuring their continued success. Advancements in technology and innovative solutions will likely continue to enhance distributed architectures, making them more robust, secure, and adaptable to the evolving demands of modern computing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e444a1e0fb09" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Software Design Patterns]]></title>
            <link>https://medium.com/@thamidun998/software-design-patterns-a5610ff7dd6f?source=rss-48dc2e2e4b5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5610ff7dd6f</guid>
            <category><![CDATA[software]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-design-patterns]]></category>
            <category><![CDATA[design-patterns]]></category>
            <dc:creator><![CDATA[THAMIDU NIPUN]]></dc:creator>
            <pubDate>Sun, 27 Aug 2023 05:54:50 GMT</pubDate>
            <atom:updated>2023-08-27T05:54:50.965Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5HRl4SV3I42YtsUiUa6MEQ.jpeg" /></figure><ul><li><strong>What Are Design Patterns?</strong></li></ul><p>A design pattern in software engineering is a broad, reusable solution to a frequently occurring problem in a specific environment. It is not a finished design that can be turned into source code or machine code right away. Instead, it serves as a description or model for problem-solving that may be applied in a variety of contexts. Programmers can utilize design patterns, which are established best practices, to address frequent issues when creating new applications or systems.</p><ul><li><strong>Why use Design patterns?</strong></li></ul><p>Software engineers utilize design patterns for a variety of reasons. Here are some of the most typical causes:</p><p><strong><em>1. To enhance design</em></strong>: By offering tested answers to frequent issues, design patterns can help enhance the design of software. Software that is more extendable, reusable, and manageable may result from this.</p><p>2. <strong><em>Increasing flexibility</em></strong>: Design patterns make it simpler to modify the implementation of a specific feature without having an impact on the rest of the system, which can help increase the flexibility of software. This may be crucial for software that must be modified to meet evolving requirements.</p><p>3. <strong><em>Reducing complexity:</em></strong> Design patterns offer a technique to divide up complex issues into smaller, more manageable components, which can help reduce the complexity of software. Software may become simpler to comprehend, create, and maintain as a result.</p><p>4. <strong><em>To make software more maintainable:</em></strong> Design patterns can make software more maintainable by making the code simpler to read and edit. For software that must be maintained over an extended period of time, this may be crucial.</p><p><strong><em>5. To discuss software design with other developers</em></strong>: Design patterns might be useful when discussing software design with other developers. This can help to ensure that everyone is on the same page and to coordinate the work on complicated projects.</p><p>Overall, design patterns can be a valuable tool for software engineers. They can help improve the design, flexibility, complexity, maintainability, and communication of software.</p><h3>Three main categories of SE design patterns</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*XWuyPf_0GD4wB4WnLJb8Xg.png" /></figure><ul><li><strong>Creational patterns</strong> deal with the creation of objects. They provide abstract ways to create objects without specifying the concrete implementation.</li></ul><ol><li>Singleton:</li></ol><p>ensures that there is only one instance of a class in a program.</p><p>The Singleton pattern makes sure a class only has one instance over the course of an application. This is helpful if you need to keep track of resources like database connections, thread pools, or configuration settings from a single location.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sD_QGgD20vIKAkUwaan5mg.png" /></figure><p>2. Factory:</p><p>Creates objects without specifying their concrete class.</p><p>The factory method pattern offers an interface for making objects, but subclasses choose the particular kind of object that will be created. This gives you flexibility when creating things and makes it possible to make families of linked objects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*YmVu9xF17GicQkte4bqKDg.jpeg" /></figure><p>3. Builder:</p><p>separates the construction of a complex object from its representation.</p><p>The Builder pattern distinguishes between an object’s construction and its representation. This is accomplished by developing a builder class in charge of building the object. The object is then created through communication between the client class and the builder class.</p><p>There are several ways to apply the Builder pattern. To define the builder class, one typical method is to utilize the abstract class keyword. The object is then created through communication between the client class and the builder class.</p><p>A number of scenarios call for the use of the Builder pattern. You can use it, for instance, to construct things that are complicated to create or have a lot of dependencies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*UW-mu7f8nG7aZFcQh7_70Q.jpeg" /></figure><ul><li><strong>Structural patterns</strong> deal with the composition of objects. They provide ways to assemble objects into larger structures while keeping the structures loosely coupled.</li></ul><ol><li>Adapter:</li></ol><p>converts the interface of one class into another interface that clients expect.</p><p>There are numerous ways to apply the Adapter pattern. Utilizing the interface keyword to define the anticipated interface is one such method. After that, the adapter class implements the interface and transfers calls to the modified class.</p><p>There are several circumstances in which the Adapter pattern can be applied. It can be used, for instance, to integrate a legacy class with a modern framework.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*VSgxMlX8-oXp6J_APSlN0w.jpeg" /></figure><p>2. Facade:</p><p>Provides a simplified interface to a complex system.</p><p>There are numerous ways to apply the Facade pattern. One typical method is to declare the façade interface using the interface keyword. Then, the facade object puts the interface into use and transfers calls to the underlying system.</p><p>Numerous situations can benefit from the adoption of the Facade pattern. It can be used, for instance, to offer a simplified interface to a database or online service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/267/1*hDZQXRsq-2kORYus5ZEscg.png" /></figure><p>3. Decorator:</p><p>attaches additional responsibilities to an object dynamically.</p><p>There are numerous ways to apply the Decorator pattern. One typical method is to declare the base class for the decorator and decorated objects using the interface keyword. The decorator object then passes calls to the decorated object after implementing the interface class.</p><p>Numerous situations call for the Decorator pattern. You can use it, for instance, to give an object logging or security.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*yxQfGkCSj88nZPJqO9Hn8Q.png" /></figure><ul><li><strong>Behavioral patterns</strong> deal with the communication between objects. They provide ways to coordinate the behavior of objects in order to achieve a common goal.</li></ul><ol><li>Observer:</li></ol><p>Defines a one-to-many dependency between objects so that when one object changes state, all of its dependents are notified and updated automatically.</p><p>In order to automatically notify and update all of an object’s dependents when its state changes, the Observer design establishes a one-to-many dependency between objects. When you need to keep several things in sync with one another, this is helpful.</p><p>There are numerous ways to apply the Observer pattern. The use of an observer interface is one such approach. The techniques for alerting observers to state changes are defined by the observer interface.</p><p>There are several circumstances where the Observer pattern can be applied. It can be used, for instance, to update a list of subscribers with the most recent information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*yxRmvRNtdRnbUO1ig_9zKQ.jpeg" /></figure><p>2. Strategy:</p><p>Encapsulates a specific algorithm inside a class so that the algorithm can be easily changed without affecting the clients that use it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*xwAqu2Je7ZGE6pZ6Wuo2Nw.jpeg" /></figure><p>3. Command:</p><p>decouples the request from the object that is handling the request.</p><p>The Command pattern can be implemented in a variety of ways. One common way is to use an abstract class to define the interface for command objects. Concrete command objects then inherit from the abstract class and implement the request-handling logic.</p><p>The Command pattern can be used in a variety of situations. For example, you can use it to decouple the code that makes a request from the code that handles the request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*0cSsbQYzX6oV7knNF19PEw.png" /></figure><h3>SE design pattern class and object</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AGvn814CwJ725WclS_rBRA.png" /></figure><h3>Benefits of using design patterns</h3><ul><li>They can help improve the readability and understandability of code.</li><li>They can help make code more reusable and maintainable.</li><li>They can help reduce the risk of bugs and errors.</li><li>They can help improve the performance of the code.</li><li>They can help make code more portable and adaptable to different platforms and environments.</li></ul><h3>Conclusions</h3><p><strong>Design Patterns as Practical Tools:</strong></p><p>Design patterns are not mere abstract ideas or theoretical concepts discussed in textbooks. They are practical solutions derived from the collective experience of seasoned software engineers. These solutions address real-world challenges and provide actionable ways to tackle recurring problems encountered during software development.</p><p><strong>Enabling Robustness:</strong></p><p>When you apply design patterns, you’re essentially using battle-tested approaches. These approaches have been refined over time to ensure that your software is resilient and able to handle various scenarios. The use of patterns helps in creating a solid architectural foundation that withstands unexpected issues and maintains stability even as the application evolves.</p><p><strong>Achieving Maintainability:</strong></p><p>One of the core objectives of design patterns is to make code more maintainable. By adhering to recognized patterns, you’re following established conventions that promote modularization, clean separation of concerns, and clear communication between different components. This modular structure makes it easier to update, debug, and extend the software over its lifecycle.</p><p><strong>Promoting Adaptability:</strong></p><p>Design patterns often emphasize loose coupling between components. This loose coupling allows for easy replacement or modification of individual components without affecting the entire system. As requirements change or new features are introduced, patterns help you adapt your software architecture smoothly, saving time and resources.</p><p><strong>Contribution to High-Quality Software:</strong></p><p>Incorporating design patterns into your development practices isn’t just about writing code; it’s about crafting software that meets high standards of quality. By following proven practices and using patterns, you’re contributing to the creation of software that not only functions correctly but also exhibits well-thought-out architecture, readability, and scalability.</p><p><strong>Standing the Test of Time</strong>:</p><p>Technology evolves rapidly, but the principles underlying design patterns remain relevant. These principles focus on modularity, reusability, and maintainability—qualities that are always in demand. When you apply design patterns, you’re future-proofing your software by adhering to enduring practices that transcend the trends of the moment.</p><p><strong>Incorporating Patterns into Development Practices:</strong></p><p>Applying design patterns requires more than just copying code from a textbook. It involves understanding the problem at hand, recognizing the suitable pattern, and adapting it to your specific context. As you gain experience in identifying and applying patterns, you’ll find yourself better equipped to create software that is not only functional but also of exceptional quality.</p><p>In essence, incorporating design patterns into your software development toolkit is a practical choice. It equips you with the tools to build software that is robust, maintainable, adaptable, and of high quality that not only meets immediate needs but also stands strong as technology and requirements evolve over time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5610ff7dd6f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Amazon Web Services]]></title>
            <link>https://medium.com/@thamidun998/amazon-web-services-47607c355fa8?source=rss-48dc2e2e4b5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/47607c355fa8</guid>
            <category><![CDATA[amazon-web-services]]></category>
            <dc:creator><![CDATA[THAMIDU NIPUN]]></dc:creator>
            <pubDate>Sun, 18 Sep 2022 17:46:55 GMT</pubDate>
            <atom:updated>2022-09-18T17:46:55.030Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>What is AWS</strong></h3><ul><li>The most complete and widely used cloud platform in the world, Amazon Web Services (AWS), provides over 200 fully functional services from data centers across the world. Millions of clients use AWS to save costs, increase agility, and accelerate innovation, including the largest corporations, most successful governmental organizations, and the fastest-growing startups.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VuAwAiZff07t4PXRc5EiAg.png" /></figure><p>In 2006, Amazon Web Services (AWS) started providing organizations with web services for IT infrastructure, which is now referred to as cloud computing. The ability to replace upfront capital infrastructure costs with low variable costs that grow with your organization is one of the main advantages of cloud computing. Businesses don’t have to prepare for and buy servers and other IT infrastructure in advance thanks to the Cloud. Instead, they can quickly put up hundreds of thousands of servers and produce results.</p><p>Today, Amazon Web Services provides a highly reliable, scalable, low-cost infrastructure platform in the cloud that powers hundreds of thousands of businesses in 190 countries around the world.</p><h3><strong>Main Work of AWS</strong></h3><p>Up until the hypervisor, AWS maintains the infrastructure. You are in charge of everything above that, including taking care of the MySQL engine, the guest operating system, and the data it contains. Scaling, backups, failovers, upgrades, and security patches, among other things, are all your e-commerce startup’s responsibilities.</p><h3><strong>What is Cloud Computing</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*RhbjiYo-txX5yi7TRwGZyQ.png" /></figure><p>Cloud computing is the on-demand delivery of IT resources over the Internet with pay-as-you-go pricing. Instead of buying, owning, and maintaining physical data centers and servers, you can access technology services, such as computing power, storage, and databases, on an as-needed basis from a cloud provider like Amazon Web Services (AWS).</p><h3><strong>Difference Between Cloud Computer And AWS</strong></h3><p>Google Cloud is a suite of Google’s public cloud computing resources &amp; services whereas AWS is a secure cloud service developed and managed by Amazon. Google Cloud offers Google Cloud Storage, while AWS offers Amazon Simple Storage Services.</p><h3><strong>Advantages of AWS</strong></h3><ul><li><strong>Most Secure</strong></li></ul><p>The most adaptable and safe cloud computing platform currently available is AWS, which is designed to be both. The security requirements for the military, major banks, and other highly sensitive organizations are met by our core infrastructure. With 230 security, compliance, and governance services and capabilities, this is supported by a comprehensive collection of cloud security tools. In addition to offering the option to encrypt customer data across all 117 AWS services that host it, AWS supports 98 security standards and compliance certifications.</p><ul><li><strong>A largest and most dynamic community</strong></li></ul><p>With millions of active customers and tens of thousands of partners worldwide, AWS has the largest and most vibrant community. Every conceivable use case is being performed on AWS by customers from almost every industry and of every size, including startups, large corporations, and government agencies. Tens of thousands of independent software vendors (ISVs) and thousands of systems integrators who specialize in AWS services make up the AWS Partner Network (APN). ISVs adapt their technology to work on AWS.</p><ul><li><strong>Fastest pace of innovation</strong></li></ul><p>With AWS, you can experiment and innovate more quickly by utilizing the most recent technology. We are constantly speeding up our innovation process to create completely original technology that you may use to change your company. For instance, AWS pioneered serverless computing in 2014 when it introduced AWS Lambda, a platform that enables developers to run their code without creating or managing servers. Also developed by AWS is Amazon SageMaker, a fully managed machine learning service that enables novice developers and scientists to use machine learning.</p><ul><li><strong>Most proven operational expertise</strong></li></ul><p>AWS has unmatched experience, maturity, reliability, security, and performance that you can depend upon for your most important applications. For over 16 years, AWS has been delivering cloud services to millions of customers around the world running a wide variety of use cases. AWS has the most operational experience, at a greater scale, of any cloud provider.</p><h3>Disadvantages of AWS</h3><ul><li>Limitation of Amazon EC2.</li><li>Technical support fee.</li><li>Security Limitation.</li><li>General Cloud Computing issues.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*1fQalRa8z9YUA2JYEeGqDg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47607c355fa8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Keys in DBMS]]></title>
            <link>https://medium.com/@thamidun998/keys-in-dbms-a87b7ac6b648?source=rss-48dc2e2e4b5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a87b7ac6b648</guid>
            <dc:creator><![CDATA[THAMIDU NIPUN]]></dc:creator>
            <pubDate>Fri, 02 Sep 2022 16:08:54 GMT</pubDate>
            <atom:updated>2022-09-02T16:08:54.879Z</atom:updated>
            <content:encoded><![CDATA[<ul><li>A key in DBMS is an attribute or set of attributes which helps you to identify a row(tuple) in a relation(table).</li><li>Any row of data in a table can be found using keys. A table could have thousands of records in an actual application. The records can also be duplicates. Despite these difficulties, keys in RDBMS ensure that a table record can be uniquely identified.</li><li>allows you to determine the relationship between tables and construct a relationship between them.</li><li>assist you in maintaining the relationship’s integrity and sense of self.</li></ul><h3>Types of keys in DBMS</h3><p><strong>01.Super Key</strong></p><p>A super key is a collection of one or more keys that uniquely identify the rows in a database.</p><p>Additional characteristics that are not necessary for unique identification may be present in a Super key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/1*vF88jj-sbjSkCEKxx7JDqg.jpeg" /></figure><p><strong>2.Primary Key</strong></p><p>In DBMS, a primary key is a column or set of columns in a table that uniquely identifies each entry. The same value cannot appear more than once in the table than once in the Primary Key, which means it cannot be duplicated. There can only be one primary key per table.</p><ul><li>Two rows can’t have the same primary key value.</li><li>The primary key field cannot be null.</li><li>The value in a primary key column can never be modified or updated if any foreign key refers to that primary key.</li><li>It must for every row to have a primary key value.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*27yUBCb1iiH1B6VrqNWFkg.png" /></figure><p><strong>03.Alternate Key</strong></p><p>A set of attributes known as a CANDIDATE KEY in SQL is used to specifically identify tuples in tables. A super key called the Candidate Key has no repeated characteristics. The candidate keys should be chosen to form the primary key. There must be at least one candidate key in each table. There can be several candidate keys but only one primary key in a table.</p><ul><li>It must contain unique values.</li><li>Must not contain null values.</li><li>Uniquely identify each record in a table.</li><li>Candidate key in SQL may have multiple attributes.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*jtqHJJnC0EQkAIMR06QBMw.png" /></figure><p><strong>04.Foreign Key</strong></p><p>FOREIGN KEY is a column that creates a relationship between two tables. The purpose of Foreign keys is to maintain data integrity and allow navigation between two different instances of an entity. It acts as a cross-reference between two tables as it references the primary key of another table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*4X3ToUWDOgk6DzRBNTd7Tw.png" /></figure><p><strong>05.Compound Key</strong></p><p>COMPOUND KEY has two or more characteristics that let you recognize a certain record in an exclusive way. It’s possible that none of the columns in the database are unique on their own. However, the composite key combination becomes unique when paired with the additional column or columns. Each record in the table is to be uniquely identified by the database’s compound key.</p><p><strong>06.Composite Key</strong></p><p>A COMPOSITE KEY, which unambiguously identifies rows in a table, combines two or more columns. While individual uniqueness is not guaranteed, the combination of columns assures it. In order to uniquely identify records in a table, they are joined.</p><p>Compound keys and composite keys differ in that any component of a compound key may be a foreign key, whereas a component of a composite key may or may not be a foreign key.</p><p><strong>07.Surrogate Key</strong></p><p>THE SURROGATE KEYS A surrogate key is a created key that seeks to uniquely identify each record. This particular type of partial key in dbms is distinct since it is produced when there is no natural main key. They provide no context for the information in the table. In DBMS, a surrogate key is typically an integer. A value created just before a record is entered into a table is referred to as a surrogate key.</p><p>Surrogate keys in SQL are allowed when</p><ul><li>No property has the parameter of the primary key.</li><li>In the table when the primary key is too big or complicated.</li></ul><h3>Difference Between Primary key &amp; Foreign key</h3><ul><li>Primary Key never accept null values but A foreign key may accept multiple null values.</li><li>Primary key is a clustered index and data in the DBMS table are physically organized in the sequence of the clustered index but A foreign key cannot automatically create an index, clustered or non-clustered. However, you can manually create an index on the foreign key.</li><li>You can have the single Primary key in a table and You can have multiple foreign keys in a table.</li><li>Primary Key helps you to uniquely identify a record in the table and foreign key is a field in the table that is the primary key of another table.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a87b7ac6b648" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Evaluation Of DBMS]]></title>
            <link>https://medium.com/@thamidun998/evaluation-of-dbms-d3caac903236?source=rss-48dc2e2e4b5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3caac903236</guid>
            <category><![CDATA[evolution]]></category>
            <category><![CDATA[dbms]]></category>
            <dc:creator><![CDATA[THAMIDU NIPUN]]></dc:creator>
            <pubDate>Mon, 01 Aug 2022 15:22:53 GMT</pubDate>
            <atom:updated>2022-08-01T15:22:53.000Z</atom:updated>
            <content:encoded><![CDATA[<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 childish users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*QdtJ0XDHJG4A_am_pzltrQ.png" /></figure><h3><strong>Major components of DBMS</strong></h3><ul><li><strong>Data Manager</strong></li></ul><p>Data managers or database managers are used to manage all access to the database, since their purpose is to serve as an interface between the database, the user and the applications. Among its functions are to allow business users to store information, modify data and access the organization’s knowledge assets</p><ul><li><strong>Disk Manager</strong></li></ul><p>The disk space manager is the component of the system that takes care of the allocation and de-allocation of pages among the different files of a database. It also performs reads and writes of pages to and from disk. In Mini base, a database is implemented as a single UNIX file.</p><ul><li><strong>Data Dictionary</strong></li></ul><p>Data Dictionary can be defined as a DBMS component which stores the definition of characteristics of data and relationships. This “data about data” are labeled as metadata.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/383/1*BDo5B6843N7E-SIlZRoqHg.jpeg" /><figcaption>Data Dictionary</figcaption></figure><ul><li><strong>Query Processor</strong></li></ul><p>Query Processing is the activity performed in extracting data from the database.</p><p>In query processing, it takes various steps for fetching the data from the database.</p><ol><li>Parsing and translation.</li><li>Optimization.</li><li>Evaluation.</li></ol><ul><li><strong>File Manager</strong></li></ul><p>The File Manager is a system software responsible for the creation, deletion, modification of the files and managing their access, security and the resources used by them</p><ul><li><strong>Data Definitions Language Compiler</strong></li></ul><p>The data definitions language (DDL) computer converts the data definition statements into a set of tables. These tables contain the meta-data concerning the data base and are in a form that can be used by other components of the DBMS.</p><ul><li><strong>Telecommunication System</strong></li></ul><p>The telecommunication system is not part of the DBMS but the DBMS works closely with the system; the subject is covered extensively in (CYPS 78). The on line user may communicate with the data base directly or indirectly via a user interface (menu-driven or form based) and an application program.</p><ul><li><strong>Data Files</strong></li></ul><p>Data files contain the data portion of the data base</p><ul><li><strong>Access Aids</strong></li></ul><p>To improve the performance of a DBMS, a set of access aids in the form of indexes are usually provided in a data base system. Commands are provided to build and destroy additional temporary indexes</p><h3>Data Modelling</h3><ul><li>The process of creating a specific data model for a determined problem domain.</li><li>Database design focuses on how the database structure will be used to store and manage end-user.</li><li>It’s first step in the database design journey, serving as a bridge between real-world objects and the computer database.</li><li>Data modelling is an iterative, progressive process.</li><li>The final data model effectively is a “blueprint” with all the instructions to build a database that will meet all end-user requirements.</li></ul><h3>Data Models</h3><p>A data model is a relatively simple representation, usually graphical, of more complex real-world data structures.</p><p>Within the database environment, a data model represents data structures and their characteristics, relations, constraints, transformations, and other constructs with the purpose of supporting a specific problem domain.</p><p>The entire structure of a database can be described using a data model. A data model is a collection of conceptual tools for describing Data models can be classified into following types.</p><p>1.Object Based Logical Models.</p><p>2.Record Based Logical Models.</p><p>3.Physical Models.</p><p>Explanation is as below.</p><ol><li><strong>Object Based Logical Models:</strong></li></ol><p>These models can be used in describing the data at the logical and view levels. These models are having flexible structuring capabilities classified into following types.</p><p>a) The entity-relationship model.</p><p>b) The object-oriented model.</p><p>c) The semantic data model.</p><p>d) The functional data model</p><p><strong>2.Record Based Logical Models:</strong></p><p>These models can also be used in describing the data at the logical and view levels. These models can be used for both to specify the overall logical structure of the database and a higher-level description</p><ol><li>Relational model.</li><li>Network model.</li><li>Hierarchal model.</li></ol><p><strong>3. Physical Models:</strong></p><p>These models can be used in describing the data at the lowest level, i.e. physical level. These models can be classified into</p><ol><li>Unifying model</li><li>Frame memory model.</li></ol><h3>Data Model Basic Building Blocks</h3><ul><li><strong>Entity</strong></li></ul><p>A person, place, thing, concept, or event for which data can be stored.</p><p>•<strong>Attribute</strong></p><p>A characteristic of an entity or object. An attribute has a name and a data type.</p><ul><li><strong>Relationships</strong></li></ul><p>An association among entities.</p><h3>Types of Relationships</h3><ul><li><strong>One-to-many (1:M or 1..*)</strong></li></ul><p>relationship Associations among two or more entities that are used by data models. In a 1:M relationship, one entity instance is associated with many instances of the related entity.</p><ul><li><strong>Many-to-many (M:N or *..*) relationship</strong></li></ul><p>Association among two or more entities in which one occurrence of an entity is associated with many occurrences of a related entity and one occurrence of the related entity is associated with many occurrences of the first entity.</p><ul><li><strong>One-to-one (1:1 or 1..1) relationship</strong></li></ul><p>Associations among two or more entities that are used by data models. In a 1:1 relationship, one entity instance is associated with only one instance of the related entity.</p><h3>History of Database Systems</h3><p><strong><em>1950s and early 1960s:</em></strong></p><p>* Data processing using magnetic tapes for storage</p><p>Tapes provide only sequential access </p><p>* Punched cards for input</p><p><strong><em>Late 1960s and 1970s:</em></strong></p><p>* Hard disks allow direct access to data </p><p>* Network and hierarchical data models in widespread use</p><p>* <em>Ted Codd</em> defines the relational data model</p><p>Would win the ACM Turing Award for this work </p><p>IBM Research begins System R prototype </p><p>UC Berkeley begins Ingres prototype</p><p>* High-performance (for the era) transaction processing</p><p><strong><em>1980s:</em></strong></p><p>* Research relational prototypes evolve into commercial systems</p><p>SQL becomes industrial standard </p><p>* Parallel and distributed database systems </p><p>* Object-oriented database systems</p><p><strong><em>1990s: </em></strong></p><p>*Large decision support and data-mining applications</p><p>*Large multi-terabyte data warehouses </p><p>* Emergence of Web commerce</p><p><strong><em>2000s: </em></strong></p><p>* XML and XQuery standards </p><p>*Automated database administration</p><h3>Entity Relational Model (E-R Model)</h3><p>The E-R model can be used to describe the data involved in a real world enterprise in terms of objects and their relationships.</p><p><strong>Uses:</strong></p><ul><li>These models can be used in database design.</li><li>It provides useful concepts that allow us to move from an informal description to precise description.</li><li>This model was developed to facilitate database design by allowing the specification of overall logical structure of a database.</li><li>It is extremely useful in mapping the meanings and interactions of real world enterprises onto a conceptual schema.</li><li>These models can be used for the conceptual design of database applications.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3caac903236" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[File System VS DBMS]]></title>
            <link>https://medium.com/@thamidun998/file-system-vs-dbms-613be9110fcb?source=rss-48dc2e2e4b5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/613be9110fcb</guid>
            <category><![CDATA[filesystem]]></category>
            <category><![CDATA[dbms]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[dbms-vs-file-system]]></category>
            <dc:creator><![CDATA[THAMIDU NIPUN]]></dc:creator>
            <pubDate>Thu, 07 Jul 2022 06:27:51 GMT</pubDate>
            <atom:updated>2022-07-07T06:27:51.917Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/276/1*W1sb-fXYPKLT-cTSN7S_Rg.jpeg" /></figure><p><strong>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.</strong></p><h3><strong>File System</strong></h3><p><strong>In this article you will learn about File System Vs DBMS, the difference comparison and the advantage comparison between File System and DBMS Systems.</strong></p><ul><li><strong>A file system is a software application that organizes and maintains files on a storage device</strong>.</li></ul><p><strong>File System is an old method of storing data in set of files. It helps us to organize the data and allows easy retrieval .</strong></p><p><strong>Ex</strong>-<strong>NTFS(New Technology File System) / EXT(Extended File System)</strong></p><h3>Features of File System</h3><ul><li><strong>Space Management</strong></li></ul><p>File systems allot space on a device in variable block sizes, usually several physical units</p><ul><li><strong>Hierarchical Data Management</strong></li></ul><p>Directories in file systems allow users to organize files into different groupings. This can be accomplished by linking the file name to a table of contents index or an in ode in a Unix-like file system</p><ul><li><strong>Metadata Management</strong></li></ul><p>Some extra information pertaining to each file is stored in a file system. A file system keeps all of the metadata connected with a file distinct from the contents of the file, such as the file name, the length of the contents of a file, and the file’s location in the folder hierarchy.</p><ul><li><strong>Integrity Management</strong></li></ul><p>One of a file system’s most important responsibilities is to ensure that the file system structures in secondary storage stay consistent regardless of how programs access the file system.</p><ul><li><strong>Restricting access to Files</strong></li></ul><h3><strong>Advantages of File System</strong></h3><p>Compactness</p><p>Backup</p><p>Data Retrieval</p><p>Editing</p><p>File Sharing</p><h3><strong>Disadvantage of File System</strong></h3><ul><li>Data Redundancy.</li><li>Limited Data Sharing.</li><li>Data Inconsistency.</li><li>Accessing Data is Difficult.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FGzMlBo1cpjhUSs4" /><figcaption>File System</figcaption></figure><h3><strong>DBMS</strong></h3><ul><li><strong>This is new-age software that maintains the data stored in a tabular format with various different entities having logical relationships amongst one another.</strong></li><li><strong>DBMS System is the new method of storing data in a tabular format.</strong></li><li><strong>The software gives the programmer easy methods to do various operations like creation, definition, updating, deletion, access modification rights, etc.</strong></li><li><strong>Ex-Oracle/MySQL/MS SQL Server</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DDPeNefe9knwrG-n" /><figcaption>DBMS</figcaption></figure><h3><strong>Features of DBMS</strong></h3><ul><li>Minimum Duplication and Redundancy.</li><li>Saves storage space and cost.</li><li>Anyone can work on it.</li><li>Multi user access.</li><li>Provides High Level Security.</li></ul><h3>Advantages of DBMS</h3><ul><li>Better Data Transfer.</li><li>Better Data Security.</li><li>Better Decision Making.</li><li>Simple.</li><li>Faster data access.</li><li>increased end user productivity.</li></ul><h3>Types of DBMS</h3><ul><li><strong>Hierarchical database systems</strong></li></ul><p>Hierarchical database model resembles a tree structure, similar to a folder architecture in your computer system. The relationships between records are pre-defined in a one to one manner, between ‘parent and child’ nodes.</p><ul><li><strong>Network database systems</strong></li></ul><p>Network database models also have a hierarchical structure. However, instead of using a single-parent tree hierarchy, this model supports many to many relationships, as child tables can have more than one parent.</p><ul><li><strong>Object-oriented database systems</strong></li></ul><p>An object-oriented database is a database that subscribes to a model with information represented by objects. Object-oriented databases are a niche offering in the relational database management system (RDBMS) field and are not as successful or well-known as mainstream database engines.</p><ul><li><strong>No SQL or non relational databases</strong></li></ul><p>NoSQL databases take a variety of forms and allow you to store and manipulate large amounts of unstructured and semi-structured data. Examples include key-value stores, document stores and graph databases</p><h3>Difference Between File System &amp; DBMS</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*NCYzNuwTj1zwV_ZeRcEkAQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=613be9110fcb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>