<?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 Vigneshwaran Sekar on Medium]]></title>
        <description><![CDATA[Stories by Vigneshwaran Sekar on Medium]]></description>
        <link>https://medium.com/@vigneshwaransekartech?source=rss-8db7da0e1fed------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*_O6ogklVCFQsHMix</url>
            <title>Stories by Vigneshwaran Sekar on Medium</title>
            <link>https://medium.com/@vigneshwaransekartech?source=rss-8db7da0e1fed------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 00:40:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vigneshwaransekartech/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[Singleton Pattern in Java — Real-World Analogy and Code Example]]></title>
            <link>https://medium.com/@vigneshwaransekartech/singleton-pattern-in-java-real-world-analogy-and-code-example-0cb931ac712c?source=rss-8db7da0e1fed------2</link>
            <guid isPermaLink="false">https://medium.com/p/0cb931ac712c</guid>
            <category><![CDATA[java-singleton-pattern]]></category>
            <category><![CDATA[system-design-concepts]]></category>
            <category><![CDATA[system-design-interview]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[singleton-pattern]]></category>
            <dc:creator><![CDATA[Vigneshwaran Sekar]]></dc:creator>
            <pubDate>Mon, 30 Jun 2025 14:18:27 GMT</pubDate>
            <atom:updated>2025-06-30T14:18:27.705Z</atom:updated>
            <content:encoded><![CDATA[<h3>Singleton Pattern in Java — Real-World Analogy and Code Example</h3><p>📚 <strong><em>Introduction:</em></strong></p><p>In system design, ensuring controlled access to resources is crucial. One design pattern that helps achieve this is the Singleton Pattern — <strong>it ensures that a class has only one instance while providing a global access point to it.</strong></p><p>Let’s explore what it is, where we use it, and how to implement it in Java.</p><h4>🎯 What is Singleton Pattern?</h4><p>Singleton is a <strong>creational design pattern</strong> that restricts the instantiation of a class to one object and provides a way to access that instance globally.</p><h4>🏢 Real-World Analogy — Printer Spooler</h4><p>Imagine a corporate office where multiple users send print requests. To avoid confusion or duplicate print jobs, the system uses a <strong>single Printer Spooler</strong> that queues and processes all jobs.</p><p>Just like that, the Singleton pattern ensures only one object handles these tasks — no duplicate spoolers, no wasted memory.</p><h4>💻 Java Implementation:</h4><pre><br>public class PrinterSpooler {<br>    private static PrinterSpooler instance;<br>private PrinterSpooler() {<br>        // private constructor prevents instantiation from other classes<br>    }<br>    public static synchronized PrinterSpooler getInstance() {<br>        if (instance == null) {<br>            instance = new PrinterSpooler();<br>        }<br>        return instance;<br>    }<br>    public void print(String data) {<br>        System.out.println(&quot;Printing: &quot; + data);<br>    }<br>}</pre><p>🔹 <strong>Step 1: </strong>Make the constructor<strong> </strong><strong>private.</strong></p><p>🔹 <strong>Step 2: </strong>Declare a private static instance variable.</p><p>🔹 <strong>Step 3: </strong>Provide a public static method to return the instance.</p><p>🔹 <strong>Step 4: </strong>Add business logic methods as usual.</p><p>✅ Thread-safe using synchronized<br>✅ Lazy initialization (object created only when needed)</p><h4>🛠️ Where Singleton is Used:</h4><p>~ Logging frameworks (e.g., Log4j)</p><p>~ Configuration managers</p><p>~ Database connections</p><p>~ Cache managers</p><p>~ Thread pools</p><h4>💡 Key Takeaways:</h4><ul><li>Use Singleton when you need <strong>exactly one instance</strong> of a class.</li><li>Be careful with <strong>thread safety</strong> and <strong>lazy loading</strong>.</li><li>Real-world use cases often involve shared resources or global state management.</li></ul><h4>🔗 Next:</h4><p>Try implementing a Singleton in your own utility class — like a configuration reader, logger, or a connection pool handler.</p><h4>🎯<strong> Top Interview Questions on Singleton Pattern</strong><br>Here are some commonly asked questions in interviews (from freshers to experienced levels):</h4><ol><li>What is the Singleton Pattern and where is it used?</li></ol><p>2. How do you implement a thread-safe Singleton in Java?</p><p>3. What is the difference between eager and lazy initialization in Singleton?</p><p>4. How do you break a Singleton in Java?</p><p>5. Can Singleton be broken via Reflection or Serialization? How to prevent it?</p><p>6. Is Singleton really a good design choice? What are the drawbacks?</p><p>7. How is Singleton different from a static class?</p><p>8. Can you use Enum to create Singleton in Java? Why is it recommended?</p><p>9. What are the use cases where Singleton should be avoided?</p><p>10. Can Singleton cause memory issues in large-scale systems?</p><ol><li><strong>Can Singleton cause memory issues in large-scale systems?</strong></li></ol><p>🔚 Thanks for reading! Let me know your feedback or share your Singleton use case in the comments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0cb931ac712c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Java OOP: A Comprehensive Guide]]></title>
            <link>https://medium.com/@vigneshwaransekartech/understanding-java-oop-a-comprehensive-guide-1365ad741c30?source=rss-8db7da0e1fed------2</link>
            <guid isPermaLink="false">https://medium.com/p/1365ad741c30</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[oops-concepts]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[blog]]></category>
            <dc:creator><![CDATA[Vigneshwaran Sekar]]></dc:creator>
            <pubDate>Thu, 18 Jan 2024 15:05:34 GMT</pubDate>
            <atom:updated>2024-01-18T22:02:53.264Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_6VD0012OX2Fx1tb" /></figure><p><strong>Introduction</strong></p><p>Object-oriented programming (OOP) is a programming paradigm based on the concept of “objects”, which can contain data and code: data in the form of fields (often known as attributes), and code, in the form of procedures (often known as methods). Java, one of the most popular programming languages, is an object-oriented language that has its syntax largely influenced by C++ but with a simpler object model.</p><p><strong>What is Object-Oriented Programming?</strong></p><p>OOP is a programming model organized around objects rather than “actions” and data rather than logic. The four fundamental OOP concepts in Java are:</p><ol><li>Encapsulation</li><li>Inheritance</li><li>Polymorphism</li><li>Abstraction</li></ol><p><strong>1. Encapsulation: Protecting the Data</strong></p><p>Encapsulation is the mechanism of bundling the data (variables) and code acting on the data (methods) together as a single unit. In encapsulation, the variables of a class are hidden from other classes and can be accessed only through the methods of their current class. Therefore, it is also known as data hiding.</p><p><em>Example:</em></p><pre>public class Employee {<br>    private String name;</pre><pre>    public String getName() {<br>        return name;<br>    }</pre><pre>    public void setName(String newName) {<br>        this.name = newName;<br>    }<br>}</pre><p><strong>2. Inheritance: Creating New from Existing</strong></p><p>Inheritance in Java is a mechanism where a new class is derived from an existing class. The new class, known as a subclass, inherits the attributes and methods of the superclass.</p><p><em>Example:</em></p><pre>public class Employee {<br>    // Employee class code<br>}</pre><pre>public class Developer extends Employee {<br>    // Developer class code<br>}</pre><p><strong>3. Polymorphism: Many Forms, One Interface</strong></p><p>Polymorphism in Java allows us to perform a single action in different ways. It allows us to define one interface and have multiple implementations. The two main types of polymorphism in Java are compile-time polymorphism (method overloading) and runtime polymorphism (method overriding).</p><p><em>Example of Method Overloading (Compile-Time Polymorphism):</em></p><pre>public class Adder {<br>    static int add(int a, int b) {<br>        return a + b;<br>    }</pre><pre>    static double add(double a, double b) {<br>        return a + b;<br>    }<br>}</pre><p><em>Example of Method Overriding (Run-Time Polymorphism):</em></p><pre>class Animal {<br>    void sound() {<br>        System.out.println(&quot;Animal makes a sound&quot;);<br>    }<br>}</pre><pre>class Dog extends Animal {<br>    void sound() {<br>        System.out.println(&quot;Dog barks&quot;);<br>    }<br>}</pre><p><strong>4. Abstraction: Hiding the Complexity</strong></p><p>Abstraction is a process of hiding the implementation details and showing only functionality to the user. It lets you focus on what the object does instead of how it does it.</p><p><em>Example:</em></p><pre>abstract class Animal {<br>    public abstract void sound();<br>}</pre><pre>class Dog extends Animal {<br>    public void sound() {<br>        System.out.println(&quot;Bark bark&quot;);<br>    }<br>}</pre><p><strong>Conclusion</strong></p><p>Understanding these four fundamental concepts of OOP in Java is crucial for any Java programmer. Not only do they help in creating robust applications, but they also aid in writing code that is more maintainable and scalable. As you dive deeper into Java development, these principles will become the cornerstone of your coding practices.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1365ad741c30" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring Java 8: Key Features]]></title>
            <link>https://medium.com/@vigneshwaransekartech/exploring-java-8-key-features-3f0fdfa0d632?source=rss-8db7da0e1fed------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f0fdfa0d632</guid>
            <category><![CDATA[steam]]></category>
            <category><![CDATA[java8]]></category>
            <category><![CDATA[features]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[interview]]></category>
            <dc:creator><![CDATA[Vigneshwaran Sekar]]></dc:creator>
            <pubDate>Mon, 08 Jan 2024 09:32:44 GMT</pubDate>
            <atom:updated>2024-01-08T09:43:05.179Z</atom:updated>
            <content:encoded><![CDATA[<p>Introduction: Java 8, released in March 2014, introduced significant new features to the Java programming language and platform, marking a substantial evolution in Java’s capabilities and providing new tools that enable more concise, readable, and maintainable code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MEuad1CZGqaQNr1DdG99Ig.png" /></figure><p><strong>Key Features of Java 8:</strong></p><ol><li><strong>Lambda Expressions:</strong></li></ol><p>Description: Lambda expressions are a new language feature that allows you to treat functionality as a method argument or code as data. They are typically used to create anonymous methods. This feature enables functional programming concepts in Java and simplifies the code.</p><ul><li>Example:</li></ul><pre>// Traditional way using anonymous class<br>new Thread(new Runnable() {<br>    @Override<br>    public void run() {<br>        System.out.println(&quot;Hello from thread&quot;);<br>    }<br>}).start();<br><br>// Using Lambda Expression<br>new Thread(() -&gt; System.out.println(&quot;Hello from thread&quot;)).start();</pre><p><strong>2. Streams:</strong></p><ul><li>Description: The Streams API allows for declarative processing of collections in a functional style. It can greatly simplify the code and improve readability.</li><li>Example:</li></ul><pre>List&lt;String&gt; myList = Arrays.asList(&quot;a1&quot;, &quot;a2&quot;, &quot;b1&quot;, &quot;c2&quot;, &quot;c1&quot;);<br>myList<br>    .stream()<br>    .filter(s -&gt; s.startsWith(&quot;c&quot;))<br>    .map(String::toUpperCase)<br>    .sorted()<br>    .forEach(System.out::println);<br>// Output: C1 C2</pre><p><strong>3. Default Methods:</strong></p><p>Description: Default methods are methods in an interface that have a default implementation. They help evolve interfaces without breaking existing implementations.</p><ul><li>Example:</li></ul><pre>interface Vehicle {<br>    default void print() {<br>        System.out.println(&quot;I am a vehicle!&quot;);<br>    }<br>}<br><br>class Car implements Vehicle {<br>    public void print() {<br>        System.out.println(&quot;I am a car!&quot;);<br>    }<br>}<br><br>// Usage<br>Vehicle vehicle = new Car();<br>vehicle.print(); // Output: I am a car!</pre><p><strong>4. Optional:</strong></p><ul><li>Description: Optional is a container object which may or may not contain a non-null value. It’s a way to avoid NullPointerException and write cleaner, more robust code.</li><li>Example:</li></ul><pre>Optional&lt;String&gt; optional = Optional.of(&quot;hello&quot;);<br><br>// Traditional null check<br>if(optional.isPresent()){<br>    System.out.println(optional.get()); //hello<br>}<br><br>// Optional ifPresent<br>optional.ifPresent(name -&gt; System.out.println(name)); //hello</pre><p><strong>5. New Date and Time API:</strong></p><p>Description: The new Date and Time API is immutable and thread-safe, addressing the design flaws of the old Date and Calendar APIs.</p><ul><li>Example:</li></ul><pre>// Old way<br>Date date = new Date();<br>System.out.println(date);<br><br>// New way using Java 8<br>LocalDate localDate = LocalDate.now();<br>System.out.println(localDate); //2024-01-08 (example output)</pre><p><strong>Conclusion:</strong></p><p>Java 8’s introduction of lambda expressions, Stream API, default methods, Optional class, and new Date and Time API significantly improves the expressiveness and efficiency of Java. These features encourage functional programming practices, and cleaner code, and provide developers with powerful tools for typical coding tasks. Embracing Java 8 features will lead to more readable, maintainable, and scalable code in your Java applications.</p><p><strong>References &amp; Further Reading:</strong></p><ol><li><a href="https://docs.oracle.com/javase/8/docs/">https://docs.oracle.com/javase/8/docs/</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f0fdfa0d632" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlocking Java Basics: A Dive into Primitive Types ]]></title>
            <link>https://medium.com/@vigneshwaransekartech/unlocking-java-basics-a-dive-into-primitive-types-c4c1210bbbcc?source=rss-8db7da0e1fed------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4c1210bbbcc</guid>
            <category><![CDATA[data-type]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Vigneshwaran Sekar]]></dc:creator>
            <pubDate>Mon, 08 Jan 2024 09:24:44 GMT</pubDate>
            <atom:updated>2024-01-08T09:24:44.469Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello, #JavaDevelopers!</p><p>Ever wondered why Java has both int and Integer or why we talk about ‘primitive types’ so much? Let’s decode the world of Java’s building blocks: Primitive Types!🔍</p><p><strong>What Are Primitive Types?</strong></p><p>In Java, primitive types are the most basic data types available. They are not objects; they represent raw values. They are fast and efficient and serve as the backbone for data manipulation in Java.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*2jJQGbHHi2dk6Rx6.png" /></figure><p>Java offers 8 primitive types:</p><ol><li>byte: 8-bit signed integer</li><li>short: 16-bit signed integer</li><li>int: 32-bit signed integer (e.g., int x = 5;)</li><li>long: 64-bit signed integer (e.g., long y = 50000L;)</li><li>float: 32-bit floating point (e.g., float f = 5.99f;)</li><li>double: 64-bit floating point (e.g., double d = 4.99d;)</li><li>char: 16-bit Unicode character (e.g., char letter = &#39;A&#39;;)</li><li>boolean: represents true or false (e.g., boolean flag = true;)</li></ol><p>Why Use Primitive Types?</p><p>Primitive types are your go-to for memory efficiency and performance. They are stored directly in memory, and operations on them are fast. Unlike their Wrapper class counterparts (like Integer, Float, etc.), primitives don’t require additional memory for object metadata or handling.</p><p><strong>Example in Action:</strong></p><p>Consider we’re handling a large array of integers:</p><pre>int[] numbers = new int[1000000];<br>for(int i = 0; i &lt; numbers.length; i++) {<br>    numbers[i] = i;<br>}</pre><p>This array, using int, is much more memory and performance-efficient compared to an Integer array.</p><p>Best Practices:</p><ul><li>Use primitives when you need to conserve memory and when working with arithmetic operations.</li><li>Beware of default values! Uninitialized primitives have defaults (e.g., 0 for int, false for boolean), which can lead to subtle bugs.</li><li>Remember, primitives are not objects; they don’t have methods. For object-like features, you may need their corresponding wrapper class.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4c1210bbbcc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is AWS ELB?]]></title>
            <link>https://medium.com/@vigneshwaransekartech/what-is-aws-elb-7e0df05479c2?source=rss-8db7da0e1fed------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e0df05479c2</guid>
            <category><![CDATA[aws-elb]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[blog]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[awscommunitybuilder]]></category>
            <dc:creator><![CDATA[Vigneshwaran Sekar]]></dc:creator>
            <pubDate>Sat, 02 Dec 2023 10:37:23 GMT</pubDate>
            <atom:updated>2023-12-02T10:37:23.246Z</atom:updated>
            <content:encoded><![CDATA[<p>Elastic Load Balancing (ELB) automatically distributes incoming application traffic across multiple targets and virtual appliances in one or more Availability Zones (AZs).</p><p><strong>Before ELB implements</strong> the <strong>REQUEST AND RESPONSE METHOD</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TL95aoc_us3vFyLHmD-6UA.png" /></figure><p><strong>After ELB implements</strong> the <strong>REQUEST AND RESPONSE METHOD</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ER10-Wkt_GIf2ICRw64F_g.png" /></figure><p><strong>Type of load balancer:</strong></p><ol><li>Application — Layer 7 — Http/Https</li><li>Network — Layer 4 — TCP/UDP</li></ol><p><strong>Application — Layer 7 — Http/Https</strong></p><p>An Application Load Balancer makes routing decisions at the application layer (HTTP/HTTPS), supports path-based routing, and can route requests to one or more ports on each container instance in your cluster.</p><p><strong>Network — Layer 4 — TCP/UDP</strong></p><p>A Network Load Balancer makes routing decisions at the transport layer (TCP/SSL). It can handle millions of requests per second. After the load balancer receives a connection, it selects a target from the target group for the default rule using a flow hash routing algorithm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_ErTUdg1O89QlAzZNTcGhA.png" /></figure><p><strong>What is a balancing algorithm?</strong></p><p>A load balancer is a software or hardware device that keeps any one server from becoming overloaded. A load-balancing algorithm is the logic that a load balancer uses to distribute network traffic between servers (an algorithm is a set of predefined rules).</p><ol><li>Round Robin algorithm.</li><li>Least outstanding requests routing algorithm.</li><li>Least Response Time algorithm.</li></ol><p><strong>Round Robin algorithm</strong></p><p>Based on the round-robin routing algorithm, traffic is distributed such that each load balancer node receives 50% of the traffic from the clients. Each load balancer node distributes its share of the traffic across the registered targets in its scope.</p><p><strong>The least outstanding requests routing algorithm</strong></p><p>A “least outstanding requests routing algorithm” is an algorithm that chooses which instance receives the next request by selecting the instance that, at that moment, has the lowest number of outstanding (pending, unfinished) requests.</p><p><strong>Least Response Time algorithm</strong></p><p>The least-response-time load balancing strategy collects response times of the calls made with service instances and picks an instance based on this information. Erroneous responses are treated as responses with a long response time, by default 60 seconds. This can be controlled with the error-penalty attribute.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e0df05479c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is EC2?]]></title>
            <link>https://medium.com/@vigneshwaransekartech/what-is-ec2-54f0e38d0d24?source=rss-8db7da0e1fed------2</link>
            <guid isPermaLink="false">https://medium.com/p/54f0e38d0d24</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-certification]]></category>
            <category><![CDATA[awscommunitybuilder]]></category>
            <category><![CDATA[ec2]]></category>
            <dc:creator><![CDATA[Vigneshwaran Sekar]]></dc:creator>
            <pubDate>Tue, 28 Nov 2023 09:18:00 GMT</pubDate>
            <atom:updated>2023-11-28T09:18:00.255Z</atom:updated>
            <content:encoded><![CDATA[<p>Amazon Web Service EC2 (Amazon Elastic Compute Cloud), one of Amazon Web Services’ most well-known services, offers businesses the ability to run applications on the public cloud. An EC2 instance is simply a virtual server in Amazon Web Services terminology.</p><p><strong>Traditional Server</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jItNnmsjz1iStcqxv9dXrw.png" /></figure><p><strong>EC2 (</strong>Amazon Elastic Compute Cloud)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*H3JclobmHbvY4OG6LY9wIw.png" /></figure><p><strong>Instances</strong></p><p>Virtual servers.</p><p><strong>Amazon Machine Images (AMIs)</strong></p><p>Preconfigured templates for your instances that package the components you need for your server (including the operating system and additional software).</p><p><strong>Instance types</strong></p><p>Various configurations of CPU, memory, storage, networking capacity, and graphics hardware for your instances.</p><p><strong>Key pairs</strong></p><p>Secure login information for your instances. AWS stores the public key and you store the private key in a secure place.</p><p><strong>Instance store volumes</strong></p><p>Storage volumes for temporary data that is deleted when you stop, hibernate, or terminate your instance.</p><p><strong>Amazon EBS volumes</strong></p><p>Persistent storage volumes for your data using Amazon Elastic Block Store (Amazon EBS).</p><p><strong>Regions, Availability Zones, Local Zones, AWS Outposts, and Wavelength Zones</strong></p><p>Multiple physical locations for your resources, such as instances and Amazon EBS volumes.</p><p><strong>Security groups</strong></p><p>A virtual firewall that allows you to specify the protocols, ports, and source IP ranges that can reach your instances, and the destination IP ranges to which your instances can connect.</p><p><strong>Elastic IP addresses</strong></p><p>Static IPv4 addresses for dynamic cloud computing.</p><p><strong>Tags</strong></p><p>Metadata that you can create and assign to your Amazon EC2 resources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*88OCOUaSRbY8mV6Qi2PPRQ.png" /></figure><p><strong>More Details Check Out:</strong> <a href="https://youtu.be/0rXSWYdWvXs?si=JJbHdVTZWXhFNlpe">https://youtu.be/0rXSWYdWvXs?si=JJbHdVTZWXhFNlpe</a></p><p><strong>Reference: </strong><a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts.html">https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts.html</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54f0e38d0d24" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Amazon S3?]]></title>
            <link>https://medium.com/@vigneshwaransekartech/what-is-amazon-s3-c06442816f6c?source=rss-8db7da0e1fed------2</link>
            <guid isPermaLink="false">https://medium.com/p/c06442816f6c</guid>
            <category><![CDATA[s3]]></category>
            <category><![CDATA[s3-bucket]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Vigneshwaran Sekar]]></dc:creator>
            <pubDate>Wed, 22 Nov 2023 21:39:07 GMT</pubDate>
            <atom:updated>2023-11-22T21:39:07.238Z</atom:updated>
            <content:encoded><![CDATA[<p>Amazon Simple Storage Service</p><p>Amazon Simple Storage Service (Amazon S3) is an object storage service</p><p>Bucket: Every object in Amazon S3 is stored in a bucket.</p><p><strong>Amazon S3 Storage Classes</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hhLVekAF6UoQnP6YlTQ3vg.png" /></figure><p><strong>File Size limit</strong></p><p>You can store unlimited file sizes can vary from 0 bytes to 5 TB.</p><p>There is no storage limit.</p><p>If uploading more than 5GB, you must use “multi-part upload”.</p><p><strong>Amazon S3 -Versioning</strong></p><p>You can version your files in Amazon S3</p><p>It is enabled at the bucket level</p><p>The same key overwrite will change the “version”: 1, 2, 3….</p><p>It is best practice to version your buckets</p><p><strong>S3 Durability</strong></p><p>High durability (99.999999999%, 11 9’s) of objects across multiple AZ.</p><p>If you store 10,000,000 objects with Amazon S3, you can on average expect to incur a loss of a single object once every 10,000 years.</p><p>Same for all storage classes.</p><p><strong>S3 Encryption</strong></p><p>Server-side Encryption. (Default).</p><p>Client -Side Encryption.</p><p><strong>Reference:</strong></p><p><a href="https://aws.amazon.com/s3/">Amazon S3 - Cloud Object Storage - AWS</a></p><p><a href="https://aws.amazon.com/s3/faqs/?nc=sn&amp;loc=7">https://aws.amazon.com/s3/faqs/?nc=sn&amp;loc=7</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c06442816f6c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is AWS?]]></title>
            <link>https://medium.com/@vigneshwaransekartech/what-is-aws-78914436c311?source=rss-8db7da0e1fed------2</link>
            <guid isPermaLink="false">https://medium.com/p/78914436c311</guid>
            <category><![CDATA[community]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[what-is-aws]]></category>
            <category><![CDATA[awscommunitybuilder]]></category>
            <dc:creator><![CDATA[Vigneshwaran Sekar]]></dc:creator>
            <pubDate>Sun, 19 Nov 2023 23:33:08 GMT</pubDate>
            <atom:updated>2023-11-19T23:33:08.453Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>limitation of Traditionally built infrastructure</strong></p><p>1. <strong>Paying for the Rent</strong>: You have to pay to lease space for your own data center.</p><p>2. <strong>Paying for Power, Cooling, and Maintenance</strong>: You’re responsible for the costs of electricity, air conditioning, and keeping the equipment running smoothly.</p><p>3. <strong>Slow Hardware Changes</strong>: Getting and setting up new hardware can be slow and cumbersome.</p><p>4. <strong>Limited Scalability</strong>: It’s challenging to quickly expand your resources to meet growing needs.</p><p>5. <strong>Hiring a 24/7 Team</strong>: You need to employ a team to watch over and manage the infrastructure all day, every day.</p><p>6. <strong>Disaster Preparedness</strong>: You must figure out how to deal with potential disasters like earthquakes, power outages, and fires on your own.</p><p><strong>What is Cloud Computing?</strong></p><p>Cloud computing is the delivery of computing services — including servers, storage, databases, networking, software, analytics, and intelligence — over the Internet (“the cloud”) to offer faster innovation, flexible resources, and economies of scale.</p><p><strong>Types of Cloud Computing</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X6xxKD2bdlWtPVtjP3Ohhg.png" /></figure><p><strong>Examples of Cloud Computing Types</strong></p><p><strong>Infrastructure as a Service:</strong> Amazon EC2 (on AWS), GCP, Azure, Rackspace, Digital Ocean, Linode</p><p><strong>Platform as a Service:</strong> Elastic Beanstalk (on AWS) • Heroku, Google App Engine (GCP), Windows Azure (Microsoft)</p><p><strong>Software as a Service:</strong> Many AWS services (ex: Rekognition for Machine Learning) • Google Apps (Gmail), Dropbox, Zoom</p><p><strong>Product Categories</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FWEEd4CIkjLQxKGq5J6Gcw.png" /></figure><p>Reference: <a href="https://aws.amazon.com/free/?trk=e6f45102-34bb-468b-8473-3808edf5483d&amp;sc_channel=ps&amp;ef_id=Cj0KCQjw4vKpBhCZARIsAOKHoWTTreX47xFFReulnnokGu5Ao1td05VcgvkDzN5REfktn7p7a8ZLYhgaAvKlEALw_wcB:G:s&amp;s_kwcid=AL!4422!3!509647298302!p!!g!!amazon%20aws!12618262541!119601900683&amp;all-free-tier.sort-by=item.additionalFields.SortRank&amp;all-free-tier.sort-order=asc&amp;awsf.Free%20Tier%20Types=*all&amp;awsf.Free%20Tier%20Categories=*all">https://aws.amazon.com/free/?trk=e6f45102-34bb-468b-8473-3808edf5483d&amp;sc_channel=ps&amp;ef_id=Cj0KCQjw4vKpBhCZARIsAOKHoWTTreX47xFFReulnnokGu5Ao1td05VcgvkDzN5REfktn7p7a8ZLYhgaAvKlEALw_wcB:G:s&amp;s_kwcid=AL!4422!3!509647298302!p!!g!!amazon%20aws!12618262541!119601900683&amp;all-free-tier.sort-by=item.additionalFields.SortRank&amp;all-free-tier.sort-order=asc&amp;awsf.Free%20Tier%20Types=*all&amp;awsf.Free%20Tier%20Categories=*all</a></p><p><strong>AWS Global Infrastructure</strong></p><p>• AWS Regions</p><p>• AWS Availability Zones</p><p>• AWS Data Centers</p><p>• AWS Edge Locations / Points of Presence</p><p>Ref: <a href="https://aws.amazon.com/about-aws/global-infrastructure/?p=ngi&amp;loc=1&amp;refid=1e7350ff-d3db-4371-846d-09eb23398999~ha_awssm-3954_event_tnc">https://aws.amazon.com/about-aws/global-infrastructure/?p=ngi&amp;loc=1&amp;refid=1e7350ff-d3db-4371-846d-09eb23398999~ha_awssm-3954_event_tnc</a></p><p>#aws #awscommunity #ec2 #awstype #blog</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78914436c311" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to remove the file by using file name in java ?]]></title>
            <link>https://medium.com/@vigneshwaransekartech/how-to-remove-the-file-by-using-file-name-in-java-bad737072f5e?source=rss-8db7da0e1fed------2</link>
            <guid isPermaLink="false">https://medium.com/p/bad737072f5e</guid>
            <category><![CDATA[java-files]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[delete]]></category>
            <dc:creator><![CDATA[Vigneshwaran Sekar]]></dc:creator>
            <pubDate>Wed, 15 Nov 2023 11:57:55 GMT</pubDate>
            <atom:updated>2023-11-15T11:57:55.475Z</atom:updated>
            <content:encoded><![CDATA[<h3><a href="https://techubooku.blogspot.com/2023/03/how-to-remove-file-by-using-file-name.html">How to remove the file by using file name in java ?</a></h3><p>To remove a file using its name in Java, you can use the java.io.File class. Here’s an example:</p><p><strong>import java.io.File;</strong></p><p><strong>public class RemoveFileExample {</strong></p><p><strong>public static void main(String[] args) {</strong></p><p><strong>// Specify the path and name of the file to be deleted</strong></p><p><strong>String fileName = “file.txt”;</strong></p><p><strong>String filePath = “/path/to/file/” + fileName;</strong></p><p><strong>// Create a File object representing the file to be deleted</strong></p><p><strong>File file = new File(filePath);</strong></p><p><strong>// Check if the file exists</strong></p><p><strong>if (file.exists()) {</strong></p><p><strong>// Attempt to delete the file</strong></p><p><strong>boolean success = file.delete();</strong></p><p><strong>if (success) {</strong></p><p><strong>System.out.println(“File successfully deleted.”);</strong></p><p><strong>} else {</strong></p><p><strong>System.out.println(“Failed to delete the file.”);</strong></p><p><strong>}</strong></p><p><strong>} else {</strong></p><p><strong>System.out.println(“The file does not exist.”);</strong></p><p><strong>}</strong></p><p><strong>}</strong></p><p><strong>}</strong></p><p>In this example, we first specify the name and path of the file to be deleted. We then create a File object representing the file, and use the <strong>exists()</strong> method to check if it exists. If the file exists, we attempt to delete it using the <strong>delete()</strong> method. The <strong>delete()</strong> method returns a boolean value indicating whether the file was successfully deleted or not.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bad737072f5e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>