CN115514665B - Service expansion method, device, electronic equipment and storage medium - Google Patents

Service expansion method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115514665B
CN115514665B CN202211057623.3A CN202211057623A CN115514665B CN 115514665 B CN115514665 B CN 115514665B CN 202211057623 A CN202211057623 A CN 202211057623A CN 115514665 B CN115514665 B CN 115514665B
Authority
CN
China
Prior art keywords
service
remote
remote service
information
target
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
CN202211057623.3A
Other languages
Chinese (zh)
Other versions
CN115514665A (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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202211057623.3A priority Critical patent/CN115514665B/en
Publication of CN115514665A publication Critical patent/CN115514665A/en
Application granted granted Critical
Publication of CN115514665B publication Critical patent/CN115514665B/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
    • 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
    • H04L41/5051Service on demand, e.g. definition and deployment of services in real time
    • 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
    • H04L41/5045Making service definitions prior to deployment

Landscapes

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

Abstract

The disclosure relates to a service expansion method, a device, an electronic device and a storage medium, wherein the method comprises the following steps: generating a software development kit corresponding to the target service; acquiring service information corresponding to a remote service, wherein the remote service is issued after a service providing system realizes a target service based on a software development package; the service information is used for identifying remote services; configuring a mapping relation between service information and service call conditions, and adding remote service references based on the service information; the service call condition is a configured condition factor for triggering the call of the remote service; the remote service reference is a proxy object corresponding to the remote service, and the mapping relation and the remote service reference are used for calling the remote service provided by the service providing system to realize the expansion target service. According to the technical scheme provided by the disclosure, the flexible access of an external system can be realized, so that the service expansion of the service platform is realized under the condition that the code of the service platform is not modified, and the service expansion efficiency of the service platform is improved.

Description

Service expansion method, device, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of internet application, and in particular relates to a service expansion method, a service expansion device, electronic equipment and a storage medium.
Background
With the continuous development of internet application technology, in order to meet the diversified demands of users, a service platform for providing services to users often needs to provide multiple service. In the related art, when a service platform expands certain service, a corresponding new operation code needs to be developed, the development cost is high, and the service expansion efficiency is low.
Disclosure of Invention
The disclosure provides a service expansion method, a device, electronic equipment and a storage medium, so as to at least solve the problem of low expansion efficiency when a service platform expands service in the related technology. The technical scheme of the present disclosure is as follows:
according to a first aspect of an embodiment of the present disclosure, there is provided a service extension method, including:
generating a software development kit corresponding to the target service;
acquiring service information corresponding to a remote service, wherein the remote service is issued after the service providing system realizes the target service based on the software development package; the service information is used for identifying the remote service;
configuring a mapping relation between the service information and service calling conditions, and adding remote service references based on the service information; the service call condition is configured as a condition factor for triggering and calling the remote service; the remote service reference is a proxy object corresponding to the remote service, and the mapping relation and the remote service reference are used for calling the remote service provided by the service providing system to realize the expansion of the target service.
Optionally, the method further comprises:
receiving a service call request;
determining target service information based on the mapping relation under the condition that the service call request accords with a target call condition;
and calling the remote service provided by the service providing system based on the remote service reference corresponding to the target service information.
Optionally, the generating the software development kit corresponding to the target service includes:
determining interface parameters corresponding to the target service, wherein the interface parameters comprise an access parameter, an access parameter and a signature parameter; the access parameter is the set access condition of the target service interface, and the signature parameter is used for carrying out security protection on the target service interface;
and generating a software development package corresponding to the target service based on the interface parameters corresponding to the target service.
Optionally, the method further comprises:
monitoring the call of the remote service, and determining a monitoring record;
and under the condition that the monitoring record accords with a preset abnormal condition, processing the call of the remote service, wherein the processing comprises current limiting processing, degradation processing or fusing processing.
Optionally, the adding a remote service reference based on the service information includes:
discovering the remote service based on the service name in the service information, and establishing a reference to the remote service; storing the established reference to the remote service to add the remote service reference.
Optionally, the method further comprises:
receiving update information corresponding to the remote service;
and updating the mapping relation corresponding to the remote service and the remote service reference based on the updating information corresponding to the remote service.
According to a second aspect of an embodiment of the present disclosure, there is provided a service extension apparatus, including:
the development packet generation module is configured to generate a software development packet corresponding to the target service;
the information acquisition module is configured to acquire service information corresponding to a remote service, wherein the remote service is issued after the service providing system realizes the target service based on the software development package; the service information is used for identifying the remote service;
the information processing module is configured to configure the mapping relation between the service information and the service call condition and add remote service references based on the service information; the service call condition is configured as a condition factor for triggering and calling the remote service; the remote service reference is a proxy object corresponding to the remote service, and the mapping relation and the remote service reference are used for calling the remote service provided by the service providing system to realize the expansion of the target service.
Optionally, the apparatus further comprises:
a request receiving module configured to receive a service call request;
the information determining module is configured to determine target service information based on the mapping relation under the condition that the service call request meets the target call condition;
and the call processing module is configured to call the remote service provided by the service providing system based on the remote service reference corresponding to the target service information.
Optionally, the development kit generation module includes:
the parameter determining unit is configured to determine interface parameters corresponding to the target service, wherein the interface parameters comprise an access parameter, an access parameter and a signature parameter; the access parameter is the set access condition of the target service interface, and the signature parameter is used for carrying out security protection on the target service interface;
and the development packet generating unit is configured to generate a software development packet corresponding to the target service based on the interface parameter corresponding to the target service.
Optionally, the method further comprises:
the monitoring processing module is configured to monitor the call of the remote service and determine a monitoring record;
and the exception handling module is configured to handle the call of the remote service under the condition that the monitoring record meets the preset exception condition, wherein the handling comprises current limiting handling, degradation handling or fusing handling.
Optionally, the information acquisition module includes:
a service reference unit configured to discover the remote service based on a service name in the service information, and establish a reference to the remote service; storing the established reference to the remote service to add the remote service reference.
Optionally, the apparatus further comprises:
the information receiving module is configured to receive the update information corresponding to the remote service;
and the data updating module is configured to update the mapping relation corresponding to the remote service and the remote service reference based on the updating information corresponding to the remote service.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the service extension method according to the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium, which when executed by an instruction processor in the storage medium, enables an electronic device to perform the service extension method as described in the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program or computer instructions, characterized in that the computer program or computer instructions, when executed by a processor, implement the service extension method according to the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
according to the method, a software development kit for target service is generated through a service platform, a service providing system releases remote service after the target service is realized according to the software development kit, after the remote service is released, the service platform obtains service information corresponding to the remote service, the service information is used for identifying the remote service, a mapping relation between the service information and remote service calling conditions is configured in the service platform, remote service references are added based on the service information, wherein the service calling conditions are configured condition factors for triggering the remote service, the remote service references are proxy objects corresponding to the remote service, and the remote service can be called by calling the proxy objects, so that the remote service references are used for realizing the remote service calling. And after receiving the service calling request, the remote service can be called according to the configured mapping relation and the added remote service reference, and further, under the condition of not changing the code of the service platform, the service of the service platform is flexibly expanded through the access of the service providing system, that is, when the service is expanded, the development of a new operation code is not required to be carried out on the service platform, the development cost is reduced, and the service expansion efficiency of the service platform is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
FIG. 1 is a schematic diagram of an application environment of a business expansion method according to an exemplary embodiment;
FIG. 2 is a flowchart illustrating a method of service extension in accordance with an exemplary embodiment;
FIG. 3 is a flow chart II of a method of service extension, according to an example embodiment;
fig. 4 is a block diagram of a service extension device according to an exemplary embodiment;
fig. 5 is a block diagram of a server, according to an example embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
Referring to fig. 1, an application environment of a service extension method according to an exemplary embodiment is shown, where the application environment may include a service platform 11 and at least one service providing system 12, and the service platform 11 and the service providing system 12 are connected through a wireless network. The service platform 11 and the service providing system 12 may be independent physical servers, or may be a server cluster or a distributed system formed by a plurality of physical servers. Those skilled in the art will appreciate that the number of the service providing systems 12 may be one, two or more, and the number and kind of the service providing systems are not particularly limited in this embodiment.
The application environment may further include at least one terminal 13, and the terminal 13 may be a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like, but is not limited thereto. The terminal 13 is configured to send a service invocation request to the service platform, and invoke, according to the service invocation request sent by the terminal 13, the remote service provided by the service providing system 12 by the service platform 11, to implement the target service.
Fig. 2 is a flowchart illustrating a service extension method that may be used in the service platform shown in fig. 1 according to an exemplary embodiment, including the following steps.
In step S21, a software development kit corresponding to the target service is generated.
In this step, the target service is a platform intent extension service, and the target service may be set according to an actual scenario, for example, a recall service, a classification service, a recommendation service, a statistics service, a payment service, and the like. A software development kit is a collection of related documents, paradigms, and tools that assist in developing software that implements a target business.
In one possible implementation, after the service platform generates the software development kit, the software development kit is released so that the service providing system can obtain the software development kit.
In an embodiment, the step S21 generates a software development kit corresponding to the target service, including:
step S211, determining interface parameters corresponding to the target service, wherein the interface parameters comprise an access parameter, an access parameter and a signature parameter; the access parameter is the set access condition of the target service interface, and the signature parameter is used for carrying out security protection on the target service interface.
Step S212, generating a software development kit corresponding to the target service based on the interface parameters corresponding to the target service.
In this embodiment, the service platform defines interface parameters, including, but not limited to, an access parameter, an outgoing parameter, and a signature parameter, where the parameters for accessing the target service interface need to meet the defined access parameter, and the parameters outputted from the target service interface need to meet the defined outgoing parameter, and in order to ensure the security of the service platform interface, the signature parameter is designed to secure the target service interface. After defining the interface parameters, the service platform packages and generates a software development kit. The service platform defines interface parameters and the software development kit can ensure that the access parameters of the target service interface meet the requirements of the service platform, and provide preconditions for the service providing system to flexibly access the service platform.
In step S22, service information corresponding to a remote service is obtained, where the remote service is issued after the service providing system implements the target service based on the software development package; the service information is used to identify the remote service.
In this step, the service providing system provides specific service for the subsystem of the service platform, and the service extension of the service platform can be realized by accessing the service providing system to the service platform. Specifically, the remote service system obtains a software development kit of the service platform, develops an interface capable of realizing the target service according to service characteristics of the software development kit and the service providing system, realizes a recalled interface, and issues a remote service, and can realize the target service by calling the remote service. The service platform obtains service information corresponding to the remote service in order to extend the target service, where the service information is used to identify the remote service, where the service information may include a service name and a service identifier, and based on the service name and the service identifier, the service type provided and service system information for providing the service may be indicated, for example, according to the service information of the service providing system a, the service provided by the service providing system a may be known, and the provided service is a recall service.
For example, the service providing system is subsystem a, subsystem B and subsystem C in fig. 3, different subsystems may provide the same or different specific business services, and exemplary subsystem a, subsystem B and subsystem C may each provide recall services, or of course, subsystem a may provide recall services, subsystem B may provide statistics services, and subsystem C may provide payment services, where different services correspond to different software development packages. After a service platform issues a software development kit, a subsystem A, a subsystem B and a subsystem C acquire the software development kit, and the subsystem A develops a platform interface for realizing the target service according to the service characteristics provided by the subsystem A and the target service corresponding to the software development kit and issues a remote service A corresponding to service information A; the subsystem develops a platform interface for realizing the target service according to the service characteristics provided by the subsystem and the target service corresponding to the software development package, and issues a remote service B, wherein the remote service B corresponds to the service information B; and the subsystem C develops a platform interface for realizing the target service according to the service characteristics provided by the subsystem C and the target service corresponding to the software development package, and issues a remote service C corresponding to the service information C. The service platform obtains service information corresponding to the remote service through a service discovery mechanism, namely the service platform can obtain service information A corresponding to the remote service A, service information B corresponding to the remote service B and service information C corresponding to the remote service C. When the service providing system issues the remote service, the service providing system can issue the remote service to the registry, and the service platform can acquire service information corresponding to the remote service from the registry.
In step S23, a mapping relationship between the service information and the service call condition is configured, and a remote service reference is added based on the service information; the service call condition is configured as a condition factor for triggering and calling the remote service; the remote service reference is a proxy object corresponding to the remote service, and the mapping relation and the remote service reference are used for calling the remote service provided by the service providing system to realize the expansion of the target service.
In this step, the service call condition is configured as a condition factor for triggering the call of the remote service, if the service call condition is matched with the service call condition, the call can be performed, and if the service call condition is not matched with the service call condition, the call cannot be performed. The service call condition may be that a parameter type carried by the service call request is a set target type, for example, type=1; the service call condition may be that the service call request points to a target service provided by the remote service, for example, in the case that the remote service provides a recall service, the service call condition is that the service call request points to the recall service, and when the service call request intends to call the recall service, the service call condition is met. And configuring the mapping relation between the service information and the service call condition, so that the service information can be determined according to the mapping relation under the condition that a certain service call condition is met. Further, in order to extend the target service on the service platform, a remote service reference is added according to the service information, wherein the remote service reference is a proxy object corresponding to the remote service, that is, an object for representing the remote service is created on the service platform, and the proxy object is called to realize the calling of the remote service, so that the subsequent remote service provided by the service providing system can be quickly called according to the remote service reference.
In an embodiment, said adding a remote service reference based on said service information comprises: discovering the remote service based on the service name in the service information, and establishing a reference to the remote service; the established references to the remote service are stored to add remote service references.
In this embodiment, after the mapping relationship between the service information and the service call condition is configured, submitted configuration information exists in the service platform, the configured service information is determined according to the submitted configuration information, the service name in the configured service information is further determined, the service discovery mechanism is used to discover remote service, a reference to the remote service is established, and the initiated remote service reference is cached, so that the method in the remote service provided by the service providing system can be called according to the remote service reference in the subsequent process.
For example, as shown in fig. 3, after the subsystem a issues the remote service a, the remote service a corresponds to the service information a, the subsystem B issues the remote service B corresponds to the service information B, the subsystem C issues the remote service C corresponds to the service information C, the service platform obtains the service information a, the service information B and the service information C, and configures the service information a, the service information B and the service information C in a configuration database or a configuration center, where exemplary configuration content may be a service a identifier and a service a name; a service B identifier and a service B name; service C identification, service C name. When the configuration is carried out, the mapping relation between the service information and the service calling condition is also configured, for example, the service calling condition A corresponds to the service information A, the service calling condition B corresponds to the service information B, and the service calling condition C corresponds to the service information C. After the configuration is completed, submitting service configuration to a service platform, reading the service configuration by the service platform, establishing a reference to the remote service A according to the read service name A, and caching the reference of the remote service A as a remote service reference A of the remote service A; establishing a reference to the remote service B according to the read service name B, and caching the reference of the remote service B as a remote service reference B of the remote service B; and establishing a reference to the remote service C according to the read service name C, and caching the reference of the remote service C as a remote service reference C of the remote service C. After the remote service reference is added, the service platform can quickly realize the call of the remote service according to the configuration.
In an embodiment, the method further comprises:
in step S24, a service invocation request is received; determining target service information based on the mapping relation under the condition that the service call request accords with a target call condition; and calling the remote service provided by the service providing system based on the remote service reference corresponding to the target service information.
In this step, the service invocation request is data sent by the terminal for requesting to provide a specific service, for example, a request for providing a recall service. After the service platform receives the service call request, judging whether the service call request accords with the service call condition in the mapping relation, if the service call request is matched with the target call condition in the mapping relation, further determining target service information according to the configured mapping relation, determining remote service reference corresponding to the target service information, and calling the remote service provided by the service providing system according to the determined remote service reference, wherein the service platform provides a specific service corresponding to the service call request, but the service is essentially provided by the service providing system, so that the service range of the service platform is expanded under the condition that the service platform code is not changed. Of course, the service call request corresponding to the remote service can also be cached, that is, the service platform adds the received service call request into the cache queue of the request, and processes the request according to the sequence of the requests in the cache queue.
For example, there is a service providing system a and a service providing system B, the service providing system a provides a recall service, the service providing system B provides a statistics service, the service providing system a provides a remote service a according to a software development kit a issued by a service platform, the service providing system B provides a remote service B according to a software development kit B issued by the service platform, a mapping relationship between service information corresponding to the service providing system a and the service providing system B and a service call condition is configured in the service platform, i.e. type=1, the remote service a is called, type=2, and the remote service B is called. And a remote service reference A corresponding to the remote service A and a remote service reference B corresponding to the remote service B are added in the service platform, the method in the remote service A provided by the service providing system A can be called through the remote service reference A, and the method in the remote service B provided by the service providing system B can be called through the remote service reference B. And receiving a service call request, wherein the service call request carries parameters of type=1, determining target service information as remote service A according to the mapping relation, and further calling a method in the remote service A according to the remote service reference A to provide recall service for the terminal.
In the above embodiment, a software development kit for a target service is generated through a service platform, a service providing system issues a remote service after implementing the target service according to the software development kit, after the remote service is issued, the service platform obtains service information corresponding to the remote service, the service information is used for identifying the remote service, a mapping relationship between the service information and a remote service call condition is configured in the service platform, and a remote service reference is added based on the service information, wherein the service call condition is a configured condition factor for triggering the remote service call, the remote service reference is a proxy object corresponding to the remote service, and the remote service call can be implemented by calling the proxy object, so that the remote service reference is used for implementing the remote service call. After receiving the service call request, the remote service can be called according to the configured mapping relation and the added service reference, and then the service of the service platform is flexibly expanded through the access of the service providing system under the condition of not changing the code of the service platform, that is, when the service is expanded, the development of a new operation code on the service platform is not needed, the development cost is reduced, and the service expansion efficiency of the service platform is improved.
In some embodiments, the method further comprises:
in step S25, monitoring the remote service call to determine a monitoring record; and under the condition that the monitoring record accords with a preset abnormal condition, processing the call of the remote service, wherein the processing comprises current limiting processing, degradation processing or fusing processing.
In the step, mapping conditions are configured on the service platform, remote service call can be realized after remote service reference is added, and in order to ensure that the service platform can normally and timely provide high-quality service for users, remote service provided by a call service providing system is monitored, recorded and monitoring records are determined. The method comprises the steps of presetting an abnormal condition, and under the condition that monitoring records meet the preset abnormal condition, proving that the service platform needs to be adjusted in time, so that remote services provided by a calling service providing system are processed, such as current limiting processing, degradation processing or fusing processing, and the normal operation of the service platform is ensured. Of course, the monitoring record not only can timely adjust the service platform under the condition that the monitoring record accords with the preset abnormal condition, but also can be used as a monitoring log to provide historical call data when data analysis is required to be carried out on the call of the remote service.
In one possible implementation manner, the preset abnormal condition includes that the number of calls in the preset time period is greater than a first set value, and the first set value may be a preset value of a platform manager according to experience, or may be a historical statistic value obtained by counting the historical call number when the call error is continuously returned in the preset time period in the historical call data. When the monitoring record accords with the preset abnormal condition, the remote service provided by the calling service providing system is proved to be too frequent, and at the moment, calling errors can always occur, so that the normal operation of the service platform is ensured, and the remote service is timely subjected to fusing processing.
In one possible implementation, the preset abnormal condition includes that the load of the service platform exceeds a second set value, and the second set value may be a preset value according to experience of a platform manager. When the monitoring record accords with the preset abnormal condition, the service platform is proved to be overloaded, and the remote service call can be subjected to degradation processing.
In one possible implementation, the preset abnormal condition includes that the supporting capability of the service platform exceeds a third set value, and the third set value may be a preset value according to experience of a platform manager. When the monitoring record accords with the preset abnormal condition, the service platform supporting pressure is proved to be overlarge, and the remote service can be invoked for carrying out flow limiting processing.
In some embodiments, the method further comprises:
in step S26, receiving update information corresponding to the remote service; and updating the mapping relation corresponding to the remote service and the remote service reference based on the updating information corresponding to the remote service.
In this step, the update information may be information that affects the service information and the remote service reference, for example, change the service name and the service identifier in the service information, and change the address of the remote service reference, so as to ensure that the remote service can be normally invoked later, update the mapping relationship and the remote service reference in the service platform, so that the remote service can be invoked later according to the updated mapping relationship and the remote service reference, and ensure that the remote service can be invoked smoothly.
Fig. 4 is a block diagram illustrating a service extension apparatus provided at a server according to an exemplary embodiment. The device comprises a development kit generation module 41, an information acquisition module 42 and an information processing module 43.
The development kit generating module 41 is configured to generate a software development kit corresponding to the target service;
the information obtaining module 42 is configured to obtain service information corresponding to a remote service, where the remote service is issued after the service providing system implements the target service based on the software development package; the service information is used for identifying the remote service;
the information processing module 43 is configured to configure a mapping relationship between the service information and service call conditions, and add remote service references based on the service information; the service call condition is configured as a condition factor for triggering and calling the remote service; the remote service reference is a proxy object corresponding to the remote service, and the mapping relation and the remote service reference are used for calling the remote service provided by the service providing system to realize the expansion of the target service.
Optionally, the apparatus further comprises:
a request receiving module configured to receive a service call request;
the information determining module is configured to determine target service information based on the mapping relation under the condition that the service call request meets the target call condition;
and the call processing module is configured to call the remote service provided by the service providing system based on the remote service reference corresponding to the target service information.
Optionally, the development kit generating module 41 includes:
the parameter determining unit is configured to determine interface parameters corresponding to the target service, wherein the interface parameters comprise an access parameter, an access parameter and a signature parameter; the access parameter is the set access condition of the target service interface, and the signature parameter is used for carrying out security protection on the target service interface;
and the development packet generating unit is configured to generate a software development packet corresponding to the target service based on the interface parameter corresponding to the target service.
Optionally, the method further comprises:
the monitoring processing module is configured to monitor the call of the remote service and determine a monitoring record;
and the exception handling module is configured to handle the call of the remote service under the condition that the monitoring record meets the preset exception condition, wherein the handling comprises current limiting handling, degradation handling or fusing handling.
Optionally, the information acquisition module includes:
a service reference unit configured to discover the remote service based on a service name in the service information, and establish a reference to the remote service; storing the established reference to the remote service to add the remote service reference.
Optionally, the apparatus further comprises:
the information receiving module is configured to receive the update information corresponding to the remote service;
and the data updating module is configured to update the mapping relation corresponding to the remote service and the remote service reference based on the updating information corresponding to the remote service.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 5 is a block diagram of an electronic device, which may be a server or similar computing device, shown in accordance with an exemplary embodiment. Take the example of electronic device 500 being a server. Referring to fig. 5, electronic device 500 includes a processing component 522 that further includes one or more processors and memory resources represented by memory 532 for storing instructions, such as applications, executable by processing component 522. The application programs stored in the memory 532 may include one or more modules each corresponding to a set of instructions. Further, the processing component 522 is configured to execute instructions to perform the business extension methods described above.
The electronic device 500 may also include a power component 526 configured to perform power management of the electronic device 500, a wired or wireless network interface 550 configured to connect the electronic device 500 to a network, and an input output (I/O) interface 558. The electronic device 500 may operate based on an operating system stored in the memory 532, such as Windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM, or the like.
In an exemplary embodiment, a computer-readable storage medium is also provided, such as memory 532, comprising instructions executable by processing component 522 of electronic device 500 to perform the business extension methods described above. Alternatively, the computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In an exemplary embodiment, a computer program product is also provided, comprising a computer program or computer instructions which, when executed by a processor, implement the above-described service extension method.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A method for expanding services, comprising:
generating a software development kit corresponding to the target service; the software development kit is a collection of related documents, examples and tools that assist in developing software that implements a target service;
acquiring service information corresponding to a remote service, wherein the remote service is issued after the service providing system realizes the target service based on the software development package; the service information is used for identifying the remote service;
configuring a mapping relation between the service information and service calling conditions, and adding remote service references based on the service information; the service call condition is configured as a condition factor for triggering and calling the remote service; the remote service reference is a proxy object corresponding to the remote service, and the mapping relation and the remote service reference are used for calling the remote service provided by the service providing system to realize the expansion of the target service.
2. The method according to claim 1, wherein the method further comprises:
receiving a service call request;
determining target service information based on the mapping relation under the condition that the service calling request accords with a target service calling condition;
and calling the remote service provided by the service providing system based on the remote service reference corresponding to the target service information.
3. The method of claim 1, wherein generating the software development kit corresponding to the target service comprises:
determining interface parameters corresponding to the target service, wherein the interface parameters comprise an access parameter, an access parameter and a signature parameter; the access parameter is the set access condition of the target service interface, and the signature parameter is used for carrying out security protection on the target service interface;
and generating a software development package corresponding to the target service based on the interface parameters corresponding to the target service.
4. The method according to claim 1, wherein the method further comprises:
monitoring the call of the remote service, and determining a monitoring record;
and under the condition that the monitoring record accords with a preset abnormal condition, processing the call of the remote service, wherein the processing comprises current limiting processing, degradation processing or fusing processing.
5. The method of claim 1, wherein the adding a remote service reference based on the service information comprises:
discovering the remote service based on the service name in the service information, and establishing a reference to the remote service; storing the established reference to the remote service to add the remote service reference.
6. The method according to claim 1, wherein the method further comprises:
receiving update information corresponding to the remote service;
and updating the mapping relation corresponding to the remote service and the remote service reference based on the updating information corresponding to the remote service.
7. A service extension apparatus, comprising:
the development packet generation module is configured to generate a software development packet corresponding to the target service; the software development kit is a collection of related documents, examples and tools that assist in developing software that implements a target service;
the information acquisition module is configured to acquire service information corresponding to a remote service, wherein the remote service is issued after the service providing system realizes the target service based on the software development package; the service information is used for identifying the remote service;
the information processing module is configured to configure the mapping relation between the service information and the service call condition and add remote service references based on the service information; the service call condition is configured as a condition factor for triggering and calling the remote service; the remote service reference is a proxy object corresponding to the remote service, and the mapping relation and the remote service reference are used for calling the remote service provided by the service providing system to realize the expansion of the target service.
8. The apparatus of claim 7, wherein the apparatus further comprises:
a request receiving module configured to receive a service call request;
the information determining module is configured to determine target service information based on the mapping relation under the condition that the service call request accords with a target service call condition;
and the call processing module is configured to call the remote service provided by the service providing system based on the remote service reference corresponding to the target service information.
9. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the service extension method of any one of claims 1 to 6.
10. A storage medium, which when executed by an instruction processor in the storage medium, enables a server to perform the service extension method of any one of claims 1 to 6.
CN202211057623.3A 2022-08-31 2022-08-31 Service expansion method, device, electronic equipment and storage medium Active CN115514665B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211057623.3A CN115514665B (en) 2022-08-31 2022-08-31 Service expansion method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211057623.3A CN115514665B (en) 2022-08-31 2022-08-31 Service expansion method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115514665A CN115514665A (en) 2022-12-23
CN115514665B true CN115514665B (en) 2023-11-21

Family

ID=84501526

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211057623.3A Active CN115514665B (en) 2022-08-31 2022-08-31 Service expansion method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115514665B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115934158B (en) * 2023-02-23 2023-06-23 云筑信息科技(成都)有限公司 Personalized configuration method based on service identity

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110795109A (en) * 2019-10-25 2020-02-14 北京达佳互联信息技术有限公司 Function expansion method and device and electronic equipment
CN111913998A (en) * 2020-09-11 2020-11-10 北京百度网讯科技有限公司 Data processing method, device, equipment and storage medium
CN112559095A (en) * 2020-12-16 2021-03-26 微医云(杭州)控股有限公司 Target service execution method, system, server and storage medium
CN112650247A (en) * 2020-12-22 2021-04-13 北京百度网讯科技有限公司 Remote control method, cockpit, cloud server and automatic driving vehicle
CN113220290A (en) * 2021-04-23 2021-08-06 杭州数跑科技有限公司 Method, device, equipment and storage medium for realizing business function of application
CN113312037A (en) * 2021-06-15 2021-08-27 北京百度网讯科技有限公司 Data processing method, device and equipment applied to microservice and storage medium
CN114816795A (en) * 2022-04-25 2022-07-29 北京沃东天骏信息技术有限公司 Interface extension method, device, remote calling server and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110795109A (en) * 2019-10-25 2020-02-14 北京达佳互联信息技术有限公司 Function expansion method and device and electronic equipment
CN111913998A (en) * 2020-09-11 2020-11-10 北京百度网讯科技有限公司 Data processing method, device, equipment and storage medium
CN112559095A (en) * 2020-12-16 2021-03-26 微医云(杭州)控股有限公司 Target service execution method, system, server and storage medium
CN112650247A (en) * 2020-12-22 2021-04-13 北京百度网讯科技有限公司 Remote control method, cockpit, cloud server and automatic driving vehicle
CN113220290A (en) * 2021-04-23 2021-08-06 杭州数跑科技有限公司 Method, device, equipment and storage medium for realizing business function of application
CN113312037A (en) * 2021-06-15 2021-08-27 北京百度网讯科技有限公司 Data processing method, device and equipment applied to microservice and storage medium
CN114816795A (en) * 2022-04-25 2022-07-29 北京沃东天骏信息技术有限公司 Interface extension method, device, remote calling server and system

Also Published As

Publication number Publication date
CN115514665A (en) 2022-12-23

Similar Documents

Publication Publication Date Title
CN111913818A (en) Method for determining dependency relationship between services and related device
CN110445632B (en) Method and device for preventing client from crashing
CN110324209B (en) Micro-service system monitoring method and device, electronic equipment and computer readable medium
CN111045833A (en) Interface calling method and device
CN115514665B (en) Service expansion method, device, electronic equipment and storage medium
CN112765520A (en) Message pushing method, device, equipment and storage medium
CN111147310A (en) Log tracking processing method, device, server and medium
CN113190417A (en) Microservice state detection method, model training method, device and storage medium
CN106612263B (en) Method and equipment for processing application access request
CN112468585B (en) Data transmission method and device, electronic equipment and storage medium
CN113905091A (en) Method and device for processing access request
CN114040032A (en) Protocol conversion method, system, storage medium and electronic equipment
EP3672203A1 (en) Distribution method for distributed data computing, device, server and storage medium
CN112671945A (en) Method, device, computer equipment and storage medium for managing IP proxy pool
CN110930253A (en) Intelligent contract internal main key generation method and device, computer equipment and storage medium
CN115017538A (en) Data processing method and device, electronic equipment and storage medium
CN111049938B (en) Message notification method and device, electronic equipment and readable storage medium
CN113590352A (en) Data calling method, device, equipment and readable storage medium
KR20190015817A (en) Method, Apparatus and System for Monitoring Using Middleware
CN109547552B (en) API request processing method and device, storage medium and electronic equipment
CN113760693A (en) Method and apparatus for local debugging of microservice systems
CN113326060A (en) Service request processing method, device and system and service configuration method and device
CN113761433A (en) Service processing method and device
CN113741912A (en) Model management system, method, device and equipment
CN114884807A (en) Link log generation method and device, Internet of things platform 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
GR01 Patent grant
GR01 Patent grant