WSO2 API Gateway can be deployed as your own Heroku dyno. This reduces the average response time to serve an API call, which performs all the functions, without the need to connect to other API management components.
There are multiple advantages to this deployment model:
The ‘Deploy to Heroku’ button enables users to deploy WSO2 API Gateway on Heroku without leaving the web browser, and with little configuration.
Try WSO2 API Gateway with direct deployment on Heroku:
To use WSO2 API Gateway buildpack with heroku:
Set up your app to deploy to heroku with git.
Set this repository as the buildpack URL:
heroku buildpacks:set https://github.com/wso2/cloud-heroku-api-gateway.git
Add the WSO2 API Cloud addon:
heroku addons:create wso2apicloud:<plan>
Set WSO2_CLOUD_EMAIL, WSO2_CLOUD_PASSWORD, WSO2_CLOUD_ORG_KEY environment variables. This is required for setting up the API Gateway.
heroku config:set WSO2_CLOUD_EMAIL=<Your WSO2 Cloud account email> heroku config:set WSO2_CLOUD_PASSWORD=<Your WSO2 Cloud account password> heroku config:set WSO2_CLOUD_ORG_KEY=<Your WSO2 Cloud organization key>
Once that's done, you can deploy your app using this build pack any time by pushing to heroku:
git push heroku master
Finally, you need to scale your application with enough memory to run the API Gateway.
heroku ps:scale web=1:standard-2x
For more information about WSO2 API Gateway, see these WSO2 documentations: