CN108494867B - Method, device and system for service gray processing and routing server - Google Patents

Method, device and system for service gray processing and routing server Download PDF

Info

Publication number
CN108494867B
CN108494867B CN201810295454.4A CN201810295454A CN108494867B CN 108494867 B CN108494867 B CN 108494867B CN 201810295454 A CN201810295454 A CN 201810295454A CN 108494867 B CN108494867 B CN 108494867B
Authority
CN
China
Prior art keywords
service
sub
target
user information
appointed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810295454.4A
Other languages
Chinese (zh)
Other versions
CN108494867A (en
Inventor
孔维斌
朱晓华
黄伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Cubesili Information Technology Co Ltd
Original Assignee
Guangzhou Cubesili Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Cubesili Information Technology Co Ltd filed Critical Guangzhou Cubesili Information Technology Co Ltd
Priority to CN201810295454.4A priority Critical patent/CN108494867B/en
Publication of CN108494867A publication Critical patent/CN108494867A/en
Application granted granted Critical
Publication of CN108494867B publication Critical patent/CN108494867B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a method, a device and a system for processing service gray scale and a routing server, which aim to solve the technical problems of service delay and inflexible redundancy in the prior art. The method comprises the following steps: receiving a request message sent by a client, wherein the request message comprises a routing information identifier; acquiring a first target service indicated by the routing information identifier; inquiring a first new service corresponding to the first target service according to a preset first configuration table, wherein the first configuration table is used for describing the new service corresponding to each target service; if the first new service is inquired, determining a target sub-service from each sub-service contained in the first target service and each sub-service contained in the first new service; and sending the request message to the target sub-service. The embodiment of the invention reduces the service delay and ensures the simplicity and flexibility of the service gray level processing.

Description

Method, device and system for service gray processing and routing server
Technical Field
The invention relates to the technical field of internet, in particular to a method, a device and a system for processing service gray scale and a routing server.
Background
With the development of the internet, traditional software or some early systems are increasingly too bulky, and with the increase of the user quantity, the performance bottleneck is prominent, and the product development requirements are difficult to meet. In order to better expand functions and upgrade, micro-service architectures are more and more sought after, and the gray processing of old services is often inevitable. The gray processing is a smooth transition processing mode, and comprises gray splitting, gray upgrading, gray pre-publishing and the like.
The service gray level processing is a basic function of internet application, and many enterprises have a set of realization schemes. The difficulty of the service gray level processing is that the production environment is convenient to verify, the user does not feel, and the original logic is not influenced. Currently, some service gray scale processing schemes in the market need to send related client requests to a new service and an old service at the same time, compare the requests and return the results to the client. However, the inventors of the present invention have noted that this scheme does so for all client requests, adding service delay and not being flexible enough for redundancy.
Disclosure of Invention
The invention provides a method, a device, a system and a routing server for service gray level processing aiming at the defects of the prior art, which are used for solving the problems of service delay and inflexible redundancy caused by sending all client requests to a new service and an old service in the prior art so as to reduce the service delay and ensure the simplicity and flexibility of the service gray level processing.
An embodiment of the present invention provides a method for service gray scale processing according to a first aspect, including the steps of:
receiving a request message sent by a client, wherein the request message comprises a routing information identifier;
acquiring a first target service indicated by the routing information identifier;
inquiring a first new service corresponding to the first target service according to a preset first configuration table, wherein the first configuration table is used for describing the new service corresponding to each target service;
if the first new service is inquired, determining a target sub-service from each sub-service contained in the first target service and each sub-service contained in the first new service;
and sending the request message to the target sub-service.
According to the first configuration table, the service to which the request message of the client is sent is determined, then the target sub-service is determined from the service, and the request message of the client is sent to the target sub-service, so that the gray level processing of the service is realized. Because the request message of each client is reasonably forwarded to the corresponding target sub-service, compared with the mode of sending the client request to the new service and the old service at the same time in the prior art, the method for processing the service gray scale provided by the embodiment reduces the service delay and is simple, easy and flexible.
In one embodiment, the request message further includes first user information; the determining a target sub-service from the sub-services included in the first target service and the sub-services included in the first new service includes:
inquiring a first appointed sub-service corresponding to the first new service and appointed user information corresponding to the first appointed sub-service according to a preset second configuration table, wherein the second configuration table is used for describing appointed sub-services corresponding to all services in a service set comprising all target services and new services corresponding to the target services and the appointed user information corresponding to all appointed sub-services;
if the first appointed sub-service is inquired and appointed user information corresponding to the first appointed sub-service comprises the first user information, taking the first appointed sub-service as a target sub-service; otherwise, according to the second configuration table, inquiring a second appointed sub-service corresponding to the first target service and appointed user information corresponding to the second appointed sub-service;
if the second designated sub-service is inquired and the designated user information corresponding to the second designated sub-service comprises the first user information, taking the second designated sub-service as a target sub-service; otherwise, determining the target sub-service according to the number of the current processing request messages of the first target service and the number of the current processing request messages of the first new service.
The embodiment combines the second configuration table when determining the target sub-service, more flexibly supports the verification of gray scale pre-release in the service gray scale processing, and is convenient for workers to utilize the production environment to carry out effective test verification.
In one embodiment, the determining a target sub-service according to the number of the current processing request messages of the first target service and the number of the current processing request messages of the first new service includes:
calculating a first ratio of the number of the first target service currently processing request messages to the number of the first new service currently processing request messages;
if the first ratio is greater than a set value, selecting one sub-service from the sub-services included in the first new service as a target sub-service, wherein the set value is the ratio of the number of all the sub-services included in the first target service to the number of all the sub-services included in the first new service;
if the first ratio is smaller than a set value, selecting one sub-service from all sub-services contained in the first target service as a target sub-service;
and if the first ratio is equal to a set value, selecting one sub-service with the lowest load from the sub-services included in the first target service and the sub-services included in the first new service as a target sub-service.
The embodiment automatically adjusts the request message processing proportion along with the conditions of the first target service and the sub-service deployed by the first new service, and is simple and efficient.
In one embodiment, after the querying for the first new service corresponding to the first target service and before the sending the request message to the target sub-service, the method further includes:
and if the first new service is not inquired, determining a target sub-service from all sub-services contained in the first target service.
In one embodiment, the request message further includes first user information; the determining a target sub-service from the sub-services included in the first target service includes:
inquiring a second appointed sub-service corresponding to the first target service and appointed user information corresponding to the second appointed sub-service according to a preset second configuration table, wherein the second configuration table is used for describing appointed sub-services corresponding to all target services and appointed user information corresponding to all appointed sub-services;
if the second designated sub-service is inquired and the designated user information corresponding to the second designated sub-service comprises the first user information, taking the second designated sub-service as a target sub-service; otherwise, selecting one sub-service with the lowest load from all sub-services contained in the first target service as the target sub-service.
The embodiment combines the second configuration table when determining the target sub-service, more flexibly supports the verification of gray scale pre-release in the service gray scale processing, and is convenient for workers to utilize the production environment to carry out effective test verification.
Embodiments of the present invention also provide an apparatus for service gray scale processing according to the second aspect, including:
a request message receiving module, configured to receive a request message sent by a client, where the request message includes a routing information identifier;
a first target service obtaining module, configured to obtain a first target service indicated by the routing information identifier;
a new service query module, configured to query, according to a preset first configuration table, a first new service corresponding to the first target service, where the first configuration table is used to describe new services corresponding to each target service;
a target sub-service determining module, configured to determine, when the first new service is queried, a target sub-service from sub-services included in the first target service and sub-services included in the first new service;
and the request message sending module is used for sending the request message to the target sub-service.
According to the first configuration table, the service to which the request message of the client is sent is determined, then the target sub-service is determined from the service, and the request message of the client is sent to the target sub-service, so that the gray level processing of the service is realized. Because the request message of each client is reasonably forwarded to the corresponding target sub-service, compared with the mode of sending the client request to the new service and the old service at the same time in the prior art, the method for processing the service gray scale provided by the embodiment reduces the service delay and is simple, easy and flexible.
In one embodiment, the request message further includes first user information; the target sub-service determination module includes:
the query unit is configured to query, according to a preset second configuration table, a first designated sub-service corresponding to the first new service and designated user information corresponding to the first designated sub-service, where the second configuration table is used to describe a designated sub-service corresponding to each service in a service set including each target service and a new service corresponding to the target service, and designated user information corresponding to each designated sub-service;
a first target sub-service determining unit, configured to, when the first designated sub-service is found, and designated user information corresponding to the first designated sub-service includes the first user information, take the first designated sub-service as a target sub-service; otherwise, according to the second configuration table, inquiring a second appointed sub-service corresponding to the first target service and appointed user information corresponding to the second appointed sub-service;
a second target sub-service determining unit, configured to, when the second specified sub-service is found, and specified user information corresponding to the second specified sub-service includes the first user information, take the second specified sub-service as a target sub-service; otherwise, determining the target sub-service according to the number of the current processing request messages of the first target service and the number of the current processing request messages of the first new service.
The embodiment combines the second configuration table when determining the target sub-service, more flexibly supports the verification of gray scale pre-release in the service gray scale processing, and is convenient for workers to utilize the production environment to carry out effective test verification.
Embodiments of the present invention also provide a system for service gray scale processing according to a third aspect, including:
the client is used for sending a request message to the routing server, wherein the request message comprises a routing information identifier;
the routing server is used for acquiring the first target service indicated by the routing information identifier according to the received request message; inquiring a first new service corresponding to the first target service according to a preset first configuration table, wherein the first configuration table is used for describing the new service corresponding to each target service; if the first new service is inquired, determining a target sub-service from each sub-service contained in the first target service and each sub-service contained in the first new service; and sending the request message to the target sub-service.
According to the first configuration table, the service to which the request message of the client is sent is determined, then the target sub-service is determined from the service, and the request message of the client is sent to the target sub-service, so that the gray level processing of the service is realized. Because the request message of each client is reasonably forwarded to the corresponding target sub-service, compared with the mode of sending the client request to the new service and the old service at the same time in the prior art, the method for processing the service gray scale provided by the embodiment reduces the service delay and is simple, easy and flexible.
Embodiments of the present invention also provide, according to a fourth aspect, a storage device having a computer program stored thereon, which when executed by a processor, implements the method of service gamma processing described in any one of the above.
According to the first configuration table, the service to which the request message of the client is sent is determined, then the target sub-service is determined from the service, and the request message of the client is sent to the target sub-service, so that the gray level processing of the service is realized. Because the request message of each client is reasonably forwarded to the corresponding target sub-service, compared with the mode of sending the client request to the new service and the old service at the same time in the prior art, the method for processing the service gray scale provided by the embodiment reduces the service delay and is simple, easy and flexible.
An embodiment of the present invention further provides, according to a fifth aspect, a routing server, including:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method for service gamma processing as described in any one of the above.
According to the first configuration table, the service to which the request message of the client is sent is determined, then the target sub-service is determined from the service, and the request message of the client is sent to the target sub-service, so that the gray level processing of the service is realized. Because the request message of each client is reasonably forwarded to the corresponding target sub-service, compared with the mode of sending the client request to the new service and the old service at the same time in the prior art, the method for processing the service gray scale provided by the embodiment reduces the service delay and is simple, easy and flexible.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flow chart illustrating a method for service gray scale processing according to an embodiment of the invention;
FIG. 2 is a flow chart illustrating a method for service gray scale processing according to another embodiment of the invention;
FIG. 3 is a schematic diagram of a device for service gray scale processing according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a system for service gray scale processing according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a system for service gray scale processing according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of a routing server according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative only and should not be construed as limiting the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. Further, "connected" as used herein may include wirelessly connected.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
As used herein, a "client" includes both devices having wireless signal receivers, devices having only wireless signal receivers without transmit capability, and devices having receive and transmit hardware, devices having receive and transmit hardware capable of performing two-way communication over a two-way communication link, as will be understood by those skilled in the art. Such a device may include: a cellular or other communication device having a single line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Personal Communications Service), which may combine voice, data processing, facsimile and/or data communication capabilities; a PDA (Personal Digital Assistant), which may include a radio frequency receiver, a pager, internet/intranet access, a web browser, a notepad, a calendar and/or a GPS (Global Positioning System) receiver; a conventional laptop and/or palmtop computer or other device having and/or including a radio frequency receiver. As used herein, a "client" may be portable, transportable, installed in a vehicle (aeronautical, maritime, and/or land-based), or situated and/or configured to operate locally and/or in a distributed fashion at any other location(s) on earth and/or in space. The "client" used herein may also be a communication terminal, a web-enabled terminal, a music/video playing terminal, such as a PDA, an MID (Mobile Internet Device) and/or a Mobile phone with music/video playing function, and may also be a smart tv, a set-top box, etc.
Those skilled in the art will appreciate that services as used herein include, but are not limited to, computers, network hosts, a single network server, multiple sets of network servers, or a cloud of multiple servers. Here, the Cloud is composed of a large number of computers or network servers based on Cloud Computing (Cloud Computing), which is a kind of distributed Computing, a super virtual computer composed of a group of loosely coupled computer sets. In the embodiment of the present invention, the communication between the client and the server may be implemented by any communication method, including, but not limited to, mobile communication based on 3GPP (3rd Generation Partnership Project), LTE (Long Term Evolution), WIMAX (Worldwide Interoperability for Microwave Access), computer network communication based on TCP/IP (Transmission Control Protocol/Internet Protocol), UDP (User Datagram Protocol), and short-range wireless Transmission based on bluetooth and infrared Transmission standards.
The present invention will be described in detail with reference to the accompanying drawings.
At present, in some implementation schemes in the market, an additional master control module is needed to send the related client requests to new and old services, and then the related client requests are compared and returned to the client. Some implementation schemes simply use user information to perform partition testing, and the mode is rough, which may cause large faults. Some implementation schemes even lack the splitting, upgrading and pre-release verification of the production environment, and are deployed on line after test environment testing. Considering the complexity of the production environment and the diversification of the user information, the difference between the user information and the test environment is caused, a lot of information cannot be accurately tested, and the verification of the production environment is very important.
The embodiment of the invention is based on the routing protocol function, carries out logic judgment on the request message according to the routing configuration information (the first configuration table), processes the request message according to the configuration condition if the request message is the new service configured by the service party, does not need to send all the request messages to the new service and the old service at the same time, reduces the service delay, is simple and flexible, and effectively avoids the problem that the maintenance cost is possibly multiplied to cause new service under the condition of massive requests. The embodiment of the invention performs the division test based on the routing configuration information, and because the routing configuration information is rarely changed, compared with the diversification of user information, the method effectively avoids causing larger faults. The embodiment of the invention provides good support for the gray level processing of the back-end service and convenient configuration support for the service verification by utilizing the production environment, so that a client user has no perception on the change of the back-end service, a developer can quickly and accurately verify the accuracy and the effectiveness of the production environment service, and the service technical architecture of an enterprise can be advanced with time and flexibly reconstructed and deployed in the evolution process. In addition, the invention supports the configuration of the specified service and only receives the specified user information, thereby being very convenient for developers, operators and production personnel to verify the service of the production environment.
The service gray processing includes service gray splitting, service gray upgrading, and service gray pre-publishing, and the following briefly introduces concepts of service gray splitting, service gray upgrading, and service gray pre-publishing.
Service gray level splitting: the client protocol is originally sent to the service A, some functions in the service A need to be separated into a new service B due to service needs, but during the transition period, the service A and the service B need to provide services at the same time, and only part of users can access the service B. After B is verified, the related functions in A are offline, the related functions are served by B, and A continues to serve other functions.
Service gray scale upgrading: the client protocol is originally sent to the service A, the service A needs to be reconstructed into the service B due to service needs, but during the transition period, the service A and the service B need to provide the service simultaneously, and only part of users can access the service B. After service B is verified, service A is upgraded to service B.
Pre-publishing the service gray level: the pre-release refers to that after the full test is carried out in an isolated development and test environment, the production environment is considered to have some unpredictable heterogeneous conditions, the service is locally released to part of users, and the production environment is utilized for local verification.
First, from the perspective of routing services, a detailed description will be given of a specific embodiment of the present invention with reference to the drawings.
As shown in fig. 1, in one embodiment, a method of servicing a grayscale process includes the steps of:
s101, receiving a request message sent by a client, wherein the request message comprises a routing information identifier.
The route information mark is a specific mark carried in a protocol of communication between the client and the server, and is different from the service information in the protocol, and the route information mark can identify the back-end service and route information to the specified service according to the marks. The protocol of the communication between the client and the server supports common transmission protocols, such as thrift, protobuf and custom protocol.
Optionally, the client may send the request message to a protocol access service (i.e., a protocol access server), and the protocol access service has functions of distributing the client request message, balancing load, and the like, and forwards the user request message distributed all over the region to an appropriate routing service according to a distribution policy, thereby facilitating further processing.
S102, obtaining the first target service indicated by the route information identification.
The routing information identifier is used for identifying a target service, and when receiving a request message of a client, the routing service (i.e., a routing server) analyzes the request message of the client, acquires the routing information identifier, and then obtains the corresponding target service (i.e., the target server) according to the routing information identifier.
S103, inquiring a first new service corresponding to the first target service according to a preset first configuration table, wherein the first configuration table is used for describing the new service corresponding to each target service.
The new service refers to a service split from the target service or a service upgraded from the target service, and the like. The first configuration table is used for recording whether each target service has a corresponding new service, and in addition, the corresponding relation between each routing information identifier and each target service can be recorded in the first configuration table. The first configuration table is mainly used for determining the service to which the request message should be sent, and therefore can be referred to as a routing rule configuration table.
The service side can configure the routing rule in the configuration background, and the configuration data is put into the database and provided for service personnel to carry out addition, deletion, modification and check. Because the routing rule is rarely changed, the routing service can periodically read the relevant routing rule configuration from the database and store it in memory. The service side can also configure the routing rule in the configuration background, and after configuration is finished, the service side actively sends a message to inform the routing service to load.
In addition, if there is a problem with upgrading or splitting services, there is no need for timely service rollback, because when the number of distributed services is thousands, a sudden rollback or upgrade is a very dangerous operation, and it is difficult for a professional engineer to ensure the correctness of the operation. Only after the business personnel finish configuring the routing rule of the background change, clicking an effective button, actively sending a message to inform the routing service of the route rule configuration change, and updating data in time by the routing service, thereby facilitating the quick operation when the business personnel change the information rollback service.
After the first target service is obtained, the first configuration table is searched to determine whether a new service corresponding to the first target service exists, for example, a split service or an upgrade service, where the first target service is a service indicated by the routing information identifier, and therefore, not only the new service corresponding to the target service but also the routing information identifier corresponding to the target service need to be considered during the search.
As shown in table 1, a routing rule configuration table is provided for one embodiment. For example, the request message is unpacked to obtain the routing information identifier Rule _1, it may be determined that the target service corresponding to the routing information identifier is a, and it is queried whether the target service a indicated by the routing information identifier Rule _1 corresponds to an upgrade service or a split service. For another example, the request message is unpacked to obtain the routing information identifier Rule _2, it may be determined that the target service corresponding to the routing information identifier is a, and it is queried whether the target service a indicated by the routing information identifier Rule _2 corresponds to an upgrade service or a split service.
Table 1 routing rule configuration table
Routing information identification Targeted services Upgrade or split service
Rule_1 A B
Rule_2 A
Rule_3 C D
S104, if the first new service is inquired, determining a target sub-service from each sub-service contained in the first target service and each sub-service contained in the first new service.
The embodiment of the invention aims at a micro-service architecture, and one service can be composed of a plurality of sub-services. If the first new service is inquired, the user can know that the request message should be sent to the first target service or the first new service, obtains information corresponding to the first target service or the first new service from the service discovery system, and determines a target sub-service based on a forwarding strategy. The forwarding strategy generally considers strategies such as load balancing, nearby forwarding and the like. Wherein, the service discovery system has the following functions: the backend services register with the service discovery system, and the backend services can subscribe interested service information from the service registration center.
As shown in table 1 above, if the target service can be determined to be a and the split service or the upgrade service corresponding to the target service a is B according to the routing information identifier Rule _1, it can be known that the request message should be sent to the target service a or the new service B, and the information corresponding to the target service a and the new service B is obtained from the service discovery system, and the target sub-service is determined based on the forwarding policy.
S105, sending the request message to the target sub-service.
After determining the target sub-service based on the forwarding policy, the request message may be sent to the target sub-service, and the target sub-service processes the request message, and the specific processing manner may be implemented by using a manner existing in the prior art, which is not described herein again.
In the embodiment, because the request message of each client is reasonably forwarded to the corresponding target sub-service, compared with a mode of sending the client request to a new service and an old service at the same time in the prior art, the method for processing the service gray scale provided by the embodiment reduces service delay, and is simple and flexible.
When forwarding the request message, if the request message is forwarded only according to the configured routing rule, it is difficult to flexibly support the verification of the service production environment pre-release. Therefore, in order to implement the pre-release function, the embodiment of the present invention further sets a second configuration table, and when forwarding, whether the designated sub-service is configured to only accept the information of the designated user is considered. The second configuration table and the process of forwarding the request message in conjunction with the second configuration table will be described in detail below.
The configuration background provides two configuration modules, one is the configuration of the routing rule (a first configuration table), and the other is the configuration (a second configuration table) that the sub-service only accepts the specified user information, as shown in table 1. Similarly, the service party can put the second configuration table after configuration into the database, and provide the second configuration table for service personnel to perform addition, deletion, modification and check. The routing service can read the relevant second configuration table from the database at regular time and place the second configuration table in the memory. When the second configuration table needs to be changed, business personnel change the second configuration table in the configuration background, then click the 'effective' button, actively send a message to inform the routing service of the second configuration table configuration change, and the routing service can update data in time. And by combining the two configuration tables, the routing service can be forwarded to the specified sub-service based on the forwarding strategy, so that developers can conveniently verify the correctness of the service.
The second configuration table is used for describing the appointed sub-service corresponding to each service in the service set comprising each target service and the new service corresponding to the target service, and the appointed user information corresponding to each appointed sub-service. The designated sub-service may be a valid service ID (Identity), an IP (Internet Protocol) message of the service, or the like; the specified user information may be a user account or the like. It should be understood that the present invention is not limited to the specific form of the specific sub-service and the specific user information.
As shown in table 2, a second configuration table is shown in an embodiment. Wherein, the service on the designated IP 116.xx.xx.xx of the service A only accepts messages of users Uid1, Uid2, …, Uidn; the service with service ID of service B as service _1 only accepts request messages of Uid1, Uid2, …, Uidm. Through the configuration that the appointed user issues the appointed sub-service, the working personnel can conveniently and effectively test and verify by utilizing the production environment.
TABLE 2 second configuration Table
Service name Specifying services Specifying user information
A 116.xx.xx.xx Uid1,Uid2,…,Uidn
B Serverid_1 Uid1,Uid2,…,Uidm
In one embodiment, the request message further includes first user information; the determining a target sub-service from the sub-services included in the first target service and the sub-services included in the first new service includes:
s1041, inquiring a first appointed sub-service corresponding to the first new service and appointed user information corresponding to the first appointed sub-service according to a preset second configuration table, wherein the second configuration table is used for describing appointed sub-services corresponding to each service in a service set including each target service and the new service corresponding to the target service, and the appointed user information corresponding to each appointed sub-service.
Since the new service production environment needs to be verified and the forwarding is preferentially carried out according to the split or upgraded service, a first appointed sub-service corresponding to the first new service and appointed user information corresponding to the first appointed sub-service are inquired first. For example, if the first target service is a and the first new service is B according to table 1, the specific sub-service corresponding to the new service B and the specific user information corresponding to the specific sub-service are first queried according to table 2.
S1042, if the first appointed sub-service is inquired and appointed user information corresponding to the first appointed sub-service comprises the first user information, taking the first appointed sub-service as a target sub-service; otherwise, according to the second configuration table, querying a second designated sub-service corresponding to the first target service and designated user information corresponding to the second designated sub-service.
And if the user designates the sub-service for the first new service and the designated user information corresponding to the designated sub-service comprises the user information in the request message, determining that the designated sub-service is the target sub-service, and sending the request message to the designated sub-service for processing. And if the first appointed sub-service is not inquired or the appointed user information corresponding to the first appointed sub-service does not contain the first user information, continuously inquiring a second appointed sub-service corresponding to the first target service and the appointed user information corresponding to the second appointed sub-service according to a second configuration table.
S1043, if the second designated sub-service is inquired and the designated user information corresponding to the second designated sub-service comprises the first user information, taking the second designated sub-service as a target sub-service; otherwise, determining the target sub-service according to the number of the current processing request messages of the first target service and the number of the current processing request messages of the first new service.
And if the user designates the sub-service for the first target service and the designated user information corresponding to the designated sub-service comprises the user information in the request message, determining that the designated sub-service is the target sub-service, and sending the request message to the designated sub-service for processing. And if the second specified sub-service is not inquired or the specified user information corresponding to the second specified sub-service does not contain the first user information, determining a target sub-service according to the number of the request messages currently processed by the service.
It should be understood that the present invention is not limited to the above-mentioned manner for determining the target sub-service, and in another embodiment, the first specific sub-service corresponding to the first new service and the specific user information corresponding to the first specific sub-service, the second specific sub-service corresponding to the first target service and the specific user information corresponding to the second specific sub-service are queried according to the second configuration table; if the first appointed sub-service is inquired and appointed user information corresponding to the first appointed sub-service comprises the first user information, taking the first appointed sub-service as a target sub-service; if only the second designated sub-service is inquired and the designated user information corresponding to the second designated sub-service comprises the first user information, taking the second designated sub-service as a target sub-service; and if the first appointed sub-service and the second appointed sub-service cannot be searched, determining the target sub-service according to the number of the current processing request messages of the first target service and the number of the current processing request messages of the first new service.
In one embodiment, the determining a target sub-service according to the number of the current processing request messages of the first target service and the number of the current processing request messages of the first new service includes:
s1043a, calculating a first ratio of the number of the first target service current processing request messages to the number of the first new service current processing request messages.
The number of currently processed request messages for the first target service and the number of currently processed request messages for the first new service may be obtained from the service discovery system and then the ratio of the two may be calculated.
S1043b, if the first ratio is greater than a set value, selecting a sub-service from the sub-services included in the first new service as a target sub-service, where the set value is a ratio of the number of all sub-services included in the first target service to the number of all sub-services included in the first new service.
The set value is determined by the ratio of the number of sub-services. Assuming that there are 100 sub-services for the old service a (the first target service) and 50 for the split or upgraded service B (the first new service), the total request rate for the old service a service will be 2/3 and the new service B will be 1/3, with a set value of 2. If the first ratio is greater than the set value, selecting one sub-service from the sub-services included in the first new service as a target sub-service, and specifically selecting one sub-service with the lowest load from the sub-services included in the first new service as the target sub-service by considering a load balancing mechanism. It should be understood that the present invention is not limited to the load balancing mechanism when specifically selecting, and may also be a near forwarding policy, etc.
S1043c, if the first ratio is smaller than the set value, selecting one sub-service from the sub-services included in the first target service as a target sub-service.
And if the first ratio is smaller than the set value, selecting one sub-service from the sub-services included in the first target service as the target sub-service, wherein a load balancing mechanism can be considered during specific selection, and selecting one sub-service with the lowest load from the sub-services included in the first target service as the target sub-service. It should be understood that the present invention is not limited to the load balancing mechanism when specifically selecting, and may also be a near forwarding policy, etc.
S1043d, if the first ratio is equal to the set value, selecting a sub-service with the lowest load from the sub-services included in the first target service and the sub-services included in the first new service as the target sub-service.
And if the first ratio is equal to the set value, selecting one sub-service with the lowest load from all sub-services contained in the first target service and the first new service as the target sub-service.
The scheme can automatically adjust the request message processing proportion along with the deployment conditions of the two services, and the strategy is simple and efficient.
In one embodiment, after the querying for the first new service corresponding to the first target service and before the sending the request message to the target sub-service, the method further includes: s106, if the first new service is not inquired, determining a target sub-service from all sub-services contained in the first target service.
As shown in table 1, when the routing information is identified as Rule _2, and the target service is a, there is no upgrade service or split service, so that the target sub-service needs to be determined from each sub-service included in the target service a.
In one embodiment, the request message further includes first user information; the determining a target sub-service from the sub-services included in the first target service includes:
s106a, querying a second designated sub-service corresponding to the first target service and designated user information corresponding to the second designated sub-service according to a preset second configuration table, where the second configuration table is used to describe designated sub-services corresponding to each target service and designated user information corresponding to each designated sub-service;
s106, 106b, if the second designated sub-service is inquired and the designated user information corresponding to the second designated sub-service comprises the first user information, taking the second designated sub-service as a target sub-service; otherwise, selecting one sub-service with the lowest load from all sub-services contained in the first target service as the target sub-service.
In order to better understand the above method for service gray scale processing, a detailed description is given below with reference to a specific embodiment.
In one embodiment, as shown in FIG. 2, a method of servicing a grayscale process includes the steps of:
s201, receiving a request message sent by a client, wherein the request message comprises a routing information identifier and user information;
s202, obtaining the target service A indicated by the routing information identifier;
s203, whether an upgrading service or a splitting service B exists; if yes, go to step S204, otherwise, go to step S209;
s204, whether the service B designates the sub-service or not and the designated user corresponding to the designated sub-service comprises user information; if yes, go to step S205, otherwise go to step S206;
s205, forwarding the request message to the appointed sub-service of the service B;
s206, whether the service A designates the sub-service or not and the designated user corresponding to the designated sub-service comprises user information; if yes, go to step S207, otherwise go to step S208;
s207, forwarding the request message to a designated sub-service of the service A;
s208, determining a target sub-service according to the number of the current processing request messages of the first target service and the number of the current processing request messages of the first new service, and forwarding the request messages to the target sub-service;
s209, whether the service A designates the sub-service or not and the designated user corresponding to the designated sub-service comprises user information;
s210, forwarding the request message to a specified sub-service of the service A;
s211, obtaining the service A information, determining a target sub-service according to a load balancing strategy or a near forwarding strategy and the like, and forwarding the request message to the target sub-service.
Based on the same inventive concept, the invention also provides a device for service gray scale processing, and the following describes in detail a specific embodiment of the device of the invention with reference to the accompanying drawings.
As shown in fig. 3, in one embodiment, an apparatus for servicing grayscale processing includes:
a request message receiving module 101, configured to receive a request message sent by a client, where the request message includes a routing information identifier;
a first target service obtaining module 102, configured to obtain a first target service indicated by the routing information identifier;
a new service query module 103, configured to query, according to a preset first configuration table, a first new service corresponding to the first target service, where the first configuration table is used to describe new services corresponding to each target service;
a target sub-service determining module 104, configured to determine, when the first new service is queried, a target sub-service from sub-services included in the first target service and sub-services included in the first new service;
a request message sending module 105, configured to send the request message to the target sub-service.
In one embodiment, the request message further includes first user information; the target sub-service determination module 104 includes:
a querying unit 1041, configured to query, according to a preset second configuration table, a first designated sub-service corresponding to the first new service and designated user information corresponding to the first designated sub-service, where the second configuration table is used to describe a designated sub-service corresponding to each service in a service set including each target service and its corresponding new service, and designated user information corresponding to each designated sub-service;
a first target sub-service determining unit 1042, configured to take the first designated sub-service as a target sub-service when the first designated sub-service is found and designated user information corresponding to the first designated sub-service includes the first user information; otherwise, according to the second configuration table, inquiring a second appointed sub-service corresponding to the first target service and appointed user information corresponding to the second appointed sub-service;
a second target sub-service determining unit 1043, configured to, when the second specified sub-service is found, and the specified user information corresponding to the second specified sub-service includes the first user information, take the second specified sub-service as a target sub-service; otherwise, determining the target sub-service according to the number of the current processing request messages of the first target service and the number of the current processing request messages of the first new service.
In one embodiment, the second target sub-service determination unit 1043 is configured to perform the following operations:
calculating a first ratio of the number of the first target service currently processing request messages to the number of the first new service currently processing request messages;
if the first ratio is greater than a set value, selecting one sub-service from the sub-services included in the first new service as a target sub-service, wherein the set value is the ratio of the number of all the sub-services included in the first target service to the number of all the sub-services included in the first new service;
if the first ratio is smaller than a set value, selecting one sub-service from all sub-services contained in the first target service as a target sub-service;
and if the first ratio is equal to a set value, selecting one sub-service with the lowest load from the sub-services included in the first target service and the sub-services included in the first new service as a target sub-service.
In one embodiment, the target sub-service determining module 104 is further configured to determine a target sub-service from the sub-services included in the first target service when the first new service is not queried.
In one embodiment, the request message further includes first user information; target sub-service determination module 104 is further configured to:
inquiring a second appointed sub-service corresponding to the first target service and appointed user information corresponding to the second appointed sub-service according to a preset second configuration table, wherein the second configuration table is used for describing appointed sub-services corresponding to all target services and appointed user information corresponding to all appointed sub-services;
if the second designated sub-service is inquired and the designated user information corresponding to the second designated sub-service comprises the first user information, taking the second designated sub-service as a target sub-service; otherwise, selecting one sub-service with the lowest load from all sub-services contained in the first target service as the target sub-service.
Other technical features of the device for processing service grayscales are the same as those of the method for processing service grayscales, and are not described herein again.
An embodiment of the present invention further provides a system for service gray scale processing, as shown in fig. 4, the system includes:
a client 201, configured to send a request message to a routing server 202, where the request message includes a routing information identifier;
the routing server 202 is configured to obtain, according to the received request message, the first target service indicated by the routing information identifier; inquiring a first new service corresponding to the first target service according to a preset first configuration table, wherein the first configuration table is used for describing the new service corresponding to each target service; if the first new service is inquired, determining a target sub-service from each sub-service contained in the first target service and each sub-service contained in the first new service; the request message is sent to the target sub-service 203.
Other technical features of the system for serving gray scale processing are the same as those of the apparatus for serving gray scale processing, and are not described herein again.
For a better understanding of the above-described service gray scale processing system, reference is made to a specific embodiment.
As shown in fig. 5, in one embodiment, the service gray scale processing system includes a plurality of clients, a protocol access service, a routing service, a database, a configuration background, a plurality of services, and a service discovery system, wherein each service includes a plurality of sub-services (not shown). The arrows in fig. 5 mainly show the case that the client requests the protocol to reach the server. The back packet or the actively issued message can be returned according to the original link. When the service gray processing system performs gray processing, the following operations are specifically executed:
each client sends a respective request message to the protocol access service. And the protocol access service forwards each request message to the routing service according to the load balancing strategy. The routing service loads the routing rule configured by the service personnel in the configuration background and the appointed sub-service receiving appointed user rule from the database at regular time, or the service personnel actively sends a message to the routing service to load the message in time after the configuration background of the routing rule and the appointed sub-service receiving appointed user rule are completed. The routing service determines that each request message should be sent to an upgrade service, a split service or an original service according to a configured routing rule, then obtains information of the services from a service discovery system, receives a rule of a specified user according to a configured specified sub-service, and forwards each request message to a specific sub-service respectively by combining with strategies such as load balancing and the like.
An embodiment of the present invention further provides a storage device, on which a computer program is stored, where the computer program, when executed by a processor, implements any one of the above-mentioned service gray scale processing methods. The storage device includes, but is not limited to, any type of disk (including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks), ROMs (Read-Only memories), RAMs (Random AcceSS memories), EPROMs (EraSable Programmable Read-Only memories), EEPROMs (Electrically EraSable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards. That is, a storage device includes any medium that stores or transmits information in a form readable by an apparatus (e.g., a computer). Which may be a read-only memory, magnetic or optical disk, or the like.
An embodiment of the present invention further provides a routing server, where the routing server includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method for service gamma processing as described in any one of the above.
Fig. 6 is a schematic structural diagram of the routing server of the present invention, which includes a processor 302, a storage device 303, an input unit 304, a display unit 305, and other devices. Those skilled in the art will appreciate that the structural elements shown in fig. 6 do not constitute a limitation of all routing servers and may include more or fewer components than those shown, or some components in combination. The storage 303 may be used to store the application 301 and various functional modules, and the processor 302 executes the application 301 stored in the storage 303, thereby performing various functional applications and data processing of the device. The storage 303 may be an internal memory or an external memory, or include both internal and external memories. The memory may comprise read-only memory, Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), flash memory, or random access memory. The external memory may include a hard disk, a floppy disk, a ZIP disk, a usb-disk, a magnetic tape, etc. The disclosed memory devices include, but are not limited to, these types of memory devices. The memory device 303 is disclosed by way of example and not by way of limitation.
The input unit 304 is used for receiving input of signals and receiving request messages of clients. The input unit 304 may include a touch panel and other input devices. The touch panel can collect touch operations of a user on or near the touch panel (for example, operations of the user on or near the touch panel by using any suitable object or accessory such as a finger, a stylus and the like) and drive the corresponding connecting device according to a preset program; other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., play control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like. The display unit 305 may be used to display information input by a user or information provided to a user and various menus of the computer apparatus. The display unit 305 may take the form of a liquid crystal display, an organic light emitting diode, or the like. The processor 302 is a control center of the computer apparatus, connects various parts of the entire computer by various interfaces and lines, and performs various functions and processes data by operating or executing software programs and/or modules stored in the storage device 303 and calling data stored in the storage device.
In one embodiment, the routing server includes one or more processors 302, and one or more storage devices 303, one or more applications 301, wherein the one or more applications 301 are stored in the storage device 303 and configured to be executed by the one or more processors 302, and the one or more applications 301 are configured to perform the method of service gray scale processing described in the above embodiments.
The method, the device, the system and the routing server for processing the service gray scale well combine the functions of gray scale upgrading, splitting and pre-publishing. According to the configured routing rule, the client request protocol is reasonably forwarded to the split or upgraded service, so that the method has great advantages in simplicity, high availability and expansibility, and gray scale upgrade and gray scale split supporting the service can be realized through simple configuration of service personnel. According to the rule that the configured appointed sub-service only accepts the request of the appointed user, the validity and the accuracy of the production environment verification service are utilized, so that the client user has no perception on the change of the back-end service, and developers can quickly and accurately verify the accuracy and the validity of the production environment service.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
It should be understood that each functional unit in the embodiments of the present invention may be integrated into one processing module, each unit may exist alone physically, or two or more units may be integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method of serving gray scale processing, comprising the steps of:
receiving a request message sent by a client, wherein the request message comprises a routing information identifier and first user information;
acquiring a first target service indicated by the routing information identifier;
inquiring a first new service corresponding to the first target service according to a preset first configuration table, wherein the first configuration table is used for describing a corresponding relation between the routing information identifier and the first target service and new services corresponding to all target services;
if the first new service is inquired, determining a target sub-service from each sub-service included in the first target service and each sub-service included in the first new service, wherein the method comprises the following steps: according to a preset second configuration table, inquiring appointed sub-services corresponding to the first new service and/or the first target service and appointed user information corresponding to the appointed sub-services; determining a target sub-service based on the relation between the specified user information and the first user information;
and sending the request message to the target sub-service.
2. The method of service gamma processing of claim 1 wherein the request message further comprises first user information; the determining a target sub-service from the sub-services included in the first target service and the sub-services included in the first new service includes:
inquiring a first appointed sub-service corresponding to the first new service and appointed user information corresponding to the first appointed sub-service according to a preset second configuration table, wherein the second configuration table is used for describing appointed sub-services corresponding to all services in a service set comprising all target services and new services corresponding to the target services and the appointed user information corresponding to all appointed sub-services;
if the first appointed sub-service is inquired and appointed user information corresponding to the first appointed sub-service comprises the first user information, taking the first appointed sub-service as a target sub-service; otherwise, according to the second configuration table, inquiring a second appointed sub-service corresponding to the first target service and appointed user information corresponding to the second appointed sub-service;
if the second designated sub-service is inquired and the designated user information corresponding to the second designated sub-service comprises the first user information, taking the second designated sub-service as a target sub-service; otherwise, determining the target sub-service according to the number of the current processing request messages of the first target service and the number of the current processing request messages of the first new service.
3. The method of claim 2, wherein determining a target sub-service based on the number of the first target service current processing request messages and the number of the first new service current processing request messages comprises:
calculating a first ratio of the number of the first target service currently processing request messages to the number of the first new service currently processing request messages;
if the first ratio is greater than a set value, selecting one sub-service from the sub-services included in the first new service as a target sub-service, wherein the set value is the ratio of the number of all the sub-services included in the first target service to the number of all the sub-services included in the first new service;
if the first ratio is smaller than a set value, selecting one sub-service from all sub-services contained in the first target service as a target sub-service;
and if the first ratio is equal to a set value, selecting one sub-service with the lowest load from the sub-services included in the first target service and the sub-services included in the first new service as a target sub-service.
4. The method as claimed in any of claims 1 to 3, wherein after the querying the first new service corresponding to the first target service and before the sending the request message to the target sub-service, further comprising:
and if the first new service is not inquired, determining a target sub-service from all sub-services contained in the first target service.
5. The method for service gamma processing of claim 4 wherein the request message further comprises first user information; the determining a target sub-service from the sub-services included in the first target service includes:
inquiring a second appointed sub-service corresponding to the first target service and appointed user information corresponding to the second appointed sub-service according to a preset second configuration table, wherein the second configuration table is used for describing appointed sub-services corresponding to all target services and appointed user information corresponding to all appointed sub-services;
if the second designated sub-service is inquired and the designated user information corresponding to the second designated sub-service comprises the first user information, taking the second designated sub-service as a target sub-service; otherwise, selecting one sub-service with the lowest load from all sub-services contained in the first target service as the target sub-service.
6. An apparatus for servicing a grayscale process, comprising:
the system comprises a request message receiving module, a first sending module and a second sending module, wherein the request message receiving module is used for receiving a request message sent by a client, and the request message comprises a routing information identifier and first user information;
a first target service obtaining module, configured to obtain a first target service indicated by the routing information identifier;
a new service query module, configured to query, according to a preset first configuration table, a first new service corresponding to the first target service, where the first configuration table is used to describe a correspondence between the routing information identifier and the first target service, and new services corresponding to each target service;
a target sub-service determining module, configured to determine, when the first new service is queried, a target sub-service from sub-services included in the first target service and sub-services included in the first new service, where the target sub-service determining module includes: according to a preset second configuration table, inquiring appointed sub-services corresponding to the first new service and/or the first target service and appointed user information corresponding to the appointed sub-services; determining a target sub-service based on the relation between the specified user information and the first user information;
and the request message sending module is used for sending the request message to the target sub-service.
7. The apparatus for service gamma processing of claim 6 wherein the request message further comprises first user information; the target sub-service determination module includes:
the query unit is configured to query, according to a preset second configuration table, a first designated sub-service corresponding to the first new service and designated user information corresponding to the first designated sub-service, where the second configuration table is used to describe a designated sub-service corresponding to each service in a service set including each target service and a new service corresponding to the target service, and designated user information corresponding to each designated sub-service;
a first target sub-service determining unit, configured to, when the first designated sub-service is found, and designated user information corresponding to the first designated sub-service includes the first user information, take the first designated sub-service as a target sub-service; otherwise, according to the second configuration table, inquiring a second appointed sub-service corresponding to the first target service and appointed user information corresponding to the second appointed sub-service;
a second target sub-service determining unit, configured to, when the second specified sub-service is found, and specified user information corresponding to the second specified sub-service includes the first user information, take the second specified sub-service as a target sub-service; otherwise, determining the target sub-service according to the number of the current processing request messages of the first target service and the number of the current processing request messages of the first new service.
8. A system for servicing gamma processing, comprising:
the client is used for sending a request message to the routing server, wherein the request message comprises a routing information identifier and first user information;
the routing server is used for acquiring the first target service indicated by the routing information identifier according to the received request message; inquiring a first new service corresponding to the first target service according to a preset first configuration table, wherein the first configuration table is used for describing a corresponding relation between the routing information identifier and the first target service and new services corresponding to all target services; if the first new service is inquired, determining a target sub-service from each sub-service included in the first target service and each sub-service included in the first new service, wherein the method comprises the following steps: according to a preset second configuration table, inquiring appointed sub-services corresponding to the first new service and/or the first target service and appointed user information corresponding to the appointed sub-services; determining a target sub-service based on the relation between the specified user information and the first user information; and sending the request message to the target sub-service.
9. A storage device on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method of service gamma processing according to any one of claims 1 to 5.
10. A routing server, the routing server comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of service gamma processing as claimed in any one of claims 1 to 5.
CN201810295454.4A 2018-04-04 2018-04-04 Method, device and system for service gray processing and routing server Active CN108494867B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810295454.4A CN108494867B (en) 2018-04-04 2018-04-04 Method, device and system for service gray processing and routing server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810295454.4A CN108494867B (en) 2018-04-04 2018-04-04 Method, device and system for service gray processing and routing server

