我已经在 google pubsub 中创建了主题和订阅。如何从 Spring Boot 应用程序读取 google pub sub 消息(订阅者?以及如何始终从我的应用程序监听该订阅以拉取/读取消息。
最佳答案
我强烈建议您看看Spring Cloud GCP 。它具有 Pub/Sub 集成功能,这应该正是您所寻找的。p>
有一个示例应用程序 here .
关于spring-boot - Spring Boot 中的监听器,用于监听(异步)Google Pubsub 消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49760287/