Code Monkey home page Code Monkey logo

refarch-integration's Introduction

Hybrid Integration Reference Architecture

IT environments are becoming hybrid in nature; most businesses use cloud computing as part of their overall IT environment. While businesses continue to operate enterprise applications, processes, and systems of record on premises, they are rapidly developing cloud-native applications on cloud. The hybrid integration reference architecture describes an approach to connect components which are split across cloud and on-premises environments, or across public and private clouds -- even across different cloud providers.

In this architecture, existing applications are moved to the infrastructure as a service (IaaS) of cloud providers. New applications are built on the cloud as a platform as a service (PaaS), using pre-built cloud-based software as a service (SaaS). Hybrid integration has a vast scope addressing integration points like:

  • Cloud native app and on-premise system of record, or business SOA services
  • On-premise business applications or processes with public cloud services
  • SaaS applications and cloud native app
  • App developed and running on private cloud and on-premise app
  • Application components running on different service providers
  • Internet of things generating events, partially processed on public cloud, aggregated and persisted on-premise database, where analytics can be performed to classify the issue as risk, and trigger process for trouble shooting and maintenance.

Hybrid integration bridges data sources, applications or APIs wherever they might be on-premises, IaaS, PaaS or SaaS. The following diagram presents the high level view of the scope. Hybrid integration

This current project provides a reference implementation for building and running an hybrid integration solution, using cloud native web application securely connected to an enterprise data source and SOA services running on on-premise servers. This compute model, represents existing SOA / Traditional IT landscape with products such as ESB, BPM, rule engine, and Java based web service applications or even event driven publisher. One of the goal of this implementation is to reflect what is commonly found in IT landscape in 2017, and provides recommendations on how to manage hybrid architecture with the cloud programming model by addressing non-functional requirements as scalability, security, monitoring and resiliency.

Table of Contents

What you will learn

By studying this set of projects and articles you will learn:

  • how to develop a SOAP app in Java using JPA, JAXWS deployed on WebSphere Liberty
  • how to develop gateway message flow on IBM Integration Bus
  • how to define API product with API Connect, and use secure communication with TLS
  • how to set up secure connection from public cloud to on-premise service
  • how to develop a Angular 4 app with nodejs/expressjs back end
  • how to secure the web app with passport
  • how to access existing LDAP service for user authentication
  • how to proxy requests to IBM Secure gateway
  • how to perform CI/CD in hybrid world
  • how to monitor all those components using Application Performance Monitoring
  • how to deploy most of the component to IBM Cloud Private
  • how to adopt a test focus implementation

Scope Overview

As an hybrid cloud implementation a set of projects cover different functional requirements:

To demonstrate the set of feature, a front end application, representing an internal portal user interface, is used to plug and play the different use cases.

HomePage

This front end application is an extension of the "CASE.inc" retail store introduced in cloud native which manages old computer, extended with internet of things capabilities, IT support chat bot and other goodies.

The end users will be able to authenticate to an internal LDAP.

Inventory management

This component is dedicated to the internal users who want to manage the inventory items of the retail shops/warehouses. The data base is a simple inventory DB with products, supplier and stock information.

To read a demonstration flow see the note here

Inventory Plus is the application that illustrates hybrid integration by consuming back-end services running on-premise servers. The component view and physical deployment for the first configuration looks like the image below: Components and Physical view

From left to right:

  • The Case Inc Portal app defines a set of user interface to manage Inventory elements, it is a modern Angular 4 / nodejs app which uses the Back-end For Front-end pattern. The general-purpose API backend is implemented in ESB running on-premise. The client specific APIs to serve the Angular js app are done in this BFF component.

  • The nodejs/expressjs accesses the REST api exposed by API Connect via a Secure Gateway service on bluemix which acts as a proxy. A second security configuration is to use VPN. This application is containized and deployable on Kubernetes cluster. See this repository.

  • The connection between public cloud and internal IT resources, is done via a VPN IPsec tunnel or IBM Secure Gateway. As of now we are using IBM Secure Gateway Client on a dedicated server. This server is called BrownUtilityServer.

  • API Connect, installed on-premise, is used as API gateway to the different API run times.

  • IBM Integration Bus, is used to do interfaces mapping between the SOAP data access layer, implemented in Java, and the RESTful API exposed to the public applications. For detail see this note

  • The Data Access Layer is a JAXWS application running on WebSphere Liberty server and exposing a set of SOAP services. The server is BrownLibertyAppServer. See this repository for detail.

  • The inventory database is running on DB2 and is not directly accessed from API connect, but applying SOA principles, it is accessed via a Data Access Layer app. The server is BrownDB2.

This set of projects are implementing the Hybrid integration reference architecture describe in IBM Architecture Center - Hybrid Architecture with some light changes as illustrated below:
RA

  • API Connect runs on premise
  • ESB is used to manage all SOA service
  • VPN or Secure Gateway is used to open secure tunneling between public cloud deployed applications and on-premise services.

