How to Improve Heroku’s Access Speed in China?

21YunBox
4 min readJan 14, 2021

What is Heroku

Heroku is a cloud deployment platform that provides support for multiple programming languages. It supports pulling code from GitHub, package it in a custom way, and deploy it to a cloud server.

Comparison Chart Before and After a Speed Increase

Top image: the speed test result of the site deployed on Heroku; the Bottom image is the speed increase after deploying with 21YunBox. The color represents the feedback time of the site, green represents fast, and the closer to red, it means extremely slow or even inaccessible.

It can be seen that the access speed of the site deployed on Heroku in China is very unsatisfactory (left picture), and most areas are very slow (orange).

After speeding up, the results have reached the maximum speed available (all the provinces with tests on the right are dark green)

Source Code of the Test Project

We chose a Streamlit example as the test object:

How to Improve Heroku’s Access Speed in China?

Deploy the application directly to domestic cloud service providers, such as AWS China or Alibaba Cloud.

The disadvantages of using the basic cloud server to deploy are very obvious. There are many initial configurations to consider such as building Nginx, certificate maintenance and update, database management, etc. If you want to make continuous deployment (Git push automatic packaging and deployment), you will need to cooperate Use Continuous Integration tools such as Jenkins / Github Action / Travis CI, etc.

If you want a hassle free solution like Heroku in China, you can host your application with 21YunBox.

Take Streamlit as an example, the process of hosting in 21YunBox:

1. Register as a 21YunBox Member

2. Authorize 21YunBox to access the code repository you want to deploy

3. Configure Build (Package) Command and Release Directory

4. Click “Deploy Now”

Before you know it, your site is packaged and deployed online.

You can access your project at app_id.21yunbox.com ( app_id is created and defined).

To help explain the process, we’ve prepared a short Step by Step example video of how to deploy Streamlit to a server?

What else can 21YunBox Host?

Static web pages, such as static blog, static document, Enterprise official site can easily be done for you.

More complicated, like the back-end application framework Python Django or PHP Laravel This is notoriously complicated to deploy. 21YunBox allows you to complete the package and go online to generate a unique second-level domain name in three or four minutes.

What about deploying a database in China? Yes, we can also simplify this process for you with a one-click to build database solution. Check out these PostgreSQL or MySQL examples (with videos).

What else? Want to know more? You can check Help Document

Why Choose 21YunBox?

21YunBox is a Cloud Service platform based out of Beijing. Our services enable your team to be more effective in leveraging the growing opportunity within China by hosting your sites at blazing speeds with an operational and maintenance free solution.

We offer an easy and budget friendly, end-to-end web platform deployment service for all applications from small teams to large enterprises.

We also offer full support in obtaining you ICP license allowing you do legally do business inside of Mainland China.

To learn about the differences between 21YunBox and these foreign (outside of China) cloud service platforms? You can refer to:

Originally published at https://launch-in-china.21yunbox.com on January 14, 2021.

--

--