google / knative-gcp

GCP event implementations to use with Knative Eventing.
https://github.com/knative/eventing
Apache License 2.0
160 stars 74 forks source link

Knative Eventing sample for Java Spring with Cloud Storage Events #2194

Closed Uvindu96 closed 3 years ago

Uvindu96 commented 3 years ago

Problem Hi all,

I'm doing a project using Knative and GCP cloud events. And I need to read cloud events that from GCP storage buckets. as an example, "object-finalize-event" -> broker -> trigger -> Spring application So, are there any examples that I can refer to? this could be really helpful for me.

zhongduo commented 3 years ago

This is an example of cloud storage -> event sink: https://github.com/google/knative-gcp/tree/main/docs/examples/cloudstoragesource This is an example of using broker and trigger: https://github.com/google/knative-gcp/tree/main/docs/examples/gcpbroker

Note that if your application is in Cloud Run, you might also want to try Eventarc: https://cloud.google.com/blog/topics/developers-practitioners/eventarc-unified-eventing-experience-google-cloud

Uvindu96 commented 3 years ago

thank you @zhongduo