CN111182062A - Service multi-live calling method and system and electronic equipment - Google Patents
Service multi-live calling method and system and electronic equipment Download PDFInfo
- Publication number
- CN111182062A CN111182062A CN201911401218.7A CN201911401218A CN111182062A CN 111182062 A CN111182062 A CN 111182062A CN 201911401218 A CN201911401218 A CN 201911401218A CN 111182062 A CN111182062 A CN 111182062A
- Authority
- CN
- China
- Prior art keywords
- configuration
- service
- center
- consumer
- machine
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 238000010586 diagram Methods 0.000 description 10
- 238000004590 computer program Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 238000011156 evaluation Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000000644 propagated effect Effects 0.000 description 2
- 230000007812 deficiency Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling 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/63—Routing a service request depending on the request content or context
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention provides a service multi-live calling method, a system and electronic equipment, wherein the method comprises the following steps: a provider sends machine information to a registration center and a configuration center in the same machine room; the registration center and the configuration center send configuration data stored by the registration center and the configuration center to a consumer; the consumer determines a routing strategy according to the configuration data, and selects machines meeting the routing strategy from all machines of providers in all machine rooms to carry out multi-service invocation; and the provider receives and analyzes the service calling request. By adopting the method, the system can select and provide a corresponding machine for the consumer according to the routing strategy of the consumer, so that the service routing can be dynamically adjusted; the calling performance horizontal extension of the computer room level can be supported; when a certain machine room is down, the service call can be switched to the standby machine room, so that the problem of high availability under the condition of data down is solved, and the risks of data loss and the like caused by the down are reduced.
Description
Technical Field
The invention belongs to the technical field of information technology, and particularly relates to a service multi-activity calling method, a service multi-activity calling system and electronic equipment.
Background
With the rapid increase of the traffic volume, the high availability and performance extension of the data center latitude become more and more important, and how to ensure the high availability and performance extension of the data center latitude becomes a technical problem facing more and more systems. The RSF (remote service invocation framework) is used as a service invocation framework of some merchants, and the RSF needs to be capable of completing horizontal expansion of service invocation performance by expanding other data center nodes after the service invocation capacity of a certain data center reaches an upper limit; or, when a certain data center is down, the service call can be routed to other available data centers.
Disclosure of Invention
One of the objectives of the present application is to provide a service multi-live call method to support horizontal extension of call performance at the machine room level, aiming at the shortcomings of the prior art, the method includes the following steps:
a provider sends machine information to a registration center and a configuration center in the same machine room;
the registration center and the configuration center send configuration data stored by the registration center and the configuration center to a consumer;
the consumer determines a routing strategy according to the configuration data, and selects machines meeting the routing strategy from all machines of providers in all machine rooms to carry out multi-service invocation;
and the provider receives and analyzes the service calling request.
Preferably, the configuration data includes machine information of each of the providers stored in the registry and a multi-active routing configuration of each of the rooms stored in the configuration center.
Preferably, the machine information includes a machine list of the provider, a machine IP, a machine room to which a machine belongs, and a machine service.
Preferably, the multi-active routing configuration comprises a routing policy.
Preferably, the routing policy includes a shared service route, a controlled service route, and an exclusive service route.
Preferably, before the registry and the configuration center send configuration data to the consumer, the method further comprises the following steps:
the provider sends the machine information of the provider to the registration center in the same machine room;
the registration center shares the machine information stored by the registration center with all other registration centers;
the registry receives and stores the machine information shared by all other registries;
and the registry updates all the machine information stored by the registry.
Preferably, before the registry and the configuration center send configuration data to the consumer, the method further comprises the following steps:
the machine room sends the configuration of the multi-active route to the configuration center in the same machine room;
the configuration center shares the multi-active route configuration stored by the configuration center to all other configuration centers;
the configuration center receives and stores the multi-live route configuration shared by all other configuration centers;
and the configuration center updates all the multi-active route configurations stored by the configuration center.
Preferably, before the registry and the configuration center send configuration data to the consumer, the method further comprises the following steps:
the configuration center traverses all the machine rooms;
the configuration center selects the machine room which is down;
removing the machine room which is down from the configuration data;
and updating the configuration data.
It is a second object of the present application to provide a service multi-call system to support horizontal extension of call performance at the machine room level, aiming at the disadvantages of the prior art, the system includes:
each machine room comprises a consumer, a provider, a registration center and a configuration center, all the registration centers are connected with one another, and all the configuration centers are connected with one another;
wherein the consumer is configured to initiate a service invocation request;
the provider is used for receiving and analyzing the service calling request sent by the consumer in the same machine room, and sending a command to a registration center and a configuration center in the same machine room;
the registry is used for sending the configuration data stored by the registry to the consumer;
the configuration center is used for sending the configuration data stored by the configuration center to the consumer;
the consumer is further used for determining a routing policy according to the configuration data, and selecting the machines meeting the routing policy from all machines of the provider in all machine rooms for service multi-active calling.
It is a third object of the present application to address the deficiencies of the prior art to provide an electronic device to support a horizontal extension of call capabilities at a machine room level, the electronic device comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any of the service multi-live call methods described above.
According to the service multi-active calling method, the service multi-active calling system and the electronic equipment, the corresponding machine can be provided for the consumer according to the routing strategy selection of the consumer, so that the service routing can be dynamically adjusted and switched in real time; the calling performance horizontal extension of the computer room level can be supported; when a certain machine room is down, the service call can be switched to the standby machine room, so that the problem of high availability under the condition of data down is solved, and the risks of data loss and the like caused by the down are reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flow chart of a method for servicing multiple live calls provided by the present invention;
FIG. 2 is a schematic diagram of a shared service route in a method for a service multi-live call method provided by the present invention;
FIG. 3 is a schematic diagram of a control type service route in a method for a service multi-live call method provided by the present invention;
FIG. 4 is a schematic diagram of an exclusive service multi-live route in a method for invoking a service multi-live method according to the present invention;
FIG. 5 is a schematic structural diagram of a service multi-call system provided in the present invention;
fig. 6 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
The embodiments of the present disclosure are described below with specific examples, and other advantages and effects of the present disclosure will be readily apparent to those skilled in the art from the disclosure in the specification. It is to be understood that the described embodiments are merely illustrative of some, and not restrictive, of the embodiments of the disclosure. The disclosure may be embodied or carried out in various other specific embodiments, and various modifications and changes may be made in the details within the description without departing from the spirit of the disclosure. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
It is noted that various aspects of the embodiments are described below within the scope of the appended claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the disclosure, one skilled in the art should appreciate that one aspect described herein may be implemented independently of any other aspects and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any number of the aspects set forth herein. Additionally, such an apparatus may be implemented and/or such a method may be practiced using other structure and/or functionality in addition to one or more of the aspects set forth herein.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present disclosure, and the drawings only show the components related to the present disclosure rather than the number, shape and size of the components in actual implementation, and the type, amount and ratio of the components in actual implementation may be changed arbitrarily, and the layout of the components may be more complicated.
In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects may be practiced without these specific details.
The embodiment of the disclosure provides a service multi-live calling method. The service multi-live calling method provided by the embodiment may be executed by a computing system, which may be implemented as software, or implemented as a combination of software and hardware, and may be integrally provided in a server, a terminal device, or the like.
As shown in fig. 1, in an embodiment of the present application, the present application provides a service multi-live invocation method, including the steps of:
s101: and the provider sends the machine information to a registration center and a configuration center in the same machine room.
In this step, the provider sends the machine information to the registry and the configuration center in the same machine room.
In the embodiment of the present application, the machine information includes a machine list of a provider, a machine IP, a machine room to which the machine belongs, and a machine service.
S102: and the registration center and the configuration center send the configuration data stored by the registration center and the configuration center to the consumer.
In this step, the registry and the configuration center send the configuration data stored by the registry and the configuration center to the consumer. In the embodiment of the application, the registration center sends the machine information of each provider stored by the registration center to a consumer, wherein the machine information comprises a machine list of the provider, a machine IP, a machine room to which the machine belongs and machine service; the configuration center sends the multi-active route configuration of each machine room stored by the configuration center to a consumer, and the multi-active route configuration comprises a route strategy.
In the embodiment of the present application, the routing policy includes a shared service route, a controlled service route, and an exclusive service route.
As shown in fig. 2, the shared service route refers to a service route that is routed according to a machine room correspondence between a consumer and a provider. As can be clearly seen from fig. 2, the consumers and providers in the north China computer lab establish routes with the configuration center and the registration center in the Yuhua computer lab, respectively, and because the north China computer lab and the Yuhua computer lab establish routes, the consumers and providers in the north China computer lab can exchange information with the configuration center and the registration center in the Yuhua computer lab according to the definition of the shared service route, and the user can select the provider machine of the Yuhua computer lab and also select the provider machine in the north China computer lab.
As shown in fig. 3, the controlled service route refers to that consumers in different rooms can route to a certain room of the provider in a unified manner. As can be clearly seen from fig. 3, consumers in the north China machine room and the Yuhua machine room are all uniformly routed to the machine room of the provider in the Yuhua machine room, and the consumers and the provider in the Yuhua machine room and the consumers and the provider in the north China machine room establish routes with the configuration center and the registration center in the Yuhua machine room, so that by definition of the control type service route, a user can select a machine of the provider in the north China machine room in addition to the provider machine of the Yuhua machine room.
The exclusive service routing is as shown in fig. 4, where the exclusive service means that a consumer routes according to a membership number, all membership numbers are dispersed in different machine rooms, and the same membership number is routed to the same machine room. As can be clearly seen from fig. 4, the consumers in the rainflower machine room establish routes with the provider 1 and the provider 2 in the rainflower machine room and with the provider 1 and the provider 2 in the north-Jiang machine room respectively, the consumers in the north-Jiang machine room establish routes with the provider 1 and the provider 2 in the north-Jiang machine room respectively, and when the consumers in the rainflower machine room need to select a machine, the consumers can select from the provider 1 and the provider 2 in the rainflower machine room and with the provider 1 and the provider 2 in the north-Jiang machine room; when a consumer in the north-river machine room needs to select a machine, the consumer can select from the provider 1 and the provider 2 in the north-river machine room.
S103: and the consumer determines a routing strategy according to the configuration data, and selects a machine which accords with the routing strategy from all machines of the providers in all the machine rooms to carry out multi-service invocation.
In this step, the consumer selects one of the three routing policies according to the configuration data, and selects a machine that meets the routing policy selected by the consumer from all the machines to invoke the multi-service call.
S104: and the provider receives and analyzes the service calling request.
In this step, the provider receives and parses the service invocation request.
In the embodiment of the application, a consumer can select a proper routing strategy from the three routing strategies of the shared service routing, the controlled service routing and the exclusive service routing according to own needs, and then can select a proper machine from a plurality of machines in accordance with the selected routing strategy to perform multi-live service calling, so that the risk of downtime can be effectively avoided, and the risk caused by downtime is reduced.
Further, in the embodiment of the present application, before the registry and the configuration center send the configuration data to the consumer, the method further includes the steps of:
a provider sends own machine information to a registration center in the same machine room;
the registration center shares the machine information stored by the registration center with all other registration centers;
the registry receives and stores the machine information shared by all other registries;
the registration center updates all the machine information stored by the registration center.
Through the above steps, the registry includes not only all the device information of itself, but also all the device information in all other registries, that is, all the device information is shared in all registries.
In the embodiment of the application, the registration center in each machine room can share the machine information of the registration center with other registration centers, so that a consumer can conveniently select more machines, and the flexibility of selection of the consumer is improved.
Likewise, in this embodiment of the present application, before the registry and the configuration center send the configuration data to the consumer, the method further includes the steps of:
the machine room sends the configuration of the multi-active route to a configuration center in the same machine room;
the configuration center shares the multi-live route configuration stored by the configuration center to all other configuration centers;
the configuration center receives and stores the multi-live route configuration shared by all other configuration centers;
the configuration center updates all the multi-live route configurations stored by the configuration center.
Through the above steps, the configuration center includes not only all the multi-active routing configurations of itself, but also all the multi-active routing configurations in all other configuration centers, that is, all the multi-active routing configurations are shared in all the configuration centers.
In the embodiment of the application, the configuration center in each machine room can configure the multi-active route of the configuration center to be shared by other configuration centers, so that more choices can be provided for a consumer when selecting a machine, and the flexibility of selection of the consumer is improved.
Further, in the embodiment of the present application, before the registry and the configuration center send the configuration data to the consumer, the method further includes the steps of:
the configuration center traverses all the machine rooms;
a configuration center selects out a machine room which is down;
removing the machine room which is down from the configuration data;
the configuration data is updated.
Through the steps, after a certain machine room is down or cannot provide services, the configuration center can issue switching configuration and guide service calls from the down machine room to other normal machine rooms, so that the condition that the services are unavailable due to the fact that requests are sent to machines in the down machine room is avoided. And the consumer dynamically screens the provider machine again according to the issued new routing information to call the service, so that the routing switching of the service is completed.
In the embodiment of the application, the configuration center can remove the configuration data of the machine room which is shut down regularly, and the problem that the machine room which is shut down is pushed to a consumer by mistake in the process of providing an available machine room for the consumer is avoided, so that other risks are avoided from being brought to the consumer.
Referring to fig. 5, in an embodiment of the present application, the present application further provides a service multi-live call system to support horizontal extension of call performance at a machine room level, where the system includes:
each machine room comprises a consumer, a provider, a registration center and a configuration center, all the registration centers are connected with one another, and all the configuration centers are connected with one another;
the consumer side is used for initiating a service calling request;
the provider is used for receiving and analyzing a service calling request sent by a consumer in the same machine room and sending a command to a registration center and a configuration center in the same machine room;
the registration center is used for sending the configuration data stored by the registration center to the consumer;
the configuration center is used for sending the configuration data stored by the configuration center to the consumer;
the consumer is also used for determining a routing strategy according to the configuration data, and selecting machines meeting the routing strategy from all machines of the provider in all the machine rooms for service multi-active calling.
The system shown in fig. 5 may correspondingly execute the content in the above method embodiment, and details of the part not described in detail in this embodiment refer to the content described in the above method embodiment, which is not described herein again.
Referring now to FIG. 6, a schematic diagram of an electronic device 60 suitable for use in implementing embodiments of the present disclosure is shown. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, the electronic device 60 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data necessary for the operation of the electronic apparatus 60 are also stored. The processing device 601, the ROM602, and the RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following systems may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 60 to communicate with other devices wirelessly or by wire to exchange data. While the figures illustrate an electronic device 60 having various systems, it is to be understood that not all illustrated systems are required to be implemented or provided. More or fewer systems may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
According to the service multi-active calling method, the service multi-active calling system and the electronic equipment, the corresponding machine can be provided for the consumer according to the routing strategy selection of the consumer, so that the service routing can be dynamically adjusted and switched in real time; the calling performance horizontal extension of the computer room level can be supported; when a certain machine room is down, the service call can be switched to the standby machine room, so that the problem of high availability under the condition of data down is solved, and the risks of data loss and the like caused by the down are reduced.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; receiving an internet protocol address returned by the node evaluation equipment; wherein the obtained internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof.
The above description is only for the specific embodiments of the present disclosure, but the scope of the present disclosure is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present disclosure should be covered within the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.
Claims (10)
1. A service multi-live invocation method, characterized in that said method comprises the steps of:
a provider sends machine information to a registration center and a configuration center in the same machine room;
the registration center and the configuration center send configuration data stored by the registration center and the configuration center to a consumer;
the consumer determines a routing strategy according to the configuration data, and selects machines meeting the routing strategy from all machines of providers in all machine rooms to carry out multi-service invocation;
and the provider receives and analyzes the service calling request.
2. The service multi-live invocation method according to claim 1, wherein the configuration data comprises machine information of each of the providers maintained by the registry and multi-live routing configuration of each of the rooms maintained by the configuration center.
3. The service multi-alive invocation method according to claim 2, wherein the machine information comprises a list of machines of the provider, machine IP, machine room to which the machine belongs, and machine service.
4. The service multialive invocation method according to claim 2 or 3, wherein the multialive routing configuration comprises a routing policy.
5. The service multi-alive invocation method according to claim 4, wherein the routing policies comprise shared service routing, controlled service routing, and exclusive service routing.
6. The service multi-alive invocation method according to any of the claims 1-3, 5, further comprising, before the registry and the configuration center send configuration data to the consumer, the steps of:
the provider sends the machine information of the provider to the registration center in the same machine room;
the registration center shares the machine information stored by the registration center with all other registration centers;
the registry receives and stores the machine information shared by all other registries;
and the registry updates all the machine information stored by the registry.
7. The service multi-alive invocation method according to any of the claims 1-3, 5, further comprising, before the registry and the configuration center send configuration data to the consumer, the steps of:
the machine room sends the configuration of the multi-active route to the configuration center in the same machine room;
the configuration center shares the multi-active route configuration stored by the configuration center to all other configuration centers;
the configuration center receives and stores the multi-live route configuration shared by all other configuration centers;
and the configuration center updates all the multi-active route configurations stored by the configuration center.
8. The service multi-alive invocation method according to any of the claims 1-3, 5, further comprising, before the registry and the configuration center send configuration data to the consumer, the steps of:
the configuration center traverses all the machine rooms;
the configuration center selects the machine room which is down;
removing the machine room which is down from the configuration data;
and updating the configuration data.
9. A service multi-live invocation system, characterized in that the system comprises:
each machine room comprises a consumer, a provider, a registration center and a configuration center, all the registration centers are connected with one another, and all the configuration centers are connected with one another;
wherein the consumer is configured to initiate a service invocation request;
the provider is used for receiving and analyzing the service calling request sent by the consumer in the same machine room, and sending a command to a registration center and a configuration center in the same machine room;
the registry is used for sending the configuration data stored by the registry to the consumer;
the configuration center is used for sending the configuration data stored by the configuration center to the consumer;
the consumer is further used for determining a routing policy according to the configuration data, and selecting the machines meeting the routing policy from all machines of the provider in all machine rooms for service multi-active calling.
10. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the service multi-live call method of any one of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911401218.7A CN111182062B (en) | 2019-12-30 | 2019-12-30 | Service multi-activity calling method, system and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911401218.7A CN111182062B (en) | 2019-12-30 | 2019-12-30 | Service multi-activity calling method, system and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111182062A true CN111182062A (en) | 2020-05-19 |
CN111182062B CN111182062B (en) | 2023-05-19 |
Family
ID=70649005
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911401218.7A Active CN111182062B (en) | 2019-12-30 | 2019-12-30 | Service multi-activity calling method, system and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111182062B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114884860A (en) * | 2022-06-16 | 2022-08-09 | 中国工商银行股份有限公司 | Service routing method, distributed system, device, equipment and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105991694A (en) * | 2015-02-05 | 2016-10-05 | 阿里巴巴集团控股有限公司 | Method and device for realizing distributed service invocation |
CN108632299A (en) * | 2017-03-15 | 2018-10-09 | 北京京东尚科信息技术有限公司 | Enhance method, apparatus, electronic equipment and the storage medium of registration center's availability |
CN110377431A (en) * | 2019-07-29 | 2019-10-25 | 中国工商银行股份有限公司 | Service calling method and device under more registration center's scenes |
CN110391940A (en) * | 2019-07-26 | 2019-10-29 | 广州虎牙科技有限公司 | Response method, device, system, equipment and the storage medium of address of service |
-
2019
- 2019-12-30 CN CN201911401218.7A patent/CN111182062B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105991694A (en) * | 2015-02-05 | 2016-10-05 | 阿里巴巴集团控股有限公司 | Method and device for realizing distributed service invocation |
CN108632299A (en) * | 2017-03-15 | 2018-10-09 | 北京京东尚科信息技术有限公司 | Enhance method, apparatus, electronic equipment and the storage medium of registration center's availability |
CN110391940A (en) * | 2019-07-26 | 2019-10-29 | 广州虎牙科技有限公司 | Response method, device, system, equipment and the storage medium of address of service |
CN110377431A (en) * | 2019-07-29 | 2019-10-25 | 中国工商银行股份有限公司 | Service calling method and device under more registration center's scenes |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114884860A (en) * | 2022-06-16 | 2022-08-09 | 中国工商银行股份有限公司 | Service routing method, distributed system, device, equipment and medium |
CN114884860B (en) * | 2022-06-16 | 2024-03-15 | 中国工商银行股份有限公司 | Service routing method, distributed system, device, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN111182062B (en) | 2023-05-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110275723A (en) | Obtain method, apparatus, electronic equipment and the readable medium of resource | |
CN109743381B (en) | Long connection interaction method and device for client and server | |
CN111309415B (en) | User Interface (UI) information processing method and device of application program and electronic equipment | |
CN112256231B (en) | Volume control method, device, terminal and storage medium | |
CN110996372A (en) | Message routing method, device and system and electronic equipment | |
CN111400068B (en) | Interface control method and device, readable medium and electronic equipment | |
CN114625536A (en) | Video memory allocation method, device, medium and electronic equipment | |
CN110489158B (en) | Method, device, medium and electronic equipment for optimizing code hosting platform | |
CN112306685B (en) | Task isolation method, device, electronic equipment and computer readable medium | |
CN112261176B (en) | Method for acquiring actual network access relationship and related equipment | |
CN114428925A (en) | Page rendering method and device, electronic equipment and computer readable medium | |
CN112256172B (en) | Application display method, device, terminal and storage medium | |
CN111182062B (en) | Service multi-activity calling method, system and electronic equipment | |
CN113886105B (en) | Cross-process calling method and device, storage medium and electronic equipment | |
CN113391882B (en) | Virtual machine memory management method and device, storage medium and electronic equipment | |
CN110996141B (en) | Method and device for sending information in live broadcast room and electronic equipment | |
CN111797160B (en) | Method, system and electronic device for sharing intelligent contract | |
CN114625479A (en) | Cloud edge collaborative application management method in edge computing and corresponding device | |
CN113518183A (en) | Camera calling method and device and electronic equipment | |
CN113127550A (en) | Information processing method, information processing device, electronic equipment and storage medium | |
CN116319322B (en) | Power equipment node communication connection method, device, equipment and computer medium | |
CN111314457B (en) | Method and device for setting virtual private cloud | |
CN111381898A (en) | Interface calling method and device, mobile terminal and storage medium | |
CN118158082B (en) | Method, device, equipment and medium for updating communication resource message of intelligent household equipment | |
CN115878296B (en) | Resource management method and device, electronic equipment and readable storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |