Message Broker Subscription Lifecycle Notification

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In publish-subscribe messaging systems, such as MQTT, publishers often continue to send data to topics even when there are no subscribers, wasting bandwidth and resources due to the lack of real-time subscription monitoring.

Innovation Solution

Implementing a message broker that detects life-cycle events for topic subscriptions and notifies publishers to start or stop sending data based on the presence of subscribers, using system-reserved control topics to manage the publication process.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Loss of energy

If publishers continuously send data to topics without monitoring subscriber presence, then data transmission reliability is maintained, but bandwidth and network resources are wasted

Engineering Contradiction:
Improvebandwidth usageVSAvoiddata transmission reliability
Core Design Contradiction:
Loss of energyVSReliability

Solution Approach 1:

The message broker publishes subscription status information to a control topic that publishers subscribe to. This feedback mechanism allows publishers to learn about subscriber presence and adjust their publishing behavior accordingly, resolving the contradiction by enabling resource-efficient publishing while maintaining reliability through informed decision-making

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The message broker acts as an intermediary between subscribers and publishers. It monitors subscriber presence and communicates this information to publishers through control topics, enabling publishers to make informed decisions about whether to publish data without directly monitoring subscriber presence themselves

Inventive Principle:
Principle #24Intermediary (Mediator)

2Loss of energy

If publishers monitor subscriber presence in real-time, then resource waste is reduced, but system complexity increases

Engineering Contradiction:
Improveresource consumptionVSAvoidsystem complexity
Core Design Contradiction:
Loss of energyVSDevice complexity

Solution Approach 1:

The message broker serves as an intermediary that handles the complexity of monitoring subscriber presence and communicating status changes to publishers. Publishers simply subscribe to control topics and receive notifications, avoiding the need to implement complex monitoring logic themselves

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system enables publishers to automatically adjust their publishing behavior based on subscription status information received from the broker. Publishers serve themselves by making informed decisions about when to publish, eliminating the need for centralized control or complex coordination mechanisms

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS11122000B1Notifying a publisher of life-cycle events for topic subscription
Publication Date: 2021.09.14 AMAZON TECH INC
  • US11122000B1 patent drawing
  • US11122000B1 patent drawing
  • US11122000B1 patent drawing

AI summary

A message broker of a publish-subscribe messaging system (e.g., using the MQTT protocol or other publish-subscribe protocol) detects a life-cycle event for topic subscription and notifies a publisher of the life-cycle event. The message broker may detect a transition in a number of subscribers to a topic from zero subscribers to one or more subscribers or from one or more subscribers to zero subscribers. In response, the message broker provides an indication to the publisher that the number of subscribers to the topic has transitioned from zero to one or more (or from one or more to zero). This causes the publisher to begin publishing messages on the publisher's topic (or to stop publishing messages on the publisher's topic).