简体   繁体   English

可以使用 Google Calendar API 创建可扩展的日程安排服务吗?

[英]Can Google Calendar API be used to create scalable scheduling service?

I need to create a scheduler for my own SaaS, and I'm trying to understand whether Google Calendar API is a fit for that.我需要为我自己的 SaaS 创建一个调度程序,我试图了解 Google Calendar API 是否适合它。 Basically I could have hundreds of thousands of calendars.基本上我可以拥有数十万个日历。 Each calendar may be a user of my service, but not a Google user.每个日历可能是我的服务的用户,但不是 Google 用户。 It seems that perhaps I could use resource calendars under my Google Cloud service account.看来也许我可以在我的 Google Cloud 服务帐户下使用资源日历。 My biggest concern is whether my usage will fall within the Calendar API's service quotas, either automatically or by requesting a quota increase?我最担心的是我的使用量是否会自动落入 Calendar API 的服务配额内,或者通过请求增加配额?

Yes service accounts will fall within quota usage limits.是的,服务帐户将在配额使用限制内。 There is also a limit about creating more then 25 calendars in a day causing the user to end up in read mode for the rest of the day.一天内创建超过 25 个日历也有限制,这会导致用户在一天的剩余时间里最终处于阅读模式。

pricing价钱

Google Calendar API Usage Limits Google Calendar API 使用限制

The Google Calendar API has a courtesy limit of 1,000,000 queries per day. Google Calendar API 的礼貌限制是每天 1,000,000 次查询。

To view or change usage limits for your project, or to request an increase to your quota, do the following:要查看或更改项目的使用限制,或请求增加配额,请执行以下操作:

  1. If you don't already have a billing account for your project, then create one.如果您还没有项目的结算帐号,请创建一个。
  2. Visit the Enabled APIs page of the API library in the API Console, and select an API from the list.访问 API 控制台中 API 库的启用 API 页面,然后从列表中选择一个 API。
  3. To view and change quota-related settings, select Quotas.要查看和更改与配额相关的设置,请选择配额。 To view usage statistics, select Usage.要查看使用情况统计信息,请选择使用情况。

On the one hand, you could work around the quota issues by sharding your users across multiple Service Accounts.一方面,您可以通过将用户分片到多个服务帐户来解决配额问题。 You would probably also want to shard them across multiple App IDs.您可能还想将它们分片到多个 App ID。

On the other hand, don't do it.另一方面,不要这样做。 In my experience, using Google APIs outside their intended use case doesn't end well.根据我的经验,在预期用例之外使用 Google API 的结局并不好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM