alibaba / Sentinel

A powerful flow control component enabling reliability, resilience and monitoring for microservices. (面向云原生微服务的高可用流控防护组件)
https://sentinelguard.io/
Apache License 2.0
22.46k stars 8.04k forks source link

[Feature] Reactive support for Sentinel #441

Open sczyh30 opened 5 years ago

sczyh30 commented 5 years ago

Issue Description

Type: feature request

Describe what feature you want

Reactive can bring higher throughput for IO-intensive workloads. It can also bring more elegant programming style (fluent and functional, event-driven), which has been a trend in Java community. Since Sentinel has supported asynchronous entry (SphU.asyncEntry(resourceName)), we can integrate with reactive stream libraries, like:

Once we've accomplished this, we can easily integrate Sentinel with Spring WebFlux, Vert.x, etc.

westonlv commented 5 years ago

期待

linlinisme commented 5 years ago

I will solve this problem soon, waiting for my good news.

sczyh30 commented 5 years ago

I will solve this problem soon, waiting for my good news.

Nice. Looking forward to your work :)

sczyh30 commented 5 years ago

@linlinisme Any progress on integration with RxJava 2.x? :)

linlinisme commented 5 years ago

emm... RxJava is more complicated than what I think, the progress is not well

sczyh30 commented 5 years ago

emm... RxJava is more complicated than what I think, the progress is not well

Don't worry, we could discuss the design here :) You could also refer to the code of SentinelReactorSubscriber.

nitishgoyal13 commented 4 years ago

Hi @linlinisme @sczyh30 ,

Did we make any progress on this? If yes, could you please help me out pointing to the right repo/file where I can read the implementation/example

Thanks