Shared-memory-based service discovery method, apparatus and system, server

A shared memory and service discovery technology, applied to devices and systems, a shared memory-based service discovery method, and server field, can solve problems such as reduced service discovery capabilities, reduce network latency, avoid excessive resource usage, and improve readability. The effect of taking speed

Active Publication Date: 2017-03-15
深圳掌阅动漫科技有限公司
View PDF8 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Common solutions related to service discovery are based on a certain programming language like dubbo, but the problem of service discovery based on a specific language is also obvious, because most Internet companies use more than one programming language internally. Restricting to the language level will greatly reduce the ability of service discovery

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
  • Shared-memory-based service discovery method, apparatus and system, server
  • Shared-memory-based service discovery method, apparatus and system, server
  • Shared-memory-based service discovery method, apparatus and system, server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0052] figure 1 A flow chart of a shared memory-based service discovery method according to an embodiment of the present invention is shown. like figure 1 As shown, the method includes the following steps:

[0053] Step S101, monitor and obtain the service name recorded in the message queue; where, the service name is written to the message queue after the client receives the request for accessing the service from the application layer, but does not find the service provider information of the service in the shared memory middle.

[0054] Step S102, according to the service name, obtain the service provider information of the service from the service registration component.

[0055] Step S103, write the service provider information of the service into the shared memory for the client to read the service provider information from the shared memory and return it to the application layer.

[0056] In the embodiment of the present invention, the service registration component ...

Embodiment 2

[0066] image 3 A flowchart showing a shared memory-based service discovery method according to another embodiment of the present invention, Figure 4 It shows a schematic diagram of the system architecture implementing the shared memory-based service discovery method according to an embodiment of the present invention, Figure 5 A schematic diagram of an agent internal thread model in an embodiment of the present invention is shown. Combine below image 3 , Figure 4 and Figure 5 The detailed steps of Embodiment 2 of the present invention are introduced.

[0067] like image 3 As shown, the method includes the following steps:

[0068] Step S200, a service registration step.

[0069] Service registration generally has a service registration component to store metadata related to service nodes. like figure 2 As shown, the data storage models of common service registration nodes are tree structures. From the user's point of view, the registration logic of the servic...

Embodiment 3

[0133] Figure 9 A functional block diagram of an apparatus for discovering services based on shared memory according to an embodiment of the present invention is shown. like Figure 9 As shown, the device includes: a monitoring module 301 , an acquiring module 302 , and a writing module 303 .

[0134] The monitoring module 301 is adapted to monitor and obtain the service name recorded in the message queue; wherein, the service name is the service provider information of the service not found in the shared memory after the client receives the application layer access service request. written to the message queue.

[0135] The obtaining module 302 is adapted to obtain the service provider information of the service from the service registration component according to the service name;

[0136] The writing module 303 is adapted to write the service provider information of the service into the shared memory, so that the client can read the service provider information of the 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

The invention discloses a shared-memory-based service discovery method, apparatus and system, and a server, and relates to the technical field of computer network. The shared-memory-based service discovery method includes the steps: monitoring and acquiring the service name recorded in a message queue, wherein the service name is written in the message queue when the service provider information of the service is not inquired in the shared memory after a client receives an access service request from an application layer; according to the service name, acquiring the service provider information of the service from a service registration component; and writing the service provider information of the service in the shared memory so as to enable the client to read the service provider information of the service from the shared memory and return the service provider information of the service to the application layer. The shared-memory-based service discovery method achieves the performance of acquiring the service list configuration information by the application just as the same as acquiring the local memory read-write, thus reducing network delay and improving the reading speed.

Description

technical field [0001] The invention relates to the technical field of computer networks, in particular to a shared memory-based service discovery method, device, system, and server. Background technique [0002] The service discovery component records information about all services in a (large-scale) distributed system, so that people or other services can find these services. DNS is a simple example. Of course, the service discovery component of a complex system should provide more functions, such as service metadata storage, health monitoring, multiple queries and real-time updates, etc. The benefit that service discovery brings to network companies in the current Internet architecture is zero configuration. There is no need to hard-code network addresses into applications. You only need to have the name of the service to find the back-end service list and network topology information of the service. [0003] Currently, the industry provides a variety of service discove...

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/08H04L29/12
CPCH04L67/1036H04L67/1097H04L61/4541H04L61/4511H04L67/60
Inventor 王利超戚磊杨明
Owner 深圳掌阅动漫科技有限公司
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