Enterprise Integration Zone is brought to you in partnership with:

Steven has posted 1 posts at DZone. You can read more from them at their website. View Full User Profile

An Introduction to Fabric8 and Why It's So Important for Integration

07.16.2014
| 10996 views |
  • submit to reddit
Introduction

It is helpful to understand the history of Fabric before explaining what it is.  The use of middleware had changed in recent years; no longer do (most) large organisations have a single ESB / Message Broker with just a couple of instances.

Managing a couple of middleware instances using ssh to remotely connect to them and then manually editing configuration files is a perfectly viable (if not exactly best practice) approach to management when the instance numbers are low.

When organisations start to deploy middleware to their remote sites, especially when there are tens of thousands of them, the simple manual approach traditionally used is no longer viable. This is also true for Cloud hosted elastic systems where the number of instances can be large and infrastructure instances are ‘dynamic’. It is against this more complex environment that Fabric was born at FuseSource, which was acquired by RedHat in 2013.

Fabric8 is the upstream Open Source project for JBoss Fuse. Fabric8 is the underlying technology for the JBoss Integration Platform as a Service, which is currently in beta on OpenShift.

Summary of Fabric

The interested reader can read far more details than I am going to provide in this short blog on the Open Source projects web site: http://fabric8.io

My summary of Fabric is that it:

Manages Configuration

  1. Contains a configuration management system for code and configuration files through the use of Git.
  2. Has the concept of a Profile as a set of folders and configuration files which are then used to instantiate application instances e.g. ActiveMQ brokers, Fuse etc.
  3. Supports multiple versions of Profiles within the fabric (through git branches) with incremental and rolling upgrades support and simple rollback as expected through the use of Git.

Provides Scalability and High Availability

  1. Is scalable and resilient through the use of Apache Zookeeper: configuration Profiles are actually stored on each Fabric instance.
  2. Handles the complexity of IP addresses and port mappings for you through the Service Registry (stored in Zookeeper).
  3. Is able to perform load balancing to services through the Service Registry.
  4. The Service Registry enables service location transparency – for ActiveMQ the Camel connector provided offers zero client configuration ‘it just works’.
  5. Manages the ‘split brain’ problem caused by network failures by requiring a odd number of Zookeeper instances in the Fabric.
  6. Supports Docker: this will be the recommended deployment technology for Fuse 6.2.

Allows Management of the Fabric

  1. Is manageable through a Web Console (by default on port 8181) which uses Jolokia and Hawtio. The console provides a easy way to manage the Fabric and the inbuilt Wiki allows Profiles to be documented.
  2. Provides an interactive shell for Fabric management for people who don’t want to use the Web GUI. This shell supports the usual Linux command line auto-completion and history.
  3. Maven plugins can be used to install  and deploy Java code to the Fabric. Using the maven plugin you can include profiles in the release process; so existing projects can release their profile configuration files (e.g. links to the various jars/wars etc). Each multi-module project can create a single zip file with all the profiles (folders) and config files; which can then, in Fuse 6.2 (or fabric8 1.1.x) be imported into any fabric via a command line.
  4. Fabric provides a local Maven repository which acts as a cache of any required artefacts loaded from whatever public/internal maven repositories are used.

Designed for and Includes Integration and Messaging Middleware

Fabric8 contains:

  1. Apache Karaf OSGI container.
  2. Apache Camel integration technologies supporting the standard Enterprise Integration Patterns .
  3. Fuse ESB with Apache CFX to support REST and SOAP web services.
  4. ActiveMQ message broker that supports common wire protocols.

Is Extensible

  1. The Web Console can be extended through the use of Hawtio plugins.
  2. The Fabric (from Fuse 6.2) can deploy pretty much any Java program with a Main Class.
  3. The version of Fabric currently in development (to be released as Fuse version 6.2 this year) supports not just ApacheMQ and Karaf OSGI container but, JBoss EAP, Wildfly and Tomcat.
Conclusion

Fabric is a relatively new and very promising technology that enables organisations to deploy and manage in a repeatable and controllable way middleware components or long running Java programs running on Cloud like infrastructure.

Published at DZone with permission of its author, Steven Fisher.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)