CN114531366B - Service treatment method and device - Google Patents

Service treatment method and device Download PDF

Info

Publication number
CN114531366B
CN114531366B CN202210156154.4A CN202210156154A CN114531366B CN 114531366 B CN114531366 B CN 114531366B CN 202210156154 A CN202210156154 A CN 202210156154A CN 114531366 B CN114531366 B CN 114531366B
Authority
CN
China
Prior art keywords
unit
service
target
service information
mark
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
CN202210156154.4A
Other languages
Chinese (zh)
Other versions
CN114531366A (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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202210156154.4A priority Critical patent/CN114531366B/en
Publication of CN114531366A publication Critical patent/CN114531366A/en
Application granted granted Critical
Publication of CN114531366B publication Critical patent/CN114531366B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5041Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a service treatment method and a device, relates to the technical field of service data processing, and can be used in the financial field or other technical fields. The method comprises the following steps: acquiring unit service information, adding a unit mark in the unit service information, and sending the unit service information to a central server; receiving a service management instruction returned by the central server according to the unit service information, and comparing a target unit mark in the service management instruction with a local unit mark; if the comparison results are consistent, carrying out service treatment operation locally. The apparatus performs the above method. The service treatment processing method and the device provided by the embodiment of the invention can realize unitized service treatment locally on the unit server.

Description

Service treatment method and device
Technical Field
The invention relates to the technical field of service data processing, in particular to a service treatment processing method and device.
Background
The unitized deployment architecture is a novel distributed architecture, each unit in the architecture is provided with independent components such as a registry cluster and a gateway, and each service is registered in different units according to the own needs, so that a mode that the service is divided by unit chips is formed. Under the unitized deployment architecture, a plurality of services with the same name can appear in different unit areas, and the existing service management method is globally effective, and cannot realize service management for a certain unit or part of units, and cannot realize the requirement of unitized service management.
Disclosure of Invention
Aiming at the problems in the prior art, the embodiment of the invention provides a service treatment method and a device, which can at least partially solve the problems in the prior art.
In one aspect, the present invention provides a service governance processing method, including:
acquiring unit service information, adding a unit mark in the unit service information, and sending the unit service information to a central server; the unit service information carries a unit service name and the unit mark;
receiving a service management instruction returned by the central server according to the unit service information, and comparing a target unit mark in the service management instruction with a local unit mark; the service governance instruction carries the target unit mark;
if the comparison results are consistent, carrying out service treatment operation locally.
Wherein, the service governance processing method further comprises:
and if the comparison results are consistent, sending a prompt message of successful service treatment operation to the central server.
Wherein, the service governance processing method further comprises:
if the comparison results are inconsistent, a prompt message of failure of the service treatment operation is sent to the central server.
In one aspect, the present invention provides a service governance processing method, including:
determining a target unit mark corresponding to a target unit service name corresponding to target service information in response to an operation processing action aiming at the target service information in the unit service information; the unit service information carries a unit service name and a unit mark;
determining a target IP address of a target unit corresponding to the target unit mark, and sending a service treatment instruction to a target unit server according to the target IP address; the service governance instruction carries the target unit tag.
Wherein, before the step of responding to the operation processing action for the target service information in the unit service information, the service governance processing method further includes:
and receiving the unit service information sent by the unit server, and storing the unit service information into a local memory.
Wherein, after the step of sending a service governance instruction to a target unit server according to the target IP address, the service governance processing method further includes:
and receiving a prompt message of whether the service treatment operation fed back by the target unit server according to the comparison result is successful or not, and displaying the prompt message.
Wherein the determining the target IP address of the target unit corresponding to the target unit tag includes:
and determining the target IP address according to the locally prestored IP address corresponding to the unit.
The unit service information also carries an IP address corresponding to the unit; correspondingly, the determining the target IP address of the target unit corresponding to the target unit tag includes:
and determining the target IP address according to the IP address corresponding to the unit in the unit service information.
In one aspect, the present invention provides a service governance processing apparatus, including:
the acquisition unit is used for acquiring unit service information, adding a unit mark in the unit service information and sending the unit service information to the center server; the unit service information carries a unit service name and the unit mark;
the comparison unit is used for receiving a service management instruction returned by the central server according to the unit service information and comparing a target unit mark in the service management instruction with a local unit mark; the service governance instruction carries the target unit mark;
and the operation unit is used for carrying out service treatment operation locally if the comparison results are consistent.
In one aspect, the present invention provides a service governance processing apparatus, including:
the determining module is used for responding to the operation processing action aiming at the target service information in the unit service information and determining a target unit mark corresponding to the target unit service name corresponding to the target service information; the unit service information carries a unit service name and a unit mark;
the sending module is used for determining a target IP address of a target unit corresponding to the target unit mark and sending a service treatment instruction to a target unit server according to the target IP address; the service governance instruction carries the target unit tag.
In still another aspect, an embodiment of the present invention provides an electronic device, including: a processor, a memory, and a bus, wherein,
the processor and the memory complete communication with each other through the bus;
the memory stores program instructions executable by the processor, the processor invoking the program instructions capable of performing the method of:
acquiring unit service information, adding a unit mark in the unit service information, and sending the unit service information to a central server; the unit service information carries a unit service name and the unit mark;
receiving a service management instruction returned by the central server according to the unit service information, and comparing a target unit mark in the service management instruction with a local unit mark; the service governance instruction carries the target unit mark;
if the comparison results are consistent, carrying out service treatment operation locally;
or, in response to an operation processing action for target service information in the unit service information, determining a target unit mark corresponding to a target unit service name corresponding to the target service information; the unit service information carries a unit service name and a unit mark;
determining a target IP address of a target unit corresponding to the target unit mark, and sending a service treatment instruction to a target unit server according to the target IP address; the service governance instruction carries the target unit tag.
Embodiments of the present invention provide a non-transitory computer readable storage medium comprising:
the non-transitory computer readable storage medium stores computer instructions that cause the computer to perform the method of:
acquiring unit service information, adding a unit mark in the unit service information, and sending the unit service information to a central server; the unit service information carries a unit service name and the unit mark;
receiving a service management instruction returned by the central server according to the unit service information, and comparing a target unit mark in the service management instruction with a local unit mark; the service governance instruction carries the target unit mark;
if the comparison results are consistent, carrying out service treatment operation locally;
or, in response to an operation processing action for target service information in the unit service information, determining a target unit mark corresponding to a target unit service name corresponding to the target service information; the unit service information carries a unit service name and a unit mark;
determining a target IP address of a target unit corresponding to the target unit mark, and sending a service treatment instruction to a target unit server according to the target IP address; the service governance instruction carries the target unit tag.
The service treatment processing method and device provided by the embodiment of the invention acquire the unit service information, add the unit mark in the unit service information and send the unit service information to the center server; receiving a service management instruction returned by the central server according to the unit service information, and comparing a target unit mark in the service management instruction with a local unit mark; if the comparison results are consistent, carrying out service treatment operation locally, and realizing unitized service treatment locally on the unit server.
The service treatment processing method and device provided by the embodiment of the invention respond to the operation processing action aiming at the target service information in the unit service information and determine the target unit mark corresponding to the target unit service name corresponding to the target service information; determining a target IP address of a target unit corresponding to the target unit mark, and sending a service governance instruction to a target unit server according to the target IP address, so that the target unit server compares the target unit mark in the service governance instruction with a local unit mark; if the comparison results are consistent, carrying out service treatment operation locally, and realizing unitized service treatment locally on the unit server.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. In the drawings:
FIG. 1 is a flow chart of a method for service remediation according to an embodiment of the present invention.
FIG. 2 is a flow chart of a method for service remediation according to another embodiment of the present invention.
FIG. 3 is a schematic diagram of a service treatment device according to an embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a service management device according to an embodiment of the present invention.
Fig. 5 is a schematic diagram of an entity structure of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention will be described in further detail with reference to the accompanying drawings. The exemplary embodiments of the present invention and their descriptions herein are for the purpose of explaining the present invention, but are not to be construed as limiting the invention. It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be arbitrarily combined with each other.
Fig. 1 is a flow chart of a service treatment method according to an embodiment of the present invention, and as shown in fig. 1, the service treatment method according to the embodiment of the present invention includes:
step S1: acquiring unit service information, adding a unit mark in the unit service information, and sending the unit service information to a central server; the unit service information carries a unit service name and the unit tag.
Step S2: receiving a service management instruction returned by the central server according to the unit service information, and comparing a target unit mark in the service management instruction with a local unit mark; the service governance instruction carries the target unit tag.
Step S3: if the comparison results are consistent, carrying out service treatment operation locally.
In the step S1, the device acquires unit service information, adds a unit mark to the unit service information, and sends the unit service information to a central server; the unit service information carries a unit service name and the unit tag. The apparatus may be a computer device performing the method, for example, may be a unit server, which may be understood as a data management server managing the unit corresponding area, for example, northeast area corresponding unit server a, northwest area corresponding unit server B. The central server performs unified management on each unit server.
The unit mark a may be added to the unit service information in the unit server a, and the unit mark B may be added to the unit service information in the unit server B, so that different unit servers may be distinguished by the unit mark.
The unit service information includes service information corresponding to each service, and includes, for example, the unit server a, the service information A1, the service information A2, and the like. A1 and A2 are unit service names corresponding to the service information respectively, and A1 and A2 correspond to the same unit mark A, i.e. the unit mark of the unit can be added for each service information.
The unit service information may also carry an IP address corresponding to the unit, and referring to the above example, the IP address may correspond to the unit tag one by one, for example, the IP address corresponding to the unit tag a is IPA, and it is understood that A1 and A2 correspond to the same IP address IPA.
The service information may further include a service state (prohibition state or enablement state), a maximum access amount allowed by the service, and the like. The user of the management center server can modify the service state in one or some of the unit service information and set the maximum access allowed by the service.
In the step S2, the device receives a service management instruction returned by the central server according to the unit service information, and compares a target unit mark in the service management instruction with a local unit mark; the service governance instruction carries the target unit tag. The following are illustrated:
both the unit server a and the unit server B send unit service information to the center server. The user of the management center server performs an operation process on the service information A2 of the unit service information in the unit server a, for example, modifies the service state of the service information A2 from the disabled state to the enabled state, and at this time, the service information A2 is taken as target service information.
The center server determines a target unit mark a corresponding to the target unit service name A2 corresponding to the service information A2 in response to the operation processing action for the service information A2, and determines the target IP address of the target unit a corresponding to the target unit mark a as the IP address IPA.
And sending a service governance instruction to the target unit server A according to the IP address IPA. The service governance instruction carries a target unit mark a, and it should be noted that, under normal conditions, the target unit mark a in the service governance instruction is consistent with the unit mark a in the local area of the target unit server a.
However, in an abnormal situation, such as a network failure and a change in IP address, the IP address of the target unit server a may change, and if the central server also transmits a service governance instruction according to the original IP address at this time, the unit server that receives the service governance instruction is not the target unit server a, for example, the unit server that receives the service governance instruction is the target unit server B. At this time, the unit mark B in the target unit server B is inconsistent with the target unit mark a in the service governance instruction.
In the step S3, if the device determines that the comparison results are consistent, the device performs the service management operation locally. Referring to the above description, for the normal situation, if the comparison results are consistent, the service management operation is performed locally. The specific content of the service governance operation is conventional in the art and will not be described in detail.
The service management processing method provided by the embodiment of the invention obtains the unit service information, adds the unit mark in the unit service information and sends the unit service information to the center server; receiving a service management instruction returned by the central server according to the unit service information, and comparing a target unit mark in the service management instruction with a local unit mark; if the comparison results are consistent, carrying out service treatment operation locally, and realizing unitized service treatment locally on the unit server.
Further, the service governance processing method further comprises the following steps:
and if the comparison results are consistent, sending a prompt message of successful service treatment operation to the central server. The embodiment of the invention does not consider the condition that the comparison results are consistent, but the service governance operation fails, and the service governance operation is considered to be successful as long as the comparison results are consistent because the service governance operation is a mature technology in the field.
By sending the prompt message of successful service treatment operation to the central server, the success of the service treatment operation can be timely fed back to the central server.
The service treatment processing method provided by the embodiment of the invention is beneficial to timely feeding back the prompt message of successful service treatment operation to the user.
Further, the service governance processing method further comprises the following steps:
if the comparison results are inconsistent, a prompt message of failure of the service treatment operation is sent to the central server. If the comparison results of the embodiment of the invention are inconsistent, the step of service treatment operation is not needed, and the failure of the service treatment operation can be directly determined.
By sending the prompt message of the failure of the service treatment operation to the central server, the failure of the service treatment operation can be timely fed back to the central server.
The service treatment processing method provided by the embodiment of the invention is beneficial to timely feeding back the prompt message of failure of the service treatment operation to the user.
Fig. 2 is a flow chart of a service treatment method according to an embodiment of the present invention, and as shown in fig. 2, the service treatment method according to the embodiment of the present invention includes:
step R1: determining a target unit mark corresponding to a target unit service name corresponding to target service information in response to an operation processing action aiming at the target service information in the unit service information; the unit service information carries a unit service name and a unit tag.
Step R2: determining a target IP address of a target unit corresponding to the target unit mark, and sending a service treatment instruction to a target unit server according to the target IP address; the service governance instruction carries the target unit tag.
In the step R1, the device determines a target unit tag corresponding to a target unit service name corresponding to target service information in response to an operation processing action for the target service information in the unit service information; the unit service information carries a unit service name and a unit tag. The apparatus may be a computer device for performing the method, for example, may be a central server, and the central server and the unit server may refer to the foregoing description and will not be repeated. The unit service information may be stored in advance locally at the center server. Or when receiving the unit service information, immediately responding to the operation processing action executed by the user to execute the subsequent steps.
The following are illustrated:
the user of the management center server performs an operation process on the service information A2 of the unit service information in the unit server a, for example, modifies the service state of the service information A2 from the disabled state to the enabled state, and at this time, the service information A2 is taken as target service information.
The center server determines a target unit mark a corresponding to the target unit service name A2 corresponding to the service information A2 in response to the operation processing action for the service information A2, and determines the target IP address of the target unit a corresponding to the target unit mark a as the IP address IPA.
And sending a service governance instruction to the target unit server A according to the IP address IPA. The service governance instruction carries a target unit mark a, and it should be noted that, under normal conditions, the target unit mark a in the service governance instruction is consistent with the unit mark a in the local area of the target unit server a.
However, in an abnormal situation, such as a network failure and a change in IP address, the IP address of the target unit server a may change, and if the central server also transmits a service governance instruction according to the original IP address at this time, the unit server that receives the service governance instruction is not the target unit server a, for example, the unit server that receives the service governance instruction is the target unit server B. At this time, the unit mark B in the target unit server B is inconsistent with the target unit mark a in the service governance instruction.
In the step R2, the device determines a target IP address of a target unit corresponding to the target unit tag, and sends a service governance instruction to a target unit server according to the target IP address; the service governance instruction carries the target unit tag. Reference is made to the above description and will not be repeated.
According to the service treatment processing method provided by the embodiment of the invention, the operation processing action aiming at the target service information in the unit service information is responded, and the target unit mark corresponding to the target unit service name corresponding to the target service information is determined; determining a target IP address of a target unit corresponding to the target unit mark, and sending a service governance instruction to a target unit server according to the target IP address, so that the target unit server compares the target unit mark in the service governance instruction with a local unit mark; if the comparison results are consistent, carrying out service treatment operation locally, and realizing unitized service treatment locally on the unit server.
Further, before the step of responding to the operation processing action for the target service information in the unit service information, the service governance processing method further includes:
and receiving the unit service information sent by the unit server, and storing the unit service information into a local memory. Referring to the above example, the unit service information sent by the unit server a and the unit server B may be received, and the unit service information may be stored in a local memory.
Further, after receiving the unit service information sent by the unit server a and the unit server B, respectively, reply messages indicating that the unit service information is received may be sent to the unit server a and the unit server B, respectively, where the reply messages may carry the time when the unit service information is received.
According to the service management processing method provided by the embodiment of the invention, the unit service information is stored in the local memory, and then the unit service information is directly read from the memory, so that the data reading efficiency can be improved.
Further, after the step of sending a service governance instruction to a target unit server according to the target IP address, the service governance processing method further includes:
and receiving a prompt message of whether the service treatment operation fed back by the target unit server according to the comparison result is successful or not, and displaying the prompt message. The alert message may be displayed to the user by means of a pop-up window.
The service treatment processing method provided by the embodiment of the invention is convenient for users to acquire the message whether the service treatment operation is successful or not in time.
Further, the determining the target IP address of the target unit corresponding to the target unit tag includes:
and determining the target IP address according to the locally prestored IP address corresponding to the unit. That is, the central server may store the IP address of each unit server to the local in advance, and the subsequent step directly acquires the IP address corresponding to the unit from the local.
According to the service treatment processing method provided by the embodiment of the invention, the target IP address is determined according to the locally pre-stored IP address corresponding to the unit, so that the IP address corresponding to the unit is conveniently acquired.
Further, the unit service information also carries an IP address corresponding to the unit; correspondingly, the determining the target IP address of the target unit corresponding to the target unit tag includes:
and determining the target IP address according to the IP address corresponding to the unit in the unit service information. That is, the central server can obtain the IP address corresponding to the unit, which is closer to the current time, by analyzing the unit service information.
According to the service treatment processing method provided by the embodiment of the invention, the target IP address is determined according to the IP address corresponding to the unit in the unit service information, so that the timeliness of acquiring the target IP address can be improved.
The method of the embodiment of the invention can be realized in a modularized mode, the method can be executed in a central server and a unit server, and the unit server comprises a data acquisition module and a unitized service management module.
The data acquisition module is used for collecting and rendering the service information, rendering the service information in the units with the unit marks, and uniformly transmitting the service information to the central server.
The central server is used for controlling each unit server, receiving the information from the data acquisition module and sending the service governance instruction to the unitized service governance module in the target unit server.
And the unitized service governance module is used for receiving and executing the service governance instruction sent by the central server.
It should be noted that, the service treatment method provided by the embodiment of the present invention may be used in the financial field, and may also be used in any technical field other than the financial field.
Fig. 3 is a schematic structural diagram of a service management device according to an embodiment of the present invention, and as shown in fig. 3, the service management device according to an embodiment of the present invention includes an obtaining unit 301, a comparing unit 302, and an operating unit 303, where:
the acquiring unit 301 is configured to acquire unit service information, add a unit tag to the unit service information, and send the unit service information to a central server; the unit service information carries a unit service name and the unit mark; the comparing unit 302 is configured to receive a service administration instruction returned by the central server according to the unit service information, and compare a target unit mark in the service administration instruction with a local unit mark; the service governance instruction carries the target unit mark; the operation unit 303 is configured to perform a service governance operation locally if the comparison results are determined to be consistent.
Specifically, the acquiring unit 301 in the device is configured to acquire unit service information, add a unit tag to the unit service information, and send the unit service information to a central server; the unit service information carries a unit service name and the unit mark; the comparing unit 302 is configured to receive a service administration instruction returned by the central server according to the unit service information, and compare a target unit mark in the service administration instruction with a local unit mark; the service governance instruction carries the target unit mark; the operation unit 303 is configured to perform a service governance operation locally if the comparison results are determined to be consistent.
The service management processing device provided by the embodiment of the invention acquires the unit service information, adds the unit mark in the unit service information and sends the unit service information to the center server; receiving a service management instruction returned by the central server according to the unit service information, and comparing a target unit mark in the service management instruction with a local unit mark; if the comparison results are consistent, carrying out service treatment operation locally, and realizing unitized service treatment locally on the unit server.
The embodiment of the service treatment processing device provided in the embodiment of the present invention may be specifically used to execute the processing flow of each method embodiment, and the functions thereof are not described herein again, and may refer to the detailed description of the method embodiments.
Fig. 4 is a schematic structural diagram of a service management processing apparatus according to an embodiment of the present invention, and as shown in fig. 4, the service management processing apparatus according to an embodiment of the present invention includes a determining module 401 and a sending module 402, where:
the determining module 401 is configured to determine a target unit tag corresponding to a target unit service name corresponding to target service information in the unit service information in response to an operation processing action for the target service information; the unit service information carries a unit service name and a unit mark; the sending module 402 is configured to determine a target IP address of a target unit corresponding to the target unit tag, and send a service administration instruction to a target unit server according to the target IP address; the service governance instruction carries the target unit tag.
Specifically, the determining module 401 in the device is configured to determine, in response to an operation processing action for target service information in the unit service information, a target unit tag corresponding to a target unit service name corresponding to the target service information; the unit service information carries a unit service name and a unit mark; the sending module 402 is configured to determine a target IP address of a target unit corresponding to the target unit tag, and send a service administration instruction to a target unit server according to the target IP address; the service governance instruction carries the target unit tag.
The service treatment processing device provided by the embodiment of the invention responds to the operation processing action aiming at the target service information in the unit service information and determines the target unit mark corresponding to the target unit service name corresponding to the target service information; determining a target IP address of a target unit corresponding to the target unit mark, and sending a service governance instruction to a target unit server according to the target IP address, so that the target unit server compares the target unit mark in the service governance instruction with a local unit mark; if the comparison results are consistent, carrying out service treatment operation locally, and realizing unitized service treatment locally on the unit server.
The embodiment of the service treatment processing device provided in the embodiment of the present invention may be specifically used to execute the processing flow of each method embodiment, and the functions thereof are not described herein again, and may refer to the detailed description of the method embodiments.
Fig. 5 is a schematic diagram of an entity structure of an electronic device according to an embodiment of the present invention, as shown in fig. 5, where the electronic device includes: a processor (processor) 501, a memory (memory) 502, and a bus 503;
wherein, the processor 501 and the memory 502 complete communication with each other through a bus 503;
the processor 501 is configured to invoke the program instructions in the memory 502 to perform the methods provided in the above method embodiments, for example, including:
acquiring unit service information, adding a unit mark in the unit service information, and sending the unit service information to a central server; the unit service information carries a unit service name and the unit mark;
receiving a service management instruction returned by the central server according to the unit service information, and comparing a target unit mark in the service management instruction with a local unit mark; the service governance instruction carries the target unit mark;
if the comparison results are consistent, carrying out service treatment operation locally;
or, in response to an operation processing action for target service information in the unit service information, determining a target unit mark corresponding to a target unit service name corresponding to the target service information; the unit service information carries a unit service name and a unit mark;
determining a target IP address of a target unit corresponding to the target unit mark, and sending a service treatment instruction to a target unit server according to the target IP address; the service governance instruction carries the target unit tag.
The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, are capable of performing the methods provided by the above-described method embodiments, for example comprising:
acquiring unit service information, adding a unit mark in the unit service information, and sending the unit service information to a central server; the unit service information carries a unit service name and the unit mark;
receiving a service management instruction returned by the central server according to the unit service information, and comparing a target unit mark in the service management instruction with a local unit mark; the service governance instruction carries the target unit mark;
if the comparison results are consistent, carrying out service treatment operation locally;
or, in response to an operation processing action for target service information in the unit service information, determining a target unit mark corresponding to a target unit service name corresponding to the target service information; the unit service information carries a unit service name and a unit mark;
determining a target IP address of a target unit corresponding to the target unit mark, and sending a service treatment instruction to a target unit server according to the target IP address; the service governance instruction carries the target unit tag.
The present embodiment provides a computer-readable storage medium storing a computer program that causes the computer to execute the methods provided by the above-described method embodiments, for example, including:
acquiring unit service information, adding a unit mark in the unit service information, and sending the unit service information to a central server; the unit service information carries a unit service name and the unit mark;
receiving a service management instruction returned by the central server according to the unit service information, and comparing a target unit mark in the service management instruction with a local unit mark; the service governance instruction carries the target unit mark;
if the comparison results are consistent, carrying out service treatment operation locally;
or, in response to an operation processing action for target service information in the unit service information, determining a target unit mark corresponding to a target unit service name corresponding to the target service information; the unit service information carries a unit service name and a unit mark;
determining a target IP address of a target unit corresponding to the target unit mark, and sending a service treatment instruction to a target unit server according to the target IP address; the service governance instruction carries the target unit tag.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In the description of the present specification, reference to the terms "one embodiment," "one particular embodiment," "some embodiments," "for example," "an example," "a particular example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The foregoing description of the embodiments has been provided for the purpose of illustrating the general principles of the invention, and is not meant to limit the scope of the invention, but to limit the invention to the particular embodiments, and any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the invention are intended to be included within the scope of the invention.

Claims (12)

1. A service governance process comprising:
acquiring unit service information, adding a unit mark in the unit service information, and sending the unit service information to a central server; the unit service information carries a unit service name and the unit mark; the unit marks are used for distinguishing different unit servers;
receiving a service management instruction returned by the central server according to the unit service information, and comparing a target unit mark in the service management instruction with a local unit mark; the service governance instruction carries the target unit mark;
if the comparison results are consistent, carrying out service treatment operation locally.
2. The service governance treatment method of claim 1, further comprising:
and if the comparison results are consistent, sending a prompt message of successful service treatment operation to the central server.
3. The service governance treatment method of claim 1, further comprising:
if the comparison results are inconsistent, a prompt message of failure of the service treatment operation is sent to the central server.
4. A service governance process comprising:
determining a target unit mark corresponding to a target unit service name corresponding to target service information in response to an operation processing action aiming at the target service information in the unit service information; the unit service information carries a unit service name and a unit mark; the unit marks are used for distinguishing different unit servers;
determining a target IP address of a target unit corresponding to the target unit mark, and sending a service treatment instruction to a target unit server according to the target IP address; the service governance instruction carries the target unit mark; the target IP addresses are in one-to-one correspondence with the unit marks.
5. The service governance processing method of claim 4, wherein prior to said step of responding to an operational processing action for target service information in the unit service information, said service governance processing method further comprises:
and receiving the unit service information sent by the unit server, and storing the unit service information into a local memory.
6. The service governance processing method according to claim 4, further comprising, after said step of transmitting a service governance instruction to a target unit server according to said target IP address:
and receiving a prompt message of whether the service treatment operation fed back by the target unit server according to the comparison result is successful or not, and displaying the prompt message.
7. The service governance processing method according to claim 4, wherein said determining a target IP address of a target unit corresponding to said target unit label comprises:
and determining the target IP address according to the locally prestored IP address corresponding to the unit.
8. The service governance processing method according to claim 4, wherein said unit service information further carries an IP address corresponding to a unit; correspondingly, the determining the target IP address of the target unit corresponding to the target unit tag includes:
and determining the target IP address according to the IP address corresponding to the unit in the unit service information.
9. A service governance processing apparatus, comprising:
the acquisition unit is used for acquiring unit service information, adding a unit mark in the unit service information and sending the unit service information to the center server; the unit service information carries a unit service name and the unit mark; the unit marks are used for distinguishing different unit servers;
the comparison unit is used for receiving a service management instruction returned by the central server according to the unit service information and comparing a target unit mark in the service management instruction with a local unit mark; the service governance instruction carries the target unit mark;
and the operation unit is used for carrying out service treatment operation locally if the comparison results are consistent.
10. A service governance processing apparatus, comprising:
the determining module is used for responding to the operation processing action aiming at the target service information in the unit service information and determining a target unit mark corresponding to the target unit service name corresponding to the target service information; the unit service information carries a unit service name and a unit mark; the unit marks are used for distinguishing different unit servers;
the sending module is used for determining a target IP address of a target unit corresponding to the target unit mark and sending a service treatment instruction to a target unit server according to the target IP address; the service governance instruction carries the target unit mark; the target IP addresses are in one-to-one correspondence with the unit marks.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of any of claims 1 to 3 or of claims 4 to 8 when the computer program is executed.
12. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 3, or of claims 4 to 8.
CN202210156154.4A 2022-02-21 2022-02-21 Service treatment method and device Active CN114531366B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210156154.4A CN114531366B (en) 2022-02-21 2022-02-21 Service treatment method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210156154.4A CN114531366B (en) 2022-02-21 2022-02-21 Service treatment method and device

Publications (2)

Publication Number Publication Date
CN114531366A CN114531366A (en) 2022-05-24
CN114531366B true CN114531366B (en) 2024-01-30

Family

ID=81625574

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210156154.4A Active CN114531366B (en) 2022-02-21 2022-02-21 Service treatment method and device

Country Status (1)

Country Link
CN (1) CN114531366B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109995713A (en) * 2017-12-30 2019-07-09 华为技术有限公司 Service processing method and relevant device in a kind of micro services frame
CN110032393A (en) * 2019-04-18 2019-07-19 恒生电子股份有限公司 A kind of micro services dissemination method, device, equipment and medium
CN110430079A (en) * 2019-08-05 2019-11-08 腾讯科技(深圳)有限公司 Bus or train route cooperative system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR3108746B1 (en) * 2020-03-27 2022-04-01 Bull Sas Method and system for discovering and registering new microservices for a unified governance platform of a plurality of supercomputing solutions

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109995713A (en) * 2017-12-30 2019-07-09 华为技术有限公司 Service processing method and relevant device in a kind of micro services frame
CN110032393A (en) * 2019-04-18 2019-07-19 恒生电子股份有限公司 A kind of micro services dissemination method, device, equipment and medium
CN110430079A (en) * 2019-08-05 2019-11-08 腾讯科技(深圳)有限公司 Bus or train route cooperative system

Also Published As

Publication number Publication date
CN114531366A (en) 2022-05-24

Similar Documents

Publication Publication Date Title
US11191111B2 (en) Bluetooth connection establishment method, device and system
CN112953774A (en) Network topology generation method, system, equipment and computer storage medium
CN110753129A (en) Message transmission method, system, device, equipment and computer readable storage medium
CN114024972B (en) Long connection communication method, system, device, equipment and storage medium
CN111708619B (en) Distributed transaction processing method and system based on message queue and database
CN112804330B (en) Application communication method and device
CN115951923B (en) Subscription event management method, display system, device and storage medium
CN111817984A (en) Message sending method, device, equipment and storage medium
CN114363334B (en) Cloud system, network configuration method, device and equipment of cloud desktop virtual machine
EP1636953B1 (en) Actionable messaging
CN114531366B (en) Service treatment method and device
CN111698310B (en) Multi-test environment scheduling method and device based on SWIFT network
CN111953931B (en) Data sharing method, device and storage medium
CN103678332A (en) System, browser and method for displaying page
CN109600738B (en) User information updating method, device, equipment and storage medium
CN111722883A (en) Method and device for updating interface address and computer readable storage medium
CN113162997B (en) Data transmission method and device, electronic equipment and readable storage medium
CN113596105B (en) Content acquisition method, edge node and computer readable storage medium
CN115550424A (en) Data caching method, device, equipment and storage medium
CN111935337B (en) MAC address keep-alive method, equipment and storage medium of aggregation link
CN114788393B (en) Inter-device communication method, device and storage medium
CN112000618B (en) File change management method, device, equipment and storage medium for cluster nodes
CN108924270B (en) Method for updating terminal contact information, server and storage medium
CN102761625A (en) Method and system for registering domain name for video monitoring terminal
CN113285855B (en) Server monitoring method and system

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