Looking at using Platform Events to subscribe to particular updates in a Lightning Web Component.
A certain LWC component will only be interested in events that relate to that particular component.
E.g. an action is performed by the user that results in the synchronous creation of data, resulting in an sobject's Id being returned to the form.
An asynchronous update of that data is performed and a platform event is issued to state that the update is complete. That event contains the Id of the sobject that was updated.
The form subscribes to the event channel, but only wants to perform an action when the event with the correct Id specified is received.
This would appear to have implications for:
Performance - as more concurrent users of the LWC ramp up, the number of events being sent to each individual form also increases, putting load on the client form.
Is anyone aware of any way in which we can limit the number of events that the form subscribes to, without creating a multitude of channels (not feasible) and not performing the filtering on the client side?