Publications (2)

Publication Number Publication Date
CN108494867A CN108494867A (en) 2018-09-04
CN108494867B true CN108494867B (en) 2021-05-14

Family

ID=63318053

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810295454.4A Active CN108494867B (en) 2018-04-04 2018-04-04 Method, device and system for service gray processing and routing server

Country Status (1)

Country Link
CN (1) CN108494867B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109739552A (en) * 2019-01-04 2019-05-10 深圳壹账通智能科技有限公司 Micro services gray scale dissemination method, device, computer equipment and storage medium
CN111290965B (en) * 2020-03-06 2021-11-02 腾讯科技(深圳)有限公司 Test method, test device, computer equipment and storage medium
CN111930420B (en) * 2020-07-30 2023-07-07 中国工商银行股份有限公司 Non-invasive general code level gray level routing system and method
CN112181458A (en) * 2020-09-25 2021-01-05 中国建设银行股份有限公司 Gray scale rule configuration method, gray scale routing method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497454A (en) * 2011-12-31 2012-06-13 北京新媒传信科技有限公司 Method for realizing gray publication of application in application service platform system
CN103095743A (en) * 2011-10-28 2013-05-08 阿里巴巴集团控股有限公司 Handling method and system of grey release
CN104156246A (en) * 2014-08-12 2014-11-19 小米科技有限责任公司 Method and device for gray scale upgrade

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9715507B2 (en) * 2013-03-28 2017-07-25 Ctera Networks, Ltd. Techniques for reconciling metadata and data in a cloud storage system without service interruption
CN105791341B (en) * 2014-12-22 2020-01-17 华为软件技术有限公司 Application release processing method, device and system
CN105975270A (en) * 2016-05-04 2016-09-28 北京思特奇信息技术股份有限公司 Gray scale distribution method and system based on HTTP request forwarding
CN105978976A (en) * 2016-05-13 2016-09-28 中国建设银行股份有限公司 Information processing system and method
CN106685687B (en) * 2016-09-23 2019-11-19 北京五八信息技术有限公司 Gray scale dissemination method and device
CN106453637B (en) * 2016-11-24 2018-01-26 深圳市小满科技有限公司 The method, apparatus and cloud platform of cloud platform efficient multiplexing server resource
CN106998369A (en) * 2017-05-26 2017-08-01 努比亚技术有限公司 Gray scale dissemination method, gateway blocker and computer-readable recording medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095743A (en) * 2011-10-28 2013-05-08 阿里巴巴集团控股有限公司 Handling method and system of grey release
CN102497454A (en) * 2011-12-31 2012-06-13 北京新媒传信科技有限公司 Method for realizing gray publication of application in application service platform system
CN104156246A (en) * 2014-08-12 2014-11-19 小米科技有限责任公司 Method and device for gray scale upgrade

