InterSystems API Management (IAM) - a new feature of the InterSystems IRIS Data Platform, enables you to monitor, control and govern traffic to and from web-based APIs within your IT infrastructure. In case you missed it, here is the link to the announcement. And here's an article explaining how to start working with IAM.
In this article, we would use InterSystems API Management to Load Balance an API.
In our case, we have 2 InterSystems IRIS instances with /api/atelier
REST API that we want to publish for our clients.
There are many different reasons why we might want to do that, such as:
- Load balancing to spread the workload across servers
- Blue-green deployment: we have two servers, one "prod", other "dev" and we might want to switch between them
- Canary deployment: we might publish the new version only on one server and move 1% of clients there
- High availability configuration
- etc.