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: 

  1. Request arrives to cloud 
  2. Request passes through the SOAJS API Gateway
    1. Conducts Multiple security checks
      1. Key - Geo - Device - ACL - oAuth
    2. API Health Check ( is API up and running and healthy )
    3. Load & Attach Registry Information
      1. Registry Configuration 
      2. Custom Registry Entries 
      3. Database & Resources Awareness
    4. Load & Attaches Provision Information
      1. Tenant Information & Custom Configuration
      2. Key, Device & Geo Information
      3. URAC & ACL Information
    5.  Load & Attaches SOAJS API Gateway Awareness
    6. Attach all fetched configuration to headers
  3. Forward Request to your API
  4. Request arrives to API
    1. Middleware traps the request
    2. Middleware parses headers
      1. Extract Registry Information
      2. Extract Provision Information
      3. Extract Awareness Information
    3. Attach set of getter methods to the request
  5. 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.





Recently Updated Pages