Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Heroku Django应用程序+Azure PostgreSQL数据库-连接速度较慢_Django_Postgresql_Azure_Heroku - Fatal编程技术网

Heroku Django应用程序+Azure PostgreSQL数据库-连接速度较慢

Heroku Django应用程序+Azure PostgreSQL数据库-连接速度较慢,django,postgresql,azure,heroku,Django,Postgresql,Azure,Heroku,我有一个应用程序托管在heroku上,最近将我的DB移动到azure,因为heroku postgres处理SSL的方式 尽管我新的Azure Postgres比以前的heroku:Postgres更强大,但我遇到了严重的减速 我已经设置了PGBouncer来使用连接池,但是我仍然没有看到性能的提高 关于我可以尝试什么,有什么线索吗?您在AWS和Azure上运行的Heroku之间遇到了网络延迟问题。您的所有流量都必须通过两个数据中心之间的公共互联网 有没有办法避免这种情况或减少延迟?我的第一个想

我有一个应用程序托管在heroku上,最近将我的DB移动到azure,因为heroku postgres处理SSL的方式

尽管我新的Azure Postgres比以前的heroku:Postgres更强大,但我遇到了严重的减速

我已经设置了PGBouncer来使用连接池,但是我仍然没有看到性能的提高


关于我可以尝试什么,有什么线索吗?

您在AWS和Azure上运行的Heroku之间遇到了网络延迟问题。您的所有流量都必须通过两个数据中心之间的公共互联网

有没有办法避免这种情况或减少延迟?我的第一个想法是在AWS上运行Postgres。您可以抓取自己的VM并自己动手,或者有其他提供商将其作为托管服务提供。