seninel部署
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

123456789101112131415161718192021
  1. # Sentinel Reactor Adapter
  2. Sentinel provides integration module for [Reactor](https://projectreactor.io/).
  3. Add the following dependency in `pom.xml` (if you are using Maven):
  4. ```xml
  5. <dependency>
  6. <groupId>com.alibaba.csp</groupId>
  7. <artifactId>sentinel-reactor-adapter</artifactId>
  8. <version>x.y.z</version>
  9. </dependency>
  10. ```
  11. Example:
  12. ```java
  13. someService.doSomething() // return type: Mono<T> or Flux<T>
  14. .transform(new SentinelReactorTransformer<>(resourceName)) // transform here
  15. .subscribe();
  16. ```