Publishers and Subscribers
Publishers
Publishers are entities within the DPSN network that generate and disseminate messages. They play a crucial role in creating and managing topics.
Core Functionalities
Topic Creation: Publishers can create new topics by submitting a transaction to the Topics Registry.
Message Creation and Publication: Publishers generate messages and associate them with specific topics. Messages are then sent to the Configurator for routing to appropriate clusters.
Topic Management: Publishers have the ability to modify topic attributes, such as pricing for subscribing to them and access control.
Authentication and Authorization: Publishers are required to authenticate their identity and possess the necessary permissions to publish messages on a particular topic.
Technical Implementation
Publishers interact with the DPSN network through an API or SDK that provides access to core functionalities. To ensure security and integrity, publishers employ cryptographic keys for authentication and message signing.
To optimize performance, publishers can batch multiple messages into a single transaction, reducing network overhead. Additionally, publishers can leverage compression techniques to reduce message size.
Security and Privacy
Publishers are responsible for protecting their private keys and ensuring the security of their message content. By encrypting messages, publishers can safeguard sensitive information.
To maintain user privacy, publishers should avoid including personally identifiable information in message content. Additionally, publishers should comply with relevant data privacy regulations.
By creating and disseminating messages, publishers contribute to the dynamic and informative nature of the DPSN network.
Topic Acquisition
Topic acquisition is the process by which publishers obtain ownership of specific topics within the DPSN network.
Core Functionalities
Topic Discovery: Identifying available topics for acquisition.
Topic Bidding: Participating in a bidding process for desired topics, if applicable.
Topic Purchase: Acquiring topic ownership through payment of the required tokens or other agreed-upon terms.
Topic Registration: Registering the acquired topic with the Topics Registry.
Technical Implementation
Topic acquisition is implemented through various mechanisms, including auctions, direct purchase, or a combination thereof. Smart contracts are being used to automate the acquisition process and ensure transparency.
To facilitate topic discovery, a marketplace or directory of available topics will be established.
Security and Privacy
Topic acquisition processes prioritizes security and transparency. Cryptographic mechanisms will be used to protect bidding information and ownership transfer.
Privacy considerations are taken into account, especially when handling sensitive topic information.
Message Publishing
Message publishing is the core function of publishers within the DPSN network.
Core Functionalities
Message Creation: Generating message content and associated metadata.
Message Formatting: Structuring messages according to defined standards and protocols.
Message Signing: Authenticating message origin and integrity through digital signatures.
Message Routing: Submitting messages to the Configurator for routing to appropriate clusters.
Technical Implementation
Publishers can utilize various tools and libraries to create and format messages efficiently. Message content can be structured using JSON, XML, or other suitable formats.
To ensure data integrity and authenticity, publishers should employ cryptographic techniques to sign messages.
Security and Privacy
Message publishing processes should prioritize security and privacy. Encryption can be used to protect sensitive message content.
To maintain user privacy, publishers should avoid including personally identifiable information in message content.
By effectively publishing messages, publishers contribute to the information flow within the DPSN network and create value for subscribers.
Subscribers
Subscribers are entities within the DPSN network that consume messages published on specific topics. They play a crucial role in driving the value and utility of the network.
Core Functionalities
Topic Subscription: Subscribers can subscribe to one or more topics to receive corresponding messages.
Message Consumption: Subscribers receive messages from multiple clusters to enhance reliability and fault tolerance.
Message Processing: Subscribers process received messages based on their specific requirements and applications.
Authentication and Authorization: Subscribers must authenticate their identity and possess the necessary permissions to subscribe to specific topics.
Technical Implementation
Subscribers interact with the DPSN network through an API or SDK that provides access to subscription and message consumption functionalities. To optimize performance, subscribers can leverage asynchronous messaging patterns to handle high message volumes.
Subscribers can employ filtering mechanisms to select specific messages based on content or other criteria. This allows subscribers to focus on relevant information and reduce processing overhead.
Subscriber SDKs also implement the consensus mechanisms to allow the the option of chosing speed vs accuracy of the messages received.
Security and Privacy
Subscribers should protect their private keys and ensure the security of their message consumption processes. By encrypting sensitive data, subscribers can safeguard their information.
To maintain user privacy, subscribers should handle message content responsibly and avoid sharing personal information without explicit consent. Additionally, subscribers should comply with relevant data privacy regulations.
Subscription Options
Subscribers have various options for subscribing to topics within the DPSN network. This subsection outlines the different subscription models.
Core Functionalities
Topic-based Subscription: Subscribing to specific topics to receive related messages.
Wildcard Subscription: Subscribing to a pattern of topics using wildcard characters.
Filtered Subscription: Subscribing to a subset of messages based on specific criteria.
Subscription Management: Managing subscriptions, including adding, modifying, and removing subscriptions.
Technical Implementation
Subscribers can utilize APIs or SDKs to manage their subscriptions. The DPSN network supports different subscription models to accommodate diverse user needs.
To optimize performance, subscribers can leverage subscription filtering to reduce the volume of irrelevant messages.
Security and Privacy
Subscription information should be protected to prevent unauthorized access. Subscribers should have control over their subscription preferences.
Privacy considerations should be taken into account when handling subscription data.
By offering flexible subscription options, the DPSN network empowers subscribers to tailor their message consumption to their specific requirements.
Message Delivery
Efficient and reliable message delivery is a critical aspect of the subscriber experience. This subsection outlines the key elements of message delivery.
Core Functionalities
Message Reception: Receiving messages from multiple clusters to enhance reliability.
Message Validation: Verifying the authenticity and integrity of received messages.
Message Processing: Handling incoming messages based on subscriber-specific logic.
Error Handling: Managing situations where message delivery fails or is delayed.
Technical Implementation
Subscribers can utilize asynchronous messaging patterns to handle incoming messages efficiently. Message queues can be used to buffer messages for later processing.
To ensure data integrity, subscribers can verify message signatures and checksums.
Security and Privacy
Message delivery should prioritize security and privacy. Encryption can be used to protect message content during transmission.
Subscribers should handle received messages securely and avoid exposing sensitive information.
Last updated