Method, device and system for realizing high-available distributed queue service

An implementation method and distributed technology, applied in the field of communication, can solve problems such as single point of failure, data consistency cannot be guaranteed, stand-alone, etc., and achieve the effect of solving the problem of distributed locks, maintaining data consistency, and avoiding resource deadlocks

Inactive Publication Date: 2016-05-25
QINGDAO HAIER INTELLIGENT HOME TECH CO LTD
View PDF0 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] For option 1, there is a single point of failure problem and low concurrency;
[0008] For solution two, data storage may have a single point problem, and if there is no synchronization lock mechanism, data consistency cannot be guaranteed, and if a synchronization lock mechanism is added, efficiency will be reduced
[0009] For scheme three, when accessing the interface, an addressing process is required, which reduces concurrency
And although the data are stored in different machines, for each machine, there is still a stand-alone problem

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method, device and system for realizing high-available distributed queue service
  • Method, device and system for realizing high-available distributed queue service
  • Method, device and system for realizing high-available distributed queue service

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0040] method embodiment

[0041] The embodiment of the present invention provides a high-availability distributed queue service implementation method. The method adopts a Zookeeper mechanism to provide a high-availability, high-scalability, and high-concurrency queue service implementation solution.

[0042] The implementation of the method described in this embodiment mainly involves the following functional entities: a Zookeeper server cluster and a queue s...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

This invention discloses a method and a device for realizing high-available distributed queue service. The method comprises the following steps: when a queue interface server receives data sent by a client, requesting Zookeeper server cluster to create persistent sequence nodes of the data; after the nodes are created, storing the data into a local memory queue; when a request for acquiring the data sent by the client is received, extracting queue head data from the local memory queue and requesting the Zookeeper server cluster to delete the persistent sequence nodes of the data; after the nodes are deleted successfully, feeding back the extracted data to the client; and when a node change in the Zookeeper server cluster is monitored, synchronizing a data change caused by the node change into the local memory queue. This invention provides a high available, high extensible and high subsequent queue service realizing plan, and provides a reliable choice for the enterprise application integration and the distributed business collaboration.

Description

technical field [0001] The present invention relates to the communication field, in particular to a method, device and system for realizing high-availability distributed queue service. Background technique [0002] The interface service provides an open platform for third-party developers to use the website provided by the website service provider. The existing interface service provision methods mainly include: [0003] Solution 1: stand-alone version; the queue service data and interface services implemented in this solution are deployed on the same machine, and only one interface server provides external services, and stores data in local memory, files or databases. [0004] Solution 2: Single storage, multi-interface service; this solution has multiple external interface servers, which can provide high concurrency. But the data is stored in a separate cache server or database server. [0005] Solution 3: multi-machine storage, multi-interface server; the data in this ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08
CPCH04L67/10H04L67/568
Inventor 李阅苗
Owner QINGDAO HAIER INTELLIGENT HOME TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products