Skip to content

daggerok/spring-cloud-gateway-rsocket-example

Repository files navigation

spring-cloud-gateway-rsocket example CI

Polyglot RSocket clients communication via RSocket gateway cluster...

                                +------+       +------+
                     +~-*-~--~> | gw 2 | <~-~> | pong |
                     |          +------+       +------+
   Client            V              |           Server
  +------+       +------+       +------+
  | ping | <~-~> | gw 1 | <~-~> | gw 3 |
  +------+       +------+       +------+
  • no service mesh
  • no sidecar
  • no circuit breaker

deprecation

Unfortunately, that project has been deprecated. See: https://github.com/rsocket-routing/rsocket-routing-broker instead

Updated project example repository located here: https://github.com/daggerok/rsocket-routing-example

getting started

start r-socket gateway cluster run ping-pong apps

./mvnw compile spring-boot:start -f gateway -Pgw1
./mvnw compile spring-boot:start -f gateway -Pgw2
./mvnw compile spring-boot:start -f gateway -Pgw3
./mvnw compile spring-boot:start -f pong
./mvnw compile spring-boot:start -f ping

after all tear down everything

#./mvnw spring-boot:stop -f pong
#./mvnw spring-boot:stop -f ping
#./mvnw spring-boot:stop -f gateway -Pgw3
#./mvnw spring-boot:stop -f gateway -Pgw2
#./mvnw spring-boot:stop -f gateway -Pgw1
killall java

Versions

  • spring-cloud -> Hoxton.RELEASE
  • spring-cloud-gateway-rsocket -> 2.2.0.M2
  • spring-cloud-rsocket-broker -> 0.2.0.BUILD-SNAPSHOT
  • spring-cloud-rsocket-client -> 0.2.0.BUILD-SNAPSHOT

Resources