-
Notifications
You must be signed in to change notification settings - Fork 58
Events should be filterable by CloudEvents source as opposed to just type #661
Comments
Pending Changes:The reason to introduce
Steps to Create Event Driver:# 1. create channel, basically a string representing the topic
$ dispatch create channel <CHANNEL_NAME>
# 2. eventdriver given channel
$ dispatch create eventdriver --channel <CHANNEL_NAME> ...
# 3. subscription given channel. optional source and event-type
$ dispatch create subscription <FUNCTION_NAME> --channel <CHANNEL_NAME> [--source <SOURCE>] [--event-type <EVENT_TYPE>] |
I am trying to see if we strongly need On the semanticsA
If we change it to be:
wouldn't this suffice? IIUC, On the implementation sideFor Solo:I see what For knative:Each I know we discussed the possibility of a new CRD that creates and owns multiple |
@neosab the initial idea was what you described, but we also have an events endpoint that accepts generic cloudevents. The idea behind channel was to introduce a single connection point for subscriptions, it's not related to knative and it's not there to be an abstraction over messaging (but of course it fits nicely). Is your suggestion to drop the events API? I'd like users to be able to manually generate events for testing/etc, but maybe we can work around that. If we only have event drivers as a way to get events into the system, then it's possible to couple them directly with subscriptions. |
Feature Request
Detailed Description
Event types alone are not enough for routing through subscriptions. The alternative is filtering in a function and calling subsequent functions, however this is a waste of computation.
The method for defining filters should be spec'ed out and agreed upon.
Context
Possible Implementation
Complexity
The text was updated successfully, but these errors were encountered: