/rsocket-box

A container with RSocket utilities

Primary LanguageDockerfile

rsocket-box

A lightweight container with RSocket and Alibaba RSocket Broker utilities.

How to run rsocket-box in Kubernetes?

kubectl run -i --rm --tty rsocket-box --image=linuxchina/rsocket-box --restart=Never --image-pull-policy=Always

Commands

  • just brokers: list brokers
  • alirsc: call services registered on the broker
  • List brokers:
alirsc tcp://rsocket-broker.rsocket.svc.cluster.local:9999 --request --route com.alibaba.rsocket.discovery.DiscoveryService.getInstances -d '["*"]'
  • Call UserService
alirsc tcp://rsocket-broker.rsocket.svc.cluster.local:9999 --request --route com.alibaba.user.UserService.findById -d '[1]'