Spring-Integration

Many frameworks or middlewares have the same concept and desgin principle.

EIP:

 

Flume:

 

Storm:

 

Spring:

 

 

 

@Configuratiom
public class SomeConfiguration {

    @Bean("someService.handler")
    @EndpointId("someService")
    @ServiceActivator(inputChannel = ...)
    public MessageHandler someHandler() {
        ...
    }

}
@Component
public class SomeComponent {

    @EndpointId("someService")
    @ServiceActivator(inputChannel = ...)
    public String someMethod(...) {
        ...
    }

}

 

 Netty:

 

 

 

 

 

 

Spark:

Flink:

 

posted @ 2018-10-25 15:33  iDragon  阅读(438)  评论(0编辑  收藏  举报