Skip to content

Add Batch Messaging Configuration for Google Pub/Sub Publisher at Application Startup #3646

@egerbsotec

Description

@egerbsotec

We propose an enhancement to Hono's experimental Google Pub/Sub based messaging infrastructure to allow the Google Pub/Sub Publisher to send messages in batches, configurable at application startup. This improvement aims to optimize message throughput and reduce the number of API calls to Google Pub/Sub, which can lead to cost savings and improved performance.

Justification:

Currently, the Google Pub/Sub Publisher sends messages individually. While this approach is straightforward, it can be inefficient for applications with high message throughput. Sending messages in batches can significantly reduce the number of network requests and increase overall efficiency. By making this feature configurable at application startup, we provide flexibility for different use cases and workloads.

Proposed Changes:

  • Implement configuration options.
  • Modify the existing Pub/Sub Publisher to support batching of messages based on the configuration.
  • Update the documentation to include details on the feature and the new configuration properties.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions