Middleware
Introduction
The SOAJS Middleware allows you to modernize existing API and benefit from the features that SOAJS offers without changing your code.
SOAJS provides tons of features and functionality related to registry and provisioned information which helps you get rid of static and hardcoded configuration in your code.
SOAJS also help you avoid redeploying your API whenever there is a change in either the registry of the environment your API is deployed in or the provisioned configuration that gets retrieved when requests are made to your API.
Simply install and instruct your microservice to use the SOAJS Middleware and deploy/start the SOAJS API Gateway before it.
Concept & Architecture
The following diagram provides an architecture overview on how requests made to your API are treated and the flow they undergo before they reach your API business logic:
Request arrives to cloud
Request passes through the SOAJS API Gateway
Conducts Multiple security checks
Key - Geo - Device - ACL - oAuth
API Health Check ( is API up and running and healthy )
Load & Attach Registry Information
Registry Configuration
Custom Registry Entries
Database & Resources Awareness
Load & Attaches Provision Information
Tenant Information & Custom Configuration
Key, Device & Geo Information
URAC & ACL Information
Load & Attaches SOAJS API Gateway Awareness
Attach all fetched configuration to headers
Forward Request to your API
Request arrives to API
Middleware traps the request
Middleware parses headers
Extract Registry Information
Extract Provision Information
Extract Awareness Information
Attach set of getter methods to the request
Middleware forward updated request version to your Business Logic
By the time the requests arrives to your business logic, all information related to the environment where your API is deployed along with information about who is calling your API has been retrieved by the SOAJS API Gateway.
The SOAJS Gateway then forwarded this information to your micro service and because it uses the SOAJS middleware, the middleware extracted this information and handed them over to your code.
This flow demonstrates how SOAJS took care of providing all configuration information to your business logic and helped you get rid of hard coded configuration as well as avoid updating your code whenever there is a change in the configuration.
Benefits & Features
Multi Security
No coding effort needed to secure your api, simply deploy your API behind the SOAJS API Gateway and automatically benefit from the multi security validation system & the Productization that it offers.
Multi Tenancy
Transform your API to become Multi Tenant and benefit from code reusability among multiple clients with no coding effort needed.
Throttling
Deploy your API and configure the SOAJS API Gateway to handle traffic throttling per Tenant !
Traffic Access Control & Priority
Deploy your API and configure the SOAJS API Gateway to handle access and traffic priority per tenant to your API !
No More Downtime
Avoid restarting or redeploying your API whenever you change your configuration, SOAJS API Gateway will forward to you the latest updated Registry Information that your code needs to reach out and communicate with databases and resources.