开发者

Google App Engine - How reliable are the logs?

开发者 https://www.devze.com 2022-12-23 00:48 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号