Can service callout policy be customized in microgateway

Not applicable

Is it possible to create a similar plugins to replicate the function of service call out policy, the requirement is to call multiple internal services using a single proxy, in a microgateway setup

0 1 185
1 REPLY 1

Former Community Member
Not applicable

Technically, yes. But this is not a pattern I would recommend.

If you want to call other services from a custom policy, you'd use something like a request module in node to call those service.

But remember, MG does not have a programmable policy language like Apigee Edge does. Every plugin is executed on every proxy. Orchestrations like this are typically applicable to 1 (or few) proxies, not all proxies. You'll then have to build logic in the custom plugin to apply the plugin only for some cases. Before you know it, you are writing a lot of logic in the plugin.

A better approach would be to write a microservice (maybe in node.js) that does the orchestration for you. Use MG to proxy to that microservice.