Google 云 Api 授权
Google Cloud Api Authorization
我想使用 google 云发布子在具有以下架构的博客应用程序中实现 Facebook 类通知
我有一个网络和 android 设备作为公开的休息服务的客户端。
这些休息服务已使用 OAuth2 进行保护(spring 安全性)。
当用户创建博客后,如果有人对此发表评论 post,关注所有者可以收到通知。只有授权用户才能创建 post 或评论,关注者可以看到通知
我不希望用户使用 Google 再次授权,所以我如何使用拉取通知将 api 合并到我的架构中
您通常不会在您描述的设置类型的客户端中使用 Google Cloud Pub/Sub。 Cloud Pub/Sub 并非旨在扩展到按手机数量排序的大量订阅。相反,您想要使用 Firebase Cloud Messaging. Firebase has a model that handles registration of devices to receive messages that is more in line with what you are thinking of, e.g., Set Up a Firebase Cloud Messaging Client App on Android 和
在 Chrome
上实施 Firebase 云消息传递客户端
您可以使用 Cloud Pub/Sub 来实现不同服务之间的通信。例如,处理博客文章的服务可能会在您的通知服务订阅的 Cloud Pub/Sub 主题上发布消息。通知服务将处理该消息并根据需要向最终用户发送 Firebase 云消息传递消息。
我想使用 google 云发布子在具有以下架构的博客应用程序中实现 Facebook 类通知
我有一个网络和 android 设备作为公开的休息服务的客户端。 这些休息服务已使用 OAuth2 进行保护(spring 安全性)。
当用户创建博客后,如果有人对此发表评论 post,关注所有者可以收到通知。只有授权用户才能创建 post 或评论,关注者可以看到通知
我不希望用户使用 Google 再次授权,所以我如何使用拉取通知将 api 合并到我的架构中
您通常不会在您描述的设置类型的客户端中使用 Google Cloud Pub/Sub。 Cloud Pub/Sub 并非旨在扩展到按手机数量排序的大量订阅。相反,您想要使用 Firebase Cloud Messaging. Firebase has a model that handles registration of devices to receive messages that is more in line with what you are thinking of, e.g., Set Up a Firebase Cloud Messaging Client App on Android 和 在 Chrome
上实施 Firebase 云消息传递客户端您可以使用 Cloud Pub/Sub 来实现不同服务之间的通信。例如,处理博客文章的服务可能会在您的通知服务订阅的 Cloud Pub/Sub 主题上发布消息。通知服务将处理该消息并根据需要向最终用户发送 Firebase 云消息传递消息。