Method and system for realizing delay queue through multiple strategies
A multi-strategy and queue technology, applied in the field of delay queues, can solve problems such as poor disaster tolerance, bulkiness, and message loss, and achieve the effects of improving system stability, system performance, and avoiding message loss
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0043] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.
[0044] A multi-strategy method for implementing delay queues. The implementation of this method is based on the fact that the system has integrated redis and realized the operations of adding, deleting and querying zset of redis. Redis's zset is an ordered set that does not allow duplicate members. By adding elements to zset and setting ordered scores, redis sorts the members in the set from small to large according to the scores, and then sorts them according to the scores Take out, realize first-in first-out.
[0045] Implementations of this method include:
[0046] 1. Message instance
[0047] In this solution, a message includes five parts: message topic, message body, delay time, consumption times and consumption exception handling type:
[0048] topic, message topic, in order to facilitate business splitting, multiple topics can be set...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com