google-app-engine


Sharing data between appengine modules


I'm trying to use appengine datastore to share a key between appengine modules.
I'm writing the key in one module, I can read it from that module.
Trying to read it from the second module doesn't work, and I get no such entity response.
What's the best way to share a key between modules? can I use datastore for that? from what I have read in the documentation data store is shared between services. but it doesn't seems to work for me.
There are eventual consistency issues you may be hitting. Datastore is distributed so it's possible one service hits a consistent version of the data and another service(module) hits another version that is stale. The datastore is definitely a way to share data between modules so it could either be a consistency problem where you won't be guaranteed to be able to read the data back right away unless you restructure your data or your query to be strongly consistent, or it could be some other problem like you have the wrong key in the other module or are somehow hitting a different namespace.
Here are a some resources on datastore consistency:
https://cloud.google.com/datastore/docs/concepts/structuring_for_strong_consistency
https://cloud.google.com/datastore/docs/articles/balancing-strong-and-eventual-consistency-with-google-cloud-datastore/
https://cloud.google.com/datastore/docs/best-practices
From the last link:
If you need strong consistency for your queries, use an ancestor
query. (To use ancestor queries, you first need to structure your data
for strong consistency.) An ancestor query returns strongly consistent
results. Note that a non-ancestor keys-only query followed by a
lookup() does not return strong results, because the non-ancestor
keys-only query could get results from an index that is not consistent
at the time of the query.

Related Links

How to setup data fixtures in Google App Engine for Go
How to write a JDO Query to sort result based on long attribute?
GAE doesn't import gflags
Real time notification system on Google App Engine(GAE)
How can I easily get a list of the indexed terms from a search index in the google appengine full text search api in java?
jpa #version on google appengine with #OneToMany: appengine bug or usage error?
How can I delete old backup via cron?
Error on itext-gae.jar
How to get the original from address in a forwarded message in google app engine?
Cannot authorize my google app to access my Cloud SQL instance
GooglePlaces autocomplete - more than one input
Import GAE data through Storage into BigQuery fails
Google AppEngine Tutorial, difference between code snippets
OpenID sign in not working in Gmail contextual gadget
Problems getting a basic JAXRS + JPA version working on GAE
Appengine's Indexing order, cursors, and aggregation

Categories

HOME
assembly
cheerio
depth
3d
yahoo-finance
serialization
alarm
newrelic
cublas
onclick
gson
mod-security
jxl
code-generation
3nf
docx
package-managers
keytool
delphi-xe5
spring-async
cgbitmapcontext
hta
easeljs
tosca
zxing
beta
perlbrew
data.stackexchange.com
maze
pic32
opentk
has-and-belongs-to-many
subclass
comparable
gp
gitlab-api
dst
playstation-portable
jett
android-gridview
fiware-cygnus
xcode7.3
dm-script
apns-php
opensmpp
mcustomscrollbar
vmware-fusion
android-softkeyboard
postgresql-8.4
hammer.js
mschart
x-ray
edit
mach-o
cpu-cache
bootstrap-tags-input
cudd
reporting-services-2012
latin
centrifuge
windows-azure-queues
eigenvector
appscale
http-status-code-401
toast
sapi
grgit
gocql
morton-number
canalyzer
baasbox
node-serialport
umlgraph
infosphere-spl
metatrader5
universal-image-loader
encryption-asymmetric
create.js
unix-socket
paste
vbe
git-repo
syndicationfeed
openargs
jammer
mongohq
beaker-testing
facebook-timeline
intersect
objectquery
mapping-by-code
node-redis
role
promotion-code
fsevents
jqote
event-receiver
socketserver
office-2007
dot-emacs
binomial-heap
sifr
tui
xpsdocument
scrubyt
unmanagedresources

Resources

Encrypt Message