The current implementation can run on private cloud and we are presenting this deployment in detail in this article.

Project Repositories

This project leverages a set of projects by applying clear separation of concerns design, n-tiers architecture, and service oriented architecture. The repository order is from left to right from previous diagram.

Build and Run

The 'top of the iceberg' for this solution implementation is the cloud native app 'Case Inc Portal' that offers accesses to the Inventory management and other features such as IT support chatbot. The details on how to build and run this web application is here.

To run the backend solution, we will deliver images for you to install on your servers... stay tuned, from now we are describing how each server is configured in each of the specific github repository. We are using VmWare vSphere product to manage all the virtual machines. The figure below presents the Brown Resource Pool with the current servers:
vsphere

Prerequisites

  • You need your own github.com account
  • You need a git client code. For example for Windows and for Mac
  • Install npm and nodejs. Normally getting nodejs last stable version will bring npm too.
  • You need to have some knowledge on using virtual machine images and tool like vSphere.
  • As we are migrating to IBM Cloud Private a set of components run as docker container in pods.

The Current Physical Deployment and Installation

The Current Physical deployment includes six servers, we are describing how installations were done in separate git hub repository so you can replicate the configuration if you want. It should take you 1 to 2 hours per server.

As part of the hybrid integration compute mission is to leverage the VM lift and shift approach by deploying vm image to Bluemix VM.

Get application source code

Clone this base repository using git client:

git clone https://github.com/ibm-cloud-architecture/refarch-integration.git

Then under the refarch-integration folder use the command ./clonePeers.sh to clone the peer repositories of the 'hybrid integration compute' solution.

Finally the first time you get the code, use the ./configureAll.sh script to perform the different dependency installations for the bluemix apps and other utilities.

Working on your own

The script ./fork-repos.sh should help you to fork all the repositories of this solution within your github account.

Run on premise servers

There are multiple steps to make the solution working. Be sure to start each sever in the following order:

  • Start DB2 server
  • Start App server
  • Start IIB
  • Start API Connect servers: Gateway, Management and Portal
  • Start Utility server
  • Start 'case inc' portal APP

The testing project implements a set of test cases to validate each of the component of this n-tier architecture. It is possible to validate each component work independently.

The demonstration script instructions are here

For demonstration purpose not all back end servers are set in high availability.

Run on IBM Cloud Private

Most of the components of this solution can run on IBM Cloud Private we are detailing it here

Run on Bluemix Container Service

See this detail note here to deploy and run the Web App as container inside the Bluemix Container Service.

Run on Bluemix Cloud Foundry

See this detail note here to deploy the Web App as cloud foundry app on Bluemix

Methodology

There are a set of development methodology practices to consider when doing hybrid integration.

Security

Multiple security concerns are addressed by the hybrid integration compute model. The first one is to support the deployment of private on-premise LDAP directory. The installation and configuration of the Open LDAP on the Utility server is described here.

Second, to control the access from a Bluemix app, we first implemented an adhoc solution integrating passport.js and using a /login path defined in our inventory product in API Connect. See explanation here on how we did it.
The connection between the web app, front end of hybrid integration compute and the back end is done over TLS socket, we present a quick summary of TLS and how TLS end to end is performed in this article

The front end login mechanism on how we support injecting secure token for API calls is documented here

Add a IBM Secure Gateway Bluemix Service

To authorize the web application running on Bluemix to access the API Connect gateway running on on-premise servers (or any end-point on on-premise servers), we use the IBM Secure Gateway product and the bluemix Secure Gateway service: the configuration details and best practices can be found in this article

Use VPN

Resiliency / HA / DR

  • Making the Portal App Resilient
    Please check this repository for instructions and tools to improve availability and performances of the hybrid integration Compute front end application.

High availability

. We do not plan to implement complex topology for the on-premise server. For cost and time reason.

Hybrid Service Management

TBD

Compendium

Architecture discussion on hybrid integration:

Product related knowledge based:

Contribute

We welcome your contribution. There are multiple ways to contribute: report bugs and improvement suggestion, improve documentation and contribute code. We really value contributions and to maximize the impact of code contributions we request that any contributions follow these guidelines

  • Please ensure you follow the coding standard and code formatting used throughout the existing code base
  • All new features must be accompanied by associated tests
  • Make sure all tests pass locally before submitting a pull request
  • New pull requests should be created against the integration branch of the repository. This ensures new code is included in full stack integration tests before being merged into the master branch.
  • One feature / bug fix / documentation update per pull request
  • Include tests with every feature enhancement, improve tests with every bug fix
  • One commit per pull request (squash your commits)
  • Always pull the latest changes from upstream and rebase before creating pull request.

If you want to contribute, start by using git fork on this repository and then clone your own repository to your local workstation for development purpose. Add the up-stream repository to keep synchronized with the master.

Status of the project

This project is still under active development, so you might run into issues. If you do, please don't be shy about letting us know, or better yet, contribute a fix or feature.

refarch-integration's People

Contributors

jbcodeforce avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.