apache / openwhisk-apigateway

Apache OpenWhisk API Gateway service for exposing actions as REST interfaces.
https://openwhisk.apache.org/
Apache License 2.0
64 stars 45 forks source link

Break out management interface #360

Open mhamann opened 5 years ago

mhamann commented 5 years ago

The API for managing APIs and Subscriptions is currently baked into the gateway itself as Lua. Breaking it out as a separate process (written in Node.js or something) will allow more flexibility in its operation.

For example, building it with Node, Go, etc will provide better validation abilities for ensuring that an API document is correctly formatted.

It will also take load and responsibility out of the gateway itself, which is more secure. If it runs as a separate process, it can even be turned off completely in situations that warrant it.

In a production deployment scenario, it may even be desirable to run the management API in a separate location (or separate container/pod) from the gateway itself, which breaking it out would allow.

8secz-johndpope commented 5 years ago

reference code https://github.com/strongloop/microgateway/tree/9e6c2b6c7685c1d9b15b6b93370548ed55b56261

aws developer portal https://github.com/awslabs/aws-api-gateway-developer-portal/tree/master/dev-portal