Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
827 views
in Technique[技术] by (71.8m points)

google app engine - Any issues using multiple GAE app versions to get multiple apps to share the same datastore?

According to the research I've done (see for example this gae issue and this stack overflow question), it is not possible to share one datastore across two applications, and most folks recommend using either the RemoteAPI or using multiple "versions" of the same application, where each version is really an entirely different application. According to GoogleAppEngine Issue 1300, allowing multiple GAE applications to share the same datastore has been "accepted" which presumably means that this feature may be officially supported some day.

I'm hesitant to use the RemoteAPI because I suspect there will be a performance penalty for me in the part of my app where response time is critical. So I'm wondering if anyone has used the approach of using multiple versions under the same application ID to share the same datastore? If so, would you be able to comment on whether you have found any problems with this approach? Presumably this does not violate the GAE license terms that generally prohibit multiple distinct applications from behaving like one application?

David

Update: I gave this approach a try and have some possible issues to report about this approach. When deploying my two applications as two versions of the same app on my local GAE instance (on ports 8080 and 8081), updates I make with one application are not always seen by the other application until I Stop/Start it. I do not see this behavior on appspot.com. I think the broader issue here is that I was assuming that the high replication data store had similar transactional properties as a traditional SQL database. What's happening is that there seems to be a significant delay between when changes are committed by one application, and when they're available to be read by the other application. Wondering if there's a way to effectively "flush" your changes, or clear a cache somewhere in order to get commits made by one app to show up in queries made by the other. Or maybe I'm barking down the wrong rabbit hole...

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...