Heroku is an industry-leading PAAs platform that allows users to use various component services provided by the platform. What are the agreements between Heroku and third-party services provided by third-party service providers? As a vendor, how to develop third-party services for Heroku is the subject of this article.
OverviewHere is an example of the role of a third-party service (Addons): Your application requires MySQL to store data in the database. If you do not have Heroku, you need to buy a server, set up MySQL, configure the account, configure the server address in the code, and then connect to the database. In this case, it is annoying to manage and maintain the database environment on your own. If Heroku is available, you can search for the database service in the plug-in database, create database resources, and provide and maintain these database resources by a third party.
Combine the "third-party service use" Flowchart to sort out the following points: 1. Users can add services, add-on modules of websites, or command lines (local plug-ins need to be installed) 2. After receiving a user request, the Heroku server requires a third-party service to create resources. A third-party service returns a variable that represents the newly created resource. Heroku saves the variable to the running environment of the application. The application can read the variable (such as the URL address of the MySQL service) to operate the resource. 3. perform operations on the resource, will interact with third-party services. Your resources are saved by the service provider and do not require local maintenance. 4. A third-party vendor must provide a configuration file Heroku so that Heroku can integrate your services.
The next article will introduce specific protocols
Heroku third-party service access guide (1)