Skip to content
Browse files
Sync update and bump version to 0.1.1
Signed-off-by: Eric Zhao <>
  • Loading branch information
sczyh30 committed Aug 9, 2018
1 parent 6865f35 commit 3d580a1784fdb862ba2d1853ea8130dc7b7f9f9f
Showing 5 changed files with 16 additions and 1 deletion.
@@ -1,5 +1,7 @@
# Sentinel Dubbo Adapter

> Note: 中文文档请见[此处](。
Sentinel Dubbo Adapter provides service consumer filter and provider filter
for [Dubbo]( services.

@@ -51,3 +53,13 @@ so developers should manually put the application name into *attachment* at cons
then extract it at provider side. Sentinel Dubbo Adapter has implemented a filter (`DubboAppContextFilter`)
where consumer can carry application name information to provider automatically.
If the consumer does not use Sentinel Dubbo Adapter but requires flow control based on caller, developers can manually put the application name into attachment with the key `dubboApplication`.
## Global fallback

Since version 0.1.1, Sentinel Dubbo Adapter supports global fallback configuration.
The global fallback will handle exceptions and give replacement result when blocked by
flow control, degrade or system load protection. You can implement your own `DubboFallback` interface
and then register to `DubboFallbackRegistry`. If no fallback is configured, Sentinel will wrap the `BlockException`
then directly throw it out.

Besides, we can also leverage [Dubbo mock mechanism](!/docs/user/demos/ to provide fallback implementation of degraded Dubbo services.
@@ -7,7 +7,7 @@
@@ -23,6 +23,7 @@

* @author Eric Zhao
* @since 0.1.1
public class DefaultDubboFallback implements DubboFallback {

@@ -24,6 +24,7 @@
* Fallback handler for Dubbo services.
* @author Eric Zhao
* @since 0.1.1
public interface DubboFallback {

@@ -22,6 +22,7 @@
* give fallback result in most circumstances.
* @author Eric Zhao
* @since 0.1.1
public final class DubboFallbackRegistry {

0 comments on commit 3d580a1

Please sign in to comment.