-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add event_types_supported to the SSF transmitter metadata #219
Comments
Folks, were there any thoughts given to this proposal? |
This was already discussed #45 |
@appsdesh Thanks for tagging that issue, but it isn't clear why that would relate to what I am proposing here. The problem we are grappling as an implementer is how a receiver determines the available events that a transmitter is able to transmit. While this could be outside of the spec, I see no advantage there given the transmitter has a metadata endpoint available and can share this information directly. I don't see anything in the other issue that indicates why this wouldn't be done. |
The point raised in the issue that @appsdesh referenced is that events_supported is a function of the stream, not a function of the Transmitter. For instance, imagine there are two users: tenant 1, who is only paying for the Transmitter's basic plan, and tenant 2, who is on the deluxe plan. When tenant 1 sets up a stream, the only events supported by that stream are A, B, and C because they're on the basic plan. When tenant 2 sets up a stream, it supports events A, B, C, D, and E because they are on the deluxe plan. There is no way to express that dynamic nature in the public well known endpoint. Can you describe in more detail the problem you are running into? Maybe we can help brainstorm a way around it. |
@FragLegs I see what you mean. The main issue is there is no prescribed mechanism available to discover the event types supported by a transmitter. So the only mechanism that appears to exist for a receiver is to -
The transmitter can and would respond with So with my proposal, this is what the receiver would do -
It eliminates a non-prescriptive mechanism of discovering events that are supported by the transmitter, while retaining the ability to filter by subscrption plan etc. Also, in the event that the receiver doesn't provide events_requested, the transmitter makes the appropriate decision on which events would be delivered, which may be all that are allowed based on the subscription plan entitlement etc. |
Proposal
event_types_supported
to the SSF transmitter metadata to indicate the available event types for receivers to request. This potentially allows the receiver to not need to perform additional actions on its end based on the stream config response. This is proposed as an optional property for backward compatibility.event_types_supported
to continue to be requested and used. This would cover event types that transmitters make available to specific receivers or for "beta" purposes.The text was updated successfully, but these errors were encountered: