Updated Tutorial: How to deploy an NGINX API gateway on Heroku

July 1st, 2015 |

Control Access, Monitor Traffic & Manage your API with 3scale

At 3scale, we recommend using NGINX as an API proxy for several reasons, including its outstanding performance and extensibility, thanks to the Lua scripting support. When used with the 3scale API Management Platform, it’s hands-down the best way to add an access control layer to your existing API.

The following tutorial describes the required steps to deploy NGINX as an API gateway on the Heroku platform. Heroku provides a fantastic, fully managed platform as a service for your application, so the required maintenance effort on your part will be minimal. Since NGINX is so lightweight, the free offering from Heroku will be enough for most cases.

High-level overview

We’ll create a Heroku application with a custom buildpack, including Lua and LuaRocks, and deploy the OpenResty distribution of NGINX using a rock especially tailored for Heroku. We will then use th…

Read more

One-click Deployment of 3scale API Management To Heroku!

August 22nd, 2014 |

At 3scale we keep pushing to make the process of integrating an API with our management platform as easy and quick as possible. When we heard about the new Heroku button we saw a great opportunity to make the setup experience a one-click deployment of the most popular way to integrate APIs with 3scale, namely our API Management via the open-source NGINX reverse proxy.

Now you can deploy an Nginx-based, 3scale API management instance to Heroku — all set and ready to be used with your API — with a single click of a button.
If you have already configured your API endpoints in 3scale you can try it right now:


Read more

API Management With 3scale As A Heroku Add-on For Your Application

June 19th, 2014 |

Hosting your API in a platform as a service like Heroku is a popular option nowadays since it frees you from all the infrastructure administration tasks and allows you to focus on development. It is also a really good way to launch your API when you are not sure what the usage will be like, as Heroku will handle scaling your application server for you.

If that is your case, now you can add 3scale to secure and manage your API right from your Heroku dashboard, by using the 3scale Heroku add-on.

Provisioning the add-on for your Heroku app is as simple as doing a call from the command line:

heroku addons:add threescale

or clicking on the Get Add-ons button of your Heroku app page.

Click on “Get add-on” and pick the 3scale Heroku add-on

Either way a 3scale acc…

Read more

The 10-Minute API: Getting an API Up and Running in 10 Minutes with 3scale, Grape and Heroku

June 26th, 2012 |

APIs (Application Programming Interfaces) can be complex and challenging to operate – but it doesn’t have to be hard to get started. To prove it and also inaugurate our video tutorial series we figured we’d show how to get a very simple API up, running and hosted easily in less time than it takes to cook a hot dinner.

Up and Running API: Grape, 3Scale, Heroku

To get our API up and running we used:

  • Grape: a lightweight web framework on top of Ruby similar to Sinatra but focused on REST Web APIs. The frameworks makes it very easy to declare resources, set up method calls and manage responses. Also see Michael Bleigh’s cool rubconf presentation on slideshare.
  • 3scale: providing out of the box authentication for the API and allowing us to i…

    Read more