Skip to content

lineCode/polaris-java

 
 

Repository files navigation

polaris-java

Build Status Maven Central

Polaris is an operation centre that supports multiple programming languages, with high compatibility to different application framework. Polaris - java is Polaris's Java embedded operation SDK.

Quick Start

Package Dependencies

PreCondition: DependencyManagement

Add the below script into the root pom element , after that you can refer all the polaris dependency freely.

<dependencyManagement>        
    <dependencies>
        <dependency>
            <groupId>com.tencent.polaris</groupId>
            <artifactId>polaris-dependencies</artifactId>
            <version>${version}</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

Use all functions

<dependency>
    <groupId>com.tencent.polaris</groupId>
    <artifactId>polaris-factory</artifactId>
</dependency>

Use discovery only

<dependency>
    <groupId>com.tencent.polaris</groupId>
    <artifactId>polaris-discovery-factory</artifactId>
</dependency>

Use circuitbreak and degrade only

<dependency>
    <groupId>com.tencent.polaris</groupId>
    <artifactId>polaris-circuitbreaker-factory</artifactId>
</dependency>

Use ratelimit

<dependency>
    <groupId>com.tencent.polaris</groupId>
    <artifactId>polaris-ratelimit-factory</artifactId>
</dependency>

User manual

You can find detail in:using polaris-java

License

The polaris-java is licensed under the BSD 3-Clause License. Copyright and license information can be found in the file LICENSE

About

Java Client for Polaris

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%