Documente Academic
Documente Profesional
Documente Cultură
What is ESB?
An Enterprise Service Bus (ESB) is fundamentally an architecture. It's used
to integrate applications together over a bus. ESB products enable users to
build this type of architecture .
Why ESB?
To decouple the services and allowing
to communicate without dependency.
accounting service want to prepare invoices, when ever it want to prepare invoices it need
customer details which are retrieved from crm service.
So now if we integrate these two services with point-to-point communication then the
accounting service will directly talk to crm service.
If the crm service divided into two services ,one service produced with rest service
and
another with jms. If any one service is down then the system will crash the
application
never work properly.
If end point of the service changes (ip changed) we need to update the address in all the
services also.
Communication using
esb
Message:
The central part in mule is message
Message source
flow
Message processors
Http endpoint recieve http request and it will start a server and
listen on port. What ever we configure port for http end point in
mule configuration file like 9999.
internally end point using some connectors. So end point will
start listening on this port.
Http having inbound and out bound.
Http in bound : if message comes into the flow
Http outbound : message goes from the flow to out of the flow.
IDE
Mule provided an ide like eclipse. So that we can work on the mule ide itself. Or
else we can add a plugin of mule in eclipse also (Anypoint studio).
Server :
Mule provided server like stand alone server to deploy the applications. Its a trial
version.
To deploy the applications for free, we need to embed the mule to tomcat. (by adding
configuration and libraries in tomcat we can work with mule easily).