In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
The main content of this article is "how to improve the access speed of Heroku in China". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to improve the access speed of Heroku in China.
Screenshot of Heroku official website
What is Heroku?
Heroku is a cloud deployment platform that provides multiple programming languages. You can pull the substitution code from GitHub, package it in a custom way and deploy it to the CVM.
Comparison between before and after speed increase
Left: the speed test results of the website deployed on Heroku; the picture on the right shows the speed test results after the speed increase. Color represents the feedback time of the site, green represents fast, and the closer to red means extremely slow or even inaccessible.
You can see that the website deployed in Heroku is not very fast in China (left), and most areas are extremely slow (orange).
The result of the speed increase reaches the available maximum speed (all the tested provinces on the right are dark green)
Test the source code of the project
Screenshot of Streamlit official website
We chose a Streamlit example as the test object:
GitHub code repository: https://github.com/tobyglei/hello-streamlit-sample2
Gitee code repository: https://gitee.com/eryiyunbox-examples/hello-streamlit-sample2
How to improve the access speed of Heroku in China?
Deploy applications directly to domestic cloud service providers, such as AWS China or Aliyun.
The disadvantages of using basic CVM for deployment are also obvious: there are many initialization configurations, such as building Nginx, certificate maintenance and update, database management, and so on. If you want to make continuous deployment (Git push automatic packaging and deployment), you also need to use continuous integration tools such as Jenkins / Github Action / Travis CI.
If you don't like messing around, if you want to find a solution as simple as Heroku, you can host the application in 21 Cloud Box.
Take Streamlit as an example, the process hosted in 21 Cloud Box:
1. Register as a 21 Cloud Box member
two。 Authorize 21 Cloud Box to access the code repository you want to deploy
Sample diagram: select the code repository to be deployed in the 21 cloud box
3. Configure build (package) commands and release directories
Example diagram: configure Streamlit build (package) command and startup command
4. Click "deploy now"
Your website is packaged and deployed online without a cup of tea.
You can access your project at app_id.21yunbox.com (app_id is created and defined).
If you're not sure how to do it? Watch the operation video directly: https://www.bilibili.com/video/BV1SK4y1j7V2
At this point, I believe you have a deeper understanding of "how to improve the access speed of Heroku in China". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.