Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Response :
    404 NOT FOUND if topic is not present

    200 OK
    • Response body contains an avro binary or JSON object based on the request Content-Type .

      [{ "messageId1" : payload1}, {"messageId2" : payload2},  ... ]

      with the schema as mentioned above

Programmatic

Programmatic API will be used by clients to publish/poll messages from the Messaging Service. They are just a wrapper around the REST APIs.TBD: How should TopicId look like? Should it extend from a NamespaceId and just have a String for the topic?

  • TopicId extends NamespaceId with a string that represents the topic name.


Creating Topic:

void create(TopicId topic) throws TopicAlreadyExistsException;


Updating Topic properties:

void update(TopicId topic, Map<String, String> properties) throws TopicAlreadyExistsException;


Deleting Topic:
void delete(TopicId topic) throws TopicNotFoundException;


...