Click here to Skip to main content
14,028,233 members
Click here to Skip to main content
Add your own
alternative version

Stats

3.4K views
69 downloads
3 bookmarked
Posted 1 May 2018
Licenced MIT

Fusing Web Stacks With COBOL Microservices

, 1 May 2018
Rate this:
Please Sign up or sign in to vote.
A Dockerized proof of concept application using React, Node, Python, GnuCOBOL, PostgreSQL, and Docker.

Introduction

According to a 2015 report by Reuters1:

  • 43% of banking systems are built on COBOL.
  • 80% of in-person transactions use COBOL.
  • 95% of ATM swipes rely on COBOL code.
  • 220 billion lines of COBOL are in use today.

This application is a case study on Dockerizing a COBOL application for computing income taxes, and integrating it into a Dockerized web stack.

Prerequisites

Docker and docker-compose are needed to run the application. Installation instructions can be found at Install Docker and Install Docker Compose.

How it Works

This project is divided into several parts:

  • Web Tier
    • A React front end styled with Bootstrap running on Node.
  • API Tier
    • A RESTful API built with Python and Flask.
    • A COBOL shared library for computing income taxes compiled with GnuCOBOL.
    • Responsible for retrieving taxpayer information from PostgreSQL and natively passing that information into a COBOL subroutine to compute income taxes owed.
  • Data Tier
    • A PostgreSQL database containing taxpayer information.
  • Reverse Proxy
    • Using Træfik as a reverse proxy and load balancer.
  • Docker Compose
    • For orchestrating containers and pre-populating the database server.

Running the App

Start the application with the following command:

sudo docker-compose up -d

To view the front end navigate to:

http://web.docker.localhost

The database is pre-populated with taxpayer IDs in the range of 1 - 1000. Enter a taxpayer ID and click Submit.

History

  • 30/04/2018: Initial Release.

License

This article, along with any associated source code and files, is licensed under The MIT License

Share

About the Author

Pero Matić
Founder Turing Inc.
United States United States

You may also be interested in...

Comments and Discussions

 
-- There are no messages in this forum --
Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web06 | 2.8.190419.4 | Last Updated 1 May 2018
Article Copyright 2018 by Pero Matić
Everything else Copyright © CodeProject, 1999-2019
Layout: fixed | fluid