Receiving data from topics
A client can subscribe to a topic to receive a stream of updates or can fetch the current state of a topic.
Topics
A topic is a logical channel through which data can be distributed to clients. Topics provide a logical link between publishing clients and subscribing clients.
Diffusion™ Cloud provides different types of topic that can be used to stream diffent data formats or can be used for special purposes. For more information about topic types and uses, see Topics.
Subscribing
- Subscribe to a topic or set of topics.
- Register a stream that matches the topic or set of topics, or register a matching fallback stream.
Fetching
To fetch the current value of a topic or set of topics, a client makes a fetch request, passing in a fetch stream, and uses the fetch stream to receive the data.