如何获取应用引擎前端服务器的实例ID? [英] How do I get an instance Id of app engine front server?
本文介绍了如何获取应用引擎前端服务器的实例ID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法直接向该服务器发送请求?
And is there a way to send a request directly to that server?
推荐答案
实际上有一种方法,它可以对于将新数据推送到应用程序的所有实例很有用。
Actually there is a way and it can be useful for pushing new data out to all instances of an application.
from google.appengine.api import modules
instance_id = modules.get_current_instance_id()
这篇关于如何获取应用引擎前端服务器的实例ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文