...
PublicationIFace
1) Publish Event/Push Event: This operation allows a publisher to publish an event to an already defined topic. The publisher must have access to publish on the specific topic.After successful of publish event, message now appears in the topic and subscribers are notified.
...
Output: Message Id
2) Delete Event/Pull Event: This operation allows a publisher to remove a previously published event from a topic.Depending on the topic configuration, this action may not be allowed. Subscribers may be notified of the deletion depending on the nature of their subscription and the configuration of the topic. When an event is cross-posted to more than one topic, it is only removed from the selected topic. After successful deletion, event no longer appears under the topic.
...
publishEvent() implementation is for publication push messages and deleteEvent() implementation is for publication pull messages.
In publishEvent() implementation, we get the corresponding topic and publish the event to kafka server.
In deleteEvent() implementation, we delegate the event to subscriber to pull the message from kafka server.by getting corresponding kafka topic.
Assumptions: Following are the assumptions when we use publication
...