Skip to content
devlibx edited this page Oct 8, 2024 · 13 revisions

Welcome to the easy wiki! We have some helper libraries which are very common.


Find the latest version from - Devlibx Maven. Use the latest 0.0.N version.

<dependency>
    <groupId>io.github.devlibx.easy</groupId>
    <artifactId>[module name you need to use e.g. helper]</artifactId>
    <version>0.0.143</version>
</dependency>

Important: For java 21 with jakarta (replaced javax) use the following

<!-- 
What is done here:
To avoid braking other changes, created this tag which is postfixed with jakarta. The other dropwizard change is to make sure you
use correct dropwizard versions e.g. 4+ (virtual thread support).
You may have already setup all this - just use "0.0.144-jakarta" or latest with postfix "-jakarta"
-->

<easy.version>0.0.144-jakarta</easy.version>
<dropwizard.version>4.0.7</dropwizard.version>   => or 4.0.4

<dependencyManagement>
  <dependencies>            
        <dependency>
            <groupId>io.github.devlibx.easy</groupId>
            <artifactId>easy</artifactId>
            <version>${easy.version}</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>

        <!-- Start: This may not be needed if you have the proper dependencies set up for Dropwizard -->
        <dependency>
            <groupId>io.dropwizard</groupId>
            <artifactId>dropwizard-dependencies</artifactId>
            <version>${dropwizard.version}</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
        <dependency>
            <groupId>io.dropwizard</groupId>
            <artifactId>dropwizard-core</artifactId>
            <version>${dropwizard.version}</version>
        </dependency>
        <!-- End -->

        <!-- Other dependencies below -->

    </dependencies>          
</dependencyManagement>	          

  • Dropwizard App
    • Support for virtual thread
    • Support for dropwizard 4.0
  • Rate Limiter
    • Distributed rate limiter backed by Redis
    • Adaptive rate limiter which scale up/down based on the DDB read/write capacity
  • Metric
    • StatsD implementation
    • Prometheus implementation
    • Fully integrated into all Easy libraries vi DI e.g. rate limiter, HTTP, messaging etc
  • HTTP
    • Circuit Breaker
    • Timeouts
    • All API call metrics (using IMetrics dependency)
    • If you are using Java 21 - verify "Using virtual thread in ResilienceProcessor" logs -> this is shown in http is using virtual threads
Clone this wiki locally