mercyblitz / java-training-camp

Java Training Camp
Apache License 2.0
169 stars 116 forks source link

第二期 作业九:基于 Redisson 实现分布式服务容错 #19

Open mercyblitz opened 1 year ago

mercyblitz commented 1 year ago

要求

  1. (必须)实现 BulkHead
  2. (可选)实现 RateLimiter

提示

  1. 利用 RedissonSemaphore 实现
  2. 参考 Redisson RateLimiter 实现
Kurok1 commented 1 year ago

https://github.com/Kurok1/java-training-camp/commit/a95daf56c2b899e8b8e2d42d56224667581d7a71 https://github.com/Kurok1/java-training-camp/blob/homework/stage-2/redisson-fault-tolerance/stage-2/src/middleware-projects/distributed-cache-project/src/test/java/com/acme/middleware/distrtibuted/cache/RedissonRateLimiterTest.java rateLimiter 测试 https://github.com/Kurok1/java-training-camp/blob/homework/stage-2/redisson-fault-tolerance/stage-2/src/middleware-projects/distributed-cache-project/src/test/java/com/acme/middleware/distrtibuted/cache/RedissonSemaphoreBulkHeadTest.java bulkhead 测试

liqi19950722 commented 1 year ago

https://github.com/liqi19950722/Work/tree/master/work-2-09 https://github.com/smallrye/smallrye-fault-tolerance 这里的实现看起来比较通俗易懂 resilience4j和 Redisson RateLimiter 我都没看懂