google-cloud-pubsub

Google Cloud Pub/Sub API - Push E-mail

强颜欢笑 提交于 2020-01-10 03:46:17
问题 I'm using node.js to create an app that gets a PUSH from Gmail each time an email is received, checks it against a third party database in a CRM and creates a new field in the CRM if the e-mail is contained there. I'm having trouble using Google's new Cloud Pub/Sub, which seems to be the only way to get push from Gmail without constant polling. I've gone through the instructions here: https://cloud.google.com/pubsub/prereqs but I don't understand how exactly this is supposed to work from an

Deadlock inside gRPC Read() function

大兔子大兔子 提交于 2020-01-07 03:18:27
问题 I am working on a C++ project, which uses Google Pub/Sub. As there is no native support for Google Pub/Sub in C++, I am using it through gRPC. Thus, I have generated corresponding pubsub.grpc.pb.h, pubsub.grpc.pb.cc, pubsub.pb.h and pubsub.pb.cc files via protoc. I wrote a lightweight wrapper-class, for subscription management. Class basically creates a new thread and starts listening for new messages. Here is the code example (code was built based on this question): class Consumer { public:

Spring Boot cloud GCP cannot connect to local Google PubSub emulator

孤街醉人 提交于 2020-01-06 07:26:49
问题 Trying to connect to local Google PubSub emulator from Spring boot application for tests. Using below config spring.cloud.gcp.pubsub.emulator-host=localhost:8085 Started emulator in local successfully on 8085, Also have set PUBSUB_EMULATOR_HOST=localhost:8085 Note: While connecting to the actual Google PubSub topic everything just works fine. 回答1: When using the Pub/Sub emulator, use the FixedTransportChannelProvider and NoCredentialsProvider to create a Publisher or Subscriber . This is

Spring Boot cloud GCP cannot connect to local Google PubSub emulator

﹥>﹥吖頭↗ 提交于 2020-01-06 07:26:45
问题 Trying to connect to local Google PubSub emulator from Spring boot application for tests. Using below config spring.cloud.gcp.pubsub.emulator-host=localhost:8085 Started emulator in local successfully on 8085, Also have set PUBSUB_EMULATOR_HOST=localhost:8085 Note: While connecting to the actual Google PubSub topic everything just works fine. 回答1: When using the Pub/Sub emulator, use the FixedTransportChannelProvider and NoCredentialsProvider to create a Publisher or Subscriber . This is

Issue in domain verification on google cloud platform

做~自己de王妃 提交于 2020-01-06 07:12:03
问题 need help on issue with domain verification on Google cloud platform. I am trying to verify my appspot.comweb url using HTML Tag method. My html contains: <html> <head> <meta name="google-site-verification" content="39k6VaTYfQcrqMGTZ1LDYXxlR4T0gtGeOTce68idUE0" /> <title> This is title </title> </head> <body> Hello world </body> </html> I have named it as index.html and using this html file in main.py as below : import logging from flask import Flask,render_template from flask import request

Google Pub/Sub sending to only one subscription every ~5 messages

无人久伴 提交于 2020-01-06 06:01:11
问题 I've made 3 clients connected to a subscription, and one publisher. In the image 2 of the subscriptions are on the terminal, and one subscription is not seen as it is hosted on a DigitalOcean Droplet. It seems every 5 messages, it switches which subscriber actually receives the message, which should not happen. I've also varied the speed and it's always about 5 messages. Here is the code used on all clients for subscriptions: sub.on("message", (msg) => { console.log(`Message:1 ${msg.data

Google Pub/Sub sending to only one subscription every ~5 messages

你。 提交于 2020-01-06 06:00:13
问题 I've made 3 clients connected to a subscription, and one publisher. In the image 2 of the subscriptions are on the terminal, and one subscription is not seen as it is hosted on a DigitalOcean Droplet. It seems every 5 messages, it switches which subscriber actually receives the message, which should not happen. I've also varied the speed and it's always about 5 messages. Here is the code used on all clients for subscriptions: sub.on("message", (msg) => { console.log(`Message:1 ${msg.data

Why are my Stackdriver Google Pub/Sub subscription/pull_request_count metric alerts broken?

谁都会走 提交于 2020-01-06 05:05:16
问题 I have some alerts set up in Stackdriver to warn me if there are no pull requests for Pub/Sub subscriptions (implying that all my servers are down or broken). However, I noticed these alerts stopped working. When I pull up the alert in Stackdriver, the Metric is highlighted in red. If I try to set up another alert with the subscription/pull_request_count metric, it's not listed. The metric is also listed in the Pub/Sub monitoring docs, so I'd expect that it's valid. How can I get this alert

Why are my Stackdriver Google Pub/Sub subscription/pull_request_count metric alerts broken?

自作多情 提交于 2020-01-06 05:04:06
问题 I have some alerts set up in Stackdriver to warn me if there are no pull requests for Pub/Sub subscriptions (implying that all my servers are down or broken). However, I noticed these alerts stopped working. When I pull up the alert in Stackdriver, the Metric is highlighted in red. If I try to set up another alert with the subscription/pull_request_count metric, it's not listed. The metric is also listed in the Pub/Sub monitoring docs, so I'd expect that it's valid. How can I get this alert

PubSubInboundChannelAdapter stops to receive messages after 4th message

帅比萌擦擦* 提交于 2020-01-05 04:14:05
问题 I've created simplified example which reproduces my real problem. My example accepts from google pub/sub, logs it and send ack back to the Pub/Sub Config: @Slf4j @Configuration public class MyConfig implements FlowSupport { private final AppProperties properties; public MyConfig(AppProperties properties) { this.properties = properties; } @Bean public JacksonFactory jacksonFactory() { return JacksonFactory.getDefaultInstance(); } @Bean public MessageChannel bucketNotificationChannel() { return