<?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 Ajaydarshanala on Medium]]></title>
        <description><![CDATA[Stories by Ajaydarshanala on Medium]]></description>
        <link>https://medium.com/@ajaydarshanala?source=rss-ec18524090f6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*9y528k-9q3iG444xA9anng.jpeg</url>
            <title>Stories by Ajaydarshanala on Medium</title>
            <link>https://medium.com/@ajaydarshanala?source=rss-ec18524090f6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 14:23:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ajaydarshanala/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[How to create a maven multi module project in spring tool suite IDE]]></title>
            <link>https://ajaydarshanala.medium.com/how-to-create-a-maven-multi-module-project-in-spring-tool-suite-ide-e988a85ba012?source=rss-ec18524090f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/e988a85ba012</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[multi-module-project]]></category>
            <category><![CDATA[multi-module]]></category>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[maven]]></category>
            <dc:creator><![CDATA[Ajaydarshanala]]></dc:creator>
            <pubDate>Wed, 04 Sep 2024 11:38:53 GMT</pubDate>
            <atom:updated>2024-09-04T11:38:53.171Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*dJmNQwq4aI-YYtvOGqFiZw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/417/1*yyQ8hYmD9Xr2sTO4g6X0zQ.png" /></figure><ol><li>Create plain spring boot application with default dependencies</li><li>Change the packaging of the main module to pom &lt;packaging&gt;pom&lt;/packaging&gt;</li><li>Click on the main project and create-&gt;new-&gt;maven module-&gt;create simple project ( skip archetype selection )<br>Give module name -&gt; choose main project as parent project<br>(Optional) — Add proeject(s) to working set-&gt; Next<br>Next -&gt; add details in Configure project screen -&gt;<br>Next -&gt; Finish</li><li>The new module is created under the main project.</li><li>Note: If you want create more modules under the first submodule for usecases like stubs then<br>change the &lt;packaging&gt; of the submodule to POM and repeat the same.</li><li>The final submodules should be a jar type<br>configure project (multi module as a project)</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e988a85ba012" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Application Observability]]></title>
            <link>https://ajaydarshanala.medium.com/application-observability-c50e4d1f6642?source=rss-ec18524090f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/c50e4d1f6642</guid>
            <category><![CDATA[observability]]></category>
            <category><![CDATA[application-observability]]></category>
            <category><![CDATA[micrometer]]></category>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Ajaydarshanala]]></dc:creator>
            <pubDate>Tue, 23 Jul 2024 13:22:55 GMT</pubDate>
            <atom:updated>2024-07-23T14:44:06.326Z</atom:updated>
            <content:encoded><![CDATA[<p>The document contains High level understanding of observability concept</p><blockquote><strong>Definition according to Spring observability team :: </strong>What is observability? In our understanding, it is <em>“</em><strong><em>how well you can understand the internals of your system by examining its outputs</em></strong><em>”</em>. We believe that the <strong>interconnection between metrics, logging, and distributed tracing</strong> gives you the ability to reason about the state of your system in order to debug exceptions and latency in your applications.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JPnS-kKzu2HqfXWxifVnxA.png" /></figure><ul><li><strong>Observability with Spring Boot 3 : </strong><a href="https://spring.io/blog/2022/10/12/observability-with-spring-boot-3">https://spring.io/blog/2022/10/12/observability-with-spring-boot-3</a></li><li><strong>Default supported metrics</strong> : <a href="https://docs.spring.io/spring-boot/reference/actuator/metrics.html#actuator.metrics.supported">https://docs.spring.io/spring-boot/reference/actuator/metrics.html#actuator.metrics.supported</a></li><li><strong>Metrics</strong> : <a href="https://docs.spring.io/spring-boot/reference/actuator/metrics.html">https://docs.spring.io/spring-boot/reference/actuator/metrics.html</a></li><li><strong>Micrometer</strong></li><li><a href="https://docs.micrometer.io/micrometer/reference/overview.html">1. https://docs.micrometer.io/micrometer/reference/overview.html</a></li><li><a href="https://micrometer.io/docs/tracing">2. https://micrometer.io/docs/tracing</a></li></ul><p><strong>Glossary</strong>:<br><a href="https://docs.micrometer.io/tracing/reference/glossary.html#:~:text=Span%3A%20The%20basic%20unit%20of,IDs%20(normally%20IP%20addresses)">https://docs.micrometer.io/tracing/reference/glossary.html#:~:text=Span%3A%20The%20basic%20unit%20of,IDs%20(normally%20IP%20addresses)</a>.</p><p><strong>Micrometer</strong> : Micrometer is a metrics instrumentation library for JVM-based applications</p><p><strong>Span</strong>: The basic unit of work. For example, sending an RPC is a new span, as is sending a response to an RPC. Spans also have other data, such as descriptions, timestamped events, key-value annotations (tags), the ID of the span that caused them, and process IDs (normally IP addresses).</p><p>Spans can be started and stopped, and they keep track of their timing information. Once you create a span, you must stop it at some point in the future.</p><p><strong>Trace</strong>: A set of spans forming a tree-like structure. For example, if you run a distributed big-data store, a trace might be formed by a PUT request.</p><p><strong>Annotation/Event</strong>: Used to record the existence of an event in time.</p><p><strong>Tracer</strong>: A library that handles the lifecycle of a span. It can create, start, stop, and report spans to an external system via reporters / exporters.</p><p><strong>Tracing context</strong>: For distributed tracing to work, the tracing context (trace identifier, span identifier, and so on) must be propagated through the process (for example, over threads) and over the network.</p><p><strong>Log correlation</strong>: Parts of the tracing context (such as the trace identifier and the span identifier) can be populated to the logs of a given application. One can then collect all logs in a single storage and group them with a trace ID. That way, you can get all logs, for a single business operation (trace) from all services put in a chronological order.</p><p><strong>Latency analysis tools</strong>: A tool that collects exported spans and visualizes the whole trace. Such a tool allows easy latency analysis.</p><p><strong>Default Metrics : </strong><a href="https://docs.spring.io/spring-boot/reference/actuator/metrics.html#actuator.metrics.supported">https://docs.spring.io/spring-boot/reference/actuator/metrics.html#actuator.metrics.supported</a><br><strong>JVM Metrics</strong> published under the jvm. meter name<br><strong>System Metrics</strong> : published under the system., process., and disk. meter names.<br><strong>Application Startup Metrics <br>1.</strong>application.started.time <br>2.application.ready.time<br><strong>Logger Metrics </strong>published under the log4j2.events. or logback.events. meter names.<br><strong>Task Execution and Scheduling Metrics</strong><br><strong>Spring MVC Metrics</strong> generated with the name, http.server.requests<br>S<strong>pring WebFlux Metrics</strong> http.server.requests<br>………………..and more metrics in the above link</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c50e4d1f6642" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to create custom constraint based validation in java spring boot]]></title>
            <link>https://ajaydarshanala.medium.com/how-to-create-custom-constraint-based-validation-in-java-spring-boot-db794a50fa84?source=rss-ec18524090f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/db794a50fa84</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[constraints]]></category>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[validation]]></category>
            <dc:creator><![CDATA[Ajaydarshanala]]></dc:creator>
            <pubDate>Thu, 21 Mar 2024 10:08:03 GMT</pubDate>
            <atom:updated>2024-03-21T10:09:06.313Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to create custom constraint in java spring boot</h3><p>Add dependency in pom.xml</p><pre>&lt;dependency&gt;<br>  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;<br>  &lt;artifactId&gt;spring-boot-starter-validation&lt;/artifactId&gt;<br>&lt;/dependency&gt;</pre><pre>import java.lang.annotation.Documented;<br>import java.lang.annotation.ElementType;<br>import java.lang.annotation.Retention;<br>import java.lang.annotation.RetentionPolicy;<br>import java.lang.annotation.Target;<br>import jakarta.validation.Constraint;<br>import jakarta.validation.Payload;<br>@Documented<br>@Constraint(validatedBy = NullandEmptyStringValidator.class)@<br>Target(value = {ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER})<br>@Retention(RetentionPolicy.RUNTIME)<br>public @interface NullandEmptyContraint {<br>String message() default &quot;Invalid parameter&quot;;<br>Class&lt;?&gt;[] groups() default {};<br>Class&lt;? extends Payload&gt;[] payload() default {};<br>}</pre><pre>import java.lang.annotation.Annotation;<br>import org.apache.commons.lang3.ObjectUtils;<br>import org.springframework.stereotype.Component;<br>import jakarta.validation.ConstraintValidator;<br>import jakarta.validation.ConstraintValidatorContext;<br><br>@Component<br>public class NullandEmptyStringValidator implements ConstraintValidator&lt;NullandEmptyContraint, String&gt;{<br>@Override<br>public boolean isValid(String value, ConstraintValidatorContext context) {<br>log.info(&quot;NullandEmptyStringValidator triggered&quot;);<br>if(ObjectUtils.isNotEmpty(value)) {<br>return true;<br>}<br>return false;<br>}<br>}</pre><pre>@RestController<br>@RequestMapping(&quot;/api/v1&quot;)<br>@Validated<br>public class myRestController {<br>@GetMapping(&quot;/products&quot;)<br>public ResponseEntity&lt;ProductsResponse&gt; getProducts(<br>@RequestParam @Valid @NullandEmptyContraint String productId;</pre><pre>@RestControllerAdvice<br>public class GlobalExceptionHandler {<br>@ExceptionHandler(ConstraintViolationException.class)<br>@ResponseStatus(value = HttpStatus.BAD_REQUEST)<br>public ErrorMessage handleConstraintViolationException(ConstraintViolationException ex) {<br>log.error(&quot;caught ConstraintViolationException : {} &quot;, ex.getMessage());<br>return new ErrorMessage(ErrorCodes.BAD_INPUT_EXCEPTION);<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db794a50fa84" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[It’s not full stack, call it as A FULLSTACK DEVELOPER FOCUSED FRONTEND or A FULLSTACK DEVELOPER…]]></title>
            <link>https://ajaydarshanala.medium.com/its-not-full-stack-call-it-as-a-fullstack-developer-focused-frontend-or-a-fullstack-developer-af0082c56a7b?source=rss-ec18524090f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/af0082c56a7b</guid>
            <category><![CDATA[backend-development]]></category>
            <category><![CDATA[full-stack]]></category>
            <category><![CDATA[full-stack-developer]]></category>
            <category><![CDATA[developer]]></category>
            <dc:creator><![CDATA[Ajaydarshanala]]></dc:creator>
            <pubDate>Sat, 21 Nov 2020 21:23:35 GMT</pubDate>
            <atom:updated>2020-11-22T17:03:21.513Z</atom:updated>
            <content:encoded><![CDATA[<h3>It’s not full stack, call it as A FULLSTACK DEVELOPER FOCUSED FRONTEND or A FULLSTACK DEVELOPER FOCUSED BACKEND</h3><p>To the all developers(2010–2020) in enterprise apps, from era of development with “HTML,CSS,JS,JSP+anybackend” till today development with “frontendframework(ANGULAR/REACT..etc)+anybackend”.</p><p>— — — -</p><p>Back then the frontend technologies were not huge as todays. Being a specialized full stack was easy with “HTML,CSS,JS,JSP+anybackend framework STRUTS/SPRING/.NET..etc.”. But Today with improved features, increased complexity, depth of the frontend framework such as Angular,React..etc, it is not easy to be a full stack. A full stack dev should have strong understanding of FRONTENDFRAMEWORK+WEBSERVICES+A BACKENDFRAMEWORK+DATABSE+CICD. As each technology/framework has its own concepts&amp; implementation ways, the learning scale has become very large, that left the full stack developer under pressure and made becoming T shaped developer more difficult. (A T shaped developer is one with deep level skills in one area and broad understanding of other)</p><p>Hence in my view — Today one should be either</p><p>A FULLSTACK DEVELOPER FOCUSED FRONTEND-[a STRONG frontend framework+ good understanding of backend+webservices+Database+CICD+OS]</p><p>or</p><p>A FULLSTACK DEVELOPER FOCUSED BACKEND -[a STONRG backend framework+good understanding of Frontend+webservices+Database+CICD+OS]</p><p>This stack would make a developer confident, specialist in respective area. Encourage to follow best principle and practices.</p><p>What is your view dear #fullstackdevelopers #developer #frontend #backend</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IcXyUkx5pzzTXYVsrB6o-g.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af0082c56a7b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>