Google App Engine - How reliable are the logs?
How reliable are the Google App Engine logs?
Because logs are optimized for write speed, and the datastore is optimized for read speed, I'm thinking about storing some data by writing it to the logs rather tha开发者_StackOverflown writing it to the datastore.
If I call Logger.info("something");
, and the call succeeds, will that log entry definitely show up in the logs? Or will it sometimes silently fail?
About every hour I'll have my home computer download the logs to persist the data on my home computer.
Although it's very unlikely, it's possible the call could silently fail, because logs are written asynchronously (or else they wouldn't be so fast). If you need reliability, using the task queue or deferred to insert a datastore entity might be a better option.
精彩评论