Skip to content
Permalink
Browse files
Sync update and bump version to 0.1.1
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
  • 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: 中文文档请见[此处](https://github.com/alibaba/Sentinel/wiki/%E4%B8%BB%E6%B5%81%E6%A1%86%E6%9E%B6%E7%9A%84%E9%80%82%E9%85%8D#dubbo)。
Sentinel Dubbo Adapter provides service consumer filter and provider filter
for [Dubbo](http://dubbo.io/) 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](http://dubbo.apache.org/#!/docs/user/demos/local-mock.md?lang=en-us) to provide fallback implementation of degraded Dubbo services.
@@ -7,7 +7,7 @@
<parent>
<groupId>com.alibaba.csp</groupId>
<artifactId>sentinel-adapter</artifactId>
<version>0.1.0</version>
<version>0.1.1</version>
</parent>
<artifactId>sentinel-dubbo-adapter</artifactId>
<packaging>jar</packaging>
@@ -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.