CN110545328A - Non-invasive service function expansion enhancing method and device and server - Google Patents

Non-invasive service function expansion enhancing method and device and server Download PDF

Info

Publication number
CN110545328A
CN110545328A CN201910914540.3A CN201910914540A CN110545328A CN 110545328 A CN110545328 A CN 110545328A CN 201910914540 A CN201910914540 A CN 201910914540A CN 110545328 A CN110545328 A CN 110545328A
Authority
CN
China
Prior art keywords
function
calling
target
target system
request
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.)
Pending
Application number
CN201910914540.3A
Other languages
Chinese (zh)
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.)
Hangzhou Dbappsecurity Technology Co Ltd
Original Assignee
Hangzhou Dbappsecurity Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Dbappsecurity Technology Co Ltd filed Critical Hangzhou Dbappsecurity Technology Co Ltd
Priority to CN201910914540.3A priority Critical patent/CN110545328A/en
Publication of CN110545328A publication Critical patent/CN110545328A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a method, a device and a server for enhancing the expansion of non-invasive service functions, wherein the method comprises the following steps: if a function calling request sent by a source system is received, determining a calling strategy and a target system corresponding to the function calling request; the function calling request carries function information of a target service function; the calling strategy is a preset calling mode for calling the target service function, and the target system corresponds to the function information; sending the function calling request to a target system based on a calling strategy so that the target system executes a target service function based on the function information in the function calling request to obtain an execution result; and receiving an execution result returned by the target system, and sending the execution result to the source system so as to expand and enhance the service function of the source system. The invention can effectively reduce the development cost of the extended service function.

Description

Non-invasive service function expansion enhancing method and device and server
Technical Field
The invention relates to the technical field of internet, in particular to a method, a device and a server for enhancing the expansion of non-invasive service functions.
Background
With the development of distributed architecture and micro-service and the push of big data and Cloud computing, enterprises gradually tend to adopt micro-service architecture systems to realize various service functions, such as Spring Cloud, Dubbo, kubernet and other micro-service architectures. At present, when the business functions of a plurality of systems are expanded and enhanced under a micro-service architecture system, codes for realizing the business functions need to be written for each system respectively, so that the written codes of the business functions cannot be suitable for other systems under the micro-service architecture system, and the development cost for expanding the service functions is high.
disclosure of Invention
In view of the above, the present invention provides a method, an apparatus and a server for enhancing service function expansion in a non-invasive manner, which can effectively reduce the development cost of the service function expansion.
in a first aspect, an embodiment of the present invention provides a method for enhancing a non-invasive service function extension, including: if a function calling request sent by a source system is received, determining a calling strategy and a target system corresponding to the function calling request; the function calling request carries function information of a target service function; the calling strategy is a preset calling mode for calling the target service function, and the target system corresponds to the function information; sending the function calling request to the target system based on the calling strategy so that the target system executes the target service function based on the function information in the function calling request to obtain an execution result; and receiving the execution result returned by the target system, and sending the execution result to the source system so as to expand and enhance the service function of the source system.
with reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where the method further includes: deploying a bonding layer and a first communication route of the bonding layer by adopting a Sidecar technology; wherein the first communication route is used for communication between the engagement layer and the source system; and receiving a function calling request sent by a source system through the first communication route.
With reference to the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where the step of determining a call policy and a target system corresponding to the function call request includes: and calling a calling strategy corresponding to the function information carried by the function calling request from a preset strategy storage area through the engagement layer, and determining a target system according to the function information through the engagement layer.
With reference to the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where the invocation policy includes a flow required for invoking the target service function; the step of sending the function call request to the target system based on the call policy includes: deploying a second communication route of the meshing layer by adopting a Sidecar technology; wherein the second communication route is used for communication between the engagement layer and the target system; sending the function call request to the target system based on the second communication route and the traffic.
With reference to the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the step of receiving the execution result returned by the target system, and sending the execution result to the source system to expand the function of the source system includes: and receiving the execution result returned by the target system through the second communication route, and sending the execution result to the source system through the first communication route so as to expand the function of the source system.
With reference to the first aspect, an embodiment of the present invention provides a fifth possible implementation manner of the first aspect, where the invocation policy further includes a code required for invoking the target service function; the step of sending the function call request to the target system based on the call policy further includes:
And running the code through the meshing layer, and sending the function calling request to the target system based on the second communication route and the flow by using the meshing layer after running the code.
In a second aspect, an embodiment of the present invention further provides a device for enhancing non-invasive service function extension, including: the determining module is used for determining a calling strategy and a target system corresponding to a function calling request if the function calling request sent by a source system is received; the function calling request carries function information of a target service function; the calling strategy is a preset calling mode for calling the target service function, and the target system corresponds to the function information; the request sending module is used for sending the function calling request to the target system based on the calling strategy so as to enable the target system to execute the target service function based on the function information in the function calling request and obtain an execution result; and the result sending module is used for receiving the execution result returned by the target system and sending the execution result to the source system so as to expand and enhance the service function of the source system.
With reference to the second aspect, an embodiment of the present invention provides a first possible implementation manner of the second aspect, where the apparatus further includes: the device comprises a deployment module, a routing module and a routing module, wherein the deployment module is used for deploying a meshing layer and a first communication route of the meshing layer by adopting a Sidecar technology; wherein the first communication route is used for communication between the engagement layer and the source system; and the request receiving module is used for receiving the function calling request sent by the source system through the first communication route.
in a third aspect, an embodiment of the present invention further provides a server, including a processor and a memory; the memory has stored thereon a computer program which, when executed by the processor, performs the method of any one of the aspects as provided in the first aspect.
in a fourth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, performs the steps of the method according to any one of the above-mentioned first aspect.
The embodiment of the invention provides a non-invasive service function expansion enhancing method, a non-invasive service function expansion enhancing device and a non-invasive service function expansion enhancing server. In the embodiment of the invention, the source system obtains the execution result of the target service function through the non-invasive expansion enhancing method, and the service function of the source system is expanded without compiling corresponding implementation codes of the target service function aiming at the source system.
additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
in order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
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 some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
fig. 1 is a schematic flowchart of a method for enhancing non-invasive service function extension according to an embodiment of the present invention;
FIG. 2 is a system architecture diagram according to an embodiment of the present invention;
Fig. 3 is a schematic structural diagram of a non-invasive service function expansion enhancing apparatus according to an embodiment of the present invention;
Fig. 4 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the embodiments, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In view of the problem of high development cost in the conventional expansion and enhancement of the service function of the system, the invention provides a non-invasive service function expansion and enhancement method, a non-invasive service function expansion and enhancement device and a non-invasive service function expansion and enhancement server, so that the development cost of the expanded service function can be effectively reduced.
To facilitate understanding of the present embodiment, first, a detailed description is given to a non-invasive service function expansion enhancing method disclosed in the present embodiment, referring to a flow diagram of the non-invasive service function expansion enhancing method shown in fig. 1, where the method mainly includes the following steps:
Step S102, if a function calling request sent by a source system is received, a calling strategy and a target system corresponding to the function calling request are determined.
Wherein, the source system can be understood as a system which needs to expand and enhance the service function; the target system can be understood as a system which has a target service function and can execute the target service function, and the target service function can be understood as a business function required by the source system; the function calling request carries function information of the target service function, the calling strategy is a preset calling mode for calling the target service function, and the target system corresponds to the function information. During specific implementation, a calling strategy corresponding to the function calling request can be acquired in a preset strategy storage area, and a target system is determined based on the function information of the target service function carried by the function calling request. For example, if the source system is an order system and the function call request is an inventory refresh call request, determining a call policy corresponding to the inventory refresh call request and determining the target system as an inventory system.
And step S104, sending the function calling request to the target system based on the calling strategy so that the target system executes the target service function based on the function information in the function calling request to obtain an execution result.
Wherein, the execution result can be understood as the result obtained by the target system running the target service function. For example, the inventory refresh call request is sent to the inventory system according to a preset call mode, so that the inventory system runs an inventory refresh function based on the inventory refresh call request, and an inventory refresh result is obtained.
And step S106, receiving the execution result returned by the target system, and sending the execution result to the source system so as to expand and enhance the service function of the source system. If the inventory refreshing result returned by the inventory system is received, the inventory refreshing result is sent to the order system, which is equivalent to the fact that the inventory refreshing function is expanded for the order system.
In the method for enhancing non-invasive service function extension provided by the embodiment of the present invention, when a function call request (carrying function information of a target service function) sent by a source system is received, a call policy corresponding to the function call request and a target system corresponding to the function information are determined, where the call policy is a preset call mode for calling the target service function, so that the function call request is sent to the target system based on the call policy, an execution result obtained by the target system executing the target service function based on the function information is received, and the execution result is sent to the source system, so as to enhance and extend the service function of the source system. Compared with the prior art in which the implementation codes of the target service functions are written for each system respectively, the method and the system for expanding and enhancing the service functions of the source system can reduce the development cost of expanding and enhancing the service functions of the source system.
In an embodiment, the non-intrusive method for enhancing expansion may be executed by a server, and to implement communication between a source system, the server, and a target system, a first communication route between a bonding layer and a bonding layer may be deployed by using a Sidecar technology, and a function invocation request sent by the source system may be received through the first communication route. The sdn service may be a service layer, and a service layer.
To facilitate understanding of the step S102, the embodiment of the present invention provides a specific implementation manner of the step S102, specifically, a calling policy corresponding to the function information carried in the function calling request is called from a preset policy storage area through an engagement layer, and a target system is determined according to the function information through the engagement layer. The policy storage area stores implementation codes of functional policies and non-functional policies, such as a traffic proxy function, an authority function, a logging function and the like. In one embodiment, a control center may be deployed in the server, and when the target system is determined according to the function information by the engagement layer, the engagement layer sends the function information to the control center, so that the control center determines the target system, for example, a correspondence between the function information and the system is preset, and the control center determines the target system corresponding to the function information of the target service function based on the correspondence.
In one embodiment, the invocation policy includes the traffic required to invoke the target service function. If the calling policy includes traffic required for calling the target service function, when the step of sending the function calling request to the target system based on the calling policy is executed, a second communication route of the engagement layer needs to be deployed by using the Sidecar technology, and then the function calling request is sent to the target system based on the second communication route and the traffic, wherein the second communication route is used for enabling the engagement layer to communicate with the target system. Specifically, the source system and the target system may respectively deploy an engagement layer and a communication route corresponding to each engagement layer, for example, a first engagement layer corresponding to the source system a and a first communication route a corresponding to the first engagement layer are deployed by using a sidecr technology, a second engagement layer corresponding to the source system B1 and a second communication route B1 corresponding to the second engagement layer are deployed by using the sidecr technology, and a third engagement layer corresponding to the source system B2 and a second communication route B2 corresponding to the third engagement layer are deployed by using the sidecr technology.
In another embodiment, the invocation policy may also include code required to invoke the target service function. In a specific implementation, if the calling policy includes a code required for calling the target service function, when the step of sending the function calling request to the target system based on the calling policy is performed, the code may be executed through the mesh layer, and the mesh layer after the code is executed is used to send the function calling request to the target system based on the second communication route and the flow. For example, if the authority authentication is required for calling the target service function M, before sending the function calling request M to the target system based on the second communication route and the flow, a code corresponding to the authority function needs to be executed, and after confirming that the source system has the authority to call the target service function M, the function calling request M is sent to the target system; if the calling target service function M does not need to carry out authority authentication, the function calling request M can be directly sent to the target system based on the second communication route and the flow.
As for the step S106, in the embodiment of the present invention, the execution result returned by the target system may be received through the second communication route, and the execution result is sent to the source system through the first communication route, so as to expand and enhance the service function of the source system. During specific implementation, the server receives the execution result fed back by the target system through the second communication route of the meshing layer corresponding to the target system, and then sends the execution result to the source system through the first communication route of the meshing layer corresponding to the source system, so that the service function of the source system is expanded and enhanced.
To facilitate understanding of the non-invasive augmentation method provided by the above-mentioned embodiments, the embodiment of the present invention provides a system for implementing the service function augmentation method (i.e., the aforementioned non-invasive augmentation method), referring to a schematic system architecture shown in fig. 2, where fig. 2 illustrates a control center and a policy center, and an engager a1, an engager a2, an engager B1 and an engager B2 connected to the control center and the policy center, further, a source system a1 is connected to the engager a1, a source system a2 is connected to the engager a2, a target system B1 is connected to the engager B1, and a target system B2 is connected to the engager B2, where different systems are provided between the source system and the target system, and service functions of each other party can be invoked, and peer-to-peer relationships are provided between the source systems for providing the same service functions, to perform a load balancing function.
The control center is used for providing functions of service registration discovery, route forwarding, load balancing, flow control information and the like of a system framework, wherein the service registration discovery is used for sensing a service system (comprising the source system and the target system), the route forwarding is used for flow circulation of the meshing device, and the load balancing and the flow control are basic function enhancement of the route forwarding; the policy center (i.e., the aforementioned preset policy storage area) is responsible for implementing and managing various functional and non-functional policies, where a policy may also be understood as a code for implementing some functions, such as an authentication function, an authorization function, a monitoring function, a traffic proxy function, and a flow control function; the engager (i.e., the aforementioned engagement layer) is configured to obtain service, routing, and flow control information from the control center, obtain a specific function implementation policy from the policy center, and proxy all traffic entering and exiting the service, where the service information may be understood as basic information (such as service name description) of each service, and the routing information and the flow information may be understood as an address, a port, a protocol, the number of services, a distribution policy, and the like of each service. Further, the above-mentioned engager is further provided with routing rules (including the above-mentioned first communication route and second communication route) for implementing communication among the source System, the control center, the policy center and the target System, and during specific implementation, the engager can obtain corresponding routing rules from the above-mentioned control center, and act on an OS (Operating System) where the target service function is located, that is, act on the target System, which is a specific implementation of the engager proxy service.
On the basis of the system architecture shown in fig. 2, another non-invasive extension enhancement method is provided in the embodiment of the present invention, which is referred to as the following steps 1 to 7:
Step 1, the service a1 (i.e., the aforementioned source system a1) generates a function call request that calls a target service function.
Step 2, the function call request of service a1 is forwarded by its policy route to engager A1. The policy route is also the aforementioned first communication route.
and step 3, the engager A1 carries out strategy authentication according to the strategy acquired from the strategy center. The policy authentication may also be referred to as policy evaluation, and is used to determine whether a policy function needs to be invoked. Specifically, the engager a1 requests the policy center, determines whether a specific policy function is required for invoking the target service function, acquires the policy function from the policy center if necessary, and does not acquire the policy function if not necessary, and the acquired policy function is executed by the engager to implement policy functions, such as the aforementioned authentication function and logging function.
Step 4, the engager a1 obtains the service b2 (i.e., the target system b2) corresponding to the target service function from the control center, and forwards the request to the service b 2.
Step 5, the function call request is sent to the engager B2 by the second communication route of the service B2, and the engager B2 acquires the policy function from the policy center and performs policy authentication.
And step 6, the engager B2 forwards the function calling request to the service B2 for service processing, wherein the service processing is also used for executing the target service function, and an execution result is obtained.
Step 7, the execution result returns to the service a 1. Specifically, the processing result is forwarded to the engager a1 through the first communication route, so that the service a1 acquires the execution result to complete the whole function scheduling.
The embodiment of the present invention provides specific implementation manners of steps 1 to 7, for a certain e-commerce platform, the e-commerce platform is configured with two services, including an order service a and a stock service B, where the order is developed in java language, the stock service B is developed in c language, and each service has two instances, that is, the services configured by the e-commerce platform include an order service a1, an order service a1, a stock service B1, and a stock service B2, and further, the order service a1, the order service a1, the stock service B1, and the stock service B2 are all connected to the server provided by the embodiment of the present invention for performing the non-intrusive augmentation method, and the server includes an engager a1, an engager a2, an engager B1, an engager B2, a control center, and a policy center corresponding to each service. The specific operation process comprises the following steps (1) to (6):
(1) The user initiates a placement request to order service a 1.
(2) before the order service a1 receives the order request, the order request is intercepted by the engager A1, if the engager A1 determines that the user authentication function and the logging function need to be enhanced based on the order request, the corresponding code is obtained from the policy center and executed.
(3) The engager A1 executes the code and sends a placement request to the order service a1 to complete the placement operation.
(4) the order service a1 forwards the order request to inventory service b2 to have inventory service b2 perform an inventory refresh function.
(5) The order placing request is intercepted by the engager B2 before the inventory service B2 receives the order placing request, and if the engager B2 determines that the user authentication function and the logging function need to be enhanced based on the order placing request, corresponding codes are obtained from the policy center and executed.
(6) The engager B2 sends a order request to inventory service B2 to have inventory service B2 refresh inventory. The method provided by the embodiment can enable the service A and the service B to have the functions of filtering the user request and generating the operation log without changing any code.
In summary, the embodiment of the present invention can achieve at least one of the following features:
(1) the source system and the target system have platform-independent and language-independent properties. Specifically, compared with the prior art that the same service function needs to be respectively designed for a development language when the same service function is newly added or modified in a heterogeneous system, the embodiment of the invention only needs to be developed once, does not need to be respectively designed for different systems, and has no relation between the service function and the programming language, thereby effectively relieving the problem that different types of systems in the prior art have different implementation problems for a certain general function (namely, the above strategy function), relieving the repeated implementation problem of the general function, and improving the problem of low performance caused by the bulkiness of the system. In addition, the problem of higher development cost caused by respectively repairing the same function in different systems in the prior art can be effectively solved, and the maintenance difficulty is reduced.
(2) The service flow of the meshing device agent service is completed in a kernel mode of a local operating system, and performance guarantee is provided.
(3) the unified standard of the strategy center is ensured, and one strategy function is applied to a plurality of systems.
(4) The non-intrusive design, the entire policy development and deployment process is independent of the business system (such as the aforementioned order service and inventory service), which the business system is unaware of. Compared with the prior art in which the service function is coupled to each system, the embodiment of the invention can separate the service function from the general function, and can independently expand the basic development and the service development without influencing each other, thereby reducing the development difficulty.
(5) The embodiment of the invention has independent extension and usability of the strategy function, thereby reducing development difficulty and dependence of the strategy function on the environment.
(6) The interaction mode of the engager, the control center and the strategy center provided by the embodiment of the invention can reduce the communication cost of developers and system administrators, improve the delivery efficiency, provide a better service management strategy for users and ensure the maintainability of the system.
For the non-invasive expansion enhancement method provided in the foregoing embodiment, an embodiment of the present invention provides a non-invasive expansion enhancement method apparatus, referring to a schematic structural diagram of a non-invasive expansion enhancement method apparatus shown in fig. 3, the apparatus mainly includes the following components:
A determining module 302, configured to determine, if a function call request sent by a source system is received, a call policy and a target system corresponding to the function call request; the function calling request carries function information of a target service function; the calling strategy is a preset calling mode for calling the target service function, and the target system corresponds to the function information.
A request sending module 304, configured to send the function call request to the target system based on the call policy, so that the target system executes the target service function based on the function information in the function call request, and obtains an execution result.
And the result sending module 306 is configured to receive the execution result returned by the target system, and send the execution result to the source system, so as to perform extended enhancement on the service function of the source system.
Compared with the prior art in which implementation codes of target service functions are written for each system respectively, the non-invasive expansion enhancement method and device provided by the embodiment of the invention can reduce the development cost of the service functions of the expansion source system.
In one embodiment, the above apparatus further comprises: the deployment module is used for deploying the first communication route of the meshing layer and the meshing layer by adopting a Sidecar technology; wherein the first communication route is used for communication between the mesh layer and the source system; and the request receiving module is used for receiving the function calling request sent by the source system through the first communication route.
In an embodiment, the determining module 302 is further configured to: calling a calling strategy corresponding to the function information carried by the function calling request from a preset strategy storage area through the engagement layer, and determining a target system according to the function information through the engagement layer.
In one embodiment, the calling policy includes a flow rate required for calling the target service function; the request sending module 304 is further configured to: deploying a second communication route of the meshing layer by adopting a Sidecar technology; wherein the second communication route is used for communication between the mesh layer and the target system; the function call request is sent to the target system based on the second communication route and the traffic.
in one embodiment, the result sending module 306 is further configured to: and receiving the execution result returned by the target system through the second communication route, and sending the execution result to the source system through the first communication route so as to expand the function of the source system.
In one embodiment, the calling policy further includes code required for calling the target service function; the request sending module 304 is further configured to: and running the codes through the meshing layer, and sending the function calling request to the target system based on the second communication route and the flow by using the meshing layer after the codes are run.
The device provided by the embodiment of the present invention has the same implementation principle and technical effect as the method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the method embodiments without reference to the device embodiments.
The device is a server, and particularly, the server comprises a processor and a storage device; the storage means has stored thereon a computer program which, when executed by the processor, performs the method of any of the above described embodiments.
Fig. 4 is a schematic structural diagram of a server according to an embodiment of the present invention, where the server 100 includes: a processor 40, a memory 41, a bus 42 and a communication interface 43, wherein the processor 40, the communication interface 43 and the memory 41 are connected through the bus 42; the processor 40 is arranged to execute executable modules, such as computer programs, stored in the memory 41.
the Memory 41 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 43 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, etc. may be used.
The bus 42 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 4, but that does not indicate only one bus or one type of bus.
The memory 41 is used for storing a program, the processor 40 executes the program after receiving an execution instruction, and the method executed by the apparatus defined by the flow process disclosed in any of the foregoing embodiments of the present invention may be applied to the processor 40, or implemented by the processor 40.
The processor 40 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 40. The Processor 40 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory 41, and the processor 40 reads the information in the memory 41 and completes the steps of the method in combination with the hardware thereof.
the computer program product of the readable storage medium provided in the embodiment of the present invention includes a computer readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the foregoing method embodiment, which is not described herein again.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A non-invasive service function extension enhancement method is characterized by comprising the following steps:
If a function calling request sent by a source system is received, determining a calling strategy and a target system corresponding to the function calling request; the function calling request carries function information of a target service function; the calling strategy is a preset calling mode for calling the target service function, and the target system corresponds to the function information;
Sending the function calling request to the target system based on the calling strategy so that the target system executes the target service function based on the function information in the function calling request to obtain an execution result;
And receiving the execution result returned by the target system, and sending the execution result to the source system so as to expand and enhance the service function of the source system.
2. The method of claim 1, further comprising:
Deploying a bonding layer and a first communication route of the bonding layer by adopting a Sidecar technology; wherein the first communication route is used for communication between the engagement layer and the source system;
And receiving a function calling request sent by a source system through the first communication route.
3. the method of claim 2, wherein the step of determining the calling policy and the target system corresponding to the function call request comprises:
and calling a calling strategy corresponding to the function information carried by the function calling request from a preset strategy storage area through the engagement layer, and determining a target system according to the function information through the engagement layer.
4. the method of claim 2, wherein the invocation policy includes traffic required to invoke the target service function;
the step of sending the function call request to the target system based on the call policy includes:
Deploying a second communication route of the meshing layer by adopting a Sidecar technology; wherein the second communication route is used for communication between the engagement layer and the target system;
Sending the function call request to the target system based on the second communication route and the traffic.
5. The method of claim 4, wherein the step of receiving the execution result returned by the target system and sending the execution result to the source system to expand the function of the source system comprises:
And receiving the execution result returned by the target system through the second communication route, and sending the execution result to the source system through the first communication route so as to expand the function of the source system.
6. The method of claim 4, wherein the invocation policy further includes code required to invoke the target service function;
The step of sending the function call request to the target system based on the call policy further includes:
And running the code through the meshing layer, and sending the function calling request to the target system based on the second communication route and the flow by using the meshing layer after running the code.
7. A non-invasive service function extension enhancing apparatus, comprising:
The determining module is used for determining a calling strategy and a target system corresponding to a function calling request if the function calling request sent by a source system is received; the function calling request carries function information of a target service function; the calling strategy is a preset calling mode for calling the target service function, and the target system corresponds to the function information;
the request sending module is used for sending the function calling request to the target system based on the calling strategy so as to enable the target system to execute the target service function based on the function information in the function calling request and obtain an execution result;
And the result sending module is used for receiving the execution result returned by the target system and sending the execution result to the source system so as to expand and enhance the service function of the source system.
8. The apparatus of claim 7, further comprising:
The device comprises a deployment module, a routing module and a routing module, wherein the deployment module is used for deploying a meshing layer and a first communication route of the meshing layer by adopting a Sidecar technology; wherein the first communication route is used for communication between the engagement layer and the source system;
and the request receiving module is used for receiving the function calling request sent by the source system through the first communication route.
9. a server, comprising a processor and a memory;
the memory has stored thereon a computer program which, when executed by the processor, performs the method of any of claims 1 to 6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of the preceding claims 1 to 6.
CN201910914540.3A 2019-09-25 2019-09-25 Non-invasive service function expansion enhancing method and device and server Pending CN110545328A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910914540.3A CN110545328A (en) 2019-09-25 2019-09-25 Non-invasive service function expansion enhancing method and device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910914540.3A CN110545328A (en) 2019-09-25 2019-09-25 Non-invasive service function expansion enhancing method and device and server

