Meet Fabric8: An Open-Source Integration Platform Based on Camel and ActiveMQ
Join the DZone community and get the full member experience.Join For Free
it provides automated configuration and deployment management to help make deployments easy, reproducible, and less human-error prone.
fabric8 unifies and packages those open-source projects to help you build integrations between systems and also tackle non-functional requirements like managing your deployments, service discovery, failover, load balancing, centralized configuration, automation, and more! it also gives a clear path to cloud deployments, such as on paas the best part is it’s familiar to people who already use camel or activemq which are the most popular open-source integration libraries and messaging platforms respectively.
awesome, so what does fabric8 give me?
fabric8 provides a lot of functionality … but a couple of key pieces of functionality that i’d like to mention in this blog post, pieces that you’d otherwise have to build out yourself if you use the constituent projects directly, are:
* automated deployment and provisioning * polycontainer support * centralized management * service discovery * load balancing * high availability * master/slave failover coordination
with fabric8, you build your integration pieces, deploy them and manage them (together this creates a “fabric”) where nodes represent containers with provisioned pieces of your software (deployments) and the endpoints (http, mq, soap/rest) are registered in a repository for dynamic lookup.
a devopsy story
think for a moment about what your current build and release process looks like…
for java shops you probably have maven to build your source code, subversion or git to provide version control and change management around your source code, and maybe jenkins for managing your builds, right? and that’s a very powerful set of tools for java developers.
but a build and release process is more than using a few tools regardless of how powerful they are.
getting your code to production involves a lot more on the operations side that developers either don’t get or are oblivious to. what containers does your code run in? what operating systems? what supporting software needs to be around? are these environments carefully crafted and manually configured with behemoth containers that are brittle to change, are different depending on which environment they run in (dev/qa/uat/prod, etc), ??
successful it shops embrace the devops movement and its principles of communication and automation to create an environment that is easily scripted/automated, reproducible, and removes as much human and manual configuration as possible.
a dev person thinks in terms of code and app servers.
an ops person might be thinking in terms of managing vms, servers, oss, network, etc.
but therein lies a gap. what tools do developers have to automate deploying containers, provisioning their applications, configure those apps, and visualize/manage this from a central location?
ops folks are familiar with puppet / chef / ansible / mcollective / capistrano … and using these tools in concert with fabric8 will give you a very deep and powerful stack for automation and configuration management to help you achieve consistent and reproducible deployments to production to implement a continuous delivery model.
so what’s the value that fabric8 adds?
consistency across containers
a consistent way of configuring your deployments with profiles that works across java containers ( karaf , tomcat , wildfly , tomee ), micro-service frameworks ( dropwizard , spring boot , vert.x ), and plain-jain java main (pjjm, tm ) based apps.
a unified web console based on hawtio to manage your profiles, deployments, brokers, services, etc. there are even rich visualizations for your camel routes and debugging and tracing when there are problems.
for all the deployments within a fabric, fabric8 can not only manage them but also register them into a run-time registry that clients can use to automatically find the set of http endpoints (soap/rest, etc) they need, or mq services (brokers, master/slave pairs, network of brokers, etc). additionally, external clients can also use the registry to discover services.
deep understanding about your running services
while the familiar ops tools like those mentioned above are great at getting software onto disk for sets of machines they cannot give a rich understanding about the services running. for example, with the camel plugin for fabric8, you can track #s of exchanges completed, those failed, amount of time an endpoint is taking to complete exchanges, etc. with the activemq plugin you can visualize your queues/producers/consumers, send messages to queues, move messages from dlq, etc. additionally, there are plugins for elasticsearch/kibana for even deeper understanding of business/integration processed implemented by your code/camel routes.
fabric8 uses tools that are already familiar to java developers writing distributed integration services or applications. for example, all of the configurations (profiles) are stored in git. the provisioning mechanisms use maven. the coordination services use [apache zookeeper][zk], etc.
manage deployments in the cloud or across hybrid clouds
fabric8 has built in support for deploying and provisioning to iaas or paas out of the box. there’s even support for docker based containers which you can then ship and use in any environment.
what about servicemix?
servicemix is also an open-source esb based on apache camel and activemq. so how does this relate to fabric8?
servicemix is the genesis of the current jboss fuse/fabric8. it started off 9 or so years ago as an implementation of an enterpriseservicebus (esb) based on the java business integration spec. it’s goal was to provide a pluggable component architecture with a normalized messaging backbone that would adhere to standard interfaces and canonical xml data formats. servicemix gained a lot of popularity, despite jbi being a overly ceremonious spec (lots and lots of xml descriptors, packaging demands, etc). but, despite most products/projects offering integration services as a large, complex container, the need for routing, transformation, integrating with external systems, etc. shows up outside of that complex “esb” environment as well.
around the smx 3.x and 4.x timeframe, the project underwent some major refactoring. the jbi implementation was ripped out and simplified with routing/mediation dsl that would later become apache camel . this way the “heart” of the “esb” could be used in other projects (activemq, stand alone, etc). additionally, the core container also moved away from jbi and toward osgi. still later, the actual osgi container was refactored out into its own project, now known as karaf . so servicemix became less its own project and really a packaging of other projects like activemq, karaf (which used to be core smx) and camel (which used to be core smx). the older versions of jboss fuse (fuse esb/fuse enterprise) where basically a hardening of smx which was already a repackaging of some apache projects. additionally a lot of the core developers working on smx also moved toward contributing to the constituent pieces and not necessarily the core smx.
fabric8 takes the “esb” or “integration” spirit of servicemix and adds a nice management ui ( hawtio ), and all of the devopsy stuff i mentioned above, and paints a clear path toward large-scale deployments and even moving to cloud/hybrid cloud architectures .
if you develop systems/enterprise integrations with camel , cxf , or activemq and deploy into osgi ( karaf ), servlet ( tomcat ), java ee ( wilffly ) or stand alone ( vert.x , spring boot , dropwizard ), then you should definitely take a look at fabric8 .
in subsequent posts, i’ll continue to dive into the functionality of fabric8 and how you can use it to build robust, scalable integrations and have a consistent and reproducible environment for deploying your integrations.
Published at DZone with permission of Christian Posta, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.