<?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 chanthirakumar chayanthithan on Medium]]></title>
        <description><![CDATA[Stories by chanthirakumar chayanthithan on Medium]]></description>
        <link>https://medium.com/@chayankumar?source=rss-3705a01a27b5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8xNKjNWM75W5-I9d84WlRg.png</url>
            <title>Stories by chanthirakumar chayanthithan on Medium</title>
            <link>https://medium.com/@chayankumar?source=rss-3705a01a27b5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 10:59:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chayankumar/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[Indexing]]></title>
            <link>https://medium.com/@chayankumar/indexing-7b6f44e006ad?source=rss-3705a01a27b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b6f44e006ad</guid>
            <category><![CDATA[spring-boot-indexing]]></category>
            <category><![CDATA[hibernate]]></category>
            <category><![CDATA[indexing]]></category>
            <category><![CDATA[database-indexing]]></category>
            <dc:creator><![CDATA[chanthirakumar chayanthithan]]></dc:creator>
            <pubDate>Mon, 24 Mar 2025 06:28:44 GMT</pubDate>
            <atom:updated>2025-03-24T06:28:44.448Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RXUI9vuOz0RHbfuFB5FmfQ.png" /></figure><p><strong>Indexing</strong></p><p><strong>Indexing</strong> refers to optimizing database queries by creating <strong>indexes</strong> on specific columns to speed up searches.</p><p><strong>Using JPA Indexing -</strong> If your application only deals with <strong>structured data</strong> (e.g., IDs, numbers, relationships), JPA indexing is <strong>sufficient</strong></p><p>The steps that you have to</p><p><strong>Step1 -</strong> <strong>Define Indexes in JPA Entity</strong></p><p>JPA provides the @Index annotation inside the @Table annotation to specify indexes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*a3qqyFN-d5DTjNLKgVahGQ.png" /></figure><pre>@Data<br>@Entity<br>@XmlRootElement<br>@Table(<br>       name = &quot;user&quot;,<br>       indexes = {<br>             @Index(name = &quot;idx_user_id&quot;,columnList = &quot;user_id&quot;),<br>             @Index(name = &quot;idx_user_email&quot;,columnList = &quot;user_email&quot;),<br>             @Index(name = &quot;idx_user_email_v2fa&quot;,columnList = &quot;user_email,v2fa&quot;),<br><br>       }<br>)<br>public class User implements Serializable {<br>    private static final long serialVersionUID = 1L;<br>    @Id<br>    @GeneratedValue(strategy = GenerationType.IDENTITY)<br>    @Basic(optional = false)<br>    @Column(name = &quot;user_id&quot;)<br>    private Long userId;<br>    @Column(name = &quot;first_name&quot;)<br>    private String firstName;<br>    @Column(name = &quot;user_email&quot;)<br>    private String userEmail;<br>    @Column(name = &quot;user_password&quot;)<br>    private String userPassword;<br>    @Column(name = &quot;is_approved&quot;)<br>    private Boolean isApproved;<br>    @Column(name = &quot;is_active&quot;)<br>    private Boolean isActive;<br>    @Column(name = &quot;last_name&quot;)<br>    private String lastName;<br>    @Column(name = &quot;is_verify&quot;)<br>    private Boolean isVerify;<br>    @Column(name = &quot;company_name&quot;)<br>    private String companyName;<br>    @Column(name = &quot;nature_purpose&quot;)<br>    private String naturePurpose;<br>    @Column(name = &quot;v2fa&quot;)<br>    private String v2fa;<br>    <br>}</pre><p><strong>Step2 — Manually add indexes in Flyway migration</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/346/1*zfFlBJx4ED3A06HUKGS1wQ.png" /></figure><p>V6__Add_Index_To_User.sql</p><pre>CREATE INDEX idx_user_id ON user (user_id);<br>CREATE INDEX idx_user_email ON user (user_email);<br>CREATE INDEX idx_user_email_v2fa ON user (user_email,v2fa);</pre><p><strong>Step 3 — Configure Flyway in Spring Boot</strong></p><pre>spring.flyway.enabled = false<br>spring.flyway.locations = classpath:db/migration<br>spring.flyway.baseline-on-migrate = true</pre><p><strong>Step4 - Verify indexes in database</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/371/1*s8O8LTgZvk3MXvXYHuE6Ag.png" /></figure><p><strong>Step5 — Test performance improvement</strong></p><pre>EXPLAIN ANALYZE SELECT * FROM users WHERE user_id= &#39;6246839njf&#39;;</pre><p><strong>Using JPA Indexing + Elasticsearch Together — </strong>If your application requires <strong>fast searching, filtering, and full-text search</strong>, <strong>adding Elasticsearch</strong> can enhance performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*1X6O2uGKrjWAk6Z02Jz9Gg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8zQAHxi7K0Urh3Nd4rFjDw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b6f44e006ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is virtualization?]]></title>
            <link>https://medium.com/@chayankumar/what-is-virtualization-678f071e9a10?source=rss-3705a01a27b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/678f071e9a10</guid>
            <category><![CDATA[datastrucutre]]></category>
            <category><![CDATA[virtualizati]]></category>
            <dc:creator><![CDATA[chanthirakumar chayanthithan]]></dc:creator>
            <pubDate>Fri, 13 Oct 2023 08:44:51 GMT</pubDate>
            <atom:updated>2023-10-13T09:09:10.529Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*6FRQrLHGsp6SuhS_GDy7Vw.png" /></figure><p>Virtualization is a process that allows a computer to share its hardware resources with multiple digitally separated environments. Each virtualized environment runs within its allocated resources, such as memory, processing power, and storage.</p><p>Virtualization uses specialized software, called a hypervisor, to create several cloud instances or virtual machines on one physical computer.</p><h4>What are the different types of virtualization?</h4><p><strong>Server virtualization: </strong>Server virtualization is a process that partitions a physical server into multiple virtual servers. It is an efficient and cost-effective way to use server resources and deploy IT services in an organization. Without server virtualization, physical servers use only a small amount of their processing capacities, which leave devices idle.</p><p><strong>Storage virtualization:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*049_vuwI3-Yi_Mo26F7P9Q.png" /></figure><p>Storage virtualization combines the functions of physical storage devices such as network attached storage (NAS) and storage area network (SAN). You can pool the storage hardware in your data center, even if it is from different vendors or of different types. Storage virtualization uses all your physical data storage and creates a large unit of virtual storage that you can assign and control by using management software. IT administrators can streamline storage activities, such as archiving, backup, and recovery, because they can combine multiple network storage devices virtually into a single storage device.</p><p><strong>Network virtualization:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*dpj5VarDRAahYlMzJMou4g.jpeg" /></figure><p>Any computer network has hardware elements such as switches, routers, and firewalls. An organization with offices in multiple geographic locations can have several different network technologies working together to create its enterprise network. Network virtualization is a process that combines all of these network resources to centralize administrative tasks. Administrators can adjust and control these elements virtually without touching the physical components, which greatly simplifies network management.</p><p>The following are two approaches to network virtualization.</p><p><strong>Software-defined networking: </strong>Software-defined networking (SDN) controls traffic routing by taking over routing management from data routing in the physical environment. For example, you can program your system to prioritize your video call traffic over application traffic to ensure consistent call quality in all online meetings.</p><p><strong>Network function virtualization: </strong>Network function virtualization technology combines the functions of network appliances, such as firewalls, load balancers, and traffic analyzers that work together, to improve network performance.</p><p><strong>Data virtualization:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*3Fz4Gxz-0Th-x_TIa2XwEw.png" /></figure><p>Modern organizations collect data from several sources and store it in different formats. They might also store data in different places, such as in a cloud infrastructure and an on-premises data center. Data virtualization creates a software layer between this data and the applications that need it. Data virtualization tools process an application’s data request and return results in a suitable format. Thus, organizations use data virtualization solutions to increase flexibility for data integration and support cross-functional data analysis.</p><p><strong>Application virtualization:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*UIrxHg0nZFPUeWYh0VG8nw.jpeg" /></figure><p>Application virtualization pulls out the functions of applications to run on operating systems other than the operating systems for which they were designed. For example, users can run a Microsoft Windows application on a Linux machine without changing the machine configuration. To achieve application virtualization, follow these practices:</p><ul><li>Application streaming — Users stream the application from a remote server, so it runs only on the end user’s device when needed.</li><li>Server-based application virtualization — Users can access the remote application from their browser or client interface without installing it.</li><li>Local application virtualization — The application code is shipped with its own environment to run on all operating systems without changes.</li></ul><p><strong>Desktop virtualization:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*ohHVZFvBUzb-K19feUadjQ.jpeg" /></figure><p>Most organizations have nontechnical staff that use desktop operating systems to run common business applications. For instance, you might have the following staff:</p><ul><li>A customer service team that requires a desktop computer with Windows 10 and customer-relationship management software</li><li>A marketing team that requires Windows Vista for sales applications</li></ul><p>You can use desktop virtualization to run these different desktop operating systems on virtual machines, which your teams can access remotely. This type of virtualization makes desktop management efficient and secure, saving money on desktop hardware. The following are types of desktop virtualization.</p><p><strong><em>1.Virtual desktop infrastructure</em></strong></p><p>Virtual desktop infrastructure runs virtual desktops on a remote server. Your users can access them by using client devices.</p><p><strong><em>2.Local desktop virtualization</em></strong></p><p>In local desktop virtualization, you run the hypervisor on a local computer and create a virtual computer with a different operating system. You can switch between your local and virtual environment in the same way you can switch between applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=678f071e9a10" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Design Patterns]]></title>
            <link>https://medium.com/@chayankumar/design-patterns-155b78ce6f7e?source=rss-3705a01a27b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/155b78ce6f7e</guid>
            <category><![CDATA[patterns-with-uml-diagram]]></category>
            <category><![CDATA[creational-design-pattern]]></category>
            <category><![CDATA[behavioral-patterns]]></category>
            <category><![CDATA[design-patterns]]></category>
            <category><![CDATA[structural-patterns]]></category>
            <dc:creator><![CDATA[chanthirakumar chayanthithan]]></dc:creator>
            <pubDate>Wed, 30 Aug 2023 10:35:02 GMT</pubDate>
            <atom:updated>2023-08-30T11:48:54.284Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="design patterns" src="https://cdn-images-1.medium.com/max/720/1*iGnDP3sJBudLXohCNuhXlA.png" /></figure><p><strong>Design pattern</strong> is a general reusable solution to commonly occurring problem in software design within a given context.Design patterns are formalized best practices that the programmer can use to solve common problems when designing an application or system</p><h4><strong>Why do we need to know design patterns?</strong></h4><ul><li>Design patterns are a toolkit of tried and tested solutions to common problems in software design.</li><li>Design Patterns provide easy-to-recognize and use OOP solutions to common problems.</li><li>Design patterns define a common language that you and your teammates can use to communicate more efficiently.</li><li>Design patterns can speed up the development process.</li></ul><h4>Classification of patterns</h4><ol><li>Creational</li></ol><p>In software engineering, <strong>creational design patterns</strong> are design patterns that deal with object creation mechanisms, trying to create objects in a manner suitable to the situation. The basic form of object creation could result in design problems or in added complexity to the design. Creational design patterns solve this problem by somehow controlling this object creation.<em>.</em></p><p><strong>Five </strong>well-known design patterns that are parts of creational patterns are the</p><p>a. Abstract factory</p><p>which provides an interface for creating related or dependent objects without specifying the objects’ concrete classes</p><figure><img alt="uml diagram for abstract factory patterns" src="https://cdn-images-1.medium.com/max/317/1*hqVAdH0IkBBHLD2S6cttJw.png" /><figcaption>Abstract factory-UML class diagram</figcaption></figure><p>The pattern describes how to solve such problems:</p><ul><li>Encapsulate object creation in a separate (factory) object by defining and implementing an interface for creating objects.</li><li>Delegate object creation to a factory object instead of creating objects directly.</li></ul><p><a href="https://docs.google.com/document/d/1PzqTWR-QTVRW7LLT0Hp5iu9dLj3UTUq9uUxePAstPgA/edit?usp=sharing">Here’s a simple example of the Abstract Factory design pattern in Java:</a></p><p>b. Builder</p><p>The <strong>builder pattern</strong> is a design pattern designed to provide a flexible solution to various object creation problems in object-oriented programming. The intent of the builder design pattern is to separate the construction of a complex object from its representation. It is one of the Gang of Four design patterns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*KPYmtyK8BT0Bt4NY2crwNQ.png" /><figcaption>builder ulm class diagram</figcaption></figure><p><a href="https://docs.google.com/document/d/1WmTFPeq9O8bF74-_RgS7zzdblus-MIGGGnLNYweiAHk/edit?usp=sharing">Here’s a simple example of the Abstract Factory design pattern in Java:</a></p><p>c. Factory method</p><p>that uses factory methods to deal with the problem of creating objects without having to specify the exact class of the object that will be created. This is done by creating objects by calling a factory method — either specified in an interface and implemented by child classes, or implemented in a base class and optionally overridden by derived classes — rather than by calling a constructor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*XY98RLSDMidfTkHeLeTm0w.jpeg" /><figcaption>factor method uml class diagram</figcaption></figure><p><a href="https://docs.google.com/document/d/1dzid5aXOvgGuggt21-ABda6OjRzpKsgWW7PMMSp_t4s/edit?usp=sharing">Here’s a simple example of the factory method design pattern in Java:</a></p><p>d. Prototype</p><p>which specifies the kind of object to create using a prototypical instance, and creates new objects by cloning this prototype.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*idNgxquyBJYYJr7ACtNDgQ.png" /><figcaption>prototype uml class diagram</figcaption></figure><p><a href="https://docs.google.com/document/d/1J0IMSEN5t7zO6W4qgv_-ATOnhNpawN37LAQ5ZLhONDA/edit?usp=sharing">Here’s a simple example of the prototype design pattern in Java:</a></p><p>e. Singleton</p><p>which ensures that a class only has one instance, and provides a global point of access to it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/321/1*ra3B9hHFu-GH-9-PLr1IhA.jpeg" /><figcaption>UML class diagram for singleton</figcaption></figure><p><a href="https://docs.google.com/document/d/1aLlhXVWT2qWmcCaHo2re37OfZMBb_Vsjk6wNS2EohnM/edit?usp=sharing">Here’s a simple example of the singleton design pattern in Java:</a></p><p>2. Structural</p><p><em>These patterns define how objects relate to each other. They are easy to design by identifying a simple way to realize relationships between entities.</em></p><p>a.Adapter</p><p>It is allows classes with incompatible interfaces to work together by wrapping its own interface around that of an already existing class.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*ymLLkZ0WBAHkYRUoRdjJwQ.jpeg" /><figcaption>uml class diagram for the adapter design pattern</figcaption></figure><p><a href="https://docs.google.com/document/d/1V8XH2jYsXz4_qNrOK5WQyH08N3QCPaoWOdqB2q6XaRo/edit?usp=sharing">Here’s a simple example of the adapter design pattern in Java:</a></p><p>b.Bridge</p><p>decouples an abstraction from its implementation so that the two can vary independently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*jWADDUn3MkNRR-J2QCd_0Q.png" /><figcaption>uml class diagram for the bridge design pattern</figcaption></figure><p><a href="https://docs.google.com/document/d/1V8XH2jYsXz4_qNrOK5WQyH08N3QCPaoWOdqB2q6XaRo/edit?usp=sharing">Here’s a simple example of the bridge design pattern in Java:</a></p><p>c.Composite</p><p>Composite composes zero-or-more similar objects so that they can be manipulated as one object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*4Y_6s75Ts9HlwbBy8oJtHw.png" /><figcaption>uml class diagram for the composite design pattern</figcaption></figure><p><a href="https://docs.google.com/document/d/1V8XH2jYsXz4_qNrOK5WQyH08N3QCPaoWOdqB2q6XaRo/edit?usp=sharing">Here’s a simple example of the composite design pattern in Java:</a></p><p>d.Decorator</p><p>dynamically adds/overrides behaviour in an existing method of an object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*yxQfGkCSj88nZPJqO9Hn8Q.png" /><figcaption>uml class diagram for the decorator design pattern</figcaption></figure><p><a href="https://docs.google.com/document/d/1V8XH2jYsXz4_qNrOK5WQyH08N3QCPaoWOdqB2q6XaRo/edit?usp=sharing">Here’s a simple example of the decorate design pattern in Java:</a></p><p>e.Facade</p><p>provides a simplified interface to a large body of code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/1*EZaVusOg4gIIbA1_1856Bg.png" /><figcaption>uml class diagram for the facade design pattern</figcaption></figure><p><a href="https://docs.google.com/document/d/1V8XH2jYsXz4_qNrOK5WQyH08N3QCPaoWOdqB2q6XaRo/edit?usp=sharing">Here’s a simple example of the facade design pattern in Java:</a></p><p>f.Flyweight</p><p>reduces the cost of creating and manipulating a large number of similar objects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/281/1*wf3DsWIaYzcK8vjc0w-K3w.png" /><figcaption>uml class diagram for the flyweight design pattern</figcaption></figure><p><a href="https://docs.google.com/document/d/1V8XH2jYsXz4_qNrOK5WQyH08N3QCPaoWOdqB2q6XaRo/edit?usp=sharing">Here’s a simple example of the flyweight design pattern in Java:</a></p><p>g.Proxy</p><p>provides a placeholder for another object to control access, reduce cost, and reduce complexity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/439/1*XbDtVmbHn21vNfp4Hsjatw.png" /><figcaption>uml class diagram for the proxy design pattern</figcaption></figure><p><a href="https://docs.google.com/document/d/1V8XH2jYsXz4_qNrOK5WQyH08N3QCPaoWOdqB2q6XaRo/edit?usp=sharing">Here’s a simple example of the proxy design pattern in Java:</a></p><p>3. Behavioral</p><p><em>These patterns are designed depending on how one class communicates with others. They focus on the interaction between cooperated objects. </em><strong><em>In simple words, Behavioral Design Patterns are responsible for communication between objects.</em></strong></p><p>a.Chain of responsibility</p><p>The Chain of Responsibility design pattern is one of the twenty-three well-known <em>GoF design patterns</em> that describe common solutions to recurring design problems when designing flexible and reusable object-oriented software, that is, objects that are easier to implement, change, test, and reuse.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*YPUkDyaaV3eC2TXrKbnf4g.jpeg" /><figcaption>UML class and sequence diagram for the Chain of Responsibility</figcaption></figure><p><a href="https://docs.google.com/document/d/16fLNp-gFB48grjMd-U4t-vZMQY-EFGDFJjF26w2Qdp0/edit?usp=sharing">Here’s a simple example of the chain for responsibility design pattern in Java:</a></p><p>b.Command</p><p>The command design pattern is one of the twenty-three well-known <em>GoF design patterns</em> that describe how to solve recurring design problems to design flexible and reusable object-oriented software, that is, objects that are easier to implement, change, test, and reuse.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*kpnUTueD2kBIvT2Ub6hkHg.jpeg" /><figcaption>UML class and sequence diagram for the command</figcaption></figure><p><a href="https://docs.google.com/document/d/16fLNp-gFB48grjMd-U4t-vZMQY-EFGDFJjF26w2Qdp0/edit?usp=sharing">Here’s a simple example of the command design pattern in Java:</a></p><p>c.Interpreter</p><p>The Interpreter design pattern is one of the twenty-three well-known <em>GoF design patterns</em> that describe how to solve recurring design problems to design flexible and reusable object-oriented software, that is, objects that are easier to implement, change, test, and reuse.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*ZN_fqTM7pE6F3uesjs2GFw.jpeg" /><figcaption>UML class and sequence diagram for the interpreter</figcaption></figure><p><a href="https://docs.google.com/document/d/16fLNp-gFB48grjMd-U4t-vZMQY-EFGDFJjF26w2Qdp0/edit?usp=sharing">Here’s a simple example of the interpreter design pattern in Java:</a></p><p>d.Iterator</p><p>The essence of the Iterator Pattern is to “Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*cUknObkj0v4pbJOrGjpQfA.jpeg" /><figcaption>UML class and sequence diagram for the iterator</figcaption></figure><p><a href="https://docs.google.com/document/d/16fLNp-gFB48grjMd-U4t-vZMQY-EFGDFJjF26w2Qdp0/edit?usp=sharing">Here’s a simple example of the iterator design pattern in Java:</a></p><p>e.Mediator</p><p>The essence of the mediator pattern is to “define an object that encapsulates how a set of objects interact”. It promotes loose coupling by keeping objects from referring to each other explicitly, and it allows their interaction to be varied independently. Client classes can use the mediator to send messages to other clients, and can receive messages from other clients via an event on the mediator class.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*vPzAsL9RN1cgc8qFbrk15w.jpeg" /><figcaption>UML class and sequence diagram for the mediator</figcaption></figure><p><a href="https://docs.google.com/document/d/16fLNp-gFB48grjMd-U4t-vZMQY-EFGDFJjF26w2Qdp0/edit?usp=sharing">Here’s a simple example of the mediator design pattern in Java:</a></p><p>f.Memento</p><p>The memento pattern is a software design pattern that exposes the private internal state of an object. One example of how this can be used is to restore an object to its previous state (undo via rollback), another is versioning, another is custom serialization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*SjSQuWECbDmXpjbtb3KHkA.jpeg" /><figcaption>UML class and sequence diagram for the memento</figcaption></figure><p><a href="https://docs.google.com/document/d/16fLNp-gFB48grjMd-U4t-vZMQY-EFGDFJjF26w2Qdp0/edit?usp=sharing">Here’s a simple example of the memento design pattern in Java:</a></p><p>g.Observer</p><p>Observer pattern is used when there is one-to-many relationship between objects such as if one object is modified, its depenedent objects are to be notified automatically. Observer pattern falls under behavioral pattern category.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*TzlZxnlkMiXc9Kul13T0pQ.jpeg" /><figcaption>UML class and sequence diagram for the observer</figcaption></figure><p><a href="https://docs.google.com/document/d/16fLNp-gFB48grjMd-U4t-vZMQY-EFGDFJjF26w2Qdp0/edit?usp=sharing">Here’s a simple example of the observer design pattern in Java:</a></p><p>h.State</p><p>A state design pattern is used when an Object changes its behavior based on its internal state. If we have to change the behavior of an object based on its state, we can have a state variable in the Object and use the if-else condition block to perform different actions based on the state. The state pattern is used to provide a systematic and lose-coupled way to achieve this through Context and State implementations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*cfvKONMLaFvHU_lD8IGIng.jpeg" /><figcaption>UML class and sequence diagram for the state</figcaption></figure><p><a href="https://docs.google.com/document/d/16fLNp-gFB48grjMd-U4t-vZMQY-EFGDFJjF26w2Qdp0/edit?usp=sharing">Here’s a simple example of the state design pattern in Java:</a></p><p>i.Strategy</p><p>In Strategy pattern, we create objects which represent various strategies and a context object whose behavior varies as per its strategy object. The strategy object changes the executing algorithm of the context object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*aihm2FCT_ZToAekb9noM7A.jpeg" /><figcaption>UML class and sequence diagram for the strategy</figcaption></figure><p><a href="https://docs.google.com/document/d/16fLNp-gFB48grjMd-U4t-vZMQY-EFGDFJjF26w2Qdp0/edit?usp=sharing">Here’s a simple example of the strategy design pattern in Java:</a></p><p>j.Template method</p><p>In Template pattern, an abstract class exposes defined way(s)/template(s) to execute its methods. Its subclasses can override the method implementation as per need but the invocation is to be in the same way as defined by an abstract class. This pattern comes under behavior pattern category.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*fTVwKZ29HM04ueL1MtsjfQ.jpeg" /><figcaption>UML class and sequence diagram for the template method</figcaption></figure><p><a href="https://docs.google.com/document/d/16fLNp-gFB48grjMd-U4t-vZMQY-EFGDFJjF26w2Qdp0/edit?usp=sharing">Here’s a simple example of the template method design pattern in Java:</a></p><p>k.Visitor</p><p>In Visitor pattern, we use a visitor class which changes the executing algorithm of an element class. By this way, execution algorithm of element can vary as and when visitor varies. This pattern comes under behavior pattern category. As per the pattern, element object has to accept the visitor object so that visitor object handles the operation on the element object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*fH-jjRs38L9AMJl44K9X1Q.jpeg" /><figcaption>UML class and sequence diagram for the visitor</figcaption></figure><p><a href="https://docs.google.com/document/d/16fLNp-gFB48grjMd-U4t-vZMQY-EFGDFJjF26w2Qdp0/edit?usp=sharing">Here’s a simple example of the visitor design pattern in Java:</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=155b78ce6f7e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS]]></title>
            <link>https://medium.com/@chayankumar/aws-f785fb9878a9?source=rss-3705a01a27b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/f785fb9878a9</guid>
            <dc:creator><![CDATA[chanthirakumar chayanthithan]]></dc:creator>
            <pubDate>Fri, 16 Sep 2022 18:31:39 GMT</pubDate>
            <atom:updated>2022-09-17T05:47:27.066Z</atom:updated>
            <content:encoded><![CDATA[<p>(<strong>Amazon web services</strong>)</p><h3>List of Cloud Service Providers</h3><p>There are many Cloud Service providers in the market:</p><p><strong>Amazon Web Service (AWS), ServerSpace, Microsoft Azure, Google Cloud Platform,IBM Cloud Services,Adobe Creative Cloud</strong></p><p><strong><em>Amazon web service</em></strong><em> is an online platform that provides scalable and cost-effective </em><a href="https://www.simplilearn.com/tutorials/cloud-computing-tutorial/what-is-cloud-computing"><em>cloud computing solutions</em></a><em>.</em></p><p><em>AWS is a comprehensive, easy to use computing platform offered Amazon. The platform is developed with a combination of infrastructure as a service (IaaS), platform as a service (PaaS) and packaged software as a service (SaaS) offerings.</em></p><p><em>AWS services were </em><strong><em>launched</em></strong><em> in 2002 and in the year 2022 aws comprise over </em><strong><em>200+</em></strong><em> product and services</em></p><blockquote><strong>important AWS services</strong></blockquote><p>AWS offers a wide rahe of different business purpose global cloud based products. the products include <strong>storage, databases, analytics, networking, mobile, devolopment tools, enterprise applications</strong></p><blockquote><strong>Applications of AWS services</strong></blockquote><p>website hosting, application hosting<strong>, </strong>media sharing, mobile and social Application, content delivery and media distribution, storage, backup, disaster recovery, devolopment and test environments, academic computing, search engines, social networking</p><blockquote><strong>companies using AWS</strong></blockquote><p><strong>Instagram, Netflix,Twitch,Linkedin,Facebook, Zoopla, Smugmug, Printerest, Dropbox</strong></p><h4>Advantages of AWS</h4><p>AWS allows organizations to use the already familiar programming models, operating systems, databases, and architectures.</p><p>It is a cost-effective service that allows you to pay only for what you use, without any up-front or long-term commitments.</p><p>You will not require to spend money on running and maintaining data centers.</p><p>Offers fast deployments</p><p>You can easily add or remove capacity.</p><p>You are allowed cloud access quickly with limitless capacity.</p><p>Total Cost of Ownership is very low compared to any private/dedicated servers.</p><p>Offers Centralized Billing and management</p><h4>Disadvantage of AWS</h4><p>If you need more immediate or intensive assistance, you’ll have to opt for paid support packages.</p><p>Amazon Web Services may have some common cloud computing issues when you move to a cloud. For example, downtime, limited control, and backup protection.</p><p>AWS sets default limits on resources which differ from region to region. These resources consist of images, volumes, and snapshots.</p><p>Hardware-level changes happen to your application which may not offer the best performance and usage of your applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f785fb9878a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Keys in DBMS (database management system)]]></title>
            <link>https://medium.com/@chayankumar/keys-in-dbms-database-management-system-649dac4ffc06?source=rss-3705a01a27b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/649dac4ffc06</guid>
            <category><![CDATA[database-management-sys]]></category>
            <dc:creator><![CDATA[chanthirakumar chayanthithan]]></dc:creator>
            <pubDate>Fri, 02 Sep 2022 15:55:51 GMT</pubDate>
            <atom:updated>2022-09-02T16:54:41.403Z</atom:updated>
            <content:encoded><![CDATA[<p>In the relational model, keys are important because they are used to ensure that each row in a table is uniquely identifiable. They are also used to establish relationships among tables and to ensure the integrity of the data . A key consists of one or more attributes that determine other attributes. For example, an<strong> invoice number</strong> identifies all of the invoice attributes, such as the <strong>invoice date</strong> and the <strong>customer name</strong>.</p><p><strong><em>Why we need DBMS keys?</em></strong></p><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><p>Thus, we need a way in which one can identify all of these records uniquely and separately, i.e., without any duplicates. This hassle is removed with the help of keys.</p><p>For example, let us consider a database of all the students who are studying in a college. What attribute of all the students, according to you, will identify each of these people uniquely? We can refer to these <strong>students</strong> by their <strong><em>names, departments, sections, and year</em></strong>. Similarly, we can also mention only the <strong>university roll number</strong> and fetch all the other details based on that roll number.</p><p>The keys in DBMS can be a combination of multiple attributes (or columns), or they can be just one single attribute. The primary motive of the keys is to provide every record with a unique identity of its own.</p><h4><strong>Types of Keys in DBMS</strong></h4><p><strong>Super Key </strong>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><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..<a href="https://static.javatpoint.com/dbms/images/dbms-keys5.png">click here to picture explain</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*dYjg5fDqnPtIsUBapjNucA.jpeg" /><figcaption><strong>super key figure01</strong></figcaption></figure><p><strong>Primary Key </strong>primarykey in DBMS is a column or group of columns in a table that uniquely identify every row in that table. The Primary Key can’t be a duplicate meaning the same value can’t appear more than once in the table. <br>A table cannot have more than one primary key. <a href="https://static.javatpoint.com/dbms/images/dbms-keys3.png">click here to picture explain</a></p><p><strong>Rules for defining Primary key:</strong><br>Two rows can’t have the same primary key value ,It must for every row to have a primary key value , The primary key field cannot be null.,The value in a primary key column can never be modified or updated if any foreign key refers to that primary key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*dn_kG59cR9DFS-uBwArNDw.jpeg" /><figcaption>figure02</figcaption></figure><p><strong>Candidate Key </strong><br>Candidate in SQL is a set of attributes that uniquely identify tuples in a table. Candidate Key is a super key with no repeated attributes. The Primary key should be selected from the candidate keys. Every table must have at least a single candidate key. A table can have multiple candidate keys but only a single primary key. <a href="https://www.guru99.com/images/1/100518_0517_DBMSKeysPri1.png">click here to more picture explain</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V8CGxx98w2tThawcEtg-Dg.jpeg" /><figcaption>figure03</figcaption></figure><p><strong>Foreign Key</strong><br>Foreignkey 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. <a href="https://static.javatpoint.com/dbms/images/dbms-keys6.png">click here to more picture explain</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nAESWRcZ7B4iLdmG71dHxw.png" /></figure><p><strong>Alternate Key</strong><br>Alternate Keys is a column or group of columns in a table that uniquely identify every row in that table. A table can have multiple choices for a primary key but only one can be set as the primary key. All the keys which are not primary key are called an Alternate Key.<a href="https://static.javatpoint.com/dbms/images/dbms-keys7.png">click here to get more picture explain</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*GG4KMCTjBts7QBMgHa9K5Q.jpeg" /></figure><p><strong>Composite Key</strong><br>Composite Key is a combination of two or more columns that uniquely identify rows in a table. The combination of columns guarantees uniqueness, though individually uniqueness is not guaranteed. <br>Hence, they are combined to uniquely identify records in a table.<a href="https://static.javatpoint.com/dbms/images/dbms-keys8.png">click here to picture explain</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*3FR1kkv8G76a1n-loZV0xA.jpeg" /></figure><p><strong>Compound key</strong></p><p>A Compound Key is a primary key that does not consist of a single column but two or more columns that allow us to distinctly identify a particular row. For a compound key, we do not have any column that is unique in itself; therefore we need to combine two or more columns to make them unique.</p><p>Let us look at an example of a table consisting of product and product details. In this table, we can see that a product can be ordered by more than one customer, and more than one product can be present in order. Therefore we need to combine both the OrderId and the ProductId to create a unique way of identifying the row.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*JZNDaSBNDJLtHreirygRUQ.png" /><figcaption>figure07</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=649dac4ffc06" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Evaluation of DBMS]]></title>
            <link>https://medium.com/@chayankumar/evaluation-of-dbms-e68ed3514d51?source=rss-3705a01a27b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/e68ed3514d51</guid>
            <dc:creator><![CDATA[chanthirakumar chayanthithan]]></dc:creator>
            <pubDate>Thu, 21 Jul 2022 07:29:07 GMT</pubDate>
            <atom:updated>2022-07-21T07:57:43.942Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>Evaluating DBMS</strong></h4><p>There are various database management systems available in the market. Each type has its features and can be used for varied purposes. The large number of DBMS makes it difficult to choose the DBMS that should be implemented to solve our problem. To choose the most suitable DBMS, we need to evaluate from various systems. We perform a structured approach to evaluate the database systems.</p><h4>Evaluation Methodology</h4><p>This step involves two analyses; both these analyses should be performed to determine the most suited DBMS.</p><p>These two analyses are:</p><ol><li><strong>Feature analysis:</strong> In this phase, we determine whether the DBMS provides all the features required for the operations that are to be performed on the data and shortlist the DBMS.</li><li><strong>Performance Analysis:</strong> In this phase, we analyse only those shortlisted DBMS, evaluate the systems’ efficiency, and choose one with maximum efficiency.</li></ol><h4>Feature Analysis</h4><p>This analysis serves two purposes:</p><ul><li>It directly eliminates the DBMS that is not competent to fulfil all the needs of the user.</li><li>We can rank the remaining systems based on the features provided by them.</li></ul><h4>Performance Analysis</h4><p>The purpose of this analysis is:</p><ul><li>To analyse the behaviour of the database management system in the user system.</li><li>To gather the data on the performance of the DBMS and rank them accordingly.</li></ul><h3>Analytical Modelling Technique</h3><p>In this model, we use certain equations that are used to map the performance of the database management system to system parameters. This is quite an accurate method to perform performance analysis. Two models that are used under this technique are Queueing models and Cost models.</p><h3>Queueing Models</h3><p>The database system is provided with various resource systems and tasks are provided to the database management system. The system performance is evaluated based on the performance of the system while performing these assigned tasks.</p><h3>Cost Models</h3><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><h3>Simulating Modelling</h3><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><h3>Benchmarking</h3><p>This technique is preferred when there is less number of databases that are to be evaluated. It requires implementing the management system in an almost similar environment so that the data acquired using this method is closest. As the environment for each database management system is created separately, this method is costly and consumes a lot of time in setting up the environment. This method is still performed because this method produces the most accurate result upon which the performance of the management system is evaluated.</p><p><strong>Difference Between Analytic and Simulating Modelling and Benchmark</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*le6LaV3aE9tQPJKn4pErRg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e68ed3514d51" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[File System Vs DBMS]]></title>
            <link>https://medium.com/@chayankumar/file-system-vs-dbms-d474d1381a66?source=rss-3705a01a27b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/d474d1381a66</guid>
            <dc:creator><![CDATA[chanthirakumar chayanthithan]]></dc:creator>
            <pubDate>Wed, 06 Jul 2022 17:26:43 GMT</pubDate>
            <atom:updated>2022-07-06T17:26:43.563Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*qIHdT_KAhCHAlUmgXgkabQ.png" /></figure><h4>file system</h4><p>The file system is basically a way of arranging the files in a storage medium like a hard disk. The file system organizes the files and helps in the retrieval of files when they are required. The file system performs basic operations like management, file naming, giving access rules</p><h4><strong>Database management system</strong></h4><p>Database Management System is basically software that manages the collection of related data. It is used for storing data and retrieving the data effectively when it is needed. It also provides proper security measures for protecting the data from unauthorized access. In Database Management System the data can be fetched by SQL queries and relational algebra. It also provides mechanisms for data recovery and data backup</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*KX_PnpSLtRCRqrzcC8EMbw.png" /></figure><h4><strong><em>Advantage of file system</em></strong></h4><p><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.</p><p><strong>Compactness-</strong>Data can be stored in a small amount of space.</p><p><strong>Data Retrieval- </strong>Computer-based systems offer improved data retrieval techniques that make it simple and efficient to retrieve data from files.</p><p><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.</p><p><strong>File Sharing- </strong>Data saved in computer-based system files can be shared by several users at the same time.</p><h4>Disadvantage of file system</h4><p><strong>Data redundancy-</strong> Data redundancy refers to the duplication of data, lets say we are managing the data of a college where a student is enrolled for two courses, the same student details in such case will be stored twice, which will take more storage than needed. Data redundancy often leads to higher storage costs and poor access time.</p><p><strong>Data inconsistency- </strong>Data redundancy leads to data inconsistency, lets take the same example that we have taken above, a student is enrolled for two courses and we have student address stored twice, now lets say student requests to change his address, if the address is changed at one place and not on all the records then this can lead to data inconsistency.</p><p><strong>Data Isolation- </strong>Because data are scattered in various files, and files may be in different formats, writing new application programs to retrieve the appropriate data is difficult.</p><p><strong>Data Security-</strong> Data should be secured from unauthorized access, for example a student in a college should not be able to see the payroll details of the teachers, such kind of security constraints are difficult to apply in file processing systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*xXA5iYDbAI63eyPOC0KknA.png" /></figure><h4>Advantages of DBMS</h4><p><strong>Controlling of Redundancy-</strong> Data redundancy refers to the duplication of data (i.e. storing same data multiple times). In a database system, by having a centralized database and centralized control of data by the DBA the unnecessary duplication of data is avoided. It also eliminates the extra time for processing the large volume of data. It results in saving the storage space. 9</p><p><strong>Improved Data Sharing- </strong>DBMS allows a user to share the data in any number of application programs.</p><p><strong>Data Integrity -</strong>Integrity means that the data in the database is accurate. Centralized control of the data helps in permitting the administrator to define integrity constraints to the data in the database. For example: in customer database we can can enforce an integrity that it must accept the customer only from Noida and Meerut city.</p><p><strong>Security- </strong>Having complete authority over the operational data, enables the DBA in ensuring that the only mean of access to the database is through proper channels. The DBA can define authorization checks to be carried out whenever access to sensitive data is attempted.</p><h4>Disadvantage of DBMS</h4><p><strong>Huge Size-</strong>The size of the database is not big at the initial state, but when the user stores a large amount of data, then it creates many problems. Due to the huge data, database systems do not provide good results and do not run efficiently. That’s why the size is another limitation of the database systems.</p><p><strong>Database Failure- </strong>In the database systems, all the data or information of an organization is stored in one centralized database. If the database of that organization fails, then the data is lost, and the organization will collapse. So, database failure is a big problem with the database management system.</p><p><strong>Complexity-</strong>Database management system (DBMS) is so complex for non-technical users. So, it isn’t easy to manage and maintain database systems. Therefore, training for the designers, users, and administrators is necessary to efficiently run the database systems.</p><p><strong>Increased Staff Cost-</strong>DBMS requires an educated and skilled staff for managing and maintaining the databases. So, we need to spend a lot of money to get this level of trained and experienced staff.</p><p><strong>Requirement of Technical Staff-</strong>A non-technical people can’t understand the complexity of the database. So, the technical staff is required for maintaining and handling the database management system.</p><p><strong>Cost of Data Conversion-</strong>It is one of the big disadvantages of the database management system because the cost of data conversion is very high. There is a requirement for trained, skilled, and experienced database administrators for converting the data smoothly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d474d1381a66" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>