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
- Host: GitHub
- URL: https://github.com/dwolla/rsocket-consul-java
- Owner: Dwolla
- License: mit
- Created: 2019-04-19T19:27:15.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2021-05-28T16:45:23.000Z (almost 5 years ago)
- Last Synced: 2025-04-06T23:34:36.776Z (11 months ago)
- Topics: consul, java, rsocket
- Language: Java
- Size: 86.9 KB
- Stars: 5
- Watchers: 15
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.

[]()
## 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"));
```