DPSN: Decentralised Pub/Sub Network
  • Introduction
  • Why Decentralized?
  • Understanding Topics
  • Architecture
    • Topics Registry
    • Configurator
    • Clusters
    • Publishers and Subscribers
    • Facilitator Brokers
    • SDK
  • Functionality
    • Message Publishing and Delivery
    • Subscription Management
    • Security Considerations
    • Topic Ownership and Access Control
    • Private Key Authentication
    • Fully Homomorphic Encryption Support
  • Advantages and Use Cases
    • Advantages of DPSN
    • Use Cases
  • Integration
    • SDK Introduction
    • Publisher
    • Subscriber
    • Delegated Addresses
    • Private Messaging
  • Integration Guides
    • Messaging Application
  • Token Use
    • Utility
    • Token Utility Model
  • DIPs
    • DIP1: Stateless Message Routing in DPSN
  • DIP2: Integration of DPSN with Model Context Protocol (MCP)
  • DIP-3: Standardizing DPSN AVS for Enhanced Security and Reliability
Powered by GitBook
On this page
  1. Functionality

Message Publishing and Delivery

DPSN facilitates the efficient and reliable publishing and delivery of messages across its decentralized network. This section outlines the core functionalities and underlying mechanisms involved in this process.

Message Publishing

  • Message Creation: Publishers generate messages containing relevant data and metadata. Messages can be structured in various formats (e.g., JSON, XML) to accommodate different data types.

  • Topic Selection: Publishers choose the appropriate topic to which the message belongs. This ensures accurate message routing and delivery to interested subscribers.

  • Message Signing: Publishers sign messages with their private keys to authenticate their identity and ensure message integrity.

  • Message Submission: Signed messages are submitted to the Configurator, which routes them to the designated clusters.

Message Delivery

  • Message Routing: The Configurator determines the optimal clusters for message delivery based on factors such as topic mapping, network load, and node availability.

  • Message Replication: Messages are replicated across multiple nodes within the target clusters to enhance reliability and fault tolerance.

  • Message Delivery to Subscribers: Subscribers subscribed to the relevant topic receive copies of the message from multiple clusters.

  • Message Validation: Subscribers verify the authenticity and integrity of received messages using the publisher's public key.

  • Message Processing: Subscribers process the received messages according to their specific applications and requirements.

Quality of Service

DPSN supports various quality of service (QoS) levels to meet diverse application needs:

  • At Least Once Delivery: Guarantees that a message is delivered at least once, but duplicates may occur.

  • At Most Once Delivery: Delivers a message at most once, but there's a risk of message loss.

  • Exactly Once Delivery: Ensures that a message is delivered exactly once, providing strong consistency guarantees.

By offering flexible message publishing and delivery mechanisms, DPSN empowers publishers and subscribers to effectively exchange information within the network.

PreviousSDKNextSubscription Management

Last updated 8 months ago