DATA DISTRIBUTION METHOD, ELECTRONIC DEVICE, AND STORAGE MEDIUM
The present invention relates to a data distribution method and apparatus, and a storage medium. The method comprises: obtaining a subscription timestamp of each subscription server in a subscription server set, the subscription timestamp being used for indicating a subscription progress of each sub...
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Patent |
Sprache: | eng ; fre ; ger |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The present invention relates to a data distribution method and apparatus, and a storage medium. The method comprises: obtaining a subscription timestamp of each subscription server in a subscription server set, the subscription timestamp being used for indicating a subscription progress of each subscription server; according to the subscription timestamp of each subscription server, determining a sorting result of the subscription servers in the subscription server set; according to the sorting result, determining a first subscription server and a target subscription server in the subscription server set, the target subscription server already subscribing to and storing a target message, and the target message being a message to be subscribed to by the first subscription server; and sending a notification message to the first subscription server, the notification message being used for indicating the first subscription server to subscribe to the target message from the target subscription server. Embodiments of the present invention effectively disperse subscription pressure of a plurality of subscription servers on a distributed message queue system, greatly reduce network communication loads of the distributed message queue system, and reduce consumption of machine resources. |
---|