Also Published As

Publication number Publication date
CN108494867A (en) 2018-09-04

Similar Documents

Publication Publication Date Title
CN108494867B (en) Method, device and system for service gray processing and routing server
CN109327542B (en) Game service access response method, request forwarding method, connection method and device
US20220012601A1 (en) Apparatus and method for hyperparameter optimization of a machine learning model in a federated learning system
US11516349B2 (en) IP carrier peering with DNS recursion zone
US20160007184A1 (en) Identifying computer devices in proximity to a given origin
US20220198336A1 (en) Technique for Facilitating Use of Machine Learning Models
US11341020B2 (en) Events data structure for real time network diagnosis
CN105631707A (en) Advertisement click rate estimation method based on decision tree, application recommendation method and device
US20140067452A1 (en) Intelligent work management based on satellite navigation system data and network node data
US20180139269A1 (en) Dynamic load balancing among data centers
US10944655B2 (en) Data verification based upgrades in time series system
US11061871B2 (en) Data placement for a distributed database
CN102640474A (en) Optimizing caching period of location data for network based location services
US20180139273A1 (en) Entity based routing
US10972427B1 (en) Methods, systems, and devices for identifying an IP address from a mixed data pool using artificial intelligence
US11935097B2 (en) Apparatuses and methods for identifying infrastructure through machine learning
EP3783864A1 (en) Systems and methods for providing real-time streaming data processing at edge servers
WO2021101446A1 (en) System, method and apparatus downloading update package, and device and readable storage medium thereof
US11671861B2 (en) Intelligent customer oriented mobility network engineering at edges
US20240089348A1 (en) Network service functions api
US20230147187A1 (en) System and method to identify data flows and data mappings across systems
US20150282121A1 (en) Local resource sharing method of machine to machine component and apparatus thereof
KR101648568B1 (en) Method for using distributed objects by clustering them and system using the same
US12079192B2 (en) System and method for managing domain name system records
US20240111749A1 (en) System and method for managing domain name system records

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210112

Address after: 511442 3108, 79 Wanbo 2nd Road, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Applicant after: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 511442 29 floor, block B-1, Wanda Plaza, Huambo business district, Panyu District, Guangzhou, Guangdong.

Applicant before: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd.

EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20180904

Assignee: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd.

Assignor: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd.

Contract record no.: X2021440000054

Denomination of invention: Service gray processing method, device, system and routing server

License type: Common License

Record date: 20210208

GR01 Patent grant
GR01 Patent grant