Publications (1)

Publication Number Publication Date
CN110545328A true CN110545328A (en) 2019-12-06

Family

ID=68714534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910914540.3A Pending CN110545328A (en) 2019-09-25 2019-09-25 Non-invasive service function expansion enhancing method and device and server

Country Status (1)

Country Link
CN (1) CN110545328A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111371695A (en) * 2020-03-03 2020-07-03 中国工商银行股份有限公司 Service current limiting method and device
CN111541643A (en) * 2020-03-18 2020-08-14 成都中科合迅科技有限公司 Method for realizing safety audit of service system without intrusion

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104657142A (en) * 2015-02-12 2015-05-27 中国科学院计算机网络信息中心 CCFD (China Computational Fluid Dynamics) system based on OSGi (Open Service Gateway Initiative) technology
US20150244616A1 (en) * 2014-02-24 2015-08-27 Red Hat, Inc. Routing a message in a dynamic service mesh
CN107770243A (en) * 2017-09-06 2018-03-06 北京奥鹏远程教育中心有限公司 From extension, adaptive micro services platform and its application process
CN108667925A (en) * 2018-05-04 2018-10-16 北京天元创新科技有限公司 A kind of method and system of WEB application seamless access distributed system
CN108847989A (en) * 2018-06-29 2018-11-20 杭州安恒信息技术股份有限公司 Log processing method, business service system and electronic equipment based on micro services framework
CN109213770A (en) * 2018-06-06 2019-01-15 平安科技(深圳)有限公司 Data processing method, system, computer equipment and storage medium
CN109981789A (en) * 2019-04-03 2019-07-05 山东浪潮云信息技术有限公司 A kind of micro services engine based on proxy mode
WO2019169405A1 (en) * 2018-03-02 2019-09-06 Syntegrity Networks Inc. Microservice architecture for identity and access management

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150244616A1 (en) * 2014-02-24 2015-08-27 Red Hat, Inc. Routing a message in a dynamic service mesh
CN104657142A (en) * 2015-02-12 2015-05-27 中国科学院计算机网络信息中心 CCFD (China Computational Fluid Dynamics) system based on OSGi (Open Service Gateway Initiative) technology
CN107770243A (en) * 2017-09-06 2018-03-06 北京奥鹏远程教育中心有限公司 From extension, adaptive micro services platform and its application process
WO2019169405A1 (en) * 2018-03-02 2019-09-06 Syntegrity Networks Inc. Microservice architecture for identity and access management
CN108667925A (en) * 2018-05-04 2018-10-16 北京天元创新科技有限公司 A kind of method and system of WEB application seamless access distributed system
CN109213770A (en) * 2018-06-06 2019-01-15 平安科技(深圳)有限公司 Data processing method, system, computer equipment and storage medium
CN108847989A (en) * 2018-06-29 2018-11-20 杭州安恒信息技术股份有限公司 Log processing method, business service system and electronic equipment based on micro services framework
CN109981789A (en) * 2019-04-03 2019-07-05 山东浪潮云信息技术有限公司 A kind of micro services engine based on proxy mode

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
沈林强: "基于服务网格的物联网平台研究与实现", 《中国优秀硕士学位论文全文数据库(信息科技辑)》 *
郑俊褒,沈林强: "基于服务网格的微服务架构服务治理研究", 《计算机系统应用》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111371695A (en) * 2020-03-03 2020-07-03 中国工商银行股份有限公司 Service current limiting method and device
CN111371695B (en) * 2020-03-03 2023-07-25 中国工商银行股份有限公司 Service flow limiting method and device
CN111541643A (en) * 2020-03-18 2020-08-14 成都中科合迅科技有限公司 Method for realizing safety audit of service system without intrusion
CN111541643B (en) * 2020-03-18 2022-02-01 成都中科合迅科技有限公司 Method for realizing safety audit of service system without intrusion

