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

Ceph: support bucket notifications? #2303

Open
matzew opened this issue Dec 3, 2024 · 4 comments
Open

Ceph: support bucket notifications? #2303

matzew opened this issue Dec 3, 2024 · 4 comments

Comments

@matzew
Copy link
Member

matzew commented Dec 3, 2024

The ceph source and sink from kamelet seems to be dealing with objects and not notifications.

We have something like this currently in Knative: https://github.com/knative-extensions/eventing-ceph/blob/main/pkg/adapter/adapter.go#L91

However, with the general move towards eventing-integrations and using Kamelets inside, I was wondering if it is an option to add bucket notifications to the kamelet catalog.

this can do much more than what the current eventing-ceph code does. e.g. configuring the notifications, and maybe integrate with the ceph-source so that objects will be consumed based on the notifications.
creating a notification based mechanism instead of polling (as the current ceph-source does) is much more efficient.

@oscerd
Copy link
Contributor

oscerd commented Dec 3, 2024

We could do something like the event-based s3: https://github.com/apache/camel-kamelets/blob/main/kamelets/aws-s3-event-based-source.kamelet.yaml

There, we are consuming events from bucket and react to an upload. It should really be the same for Ceph. Does this answer your question?

Thanks

@yuvalif
Copy link

yuvalif commented Dec 4, 2024

yes, it is similar concept, but in case of ceph we ae using kafka not sqs.
also in cepoh we have some extensions to the bucket notification configuration that you might want to expose to the conf

@oscerd
Copy link
Contributor

oscerd commented Dec 4, 2024

The underline component is using AWS SDK S3 Java client, so unless there is a good reason or something useful on S3 too, we won't add more configuration in the component.

@yuvalif
Copy link

yuvalif commented Dec 4, 2024

The underline component is using AWS SDK S3 Java client, so unless there is a good reason or something useful on S3 too, we won't add more configuration in the component.

to setup bucket notifications and the queue you would need S3 and SQS APIs. but this limits you to AWS, since there is no open source implementation of SQS.
in the case of ceph, the queue is provided by kafka, which is available to anyone.

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

3 participants