Skip to content

Commit

Permalink
Polish Dubbo 2.6.x adapter and unify callback registry into DubboAdap…
Browse files Browse the repository at this point in the history
…terGlobalConfig (alibaba#1572)

* Unify Dubbo callback registry (for fallback and origin parser) into DubboAdapterGlobalConfig
* Polish default fallback implementation (wrap exception with RpcResult rather than directly throw it out)

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
  • Loading branch information
sczyh30 authored and mastertiller committed Aug 20, 2020
1 parent 21736b7 commit 8dd856f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 44 deletions.
8 changes: 1 addition & 7 deletions sentinel-adapter/sentinel-dubbo-adapter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,4 @@ flow control, degrade or system load protection. You can implement your own `Dub
and then register to `DubboAdapterGlobalConfig`.
If no fallback is configured, Sentinel will wrap the `BlockException` as the fallback result.

Besides, we can also leverage [Dubbo mock mechanism](http://dubbo.apache.org/en-us/docs/user/demos/local-mock.html) to provide fallback implementation of degraded Dubbo services.

## Global dubbo provider origin parse

Sentinel Dubbo Adapter supports global origin parse for provider.
You can implement your own `DubboOriginParser` interface
and then register to `DubboOriginParserRegistry`. If no originParse is configured, Sentinel will user dubbo url property application.
Besides, we can also leverage [Dubbo mock mechanism](http://dubbo.apache.org/en-us/docs/user/demos/local-mock.html) to provide fallback implementation of degraded Dubbo services.

This file was deleted.

0 comments on commit 8dd856f

Please sign in to comment.