An open API service indexing awesome lists of open source software.

https://github.com/dwolla/rsocket-consul-java

A library for streaming healthy service instances in Consul to the RSocket load balancer
https://github.com/dwolla/rsocket-consul-java

consul java rsocket

Last synced: 7 months ago
JSON representation

A library for streaming healthy service instances in Consul to the RSocket load balancer

Awesome Lists containing this project

README

          

# rsocket-consul-java
A library for streaming healthy service instances in Consul to the [RSocket](https://github.com/rsocket/rsocket-java) Java load balancer.

![Dwolla/rsocket-consul-java CI](https://github.com/Dwolla/rsocket-consul-java/actions/workflows/ci.yml/badge.svg)
[![license](https://img.shields.io/github/license/Dwolla/rsocket-consul-java.svg?style=flat-square)]()

## Usage
```java
import com.dwolla.rsocket.LoadBalancerBuilder;

// Create a LoadBalancedRSocketMono for your service
LoadbalanceRSocketClient rSocket = new LoadBalancerBuilder().build("CONSUL_SERVICE_NAME");

// Then use the resulting RSocket like you would a single instance
rSocket.fireAndForget(DefaultPayload.create("do something"));
```