<?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 Garima Agrawal on Medium]]></title>
        <description><![CDATA[Stories by Garima Agrawal on Medium]]></description>
        <link>https://medium.com/@higarima1?source=rss-890f4af508f5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*IiEv9ucXKOoXs0LL</url>
            <title>Stories by Garima Agrawal on Medium</title>
            <link>https://medium.com/@higarima1?source=rss-890f4af508f5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 12:01:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@higarima1/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[My Open Source Contribution to OpenTelemetry: Adding Logs Support to the Alertmanager Exporter]]></title>
            <link>https://medium.com/@higarima1/my-open-source-contribution-to-opentelemetry-adding-logs-support-to-the-alertmanager-exporter-b8964f518d87?source=rss-890f4af508f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8964f518d87</guid>
            <category><![CDATA[opentelemetry]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[cncf]]></category>
            <dc:creator><![CDATA[Garima Agrawal]]></dc:creator>
            <pubDate>Mon, 25 May 2026 14:08:32 GMT</pubDate>
            <atom:updated>2026-05-25T14:08:32.807Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/367/1*s53qMtUJ2EniLDx5v8Tnog.png" /></figure><p>OpenTelemetry has become one of the most important projects in the observability ecosystem today. While working with telemetry pipelines and observability systems, I recently contributed log support to the Alertmanager Exporter in the <a href="https://github.com/open-telemetry/opentelemetry-collector-contrib">OpenTelemetry Collector Contrib repository.</a></p><p>What started as a simple feature contribution quickly turned into a deep exploration of how OpenTelemetry Collector components, observability pipelines, and large-scale open-source systems work internally.</p><h3>Understanding the Existing Exporter Workflow</h3><p>Before implementing log support, I first explored how the AM Exporter converted telemetry events into AM alerts.</p><p>While the exporter already had strong support for span events, log support was not yet implemented. What I found particularly interesting was how modular the existing design was, which made extending it to support logs much cleaner and easier.</p><h3>Why Logs Support Matters</h3><p>In many real-world systems, some of the most actionable operational signals originate directly from logs:</p><ul><li>deployment failures</li><li>infrastructure warnings</li><li>authentication issues</li><li>application exceptions</li><li>security events</li></ul><p>Supporting logs directly in the exporter allows these operational events to flow naturally into Alertmanager-driven incident workflows.</p><p>What made this contribution especially interesting was how closely it aligned with the evolving direction of OpenTelemetry itself.</p><p>The original feature request for logs support explicitly mentioned extending the exporter to support OpenTelemetry logs because the logs data model had become stable while span events were gradually moving toward deprecation.</p><p>More recently, OpenTelemetry officially announced the deprecation of the <a href="https://opentelemetry.io/blog/2026/deprecating-span-events/">Span Event API </a>in favor of correlated log-based events. Because of that, contributing logs support to the AM Exporter felt especially relevant and aligned with the future direction of the OpenTelemetry ecosystem.</p><p>Once I understood why log-based alerting mattered architecturally, the next step was figuring out how to extend the exporter cleanly without disrupting the existing design.</p><h3>Implementing and Testing Logs Pipeline</h3><p>The implementation mainly involved extending the exporter’s existing event-processing flow to support logs, including:</p><ul><li>log extraction</li><li>payload conversion</li><li>label and annotation generation</li><li>severity handling</li><li>Alertmanager-compatible formatting</li></ul><p>Internally, the logs pipeline followed a fairly clean flow:</p><pre>Logs<br>  ↓<br>Event Extraction<br>  ↓<br>Label &amp; Annotation Generation<br>  ↓<br>Alert Payload Conversion<br>  ↓<br>HTTP Delivery to Alertmanager</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ln6TufXSqhy_HOk9uig0nA.png" /></figure><p>One part I found especially interesting was validating the feature end-to-end instead of only relying on unit tests.</p><p>To test the implementation more realistically, I created integration-style tests using a mocked Alertmanager HTTP server that received alerts directly from the exporter and validated the generated payloads.</p><p>The full validation flow looked something like this:</p><pre>Logs<br> ↓<br>Alertmanager Exporter<br> ↓<br>Payload Transformation<br> ↓<br>HTTP Request<br> ↓<br>Mocked Alertmanager Server</pre><p>This made the testing process feel much closer to real production telemetry pipelines rather than isolated function-level testing.</p><p>Watching the exporter successfully generate and deliver alerts from logs during end-to-end testing was one of the most satisfying parts of the implementation process.</p><h3>Label Sanitization: <strong>A Small but Important Engineering Detail</strong></h3><p>One surprisingly interesting part of the implementation was label sanitization.</p><p>In real-world telemetry, attribute keys are often messy and unpredictable:</p><pre>service.name<br>service-name<br>123abc</pre><p>The problem is that Prometheus-compatible labels follow strict naming conventions, so these values cannot always be used directly.</p><p>To solve this, I added sanitization logic that safely converts arbitrary attribute names into valid Alertmanager labels:</p><pre>service.name  -&gt; service_name<br>service-name  -&gt; service_name<br>123abc        -&gt; _123abc</pre><p>This ensures telemetry attributes remain valid, predictable, and safe to send to Alertmanager without breaking label formatting rules.</p><blockquote>One subtle but interesting challenge involved label collisions during sanitization. Since different attribute names can normalize into the same Prometheus-compatible label, multiple keys could eventually resolve to a single label name.</blockquote><blockquote>In practice, the labels were stored using Go maps, meaning later values would overwrite earlier ones for the same normalized label key. While this behavior keeps the payload deterministic and Prometheus-compatible, it was an interesting edge case to think through during implementation.</blockquote><h3>Open Source Contribution Workflow</h3><p>Contributing to OpenTelemetry was also an incredible learning experience in understanding how large-scale open-source projects manage development and CI workflows.</p><p>The contribution process exposed me to a much broader CI ecosystem than I initially expected, including:</p><ul><li>lint validation</li><li>integration testing</li><li>changelog tooling</li><li>vulnerability scans</li><li>markdown and documentation validation workflows</li><li>markdown and documentation validation workflows</li></ul><p>Along the way, I encountered several interesting CI and build-related challenges, including changelog validation failures, broken documentation links detected during CI, nested Go module builds, vulnerability scan failures, and linker-related issues during full collector builds.</p><h3>The Most Rewarding Part</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1617dwT1KYzQ6dBkt88EpQ.png" /></figure><p>AHHHH!!!!! The moment I finally saw my PR get merged after three code approvals, I genuinely could not stop smiling.</p><p>It took a lot of effort, multiple iterations, fixes, review comments, and guidance from the reviewers throughout the process, but the feeling at the end was absolutely</p><h4>AMAZE AMAZE AMAZE</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/177/1*e8kIOYub57rJ-iECVehLbw.png" /></figure><p>There’s something incredibly exciting about seeing your code become part of such a massive monorepo like OpenTelemetry Collector. Especially knowing that engineers and observability teams across different big tech companies might eventually use the feature you contributed.</p><p>Honestly, just being part of the contributors list feels surreal and incredibly rewarding :)</p><h3>Final Thoughts</h3><p>This contribution helped me better understand:</p><ul><li>observability pipelines</li><li>telemetry processing</li><li>OpenTelemetry Collector internals</li><li>exporter design patterns</li><li>large-scale CI systems</li><li>open-source collaboration</li></ul><p>If you are interested in:</p><ul><li>observability</li><li>distributed systems</li><li>telemetry pipelines</li><li>Go systems programming</li><li>open source</li></ul><p>I highly recommend exploring the OpenTelemetry ecosystem and contributing to the project.</p><p>PR Link:<br><a href="https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/48271">https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/48271</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8964f518d87" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spring Boot with MongoDB]]></title>
            <link>https://medium.com/@higarima1/spring-boot-with-mongodb-972b0cb85e67?source=rss-890f4af508f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/972b0cb85e67</guid>
            <category><![CDATA[mongodb]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[spring-boot]]></category>
            <dc:creator><![CDATA[Garima Agrawal]]></dc:creator>
            <pubDate>Sun, 29 Mar 2026 21:14:38 GMT</pubDate>
            <atom:updated>2026-03-29T21:15:30.519Z</atom:updated>
            <content:encoded><![CDATA[<h3>Spring Boot with MongoDB: A Beginner’s Guide</h3><p>MongoDB is one of the most widely used NoSQL databases, and Spring Boot makes it incredibly easy to integrate with. Together, they allow developers to build scalable, high-performance applications with minimal boilerplate code.</p><p>I’ve put together a few key points to help you build a simple Spring Boot application that connects to MongoDB and performs basic CRUD operations.</p><h3>Why Use MongoDB with Spring Boot?</h3><p>Before diving into the implementation, let’s understand why MongoDB and Spring Boot are such a powerful combination.</p><h4>Flexible, Schema-Less Data Model</h4><p>Unlike traditional relational databases, MongoDB stores data as JSON-like documents. This makes it easy to work with nested and dynamic data structures without defining a rigid schema upfront.</p><pre>{<br>  &quot;title&quot;: &quot;Harry Potter and the Philosopher&#39;s Stone&quot;,<br>  &quot;author&quot;: &quot;J.K. Rowling&quot;,<br>  &quot;price&quot;: 19.99<br>}</pre><p>Spring Boot integrates seamlessly with MongoDB through Spring Data MongoDB. Features such as:</p><ul><li>Automatic repository generation</li><li>Query derivation</li><li>Minimal configuration</li></ul><p>help developers focus on business logic instead of writing repetitive database code.</p><h4>Easy Horizontal Scaling</h4><p>MongoDB supports sharding and replication, making it ideal for applications that need to scale across multiple servers and handle large amounts of traffic.</p><h3><strong>Setting Up MongoDB with Spring Boot Applications</strong></h3><h4>Prerequisites</h4><ul><li>JDK 17, since Spring Boot 3.x requires Java 17+ (JDK 21/later is recommended)</li><li>MongoDB running locally or a cloud-hosted MongoDB instance such as MongoDB Atlas</li><li>Maven or Gradle project setup</li><li>Basic knowledge of Spring Boot</li></ul><h4>Add MongoDB Dependency</h4><p><strong>In your pom.xml (for Maven):</strong></p><pre>&lt;dependency&gt;<br> &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;<br> &lt;artifactId&gt;spring-boot-starter-data-mongodb&lt;/artifactId&gt;<br>&lt;/dependency&gt;</pre><p><strong>For Gradle:</strong></p><pre>implementation ‘org.springframework.boot:spring-boot-starter-data-mongodb’</pre><h4>Configure MongoDB Connection</h4><p>Spring Boot automatically reads the <strong><em>application.properties or application.yml</em> </strong>file for database configurations.</p><p><strong>application.properties:</strong></p><pre>spring.data.mongodb.uri=mongodb://localhost:27017/mydatabase</pre><p><strong>application.yml:</strong></p><pre>spring:<br> data:<br>   mongodb:<br>     uri: mongodb://localhost:27017/mydatabase</pre><p><strong>Note: </strong>If you’re using MongoDB Atlas <em>(cloud-hosted MongoDB)</em>, replace the URI with the connection string provided in the Atlas dashboard.</p><pre>spring.data.mongodb.uri=mongodb+srv://&lt;username&gt;:&lt;password&gt;@cluster0.xxxxx.mongodb.net/mydatabase?retryWrites=true&amp;w=majority&amp;appName=Cluster0</pre><h3>Creating the Application</h3><h4>Model Class</h4><p>Define a model class and annotate it with @Document to map it to a MongoDB collection.</p><pre>import org.springframework.data.annotation.Id;<br>import org.springframework.data.mongodb.core.mapping.Document;<br><br>@Document(collection = “books”)<br>public class Book {<br> @Id<br> private String id;<br> private String title;<br> private String author;<br> private double price;<br>// Getters, Setters functions<br>}</pre><h4><strong>Repository Class</strong></h4><p>Spring Data MongoDB provides <strong>MongoRepository </strong>for <strong>CRUD operations.</strong></p><pre>import org.springframework.data.mongodb.repository.MongoRepository;<br>import java.util.List;<br><br>public interface BookRepository extends MongoRepository&lt;Book, String&gt; {<br> List&lt;Book&gt; findByAuthor(String author);<br>}</pre><blockquote>The &#39;findByAuthor&#39; method is a <strong>derived query</strong>, meaning Spring automatically generates and executes the corresponding MongoDB query (<em>no manual query writing needed.)</em></blockquote><p>For example, calling BookRepository.findByAuthor(&quot;J.K. Rowling&quot;) translates to:</p><pre>{ &quot;author&quot;: &quot;J.K. Rowling&quot; }</pre><h4>Service Layer</h4><p>The service layer encapsulates business logic and interacts with the repository.</p><pre>import org.springframework.stereotype.Service;<br>import java.util.List;<br><br>@Service<br>public class BookService {<br> private final BookRepository bookRepository;<br><br>public BookService(BookRepository bookRepository) {<br> this.bookRepository = bookRepository;<br> }<br><br>public Book saveBook(Book book) {<br> return bookRepository.save(book);<br> }<br><br>public List&lt;Book&gt; getAllBooks() {<br> return bookRepository.findAll();<br> }<br><br>public List&lt;Book&gt; getBooksByAuthor(String author) {<br> return bookRepository.findByAuthor(author);<br> }<br>}</pre><h3>Testing the Application</h3><h4>Run the Application</h4><p>Start your Spring Boot application and ensure MongoDB is running. The application will connect to MongoDB based on the URI in application.properties.</p><h4>Test with Postman / Curl</h4><ul><li>Create a Book:</li></ul><pre>curl -X POST -H &quot;Content-Type: application/json&quot; \<br>-d &#39;{&quot;title&quot;:&quot;Harry Potter and the Philosopher&#39;\&#39;&#39;s Stone&quot;,&quot;author&quot;:&quot;J.K. Rowling&quot;,&quot;price&quot;:19.99}&#39; \<br>http://localhost:8080/api/books</pre><ul><li>Get All Books:</li></ul><pre>curl http://localhost:8080/api/books</pre><ul><li>Get Books by Author:</li></ul><pre>curl http://localhost:8080/api/books/author/J.K.%20Rowling</pre><p>And that’s it, you now have a fully functional Spring Boot application connected to MongoDB.</p><p><strong><em>You learned how to:</em></strong></p><ul><li>Configure MongoDB in Spring Boot</li><li>Create a model and repository</li><li>Use derived queries</li><li>Add a service layer</li><li>Expose REST endpoints</li><li>Test the application</li></ul><p><strong><em>Now you can extend your project by adding:</em></strong></p><ul><li>Pagination &amp; sorting</li><li>Integration with MongoDB Atlas</li><li>Unit &amp; integration tests</li></ul><p>If you are building large-scale applications, this combination of Spring Boot and MongoDB provides both developer productivity and excellent scalability.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=972b0cb85e67" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why are Java Spring Boot Annotations so Awesome?]]></title>
            <link>https://medium.com/@higarima1/why-are-java-spring-boot-annotations-so-awesome-217c0c44b7d9?source=rss-890f4af508f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/217c0c44b7d9</guid>
            <category><![CDATA[education]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Garima Agrawal]]></dc:creator>
            <pubDate>Fri, 29 Nov 2024 12:37:14 GMT</pubDate>
            <atom:updated>2024-11-29T12:37:14.199Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hzYQNWvUQFz_z89k.png" /><figcaption>Java Spring Boot</figcaption></figure><p>Hi, my code buddies :)<br>After blogging <a href="https://medium.com/codex/getting-started-with-spring-boot-a-mini-guide-6b85ecefff5c?source=your_stories_page-------------------------------------">Getting Started with Spring Boot: A Mini Guide</a>, I delved further into cooler facts that this framework had to offer. And thought to surely note these down.</p><p>So here, I will cover the annotations Java Spring Boot offers… Making any developers life easier by helping them simplify their application code.</p><h4>Now, if I had to describe Annotations using one word, what would it be?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HFOS2GT-CtfBa75PBhpJiA.jpeg" /><figcaption>Annotations Mask covering the Metadata face</figcaption></figure><h3><strong>The correct answer is</strong> Metadata!</h3><h4>Because…</h4><p>these annotations not only provide additional information about the code</p><p><strong><em>but also do not alter their functionality.</em></strong></p><blockquote><strong><em>Syntax</em></strong><em>: Annotations start with the </em><strong><em>‘@’</em></strong><em> symbol.</em></blockquote><h4><em>‘@’ tells the compiler that what follows is an annotation.</em></h4><h3>Why do we use them though?</h3><ul><li><strong>Less Boilerplate</strong>: Annotations help reduce the boilerplate code. Instead of writing tons of <strong>configuration code</strong>, you can use annotations to keep things <strong>neat</strong>.</li><li><strong>Better Readability</strong>: Annotations make your code more readable by clearly indicating the<strong> roles and behaviors </strong>of various <strong>components</strong>. <em>It’s like adding helpful signs to a complicated maze.</em></li></ul><h3>The Wizards of Annotations</h3><h4><strong>1. ‘@Autowired’:</strong> <strong><em>The Dependency Injection Guru</em></strong></h4><p>Say goodbye to <strong>manual object creation</strong>!</p><p>The @Autowired annotation is like having a magical helper that <strong>automatically fills </strong>your class with the right <strong>dependencies</strong>.</p><blockquote>Can be applied to <strong>fields, constructors, and methods.</strong></blockquote><pre>@Component<br>public class Car {<br>    <br>    private Engine engine;<br><br>    @Autowired // Annotation added<br>    public Car(Engine engine) {  // Constructor injection<br>        this.engine = engine;<br>    }<br>    <br>    public void startCar() {<br>        engine.start();<br>    }<br>}</pre><h4>2. ‘@RestController’: The API Gatekeeper</h4><p>Do you want to build a robust RESTful web service?</p><p>This annotation ensures that every request gets the right response. And combines @Controller and @ResponseBody, so your API can easily handle data and deliver it in a desired format.</p><h4>3. ‘@GetMapping’: The HTTP GPS for GET Requests</h4><p>In the world of web applications, @GetMapping is your specialized <strong>navigator </strong>for handling HTTP GET requests. It ensures that users land at the right <strong>endpoint </strong>when they&#39;re seeking information, making it an essential tool for building <strong>RESTful APIs</strong>.</p><p><em>Think of it as a librarian handing over the exact book you requested for.</em></p><blockquote><em>Quick, Precise &amp; Tailored to your need for information</em></blockquote><pre>@RestController<br>public class GreetingController {<br><br>// Mapping a GET request to the /greet endpoint<br> @GetMapping(&quot;/greet&quot;)<br> public String greet() {<br> return &quot;Hello, welcome to our application!&quot;;<br>   }<br>}</pre><p><strong>Explanation:</strong></p><ul><li>The <strong>@RestController</strong> <strong>annotation</strong> marks this class as a controller where every method automatically serializes its return value to <strong>JSON </strong>(or other formats if configured).</li><li>The <strong>@GetMapping(&quot;/greet&quot;)</strong> maps <strong>HTTP GET requests</strong> to the <strong>/greet URL</strong>, returning a simple text response: <strong>“Hello, welcome to our application!”.</strong></li></ul><h4><strong>4. ‘@Entity’</strong>: <strong><em>The Table Whisperer</em></strong></h4><p>Ever wished for your Java <strong>class</strong> to magically turn into a <strong>database table</strong>? <strong>Enter </strong><strong>@Entity …</strong></p><p>This annotation maps your class’s fields to table columns.</p><p>And voilà—<em>data is at your fingertips</em>!</p><pre>@Entity<br>public class User {<br><br>    @Id<br>    @GeneratedValue(strategy = GenerationType.IDENTITY)  // Auto-incremented ID<br>    private Long id;<br><br>    private String name;<br>    private String email;<br><br>    // Default constructor<br>    public User() {}<br><br>    // Constructor with parameters<br>    public User(String name, String email) {<br>        this.name = name;<br>        this.email = email;<br>    }<br><br>    // Getters and Setters<br>    public Long getId() {<br>        return id;<br>    }<br><br>    public void setId(Long id) {<br>        this.id = id;<br>    }<br><br>    public String getName() {<br>        return name;<br>    }<br><br>    public void setName(String name) {<br>        this.name = name;<br>    }<br><br>    public String getEmail() {<br>        return email;<br>    }<br><br>    public void setEmail(String email) {<br>        this.email = email;<br>    }<br><br>    @Override<br>    public String toString() {<br>        return &quot;User [id=&quot; + id + &quot;, name=&quot; + name + &quot;, email=&quot; + email + &quot;]&quot;;<br>    }<br>}</pre><h3>Conclusion</h3><p>Mastering these annotations and unlocking their secrets lets developers tap into the full potential of the Spring Boot framework. I hope you all learnt something new from this blog…</p><p>Please let me know your thoughts/past experiences regarding this topic.</p><p>And I wish you all</p><p>Happy Coding! 👨‍💻👩‍💻</p><h3>Resources</h3><ul><li><a href="https://www.javatpoint.com/spring-boot-annotations">Spring Boot Annotations — javatpoint</a></li><li><a href="https://docs.spring.io/spring-boot/reference/using/using-the-springbootapplication-annotation.html">Using the @SpringBootApplication Annotation :: Spring Boot</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=217c0c44b7d9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Started with Spring Boot: A Mini Guide]]></title>
            <link>https://medium.com/codex/getting-started-with-spring-boot-a-mini-guide-6b85ecefff5c?source=rss-890f4af508f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b85ecefff5c</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[spring-boot]]></category>
            <dc:creator><![CDATA[Garima Agrawal]]></dc:creator>
            <pubDate>Mon, 01 Jul 2024 19:55:01 GMT</pubDate>
            <atom:updated>2024-07-08T13:23:39.865Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello Developers, welcome to a quick start to your new framework. Well, the Spring framework must be new to you, but it was shockingly released in 2002. And because of this, Java-based applications have evolved incredibly.</p><p>A coder like me only wants to focus on writing the code lines and not getting into the messy infrastructure configuration details. That’s where mainly Spring Boot comes in handy. I will keep this blog helpful for both my young and seasoned coders.</p><h3>What is Spring Boot?</h3><p>Here’s an analogy here for better understanding…</p><h4>Imagine you are a MasterChef, but you don’t want to waste your time gathering all the ingredients for the dish. So, to solve this problem, your mother sends you a meal kit right at your doorstep. Ya I know, moms are always the best! Now all you have to do is cook a yummy meal. And, similar to this meal kit is Spring Boot. It allows you to quickly assemble the dependencies and configurations for development, and runs your application, without worrying you about the complex setup involved in it.</h4><h3>Prerequisites</h3><p>Before diving into Spring Boot, the important question is do you have the below necessary items installed in your system??</p><ul><li><strong>Java Development Kit (JDK):</strong> JDK 8 or higher <em>[Link: </em><a href="https://www.oracle.com/java/technologies/downloads/#java11"><em>www.oracle.com</em></a><em>]</em></li><li><strong>Maven:</strong> Install and add <strong>M2_HOME</strong> and <strong>MAVEN_HOME</strong> variables to the Windows environment <em>[Link: </em><a href="https://maven.apache.org/download.cgi"><em>maven.apache.org</em></a><em>]</em></li><li><strong>IDE:</strong> Visual Studio (lightweight), <strong>IntelliJ </strong>(feature-rich), Eclipse (versatile), or any other Java IDE <em>[Link:</em><a href="https://www.jetbrains.com/idea/download/?section=windows"><em> www.jetbrains.com</em></a><em>]</em></li></ul><h3>Development time</h3><p>Let’s create a simple Spring Boot application that returns a welcome message when run via a web host port.</p><h4>Step 1: Initialize the Project</h4><p>You can use the Spring Initializr to quickly set up a Spring Boot project. Follow these steps:</p><ol><li>Go to the website.<em> [Link: </em><a href="https://start.spring.io/"><em>Spring Initializr</em></a><em>]</em></li><li>Select <strong>Maven Project. </strong>Or you can choose<strong> Gradle </strong>(I will continue with Maven)</li><li>Choose the <strong>Spring Boot version</strong> (latest stable version recommended)</li><li>Provide Project Metadata (Group, Artifact, Name, Description, Package Name)</li><li>Add dependency:</li></ol><ul><li><strong>Spring Web</strong> for building web applications.</li></ul><p>6. Click <strong>Generate</strong> to download the project zip and unpack it in your local suitable folder.</p><p>Finally, open the folder in your IDE.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Uolxa_6CYfhtluMYa0jyw.png" /></figure><h4>Step 2: Understand the Project Structure</h4><pre>ecommerce/<br>├── src/<br>│   ├── main/<br>│   │   ├── java/<br>│   │   │   └── com/<br>│   │   │       └── example/<br>│   │   │           └── ecommerce/<br>│   │   │               ├── EcommerceApplication.java<br>│   │   │               ├── controller/<br>|   |   |               |   └── HelloController.java<br>│   │   │               ├── model/<br>│   │   │               ├── repository/<br>│   │   │               └── service/<br>│   │   └── resources/<br>│   │       ├── application.properties<br>│   │       ├── static/<br>│   │       └── templates/<br>│   └── test/       <br>├── mvnw<br>├── mvnw.cmd<br>├── pom.xml<br>└── HELP.md</pre><h4>A typical Spring Boot project contains the following files and directories:</h4><ul><li><strong>src/main/java:</strong> Contains the main Java application code.</li><li><strong>src/test/java:</strong> Contains the application’s test cases.</li><li><strong>src/main/resources:</strong> Contains the configuration files like <strong>application.properties</strong>.</li><li><strong>pom.xml:</strong> It is a <strong>Maven configuration</strong> file where all the <strong>dependencies, versions, properties, and plugins</strong> are declared.</li></ul><h4>Step 3: Write the Application Code</h4><p>Now let’s have our basic structure for the<em> </em><strong><em>e-commerce application</em></strong> ready. It should surely include a main application class and a simple <strong>REST controller</strong>.</p><h4>1. Main Application Class</h4><p>Open the <strong>EcommerceApplication.java</strong> file located in <strong>src/main/java/com/example/ecommerce</strong>. This class is the entry point of your Spring Boot application. It should be annotated with <strong>@SpringBootApplication</strong></p><pre>package com.example.ecommerce;<br><br>import org.springframework.boot.SpringApplication;<br>import org.springframework.boot.autoconfigure.SpringBootApplication;<br><br>@SpringBootApplication<br>public class EcommerceApplication {<br><br>    public static void main(String[] args) {<br>        SpringApplication.run(EcommerceApplication.class, args);<br>    }<br>}</pre><h4>2. Create a Simple REST Controller</h4><p>Here we will handle all the HTTP requests and responses by <strong>CRUD</strong> <strong>(Create, Read, Update, Delete)</strong> operations on the respected endpoints.</p><p><em>What response is our controller providing?</em></p><p><em>It is handling a simple welcome message.</em></p><p>Create a new package controller under <strong>com.example.ecommerce</strong>. Then create a new Java class <strong>HelloController.java</strong> inside this package.</p><pre>package com.example.ecommerce.controller;<br><br>import org.springframework.web.bind.annotation.GetMapping;<br>import org.springframework.web.bind.annotation.RestController;<br><br>@RestController<br>public class HelloController {<br><br>    @GetMapping(&quot;/hello&quot;)<br>    public String sayHello() {<br>        return &quot;Welcome to the E-commerce Application!&quot;;<br>    }<br>}</pre><h4>Step 4: Run the Application</h4><ul><li>Open a terminal and navigate to the project directory.</li><li>Build the Project:</li></ul><pre>mvn clean install</pre><ul><li>Run the application using Maven:</li></ul><pre>mvn spring-boot:run</pre><p>Once the application is running, open your web browser and navigate to <strong>http://localhost:8080/hello </strong>(or any available port). You should see the message <strong>&quot;Welcome to the E-commerce Application!&quot; </strong>💰💸.</p><h3>Next Steps</h3><p>Congratulations, you’ve created your <em>FIRST SPRING BOOT APPLICATION!! HURRAYY </em>🥰<em>.</em> Now what could be next? Let’s think… hmm how about developing some unit test cases in JUnit5 or Mockito, or using Swagger/ Postman tools to check all your controllers.</p><p>You could:</p><ul><li><strong>Learn about Swagger/ Postman:</strong> They help you visualize your application with interactive API documentation, testing, and debugging.</li><li><strong>Choose an appropriate pipeline:</strong> Implement CI/CD pipelines using GitHub Enterprise, Azure DevOps, or Jenkins to automate the code testing process and have efficient code quality checks.</li></ul><p>Spring Boot definitely makes it easier to create a powerful, production-ready application with minimal configuration.</p><p>By following this guide, you’ve taken the first step towards learning Spring Boot Framework.</p><p>Hope this blog was engaging and helpful 📝. <strong>Happy coding!</strong></p><p>🤖🤖🤖</p><p>Thanks</p><p>Garima</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b85ecefff5c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codex/getting-started-with-spring-boot-a-mini-guide-6b85ecefff5c">Getting Started with Spring Boot: A Mini Guide</a> was originally published in <a href="https://medium.com/codex">CodeX</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fisher Space Pen  vs the shooting stars]]></title>
            <link>https://medium.com/@higarima1/fisher-space-pen-vs-the-shooting-stars-36616588eb91?source=rss-890f4af508f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/36616588eb91</guid>
            <category><![CDATA[science]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[space]]></category>
            <dc:creator><![CDATA[Garima Agrawal]]></dc:creator>
            <pubDate>Sat, 01 Jun 2024 13:49:01 GMT</pubDate>
            <atom:updated>2024-06-01T13:49:01.547Z</atom:updated>
            <content:encoded><![CDATA[<h3>Fisher Space Pen vs the shooting stars</h3><p>I wish this blog was written by a pen, <strong>which stood out amongst the stars</strong>. Like literally!</p><p>It was when I watched the famous Bollywood movie “<strong>3 Idiots</strong>,” that I got to know about the existence of a Space Pen. And obviously immediately got very curious about it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sUwMxLx2LtkOvyy2wSq3FQ.png" /></figure><p>I ran to my computer and did some research, which resulted to some amazing mind-blowing facts. Now after years of that information, I thought why not blog it… Never too late right?</p><p>So first, let’s begin by thinking about the initial need for Space Pens. Was it for a <strong>Dear Diary</strong> or for some <strong>meteor shopping checklist</strong>? Or for writing cute <strong>love letters</strong> to <strong>Astronauts’ Earthling crushes </strong>(although that would be an out-of-this-world romantic gesture). Sadly, to my dismay, the answer is none -_-</p><p>Instead, they are busy <strong>scribbling notes, documenting experiments, and ensuring that their mission is a success.</strong></p><h4><strong>Why not just use a pencil instead???</strong></h4><p>If an <strong>Apsara Pencil</strong> can help you score extra marks, why can&#39;t it be used up there? To answer this, we sent some pencils with the Russians, but that only resulted to floating wood shavings. And the lead became quite problematic with our dear zero gravity. So, Nahhh, not a stellar idea after all…</p><blockquote><strong><em>Thus came the invention of the Fisher Space Pen!</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VAUwuyF_grog3f9H.jpg" /></figure><h3><strong>Why was it so special?</strong></h3><p>It all started with a basic problem:<strong> How to make a pen that writes in <em>microgravity</em>.</strong> As we all know, the traditional pens need gravity, to pull the ink towards the writing tip. Without the force of gravity, these pens either fail to write properly or risk leaking their ink everywhere. And that’s why they were unreliable and mostly messy tools for astronauts.</p><p>On the opposite end, the <strong>Fisher Space Pen’s pressurized ink cartridge always ensured the consistent flow!!</strong></p><p>Second problem was the <em>temperature</em>:<strong> </strong>Space experiences wide range of temperatures, from the frigid cold in the shadows of celestial bodies to the very high heat when exposed to the sun. While the regular pens would malfunction or suffer from ink-related problems under these extreme conditions, <strong>the Space Pen is designed to write from -30 to +250 degrees Fahrenheit (-35 to +121 degrees Celsius).</strong></p><p>Lastly, what if an Astronaut had to write something <strong>underwater? </strong>In these challenging environments, the Fisher Pen can also work as <strong>Aquaman</strong>.</p><h4><strong>How about another cool power…</strong></h4><p>Though it writes on literally any surface, <em>paper, plastic and even metal, </em>the sealed and pressurized ink cartridge lasts longer than any average pen. Giving an estimation of<em> </em><strong>100-year</strong><em> </em>shelf life!!!</p><blockquote><strong>This Pen wasn’t even requested by NASA.</strong></blockquote><p><strong>THE RUMOUR</strong></p><p><strong>NASA spent millions on this pen! BUZZINGA. </strong>Nope, it was actually Fisher himself who had spent his 1 million dollars to develop a closed tube, that held a tungsten carbide ballpoint pen, pressurized nitrogen, and thixotropic ink. This pen had its own spacesuit, having no spills at all. And the ink could be anytime refilled, when needed.</p><h4>Was there any SECRET SAUCE?</h4><p>The real star of the show was the <em>thixotropic ink</em>. Rather than redesigning the cartridge when it leaked, Fisher created a <strong>toothpaste-like ink</strong> that only flowed under pressure. And this turned the cosmic trouble into a global hit!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/0*YYFRVqwNcEZkyvQJ" /><figcaption>Paul C. Fisher</figcaption></figure><h4><strong>Did NASA ever adopt it?</strong></h4><p><strong>Fisher got a groundbreaking deal of 400 Space Pens, at a discount of 40% to NASA. </strong>How could they ever say no to that! The partnership not only made Fisher’s company successful but also wrote history in each and every Space book.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*llsikezCoN1A5Lw1.jpg" /></figure><h4>THE DEBUT</h4><p>In the <strong>Apollo 7 mission, 1968</strong>, lots of Fisher pens were carried.</p><blockquote>From then on, it became a staple of every manned NASA mission.</blockquote><p>Every mission the pen demonstrated its <strong>reliability and durability</strong> in the most demanding environments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8lZXiMDcn1jDv__L.png" /></figure><h4><strong>So, the Astronauts are still using these right?</strong></h4><p>HELL YA! It has gained trust of many astronauts and engineers, becoming a symbol of excellent innovation in space exploration.</p><p>Today, up there, in the <em>International Space Station</em>, it’s like a Fisher Space Pens’ <strong>Kitty party</strong>. Dozens of them are used!</p><p>So, dear readers, the next time you pick up your pen, consider its journey. From battling gravity to conquering the universe, cause every stroke tells a story.</p><p>Happy writing to all 🥰. Regardless, if you are relaxing on your home sofa or floating among the stars.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36616588eb91" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Journey as a Data Science Intern at Expedia Group]]></title>
            <link>https://medium.com/@higarima1/journey-as-a-data-science-intern-at-expedia-group-1fd399bc1546?source=rss-890f4af508f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/1fd399bc1546</guid>
            <category><![CDATA[expedia-group]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Garima Agrawal]]></dc:creator>
            <pubDate>Sun, 24 Dec 2023 07:09:52 GMT</pubDate>
            <atom:updated>2023-12-24T07:09:52.016Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/429/1*VKojKyv9NPPSRInwXV2dUQ.png" /></figure><p>On September 20, 2022 my last two interviews for the summer internship at Expedia Group were to be held. I was just praying to God: <em>“Please, let me secure this opportunity, and I promise to solve 200 LeetCode questions right after it!”</em></p><p>Understanding that life doesn’t work upon <em>such</em> <em>bargains</em>, I thoroughly prepared for the interviews and gave it my absolute best. As the day progressed, the anticipation grew.</p><p>Later that evening, they gathered all of us to reveal the results. The selected names were announced, and to my immense joy, mine was among them.</p><p>Was it one of the best and happiest day of my life? Without a doubt.</p><h4>DAY ONE</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*uzgUXc4K0HjIlRFIyhbx0w.png" /><figcaption>Expedia Interns</figcaption></figure><p>It was the first day of work!!! Yayayayay…. I was just a super excited kid ready to explore the corporate world like <em>Dora the Explorer</em>.</p><p>Our adventure began with an onboarding session that fully immersed us in the mission, values, and culture of the organization.</p><p>An employee gave us a tour of the office which helped us get familiarized with many departments, meeting rooms, and collaborative hubs.</p><p><em>It was funny because we were the only ones wearing highly formal attire with visibly nervous faces and the entire office knew that the interns had arrived :)</em></p><figure><img alt="THE OFFICE WAS BEAUTIFUL AND AND AND WE ALL GOT TO WORK ON MAC BOOK PRO!!!" src="https://cdn-images-1.medium.com/max/644/1*p4mpUHW6zgGagP4sZ4v9pA.png" /><figcaption>THE OFFICE WAS BEAUTIFUL AND AND AND WE ALL GOT TO WORK ON MAC BOOK PRO!!!</figcaption></figure><h4>EG VALUES</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/339/1*0A7Q5xyWIVokr0OHVc0u3Q.png" /></figure><p>I have imbibed all the 5 above company values. While my favorite one was “Go Get What’s Next” because it enabled me to make the most of the two months.</p><p>Together, we also celebrated various festivities and enjoyed some delicious cultural meals. Many times, we had a conference room booked just for fun activities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*BPadrcc4EhPuVrW5RGK48Q.png" /><figcaption>Chat Counter at Office</figcaption></figure><h4>PROJECTS</h4><p>In the latter of the first week, I had the opportunity to meet my manager and the entire team. Being new to the environment, I was nervous at first. But fortunately, my team proved to be incredibly supportive and welcoming.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mciyjSBJny_L7h0oaxefog.jpeg" /><figcaption>My Product Team</figcaption></figure><p>My manager provided guidance throughout the process. I was entrusted with two significant projects: the first involved creating a <strong>data pipeline</strong> and the second was developing machine learning models for prediction.</p><p>My mentor from the Seattle office, played a pivotal role in helping me grasp the fundamentals of being a <strong>Data Engineer</strong>.</p><p>I learned about various unfamiliar tools and libraries, and how to use them appropriately while coding. During the completion of the project, I performed the automation process for the first time.</p><p>In my second project, lots of trial-and-error approaches were employed to determine the most effective models. Designing a mathematical algorithm, I utilized feature selection methods like Variance Threshold to identify essential inputs. This yielded impressive results with extraordinary accuracy.</p><h4>FINAL REVIEW</h4><p>The <strong>last week</strong> proved to be a challenging period for all the interns as we navigated the tasks of creating a presentation.</p><p>Filled with joy and pride for the accomplishments of my internship, I eagerly looked forward to sharing the highlights of my work with others. To ensure a polished delivery, I conducted a dry run with my manager and numerous colleagues, seeking constructive feedback.</p><p>I presented my work confidently before the entire department, including the senior leadership. The reactions were overwhelmingly positive, with everyone expressing genuine appreciation.</p><p>My internship at Expedia Group was a <strong>transformative journey</strong>, allowing me to apply theoretical knowledge in a dynamic, real-world setting.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1fd399bc1546" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>