3,143 questions
0
votes
1
answer
75
views
Can a Pub/Sub SMT (javascript UDF) act on protobuf encoded messages?
I have Pub/Sub subscription to a Pub/Sub topic that uses BINARY encoding and a PROTOCOL_BUFFER topic schema. The messages published there are encoded as protocol buffers (protobuf)
I wanted to write a ...
0
votes
0
answers
93
views
Can I send a JSON object to BigQuery without stringifying it?
I am trying to figure out if there is a way to send a JSON object to a BigQuery table that has a column of type JSON. I know the current practice is to stringify the JSON and send it over which gets ...
0
votes
1
answer
105
views
Google Pub/Sub push subscription to BigQuery changes value in float data type
I have a BigQuery push subscription in Pub/Sub that for some reason changes the values of the fields with float datatype when pushed to BigQuery.
I tried creating a pull subscription and attached it ...
0
votes
0
answers
64
views
Google Pub/Sub — Publisher works, how do I confirm my subscriber is receiving/ACKing messages?
I’m working on a project that uses Flask as the publisher and a Python subscriber to handle messages with Google Cloud Pub/Sub.
My setup:
A local Flask front end publishes messages (itemID, location, ...
0
votes
0
answers
102
views
Jest hangs when publishing to @google-cloud/pubsub in integration test
I have an integration test that publishes a domain event to Google Cloud Pub/Sub (using the Pub/Sub emulator). Eventduspatcher.integration.test.ts passes but Jest prints:
Jest did not exit one second ...
0
votes
1
answer
95
views
Google Cloud PubSub Synchronous Pull: Getting One Message at a Time Instead of Batches
Problem
I'm using Google Cloud PubSub with synchronous pull and ordering enabled to consume messages from a Debezium Server setup, but I'm only receiving one message at a time instead of getting ...
0
votes
0
answers
64
views
What connector can be used for Google Cloud pubsub along with Cloud dataproc ( Spark 3.5.x )
I am using Spark 3.5.x and would like to use readStream() API to read structured streaming using Java .
I don't see any pubsub connector available. Couldn't try pubsub lite because it is deprecated ...
0
votes
1
answer
204
views
GCloud Pub/Sub Pull subscription limit of 5000 messages
Currently I am working on a project that publishes any received request contents to a pub sub topic and subsequent subscriber, in order to pull and batch process all of the messages at once every ...
0
votes
0
answers
100
views
Google Cloud Run background worker cannot resolve Application Default Credentials for Pub/Sub (works locally)
I have a .NET 8 background worker running on Cloud Run.
The worker should publish messages to Pub/Sub, but I always get the following error at runtime:
System.InvalidOperationException: Your default ...
0
votes
1
answer
95
views
Publish to @google-cloud/pubsub topic from Firebase sdk is failing
With all nodejs packages updated, trying to publish message to topic ends on timeout with error:
GoogleError: Total timeout of API google.pubsub.v1.Publisher exceeded. Error: Getting metadata from ...
1
vote
0
answers
178
views
How to test connection to Google Pub/Sub when creating a client in Go using pubsub/v2?
I have a Go application, where I create a Pub/Sub client and then I create a subscriber receiving from a topic/subscription I've created locally using a local Docker gcloud emulator container. ...
4
votes
3
answers
591
views
Backward and forward compatibility issues with protobufs in Google Pub/Sub
We use protocol buffers both for gRPC server-to-server communication and for publishing messages to Pub/Sub.
Pub/Sub is fairly sensitive to schema changes, not allowing any schema changes that would ...
1
vote
1
answer
72
views
export data query executes successfully but messages are not pushed to pub/sub topic
I ran this standard query and it executes successfully.
EXPORT DATA
OPTIONS (
uri = 'https://pubsub.googleapis.com/projects/ggdevbigqueryproject/topics/GGTEST',
format = 'JSON',
...
0
votes
0
answers
89
views
setting up a watch in pubsub from a google form
Does anyone know the best doc to follow for pulling data from a Google Form via Apps Script and sending that data to pubsub, been following this guide
https://developers.google.com/workspace/forms/api/...
0
votes
1
answer
138
views
How to refresh the service account credentials in GCP pubsub Spring implementation
Currently we are using a third party library CredClient to get the credentials which has methods to get credentials and to refresh credentials.
We are using Spring auto configuration and manually ...
2
votes
2
answers
201
views
GCP Pub/Sub subscription/subscribers not giving expected performance
I am running several GCP subscribers that are connected to a GCP subscription and I have tried everything but the subscribers just do not keep up with the incoming data. My most recent configuration ...
0
votes
1
answer
165
views
Google Pubsub message ordering behavior
I'm facing a problem with message ordering on pubsub:
I see that 2 events were processed on the same time although the ordering key is the same.
I mean:
Event A received and started to be handled. ...
0
votes
0
answers
63
views
Parallelism in Apache Camel - difference between CompletableFuture and parallelProcessing
I have a Spring Boot Camel project that consumes messages from GCP PubSub subscription and updates 4 AWS DYnamoDB tables.
The subscription has the following parameters:
acknowledgement deadline (...
0
votes
1
answer
55
views
How to publish evenType with Nifi ConsumeGCPubSub
We have set up a ConsumeGCPubSub processor in Nifi so that we get informed if files are added or deleted on our GCS bucket. This is working, however, in the messages that the processor is emitting, ...
2
votes
0
answers
120
views
Gmail Pub/Sub Push Notifications Reach Cloud Run but Not My Python Webhook App
My objective is to develop Python scripts that read the current messages in the client's Gmail inbox, and read the live messages coming through the client's Gmail inbox. This data will eventually by ...
1
vote
0
answers
157
views
How to properly decode the payload of a pubsub message in pyspark / databricks?
I have a pull subscription to a pubsub topic.
example of message I'm sending:
{
"event_id": "200595",
"user_id": "15410",
"session_id": &...
0
votes
1
answer
252
views
How to generate the Endpoint URL to cloud functions for push subscriptions on Google Pub/Sub?
I have a Cloud Function (v1) that is set to trigger every time a message is received in a specific topic. This part of the configuration is done correctly (since I've followed previous working cloud ...
1
vote
0
answers
128
views
Setting to increase GCP Pub/Sub subscription send throughput
I am trying to figure out the source of latency in my application as I am seeing a number of un-acked messages per unit time on the dashboard for my GCP Pub/Sub subscription. My application simply ...
0
votes
0
answers
88
views
Getting metadata from plugin failed with error: key must be a string, a buffer or an object before any response was received
I have a Node app that is running on railway.com in a Docker container. This app uses GCP pub/sub.
One oddity of railway.com is I can't find a way to inject a file as a secret or a file into a ...
0
votes
1
answer
183
views
Do I need to setup anything else to ensure my GCP Pub/Sub Streaming Pull rate is optimal?
I have a GCP Pub/Sub Streaming Pull subscriber that has an Ack rate equal to the Pull rate. I am seeing a lot of latency on my end and I decided to investigate further. I find that the Publish to Ack ...
0
votes
1
answer
467
views
Why am I getting several seconds latency delay with my GCP Pub/Sub subscription/subscriber settings?
I have a GCP subscriber that uses Streaming Pull API to pull messages from a GCP subscription. There is only one GCP subscription and one subscriber attached to this subscription. I am seeing delay of ...
0
votes
0
answers
105
views
Monitor message published to GCP pubsub topic
I was trying to create an alert for messages not getting published to pubsub topic.
Usecase: if message are not getting published for 10mins trigger an alert
Problem:
Although the job producing ...
0
votes
1
answer
115
views
Understanding GCP Pub/Sub Sent Metric and Ack Metric With Dead Lettering
I am testing my Pub/Sub setup with dead lettering enabled. Inside my subscriber application, I have not added any ack logic so all messages will not be acked by my subscriber. I set the maximum ...
0
votes
0
answers
75
views
java expansion service (grpc server) is UNAVAILABLE when ReadFromPubSub in beam application tries to access
My beam python on flinkrunner(PortableRunner) has the following code.
from apache_beam.io.external.gcp.pubsub import ReadFromPubSub
from dependency_injector import providers
...
pubsub_reader = ...
0
votes
0
answers
62
views
How to handle GCP marketplace pub sub events for subscription for Saas integration?
@pubsub_bp.route("/api/pubsub/events", methods=["POST"])
def handle_pubsub_event():
try:
print("Received Pub/Sub event")
envelope = request.get_json()
...
0
votes
0
answers
163
views
How to prevent Cloud Run 429 too many requests going to the PubSub dead letter queue
Problem
We use Cloud Run to process upload events, where a user can upload hundreds of images at once. This causes high usage spikes, and since we are limited to 25 Cloud Run instances, many Pub/Sub ...
0
votes
1
answer
525
views
Google Cloud PubSub Emulator
I'm running into an issue when trying to use the Google Cloud Pub/Sub Emulator. I am able to start the emulator successfully, but I cannot create topics or interact with it using gcloud commands.
I ...
0
votes
1
answer
537
views
Why is GCP Pubsub publishMessage so slow
I have a API on CloudRun which publishes a payload to a Pubsub topic which triggers a Cloudfunction.
When I test it, the publishMessage() call takes more than 200ms to complete.
This is my code to ...
1
vote
0
answers
111
views
How to get ordered logs using GCP Pub/Sub
I am using the GCP Pub/Sub to get real-time google logs into my Python application.
I have created a log Sink that routes specific cloud run job logs into a Pub/Sub topic and I am subscribing to that ...
-1
votes
1
answer
64
views
Leaving message unacknowledged in Benthos job with gcp_pubsub input
How does Benthos handle the acknowledgement of pubsub messages? How can we manage ack/unack based on custom if-else conditions?
Here is the scenario i'm trying to achieve:
I have written a Benthos job ...
0
votes
1
answer
180
views
On Google Run how does a service know to be invoked by Google Pub/Sub if the endpoint has a different URL?
Hi this is mainly a Question on how Pub/Sub can invoke a service on google run while not having an identical subscription endpoint to the service.
Going to post the image of a url of a Google Run URL ...
-2
votes
2
answers
162
views
Issue with Creating Pub/Sub and Log Sink in Docker Container
I am trying to create a Pub/Sub topic and a log sink in Google Cloud. The idea is to create a log sink and assign the role pubsub.publisher to the log sink's service account for the Pub/Sub topic ...
0
votes
2
answers
182
views
What is the ackDeadline property on Subscription and ackDeadline on Subscriber in GCP Pub/Sub?
I am trying to understand the difference between the ackDeadline property on the Subscription and the ackDeadline property on the Subscriber. It is clear that the ackDeadline on the Subscription is ...
0
votes
2
answers
119
views
What qualifies as "unacked" in PubSub
Docs say:
The oldest_unacked_message_age ... measures the age, in seconds, of the oldest message in a subscription's backlog that has not yet been acknowledged (acked) by a subscriber.
In order to ...
-1
votes
1
answer
419
views
Using subscribe() method in an asyncio stack [closed]
I want to use pubsub in an application that uses asyncio as a basic way of achieving I/O concurrency. The default Google SDK, however doesn't offer async methods (I have tried gcloud-aio-pubsub, but ...
2
votes
1
answer
232
views
Why does Google Pub/Sub deliver messages with the same orderingKey in parallel before calling ack()?
I am working with Google Cloud Pub/Sub, and I am trying to ensure that messages with the same orderingKey are processed in order, as stated in the official documentation. However, I notice that ...
1
vote
1
answer
141
views
Listen to a subscription/topic with Pub/Sub - Google Cloud Platform
I have a topic, and subscriptions related to it with pub/sub.
I'd like to test my function locally through VSCode, especially the function that triggers when a message is posted on my topic.
export ...
0
votes
0
answers
57
views
Google Pub/sub with Python publisher duplicating messages
We are using google cloud pub/sub with Python pubsub_v1.PublisherClient. We have also enabled key ordering on both the subscription and the Python publisher. After the enablement of the key ordering, ...
0
votes
1
answer
185
views
How to recover data from Google pub/sub topic subscription when my service is down
I have subscribed to a Google pub/sub topic from my spring boot application with subscription.What happens if my service is down and There is some data which is pushed to pub/sub topic. Will i receive ...
1
vote
0
answers
60
views
How to Handle ModifyAckDeadline Failures in Google Cloud Pub/Sub to Prevent Duplicate Message Processing?
I'm using Google Cloud Pub/Sub with exactly-once delivery enabled.
Is there a way to stop processing a message that was pulled if the ModifyAckDeadline call fails? My concern is that if ...
1
vote
1
answer
94
views
pub/sub (golang) many InvalidArgument errors from /ModifyAckDeadline when the load spikes
during a high-load period with ~9000 messages created within 10 minutes, we observed an issue with message processing. Some pods (usually one or two) consistently returned the following error for ...
0
votes
0
answers
63
views
Firebase gen2: unkown trigger despite successful deployment
I made a firebase function and defined a pub/sub trigger:
google_play_purchase_handler.py:
@pubsub_fn.on_message_published(topic=GOOGLE_PLAY_PUBSUB_TOPIC, region=REGION)
async def ...
0
votes
0
answers
43
views
how to acknowlegde push request in my AWS lambda function
I am watching a gmail using gmail API and I have integrated pub/sub to allow push notification whenever there is an change in the gmail INBOX.
while configuring pub/sub, I have given API gateway URL(...
0
votes
1
answer
151
views
If the GCP pub sub Subscription Expiration is same as Subscription Message Retention will the subscription not expire
We have a GCP pub sub subscription with the Expiration set to 1 day, while the Message Retention Duration is also set to 1 day.
There were no messages in the subscription but it still did not expire ...
1
vote
1
answer
87
views
Does acking a message in Google Pub/Sub also ack its duplicates?
I have a subscription in Google Pub/Sub where messages can be either acknowledged (acked) or not acknowledged (nacked). To handle the at-least-once delivery guarantee of Pub/Sub, I use an idempotent ...