Google Cloud Logging VS Datastore for logging app activity

Google Cloud Logging VS Datastore for logging app activity

我正在尝试在我的 Appengine 应用程序中登录用户 activity,该应用程序将为 Web 和移动用户提供服务。我在决定应将活动存储到哪个 google 产品时遇到问题。我正在考虑的两个选项是(这两个选项都很新):

在价格方面,Google 云日志记录似乎更便宜,为 0.50 美元/GiB(按记录量一次性收费)和每月 0.01 美元/GiB,而 Google 云数据存储收费读、写、删除 + 0.18 美元/GiB/month 的存储空间。

界面方面,在调试过程中使用 Cloud Datastore 似乎更容易。我还没有掌握日志资源管理器。

两者都可以选择将数据导出为 CSV。

为了activity登录长运行推荐使用哪个?

我建议使用 Cloud Logging, it is the best for logging any app activity for your application and Google Cloud as it designed for this kind of requirement. For long terms, you can configure your Cloud Logging retention period 将您的日志保留最多 3650 天10 年。对于定价,数据保留的价格为每月 0.01 美元/GiB,高于默认保留期(30 天)。