seninel部署
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 518B

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. ```