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

Transmitter needs ability to dictate what data it wants to share #103

Open
appsdesh opened this issue Aug 24, 2023 · 4 comments
Open

Transmitter needs ability to dictate what data it wants to share #103

appsdesh opened this issue Aug 24, 2023 · 4 comments
Labels
bug Something isn't working spec:SSF

Comments

@appsdesh
Copy link
Contributor

Currently the spec has "add_subject", "remove_subject" as optional operations that are driven by the receiver. With these operations the receiver decides which subjects should be (or shouldn't be) part of the stream.

This overlooks the need from the transmitter's perspective it's willingness to share data regarding subjects.

There could be scenarios where transmitter is in better position to know what data the receiver should have.

The present or future, legal frameworks, might also require the transmitters to control/filter out the data flow to the receivers.

@tulshi
Copy link
Contributor

tulshi commented Aug 28, 2023

This was intended to be done using the "stream updated" event. But now I see that the Stream Updated event specifies that the subject should always be the Stream ID. Should we update the description of the Stream Updated event to have additional statuses "subject added" and "subject removed"? Those events can have these details then.

@appsdesh
Copy link
Contributor Author

appsdesh commented Aug 28, 2023

Looking at the current description the stream updated event is purely used for communicating functional/operational status of the stream ie. disabled, enabled, paused etc.

It does not deal with stream related metadata modification by the transmitter such as -

  1. Transmitter updated stream subjects
  2. Transmitter removed an event from the stream subscription

Maybe it's worth clarifying that the Transmitter could update the stream Metadata (not just operational status). Add reflect the reason in the updated event. status could still be enabled

@appsdesh
Copy link
Contributor Author

appsdesh commented Aug 29, 2023

The Event Transmitter MAY choose to silently ignore the request, for example if the subject has previously indicated to the Transmitter that they do not want events to be transmitted to the Event Receiver

I see this sentence in the add subject case.

Similarly, we can take an approach that "a transmitter silently decides which subjects it wants to transmit to the receiver". It does not need to indicate subscribed subjects to the receiver.

Since add/remove subject API response may not always indicate true state of the subscribed subjects

@tulshi tulshi added spec:SSF bug Something isn't working labels Apr 20, 2024
@tulshi
Copy link
Contributor

tulshi commented Apr 20, 2024

@appsdesh what is the status of this issue? Do the spec changes in the run up to ID-2 fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working spec:SSF
Projects
None yet
Development

No branches or pull requests

2 participants