在RSocket众多开发语言SDK中,目前支持的最好就是Java SDK,所以这里我们介绍一下RSocket Java SDK。 RSocket Java SDK是基于Reactor这款Java Reactive框架开发,所以Reactor的一些编辑特性在SDK中都有体现。 另外RSocket得到Spring社区的大力支持,如Spring Framework 5.2+内置RSocket支持,Spring Boot 2.2+的RSocket Starter将RSocket开发变得更加简单。 相信不久你可以看多更多的产品会支持RSocket协议。
如果你想马上尝试一下RSocket,可以参考 Getting Started With RSocket: Spring Boot Server
这里给出一些常见样例:
- Easy RPC with RSocket: https://spring.io/blog/2021/01/18/ymnnalft-easy-rpc-with-rsocket
- Spring Boot with Kotlin and RSocket: https://spring.io/guides/tutorials/spring-webflux-kotlin-rsocket/
- RSocket Load Balancing – Client Side: https://www.vinsguru.com/rsocket-load-balancing-client-side/
- RSocket Java Examples: https://github.com/gregwhitaker?utf8=%E2%9C%93&tab=repositories&q=rsocket+example&type=&language=
- Spring cloud function with RSocket: https://github.com/linux-china/spring-cloud-function-demo
- Spring Boot RSocket Demo with RPC style: https://github.com/linux-china/spring-boot-rsocket-demo
- Spring Framework with RSocket: https://docs.spring.io/spring-integration/docs/current/reference/html/rsocket.html
- Spring Boot RSocket: https://docs.spring.io/spring/docs/current/spring-framework-reference/web-reactive.html#rsocket
- Spring Security RSocket: https://docs.spring.io/spring-security/site/docs/current/reference/html/rsocket.html
- Getting Started With RSocket: Spring Security https://spring.io/blog/2020/06/17/getting-started-with-rsocket-spring-security
- Spring Integration RSocket: https://docs.spring.io/spring-integration/docs/current/reference/html/rsocket.html#rsocket
- Alibaba RSocket Broker: https://github.com/alibaba/alibaba-rsocket-broker
- vlingo wire: https://github.com/vlingo/vlingo-wire
- RSocket Routing Broker: https://github.com/rsocket-routing/rsocket-routing-broker
- Spring Retrosocket: Feign-like or Retrofit-like experience for declarative RSocket-based clients https://github.com/spring-projects-experimental/spring-retrosocket