Similar Documents

Publication Publication Date Title
CN110191063B (en) Service request processing method, device, equipment and storage medium
US20200120112A1 (en) Techniques for detecting known vulnerabilities in serverless functions as a service (faas) platform
CN111290865A (en) Service calling method and device, electronic equipment and storage medium
US11716264B2 (en) In situ triggered function as a service within a service mesh
CN109274782B (en) Method and device for collecting website data
CN109614167B (en) Method and system for managing plug-ins
US8813233B1 (en) Machine image inspection
KR20150023354A (en) System and method for supporting implicit versioning in a transactional middleware machine environment
CN112433863A (en) Micro-service calling method and device, terminal equipment and storage medium
CN112350978A (en) Service processing method, system, device and storage medium
CN112491948A (en) Non-invasive monomer application micro-service method and device and computer equipment
CN110545328A (en) Non-invasive service function expansion enhancing method and device and server
CN113067875A (en) Access method, device and equipment based on dynamic flow control of micro-service gateway
CN115934202A (en) Data management method, system, data service gateway and storage medium
CN113010561B (en) Data acquisition method and device based on super account book and computer system
CN116457759A (en) Service orchestration within a distributed container group based system
CN106936643B (en) Equipment linkage method and terminal equipment
CN111831402A (en) Method, apparatus and computer program product for managing software functions
JP2020009144A (en) Information processor, mobile object, information processing method, and program
CN112422643B (en) Third-party interface protection request forwarding method and device
CN111651469B (en) Method and device for managing blockchain system contracts
CN114662102A (en) File processing method and device and storage medium
CN110769020B (en) Resource request processing method, device, equipment and system
CN110321250B (en) Disaster recovery method and device for application
CN112929195A (en) Service system, method executed by service system, processing apparatus, and 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191206