Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Routing method and system for clients to call services

A client and routing technology, which is applied in the routing method and system field of client calling services, can solve problems such as unfavorable calls and misoperations, and achieve the effects of effective utilization, improved usability and processing performance

Active Publication Date: 2011-02-09
ULTRAPOWER SOFTWARE
View PDF3 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Defect: Clients manage their own writing to the queue, which can easily lead to misoperation. When there are many clients, whenever the service address is changed, a large number of client codes or configuration changes will be made, which is not conducive to the deployment of multiple clients. Calls of the same program on different service nodes

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
  • Routing method and system for clients to call services
  • Routing method and system for clients to call services
  • Routing method and system for clients to call services

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0039] The invention calls configuration files through a group, and the configuration process can request a remote configuration file at a certain moment, download a new version of the configuration file to replace the local configuration file, and uniformly manage the calling of different queue services by the client, so that centralized management can be achieved The flow of messages.

[0040] Such as figure 1 As shown, it is a flowchart of a routing method for a client to call a service according to an embodiment of the present invention, including:

[0041] Step S101, the client reads a local configuration file and writes the configuration file into a local cache.

...

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 routing method for clients to call services, which comprises the following steps: a client reads a local configuration file and writes the configuration file into a local cache; the client acquires the designated service to be called in the configuration file and the group to which the service belongs; the client computes the service list in the group and the weights of the services in the service list, and obtains the service address transmitted by the call according to the number of calls; and the client calls the service according to the computed service address. The invention also discloses a routing system for clients to call services, which comprises a configuration file reading module, a service acquisition module, a service address computation module, a service calling module, a configuration file updating module and a cache dependence adding module. By using the invention, multiple clients can call the same program which is allocated at different service nodes, thereby efficiently utilizing server resources.

Description

technical field [0001] The invention relates to the technical field of message routing and service invocation, in particular to a routing method and system for a client to invoke a service. Background technique [0002] In the server-side processing and client-side invocation mode with message queue as the core, messages of different business types may be mixed together and use a common service queue, but the speed of message processing of different business types is not the same , the processing of slower messages will block the processing of faster messages, which will cause message processing to affect each other. Therefore, a mechanism is needed to separate such message processing so that different types of messages can be received using different queues. [0003] Existing solution: deploy multiple service queues, and let clients write to corresponding queues according to different needs. This solution classifies and processes message queues by deploying more services,...

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): H04L12/56H04L12/721
Inventor 陈俊彪
Owner ULTRAPOWER SOFTWARE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products