Tuesday 25 February 2020

6 years exp java interview preparation_Apache Camel and Apache Kafka

Apache Camel:

In an enterprise, a number of systems of different types exist. Some of these may be legacy systems while some may be new. These systems often interact with each other,and need to be integrated. This interaction or integration is not easy as the implementations of the systems, their message formats may differ. One way to achieve this is to implement code which bridges these differences. However this will be point to point integration. If tomorrow again if there is change in a system the other might also have to be changed which is not good. Instead of this point to point integration which causes tight coupling we can implement an additional layer to mediate the differences between the systems. This results in loose coupling and not affect much our existing systems. Apache Camel is a rule-based routing and mediation engine that provides a Java object- based implementation of the Enterprise Integration Patterns using an API (or declarative Java Domain Specific Language) to configure routing and mediation rules.




Apache Camel ™ is a versatile open-source integration framework based on known Enterprise Integration Patterns.

Camel empowers you to define routing and mediation rules in a variety of domain-specific languages, including a Java dsl, spring xml dsl.

Apache Camel uses URIs to work directly with any kind of Transport or messaging model such as HTTPActiveMQJMS,

Apache Camel is a small library with minimal dependencies for easy embedding in any Java application.

jms
Activemq
Wmq
Kafka
Rest
Direct synchronsus with in the contxt
Seda:àasynchronus with in the context.

Direc:vm: synch in another app context
Vm:asyn in another app context

Quartz
Time
Ftps secure ssl

File
Csv
To(http:// so  HTTP component.

From
To
Bean
Beanref
.inonly
.splitter:revierse of aggregator
.multicast
.aggregator
.loop

Errorhandler(Deadlear channel(“mock:error))

ProducerTemplate
ConsuermTemplate

========================


=====================
Kafka connect POC.


No comments:

Post a Comment