dubbo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chickenlj (GitHub) <git...@apache.org>
Subject [GitHub] [incubator-dubbo] chickenlj commented on issue #3585: [DISCUSSION] Make filter totally asynchronous and event-driven.
Date Mon, 04 Mar 2019 08:27:26 GMT
Bringing Ian's question to here:
>In your new proposed interface, how could we construct a filter chain? Say,
how could filter-a process further a value processed by filter-b?

I don't think we still need a nested Filter chain as before, the new Filter can simply work
as follow:

```java
Iterate(filters) {
    filter.onSend();
}

Result result = invoker.invoke();

result.whenComplete((value, t) {
  Iterate tail-to-head(filters) {
     filter.doResponse();
     filter.doError();
  }
});
```                                                                                   

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3585 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


Mime
View raw message