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

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

Info

Publication number
CN115514665A
CN115514665A CN202211057623.3A CN202211057623A CN115514665A CN 115514665 A CN115514665 A CN 115514665A CN 202211057623 A CN202211057623 A CN 202211057623A CN 115514665 A CN115514665 A CN 115514665A
Authority
CN
China
Prior art keywords
service
remote
remote service
information
calling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211057623.3A
Other languages
Chinese (zh)
Other versions
CN115514665B (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

Images

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

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 remote service, and issuing the remote service after the remote service realizes target service for a service providing system based on a software development kit; the service information is used for identifying the remote service; configuring a mapping relation between service information and service calling conditions, and adding remote service citation based on the service information; the service calling condition is a configured 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 extended target service. According to the technical scheme provided by the disclosure, 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 and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of internet application technologies, and in particular, to a service expansion method and apparatus, an electronic device, and a storage medium.
Background
With the continuous development of internet application technology, in order to meet the diversified requirements of users, a service platform providing services for users often needs to provide multiple service services. In the related art, when a business platform expands a certain business service, a corresponding new operation code needs to be developed, so that the development cost is high, and the business expansion efficiency is low.
Disclosure of Invention
The disclosure provides a service expansion method, a service expansion device, an electronic device and a storage medium, which at least solve the problem of low expansion efficiency when a service platform expands a service in the related art. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, a method for service extension is provided, 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 kit; the service information is used for identifying the remote service;
configuring a mapping relation between the service information and a service calling condition, and adding a remote service reference based on the service information; the service calling condition is a configured condition factor for triggering the calling 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 of the target service.
Optionally, the method further comprises:
receiving a service calling request;
determining target service information based on the mapping relation under the condition that the service calling request accords with target calling conditions;
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 a 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, the connect-out parameter is the set connect-out condition of the target service interface, and the signature parameter is used for performing security protection on the target service interface;
and generating a software development kit corresponding to the target service based on the interface parameters corresponding to the target service.
Optionally, the method further comprises:
monitoring the calling of the remote service and determining a monitoring record;
and processing the call of the remote service under the condition that the monitoring record meets a preset abnormal condition, 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 updating information corresponding to the remote service;
and updating the mapping relation and the remote service reference corresponding to the remote service based on the updating information corresponding to the remote service.
According to a second aspect of the embodiments of the present disclosure, there is provided a service extension apparatus, including:
the development kit generation module is configured to generate a software development kit corresponding to the target service;
the information acquisition module is configured to acquire service information corresponding to a remote service, and the remote service is issued after the service providing system realizes the target service based on the software development kit; the service information is used for identifying the remote service;
the information processing module is configured to configure mapping relation between the service information and service calling conditions, and add remote service reference based on the service information; the service calling condition is a configured condition factor for triggering the calling 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 of the target service.
Optionally, the apparatus further comprises:
a request receiving module configured to receive a service invocation request;
the information determining module is configured to determine target service information based on the mapping relation under the condition that the service calling request meets a target calling condition;
and the calling 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 includes:
a parameter determining unit configured to determine interface parameters corresponding to the target service, where the interface parameters include an access parameter, and a signature parameter; the access parameter is the set access condition of the target service interface, the connect-out parameter is the set connect-out condition of the target service interface, and the signature parameter is used for performing security protection on the target service interface;
and the development kit generating unit is configured to generate a software development kit corresponding to the target service based on the interface parameters corresponding to the target service.
Optionally, the method further comprises:
the monitoring processing module is configured to monitor the calling 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 a preset exception condition, wherein the handling comprises current limiting handling, degradation handling or fusing handling.
Optionally, the information obtaining 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:
an information receiving module configured to receive update information corresponding to the remote service;
a data updating module configured to update the mapping relationship and the remote service reference corresponding to the remote service based on update information corresponding to the remote service.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
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 expansion method according to 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, wherein the computer program or computer instructions, when executed by a processor, implement the service extension method of the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the method comprises the steps that a software development kit aiming at a target service is generated through a service platform, a service providing system issues a remote service after the target service is realized according to the software development kit, after the remote service is issued, the service platform acquires 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 a remote service invoking condition is configured in the service platform, and a remote service reference is added based on the service information, wherein the service invoking condition is a configured condition factor for triggering remote service invoking, the remote service reference is a proxy object corresponding to the remote service, and the remote service invoking can be realized by invoking the proxy object, so that the remote service reference is used for invoking the remote service. After receiving the service calling request, the service platform can call the remote service according to the configured mapping relation and the added remote service reference, and then the service of the service platform is flexibly expanded through the access of the service providing system under the condition that the code of the service platform is not changed, namely, when the service is expanded, the development of new operation codes is not needed 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 present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a schematic diagram of an application environment illustrating a method of service extension according to an exemplary embodiment;
FIG. 2 is a first flowchart illustrating a service expansion method according to an example embodiment;
FIG. 3 is a flow chart diagram two illustrating a service expansion method in accordance with an exemplary embodiment;
fig. 4 is a block diagram illustrating a service extension apparatus according to an exemplary embodiment;
FIG. 5 is a block diagram illustrating a server in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood, the technical solutions in 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 above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Referring to fig. 1, a schematic diagram of an application environment of a service expansion 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 present embodiment is not particularly limited to the number and kinds of the service providing systems.
The application environment may further include at least one terminal 13, and the terminal 13 may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, and the like. The terminal 13 is configured to send a service invocation request to the service platform, and the service platform 11 invokes a remote service provided by the service providing system 12 according to the service invocation request sent by the terminal 13, so as to implement a target service.
Fig. 2 is a flowchart illustrating a service extension method according to an exemplary embodiment, which may be used in the service platform shown in fig. 1, and includes 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 scene, such as 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 relevant documents, paradigms, and tools that assist in developing software that implements a target service.
In a possible implementation manner, after the service platform generates the software development kit, the software development kit is issued, so that the service providing system can acquire the software development kit.
In an embodiment, the step S21 of generating a software development kit corresponding to the target service includes:
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, the export parameter is the set export condition of the target service interface, and the signature parameter is used for performing security protection on the target service interface.
Step S212, based on the interface parameter corresponding to the target service, a software development kit corresponding to the target service is generated.
In this embodiment, interface parameters are defined by the service platform, where the interface parameters include, but are not limited to, an access parameter, a pickup parameter, and a signature parameter, the parameters accessing the target service interface need to satisfy the defined access parameter, the parameters output from the target service interface need to satisfy the defined pickup parameter, and in order to ensure the security of the interface passing through the service platform, the signature parameter is designed to perform security protection on the target service interface. And after defining the interface parameters, the service platform packages and generates a software development package. The interface parameters and the software development kit are defined by the service platform, so that the access parameters of the target service interface can meet the requirements of the service platform, and preconditions are provided for the service providing system to flexibly access the service platform.
In step S22, service information corresponding to a remote service is acquired, where the remote service is issued after the service providing system implements the target service based on the software development kit; the service information is used to identify the remote service.
In this step, the service providing system provides a specific service for the subsystem of the service platform, and the service expansion 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, such as an interface for realizing recall, according to the service characteristics of the software development kit and the service providing system, and issues a remote service, and the target service can be realized by calling the remote service. The service platform obtains service information corresponding to the remote service for extending 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 may indicate a type of the provided service and service system information of the provided service based on the service name and the service identifier, for example, it may be known that the service provided by the service providing system a is the service provided by the service providing system a according to the service information of the service providing system a, and the provided service is a recall service.
For example, the service providing system is the subsystem a, the subsystem B, and the subsystem C in fig. 3, different subsystems may provide the same or different specific service services, exemplary subsystems a, B, and C may all provide recall service, or subsystem a may provide recall service, subsystem B provides statistical service, and subsystem C provides payment service, where different services correspond to different software development kits. After a service platform releases a software development kit, a subsystem A, a subsystem B and a subsystem C acquire the software development kit, 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 a remote service A is released, wherein the remote service A corresponds to service information A; the subsystem develops a platform interface for realizing the target service according to the provided service characteristics and the target service corresponding to the software development kit, and issues a remote service B corresponding 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 kit, and issues a remote service C corresponding to the service information C. The service platform acquires service information corresponding to the remote service through a service discovery mechanism, namely the service platform can acquire 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 invocation condition is configured, and a remote service reference is added based on the service information; the service calling condition is a configured condition factor for triggering the calling 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 of the target service.
In this step, the service invocation condition is a configured condition factor for triggering invocation of the remote service, and if the service invocation condition is matched with the service invocation condition, the invocation can be performed, and if the service invocation condition is not matched with the service invocation condition, the invocation cannot be performed. The service calling condition may be that a parameter type carried by the service calling request is a set target type, such as type =1; the service invocation condition may also be that the service invocation request is directed to a target service provided by the remote service, for example, in a case where the remote service is provided as a recall service, the service invocation condition is that the service invocation request is directed to the recall service, and when the service invocation request intends to invoke the recall service, the service invocation condition is met. And configuring the mapping relation between the service information and the service calling condition, so that the service information can be determined according to the mapping relation under the condition that a certain service calling 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, 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 remote service is called by calling the proxy object, so that the remote service provided by the service providing system is called quickly according to the remote service reference subsequently.
In an embodiment, 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 a remote service reference.
In this embodiment, after the mapping relationship between the service information and the service invocation condition is configured, the submitted configuration information may exist 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 remote service is discovered by using a service discovery mechanism, the 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 invoked according to the remote service reference in the subsequent process.
For example, as shown in fig. 3, after a subsystem a issues a remote service a, the remote service a corresponds to service information a, a subsystem B issues a remote service B, the remote service B corresponds to service information B, a subsystem C issues a remote service C, and the remote service C corresponds to service information C, a service platform acquires 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; service B identification, service B name; service C identification, service C name. When 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 reference to the remote service A according to the read service name A, and caching the reference of the remote service A as the 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 to be used as the 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 to be used as the remote service reference C of the remote service C. After the remote service reference is added, the service platform can rapidly 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 calling request meets a target 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.
In this step, the service invocation request is data sent by the terminal for requesting the provision of a specific service, for example, a request for providing a recall service. After the service platform receives the service calling request, judging whether the service calling request conforms to the service calling condition in the mapping relation, if the service calling request is matched with the target calling condition in the mapping relation, further determining target service information according to the configured mapping relation, determining remote service quotation corresponding to the target service information, and calling the remote service provided by the service providing system according to the determined remote service quotation, wherein the service platform provides a specific service corresponding to the service calling request at the moment, but the service is substantially provided by the service providing system, so that the service range of the service platform is expanded under the condition of not changing a service platform code. Certainly, the service invocation request corresponding to the remote service may also be cached, that is, the service platform adds the received service invocation request to the cache queue of the request, and processes the request according to the request sequence in the cache queue.
For example, a service providing system a and a service providing system B exist, the service providing system a provides a recall service, the service providing system B provides a statistical service, the service providing system a provides a remote service a according to a software development kit a published by a service platform, the service providing system B provides a remote service B according to a software development kit B published by a service platform, and a mapping relationship between service information and service calling conditions, i.e., type =1, corresponding to the service providing system a and the service providing system B, is configured in the service platform, the remote service a is called, type =2, and the remote service B is called. And adding a remote service reference A corresponding to the remote service A and a remote service reference B corresponding to the remote service B in the service platform, wherein 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 calling request, wherein the service calling request carries a parameter of type =1, determining target service information as a remote service A according to the mapping relation, and calling a method in the remote service A according to a remote service reference A to provide a recall service for the terminal.
In the above embodiment, a software development kit for a target service is generated by 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, where the service information is used to identify the remote service, configures a mapping relationship between the service information and a remote service invocation condition in the service platform, and adds a remote service reference based on the service information, where the service invocation condition is a configured condition factor for triggering invocation of the remote service, the remote service reference is a proxy object corresponding to the remote service, and the remote service invocation can be implemented by invoking the proxy object, and thus the remote service reference is used to implement invocation of the remote service. After receiving the service calling 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 extended through the access of the service providing system under the condition that the code of the service platform is not changed, namely, when the service is extended, the development of new operation codes is not required to be carried out on the service platform, the development cost is reduced, and the service extension efficiency of the service platform is improved.
In some embodiments, the method further comprises:
in step S25, the call of the remote service is monitored, and a monitoring record is determined; and processing the call of the remote service under the condition that the monitoring record meets the preset abnormal condition, wherein the processing comprises current limiting processing, degrading processing or fusing processing.
In this step, the mapping condition is configured for the service platform, and the remote service invocation can be realized after the remote service invocation is added, so as to ensure that the service platform can normally and timely provide high-quality service for the user, the remote service provided by the invocation service providing system is monitored, recorded and the monitoring record is determined. The abnormal conditions are preset, and when the monitoring records meet the preset abnormal conditions, the service platform is proved to be required to be adjusted in time, so that the remote services provided by the 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 when the monitoring record meets the preset abnormal condition, but also can be used as a monitoring log to provide historical calling data when data analysis is needed to be carried out on the calling of the remote service.
In a possible implementation manner, the preset abnormal condition includes that the number of calls within the preset duration is greater than a first set value, the first set value may be a preset value according to experience of a platform manager, or may be a historical statistical value determined by performing statistics on historical call data according to the historical number of calls when a call error is continuously returned within the preset duration. When the monitoring record meets the preset abnormal condition, the remote service provided by the calling service providing system is proved to be too frequent, and at the moment, a calling error may always occur, so that the fusing processing is timely carried out on the calling of the remote service in order to ensure the normal operation of the service platform.
In a possible implementation manner, the preset exception 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 meets the preset abnormal condition, the service platform is proved to be over loaded, and the remote service can be called for degradation processing at the moment.
In a possible implementation manner, the preset exception condition includes that the supporting capability of the service platform exceeds a third set value, and the third set value may be a preset numerical value according to experience of a platform manager. When the monitoring record accords with the preset abnormal condition, the service platform is proved to have overlarge supporting pressure, and the flow limiting processing can be carried out on the calling of the remote service.
In some embodiments, the method further comprises:
in step S26, receiving update information corresponding to the remote service; and updating the mapping relation and the remote service reference corresponding to the remote service based on the updating information corresponding to the remote service.
In this step, the update information may be information that affects service information and remote service citation issued by the service providing system, for example, a service name and a service identifier in the service information are changed, and an address of the remote service citation is changed, at this time, in order to ensure that the remote service can be normally called subsequently, a mapping relationship and the remote service citation in the service platform are updated, so that the remote service is called subsequently according to the updated mapping relationship and the remote service citation, and it is ensured that the remote service can be called smoothly.
Fig. 4 is a block diagram illustrating a service extension apparatus according to an exemplary embodiment, the apparatus being provided in a server. The device comprises a development kit generating module 41, an information acquiring module 42 and an information processing module 43.
The development kit generation 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 kit; 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 a service calling condition, and add a remote service reference based on the service information; the service calling condition is a configured condition factor for triggering the calling 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 of the target service.
Optionally, the apparatus further comprises:
a request receiving module configured to receive a service invocation request;
the information determining module is configured to determine target service information based on the mapping relation under the condition that the service calling request meets a target calling condition;
and the calling 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:
a parameter determining unit configured to determine interface parameters corresponding to the target service, where the interface parameters include an access parameter, and a signature parameter; the access parameter is the set access condition of the target service interface, the connect-out parameter is the set connect-out condition of the target service interface, and the signature parameter is used for performing security protection on the target service interface;
and the development kit generating unit is configured to generate a software development kit corresponding to the target service based on the interface parameters corresponding to the target service.
Optionally, the method further comprises:
the monitoring processing module is configured to monitor the calling 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 a preset exception condition, wherein the handling comprises current limiting handling, degradation handling or fusing handling.
Optionally, the information obtaining 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:
an information receiving module configured to receive update information corresponding to the remote service;
a data updating module configured to update the mapping relationship and the remote service reference corresponding to the remote service based on update information corresponding to the remote service.
With regard to the apparatus in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
Fig. 5 is a block diagram illustrating an electronic device, which may be a server or similar computing device, according to an example embodiment. Take the example where the electronic device 500 is 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, that are executable by processing component 522. The application programs stored in memory 532 may include one or more modules that each correspond to a set of instructions. Further, the processing component 522 is configured to execute instructions to perform the service extension method described above.
The electronic device 500 may also include a power component 526 configured to perform power management for 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 memory 532, such as Windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM, or the like.
In an exemplary embodiment, a computer-readable storage medium comprising instructions, such as the memory 532 comprising instructions, executable by the processing component 522 of the electronic device 500 to perform the service expansion method described above is also provided. Alternatively, the computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, there is also provided a computer program product comprising a computer program or computer instructions which, when executed by a processor, implements the service extension method described above.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, 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 will be understood that the invention is not limited to the precise arrangements that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (10)

1. A service expansion method is characterized by comprising 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 the service providing system realizes the target service based on the software development kit; the service information is used for identifying the remote service;
configuring a mapping relation between the service information and a service calling condition, and adding a remote service reference based on the service information; the service calling condition is a configured condition factor for triggering the calling of the remote service; the remote service quote is a proxy object corresponding to the remote service, and the mapping relation and the remote service quote are used for calling the remote service provided by the service providing system to realize the expansion of the target service.
2. The method of claim 1, further comprising:
receiving a service calling request;
determining target service information based on the mapping relation under the condition that the service calling request meets a target 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 the generating a 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, the export parameter is the set export condition of the target service interface, and the signature parameter is used for performing security protection on the target service interface;
and generating a software development kit corresponding to the target service based on the interface parameters corresponding to the target service.
4. The method of claim 1, further comprising:
monitoring the calling of the remote service and determining a monitoring record;
and processing the call of the remote service under the condition that the monitoring record meets the preset abnormal condition, wherein the processing comprises current limiting processing, degrading processing or fusing processing.
5. The method of claim 1, wherein adding a remote service reference based on the service information comprises:
discovering the remote service based on a 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 of claim 1, further comprising:
receiving updating information corresponding to the remote service;
and updating the mapping relation and the remote service reference corresponding to the remote service based on the updating information corresponding to the remote service.
7. A service extension apparatus, comprising:
the development kit generation module is configured to generate a software development kit corresponding to the target service;
the information acquisition module is configured to acquire service information corresponding to a remote service, and the remote service is issued after the service providing system realizes the target service based on the software development kit; the service information is used for identifying the remote service;
the information processing module is configured to configure a mapping relation between the service information and a service calling condition and add remote service reference based on the service information; the service calling condition is a configured condition factor for triggering the calling of the remote service; the remote service quote is a proxy object corresponding to the remote service, and the mapping relation and the remote service quote 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, further comprising:
a request receiving module configured to receive a service invocation request;
the information determining module is configured to determine target service information based on the mapping relation under the condition that the service calling request meets a target calling condition;
and the calling 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 in which an instruction processor, when executed, 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 true CN115514665A (en) 2022-12-23
CN115514665B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115934158A (en) * 2023-02-23 2023-04-07 云筑信息科技(成都)有限公司 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

Cited By (2)

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

Also Published As

Publication number Publication date
CN115514665B (en) 2023-11-21

Similar Documents

Publication Publication Date Title
CN110557284B (en) Data aggregation method and device based on client gateway
CN113691635B (en) Method and device for calling microservice, electronic equipment and readable storage medium
CN110445632B (en) Method and device for preventing client from crashing
CN115514665B (en) Service expansion method, device, electronic equipment and storage medium
CN110677475A (en) Micro-service processing method, device, equipment and storage medium
CN113190417A (en) Microservice state detection method, model training method, device and storage medium
CN114598750B (en) Data request processing method, device and storage medium
CN114090623A (en) Method and device for creating cache resources, electronic equipment and storage medium
CN113905091B (en) Method and device for processing access request
CN106612263B (en) Method and equipment for processing application access request
CN114328029A (en) Backup method and device of application resources, electronic equipment and storage medium
CN112650804B (en) Big data access method, device, system and storage medium
CN113282589A (en) Data acquisition method and device
CN110930253B (en) Method and device for generating main key inside intelligent contract, computer equipment and storage medium
CN111475230B (en) Application function configuration method and device and electronic equipment
CN113778565A (en) Interface data processing method and device
CN110275701B (en) Data processing method, device, medium and computing equipment
CN111885184A (en) Method and device for processing hot spot access keywords in high concurrency scene
CN113535439B (en) Service request processing method, device, equipment and storage medium
CN111949428B (en) Method, device, equipment and storage medium for improving service availability of small program
CN115131067A (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
CN113326060A (en) Service request processing method, device and system and service configuration method and device
CN112860398A (en) Data processing method, device, equipment and medium based on rule engine

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