1
我的問題是關於Java GAE應用程序中的HTTP會話(link)。在缺省版本appengine-web.xml中,會話被禁用。此HTML註釋是在XML文件中的每一個版本開始:GAE HTTP Session;爲什麼禁用它?
<!--
HTTP Sessions are disabled by default. To enable HTTP sessions specify:
<sessions-enabled>true</sessions-enabled>
It's possible to reduce request latency by configuring your application to
asynchronously write HTTP session data to the datastore:
<async-session-persistence enabled="true" />
With this feature enabled, there is a very small chance your app will see
stale session data. For details, see
http://code.google.com/appengine/docs/java/config/appconfig.html#Enabling_Sessions
-->
我明明知道設置<sessions-enabled>
到真正的好處:我們可以利用HTTP會話在我們的servlet。然而,這讓我想知道爲什麼有人會想要首先啓用會話而不是。啓用會話有什麼缺點?存在哪些使用案例可以使其失效?
我不確定這個問題是否與GAE的Python或Go運行時相關,我只知道Java運行時的知識。