Why are my basic Heroku apps taking two seconds to load?

后端 未结 5 1264
耶瑟儿~
耶瑟儿~ 2020-11-30 17:50

I created two very simple Heroku apps to test out the service, but it\'s often taking several seconds to load the page when I first visit them:

  • Cropify - Basic
5条回答
  •  执笔经年
    2020-11-30 18:26

    • If your application is unused for a while it gets unloaded (from the server memory).
    • On the first hit it gets loaded and stays loaded until some time passes without anyone accessing it.

    This is done to save server resources. If no one uses your app why keep resources busy and not let someone who really needs use them ?
    If your app has a lot of continous traffic it will never be unloaded.

    There is an official note about this.

提交回复
热议问题