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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
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