Google App Engine - How reliable are the logs?

2019-07-11 20:52发布

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 than 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.

1条回答
做自己的国王
2楼-- · 2019-07-11 21:36

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.

查看更多
登录 后发表回答