Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Receive CloudEvent and URL query parameters #606

Open
astanet opened this issue May 5, 2024 · 0 comments
Open

Receive CloudEvent and URL query parameters #606

astanet opened this issue May 5, 2024 · 0 comments

Comments

@astanet
Copy link

astanet commented May 5, 2024

CloudEvent signature type function is really useful.

I'm working on build a flow as below.

Pub/Sub topic A -> Eventarc A -v
Pub/Sub topic B -> Eventarc B ---> Function
Pub/Sub topic C -> Eventarc C -^

I would like to receive CloudEvents from several topics in the same Function instance and adjust the processing somewhat for each topic.

Eventarc allows to specify a service URL path when invoking a destination Function. So, I adjust the behavior of Function to fit the Pub/Sub Topic by using URL query parameters like /[email protected], /[email protected] and so on.
This service URL path can be easily edited from the Cloud Console for ease of operation.

The current CloudEvent signature Function does not seem to have a way to obtain URL query parameters.
So I use the http signature type Function and unmarshall the Pub/Sub message and control the http response myself.

If we can use URL query parameters in CloudEvent signature type, we can build a more convenient and flexible system.
Is there a way to recieve URL query parameters in CloudEvent signature Function?
Or is there another better way?

Thanks.

@HKWinterhalter HKWinterhalter removed their assignment Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants