CN114398035A - Method, apparatus, device and computer readable medium for providing service using component - Google Patents

Method, apparatus, device and computer readable medium for providing service using component Download PDF

Info

Publication number
CN114398035A
CN114398035A CN202111577912.1A CN202111577912A CN114398035A CN 114398035 A CN114398035 A CN 114398035A CN 202111577912 A CN202111577912 A CN 202111577912A CN 114398035 A CN114398035 A CN 114398035A
Authority
CN
China
Prior art keywords
data source
configuration information
data
module
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111577912.1A
Other languages
Chinese (zh)
Inventor
张帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun 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 Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202111577912.1A priority Critical patent/CN114398035A/en
Publication of CN114398035A publication Critical patent/CN114398035A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/35Creation or generation of source code model driven
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

Embodiments of the present disclosure disclose methods, apparatuses, electronic devices, and computer-readable media for providing services using components. One embodiment of the method comprises: responding to the completion of the deployment of the target component in the module service platform, and storing the extended service package of the target component according to the service directory of the module service platform; acquiring configuration information of a target component; and responding to the received notice that the business resource packet representing the target component is uploaded, acquiring the corresponding business resource packet based on the configuration information, and dynamically loading and expanding the business packet. This embodiment enables full utilization of already developed components.

Description

Method, apparatus, device and computer readable medium for providing service using component
Technical Field
Embodiments of the present disclosure relate to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a computer-readable medium for providing a service using a component.
Background
With the rapid development of the internet industry, different demands are increasing. For each requirement, a developer needs to develop a corresponding component or module to meet the requirement.
However, when such a scheme is adopted, there are often technical problems as follows:
first, extensive and repeated research and development is caused, and existing components cannot be fully utilized.
Secondly, the developed components or modules are strongly coupled with the service, and flexible data source expansion cannot be performed.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter. Some embodiments of the present disclosure propose methods, apparatuses, devices and computer readable media for providing services using components to solve one or more of the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide a method for providing a service by using a component, which is applied to a module service platform, and the method includes: responding to the completion of the deployment of the target component in the module service platform, and storing the extended service package of the target component according to the service directory of the module service platform; acquiring configuration information of a target component; and responding to the received notice that the business resource packet representing the target component is uploaded, acquiring the corresponding business resource packet based on the configuration information, and dynamically loading and expanding the business packet.
In a second aspect, some embodiments of the present disclosure provide an apparatus for providing a service using a component, the apparatus comprising: the storage unit is configured to respond to the completion of the deployment of the target component in the module service platform and store the extended service package of the target component according to the service directory of the module service platform; a component configuration information acquisition unit configured to acquire configuration information of a target component; and the loading unit is configured to respond to the received notification that the service resource packet representing the target component is uploaded, acquire the corresponding service resource packet based on the configuration information, and dynamically load the expansion service packet.
In a third aspect, some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors, cause the one or more processors to implement the method described in any of the implementations of the first aspect.
In a fourth aspect, some embodiments of the present disclosure provide a computer readable medium on which a computer program is stored, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect.
The above embodiments of the present disclosure have the following advantages: by deploying the components developed by the third party in the module service platform, the developed components can be fully utilized. The reason why the related art cannot make full use of the existing module is that: by adopting the shaft type development, all service components in the system are independent, and the existing components cannot be fully utilized. Based on this, some embodiments of the present disclosure deploy the developed components and configuration information in a module service platform, so that an extended service package corresponding to the component can be dynamically loaded on the basis of uploading the service resource package, thereby implementing component service.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
FIG. 1 is an architectural diagram of an exemplary system in which some embodiments of the present disclosure may be applied;
FIG. 2 is a flow diagram of some embodiments of a method for providing services with components according to the present disclosure;
FIG. 3 is a flow diagram of still further embodiments of methods for providing services using components according to the present disclosure;
FIG. 4 is a flow diagram of further embodiments of a method for providing services with a component according to the present disclosure;
FIG. 5 is a schematic block diagram of some embodiments of an apparatus for providing services using components according to the present disclosure;
FIG. 6 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates an exemplary architecture 100 of a modular servization platform for a method of providing services with components or an apparatus for providing services with components to which some embodiments of the present disclosure may be applied.
As shown in FIG. 1, architecture 100 may include infrastructure and framework modules 101, generic capability extension modules 102, and vertical business modules 103. Among other things, the infrastructure and framework module 101 may be the executing body of the component-based service provision method of some embodiments of the present disclosure. As an example, the infrastructure and framework module 101 may further include a service directory 1011, a configuration management framework 1012, and an infrastructure platform 1013.
In response to the completion of deployment of the target component in the modular service platform, the modular service platform can store the extended service package of the target component according to the service directory 1011, so that different components can be isolated according to the service directory, and independent loading of different components is realized. On the basis, the configuration management framework 1012 is used for performing unified configuration management on each third-party component, so that the configuration information of the target component can be stored in the configuration management framework 1012. The configuration information of the component may include a maven (repository) address, version description information, and the like. Infrastructure platform 1013 may then, in response to receiving a notification that a business resource package characterizing a target component has been uploaded, pull the corresponding business resource package based on the configuration information in configuration management framework 1012, and load the extension business package through a loader.
The generic capability extension module 102 is used to provide generic services. By way of example, the universal capability expansion module 102 may include a data source dynamic expansion module, which is used for dynamically expanding data sources of modules that are deployed in the module service platform or are flexibly configured by users as required.
Vertical services module 103 may be used to generate a custom module. Each module is composed of a plurality of data sources and styles. For data sources, a user may directly input data source configuration information for each data source. Specifically, each data source configuration information includes a data input configuration, a data output configuration, and data source acquisition process description information. On the basis of the above, the vertical service module 103 can generate a user customization module.
Optionally, the generic capability extension module 102 may further include a multiple data integration module. The multi-data integration module can be used for integrating data of different data sources and then feeding the data back to the foreground in a unified mode.
With continued reference to FIG. 2, a flow 200 of some embodiments of a method of providing services with components is shown in accordance with the present disclosure. The method for providing the service by utilizing the components is applied to a module service platform and comprises the following steps:
step 201, in response to that the target component is deployed in the module service platform, storing the extended service package of the target component according to the service directory of the module service platform.
In some embodiments, in response to the target component being deployed in the modular servitization platform, an execution subject of the method for providing services by using the component stores the extended service package of the target component according to the service directory of the modular servitization platform. In practice, a plurality of third-party development components run in the module service platform, and a service directory needs to be set in order to isolate each development component. In addition, the service directory can be used to build standardized, automated application services and distribution processes.
Step 202, obtaining configuration information of the target component.
In some embodiments, the execution principal may obtain configuration information for the target component. The configuration information may include a maven address, version description information, and the like.
Step 203, in response to receiving the notification that the service resource package representing the target component has been uploaded, acquiring the corresponding service resource package based on the configuration information, and dynamically loading the extended service package.
In some embodiments, in response to receiving a notification that a service resource package representing a target component has been uploaded, the execution subject may obtain a corresponding service resource package based on the configuration information, and dynamically load an extension service package. In practice, after the service resource packet falls into the pool, a message is sent to the execution main body through a message queue.
In practice, dynamic loading of the extended service package may be implemented by some loader, for example, a service classLoader. It should be noted that, the service classLoader corresponds to the service resource packet, and different classloaders can be used for different service resource packets, thereby implementing security isolation.
The method provided by some embodiments of the present disclosure can implement full utilization of the developed components by deploying the components developed by the third party in the module service platform. The reason why the related art cannot make full use of the existing module is that: by adopting the shaft type development, all service components in the system are independent, and the existing components cannot be fully utilized. Based on this, some embodiments of the present disclosure deploy the developed components and configuration information in a module service platform, so that an extended service package corresponding to the component can be dynamically loaded on the basis of uploading the service resource package, thereby implementing component service.
With further reference to FIG. 3, a flow 300 of further embodiments of a method for providing services with a component is illustrated. The flow 300 of the method for providing services using components includes the following steps:
step 301, in response to that the target component is deployed in the module service platform, storing the extended service package of the target component according to the service directory of the module service platform.
Step 302, obtain configuration information of the target component.
Step 303, in response to receiving the notification that the service resource package representing the target component has been uploaded, acquiring the corresponding service resource package based on the configuration information, and dynamically loading the extended service package.
In some embodiments, the specific implementation of steps 301 to 303 and the technical effect thereof can refer to steps 201 and 203 in the embodiments corresponding to fig. 2, which are not described herein again.
Step 304, obtaining data source configuration information input by a user, wherein the data source configuration information is configuration information for each data source in at least one data source, and the configuration information includes data input configuration, data output configuration, and data source obtaining process description information.
In some embodiments, the user can flexibly configure the data source according to the requirement. In configuring the data sources, data source configuration information for each data source may be entered. Specifically, each data source configuration information includes a data input configuration, a data output configuration, and data source acquisition process description information. The data input is configured to identify a data structure of an input data source, so that data can be correctly read when the data source is acquired. The data output is configured to determine a data structure for feedback to the foreground. The data source acquisition process description information is used to describe the process of acquiring data. Optionally, validity check may also be performed on the data source input configuration.
Step 305, generating a user customization module based on the data source configuration information.
In some embodiments, the execution body may generate the custom module according to the data source configuration information through a preset defined logic or method. As an example, the logic that generates the custom module may be configured in the module servitization platform in advance. On the basis, the platform can configure logic according to a data source input by a user and generate a user customization module according to the pre-configured logic.
In some optional implementations of some embodiments, generating the custom module based on the data source configuration information includes: and generating a data source identity for each data source. At least one alias is generated for each data source, the at least one alias being used to present the data source in at least one style in the user customization module. Wherein the data source identity is globally unique. Optionally, the data source identity may be generated for each data source based on the site identity, the developer identity, and the definition identity of each data source. In addition, each data source may also be provided with a different style. For example, where a module is required to display two items and a COUPON, the existing data sources are a single item data source SKU and a single COUPON data source COUPON. Therefore, two styles of presentation of the data source "SKU" are required. At this time, different styles cannot be configured if the data source identity is directly used. Based on this, at least one alias may be generated for each data source. Continuing with the example of a module that needs to present two items of merchandise and a COUPON, the data source list for the module may be [ < SKU _ alias1, SKU >, < SKU _ alias2, SKU >, < COUPON _ alias, COUPON > ]. Where the data source SKU may have two aliases, SKU _ alias1 and SKU _ alias 2. In practice, the alias for each data source may be generated in a variety of ways. As an example, a corresponding number of aliases may be automatically generated by the execution body described above depending on the number of styles to be rendered. As yet another example, a corresponding number of aliases may be generated by information such as the number of aliases in the data source configuration information input by the user.
As can be seen from fig. 3, compared with the description of some embodiments corresponding to fig. 2, the flow 300 of the method for providing services by using components in some embodiments corresponding to fig. 3 embodies the flow of generating the user customized module. Therefore, the scheme described by the embodiments realizes that each data source is configured with different styles by setting alias names for the data sources, thereby realizing multiple presentation styles.
With further reference to FIG. 4, a flow 400 of further embodiments of methods of providing services with a component is illustrated. The flow 400 of the method for providing services using components includes the following steps:
step 401, in response to that the target component is deployed in the module service platform, storing the extended service package of the target component according to the service directory of the module service platform.
At step 402, configuration information of a target component is obtained.
Step 403, in response to receiving the notification that the service resource package representing the target component has been uploaded, acquiring the corresponding service resource package based on the configuration information, and dynamically loading the expanded service package.
Step 404, obtaining data source configuration information input by a user, where the data source configuration information is configuration information for each data source in at least one data source, and the configuration information includes data input configuration, data output configuration, and data source obtaining process description information.
Step 405, generating a custom module based on the data source configuration information.
In some embodiments, the specific implementation of steps 401 to 405 and the technical effect thereof can refer to step 101-205 in the embodiments corresponding to fig. 3, which are not described herein again.
Step 406, in response to receiving a call request of the call end for the user customization module, where the call request includes a target data source alias and target data source data input configuration, and based on the data source list and the target data source alias corresponding to the user customization module, searching for a target data source identity corresponding to the target data source alias.
In some embodiments, in response to receiving a call request from a call end for a user-customized module, an execution subject of the method for providing services by using a component may find a target data source identity corresponding to a target data source alias based on a data source list and the target data source alias corresponding to the user-customized module.
In practice, the call request may be for one custom module or for multiple custom modules. Specifically, the execution agent may perform a query in the data source list according to the alias of the target data source, so as to determine the corresponding identity of the target data source.
Step 407, determining corresponding output data according to the target data source identity and the target data source data input configuration.
In some embodiments, on the basis of determining the identity of the target data source, the execution subject may obtain data according to the data source obtaining process description information of the corresponding user customization module, and set the obtained data according to the data output configuration, thereby obtaining the output data.
And step 408, sending the output data to a calling end.
In some embodiments, the execution body may send the output data to the calling end.
In some optional implementation aspects of some embodiments, the call request is a call request for a plurality of customization modules, and the customization modules include the user customization module; and before sending the output data to the calling end, the method further comprises: responding to the obtained output data, and temporarily storing the output data in a multi-data integration node to wait for the output data corresponding to other customization modules; sending the output data to a calling end, comprising: and responding to the completion of the integration of the output data of the plurality of customization modules, and sending the integrated data to the calling end.
In some embodiments, the external provision service of the customization module can be realized through the corresponding call request.
With further reference to fig. 5, as an implementation of the methods illustrated in the above figures, the present disclosure provides some embodiments of an apparatus for providing services using components, which correspond to those of the method embodiments illustrated in fig. 2, and which may be applied in various electronic devices in particular.
As shown in fig. 5, an apparatus 500 for providing services using components according to some embodiments includes: a storage unit 501, a component configuration information acquisition unit 502, and a loading unit 503. The storage unit 501 is configured to store the extended service package of the target component according to the service directory of the module service platform in response to that the target component is deployed in the module service platform. The component configuration information acquisition unit 502 is configured to acquire configuration information of a target component. The loading unit 503 is configured to, in response to receiving a notification that the service resource package representing the target component has been uploaded, obtain the corresponding service resource package based on the configuration information, and dynamically load the expansion service package.
In an optional implementation of some embodiments, the apparatus 500 further comprises: the device comprises a data source configuration information acquisition unit and a generation unit. The data source configuration information acquisition unit is configured to acquire data source configuration information input by a user, wherein the data source configuration information is configuration information for each of at least one data source, and the configuration information comprises a data input configuration, a data output configuration and data source acquisition process description information. The generating unit is configured to generate the user customization module based on the data source configuration information.
In an optional implementation of some embodiments, the generating unit is further configured to generate a data source identity for each data source; at least one alias is generated for each data source, the at least one alias being used to present the data source in at least one style in the user customization module.
In an optional implementation of some embodiments, the generating unit is further configured to: and generating a data source identity identifier of each data source based on the site identifier, the developer identifier and the definition identifier of each data source.
In an optional implementation of some embodiments, the apparatus 500 further comprises: the device comprises a searching unit, an output data determining unit and an output sending unit. The searching unit is configured to respond to a received calling request of a calling end for the user customization module, the calling request comprises a target data source alias and a target data source data input configuration, and a target data source identity corresponding to the target data source alias is searched based on a data source list corresponding to the user customization module and the target data source alias. The output data determination unit is configured to determine corresponding output data by the target data source identity and the target data source data input configuration. The data sending unit is configured to send the output data to the calling terminal.
In an alternative implementation of some embodiments, the invocation request is an invocation request for a plurality of custom modules. The apparatus 500 further comprises: a temporary storage unit. The temporary storage unit is configured to temporarily store the output data in the multi-data integration node in response to obtaining the output data so as to wait for the output data corresponding to the rest of the customization modules. The data sending unit is further configured to respond to the completion of the integration of the output data of the plurality of customization modules, and send the integrated data to the calling terminal.
It will be understood that the elements described in the apparatus 500 correspond to various steps in the method described with reference to fig. 2. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to the apparatus 500 and the units included therein, and are not described herein again.
Referring now to fig. 6, a schematic diagram of an electronic device (e.g., the server or terminal device of fig. 1) 600 suitable for use in implementing some embodiments of the present disclosure is shown. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 6 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: responding to the completion of the deployment of the target component in the module service platform, and storing the extended service package of the target component according to the service directory of the module service platform; acquiring configuration information of a target component; and responding to the received notice that the business resource packet representing the target component is uploaded, acquiring the corresponding business resource packet based on the configuration information, and dynamically loading and expanding the business packet.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The described units may also be provided in a processor, and may be described as: a processor includes a storage unit, a component configuration information acquisition unit, and a loading unit. The names of the units do not form a limitation on the units themselves in some cases, for example, the storage unit may also be described as a unit for storing the development service package of the target component according to the service directory of the module service platform.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (10)

1. A method for providing services by utilizing components is applied to a module service platform and comprises the following steps:
responding to the completion of deployment of a target component in the module service platform, and storing an extended service package of the target component according to a service directory of the module service platform;
acquiring configuration information of the target component;
and responding to the received notice that the business resource packet representing the target component is uploaded, acquiring the corresponding business resource packet based on the configuration information, and dynamically loading the expansion business packet.
2. The method of claim 1, wherein the method further comprises:
acquiring data source configuration information input by a user, wherein the data source configuration information is configuration information for each data source in at least one data source, and the configuration information comprises data input configuration, data output configuration and data source acquisition process description information;
and generating a user customization module based on the data source configuration information.
3. The method of claim 2, wherein the generating a custom module based on the data source configuration information comprises:
generating a data source identity for each data source;
generating at least one alias for each data source, the at least one alias for presenting the data source in at least one style in the user customization module.
4. The method of claim 3, wherein the generating a data source identity for each data source comprises:
and generating a data source identity for each data source based on the site identification, the developer identification and the definition identification of each data source.
5. The method of claim 3, wherein the method further comprises:
responding to a received calling request of a calling end aiming at the user customization module, wherein the calling request comprises a target data source alias and target data source data input configuration, and searching a target data source identity corresponding to the target data source alias based on a data source list corresponding to the user customization module and the target data source alias;
determining corresponding output data according to the target data source identity and the target data source data input configuration;
and sending the output data to the calling end.
6. The method of claim 5, wherein the invocation request is an invocation request for a plurality of customization modules, including the user customization module; and
before sending the output data to the calling end, the method further includes:
responding to the obtained output data, temporarily storing the output data in a multi-data integration node to wait for the output data corresponding to other customization modules;
the sending the output data to the calling terminal includes:
and responding to the completion of the integration of the output data of the plurality of customization modules, and sending the integrated data to the calling end.
7. An apparatus for providing services using components, comprising:
the storage unit is configured to respond to the completion of deployment of a target component in the module service platform, and store the expansion business package of the target component according to the service directory of the module service platform;
a component configuration information acquisition unit configured to acquire configuration information of the target component;
and the loading unit is configured to respond to the received notification that the service resource packet representing the target component is uploaded, acquire the corresponding service resource packet based on the configuration information, and dynamically load the expansion service packet.
8. The apparatus of claim 7, wherein the apparatus further comprises:
a data source configuration information acquisition unit configured to acquire data source configuration information input by a user, wherein the data source configuration information is configuration information for each of at least one data source, and the configuration information includes a data input configuration, a data output configuration, and data source acquisition process description information;
a generating unit configured to generate a user customization module based on the data source configuration information.
9. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
10. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-6.
CN202111577912.1A 2021-12-22 2021-12-22 Method, apparatus, device and computer readable medium for providing service using component Pending CN114398035A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111577912.1A CN114398035A (en) 2021-12-22 2021-12-22 Method, apparatus, device and computer readable medium for providing service using component

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111577912.1A CN114398035A (en) 2021-12-22 2021-12-22 Method, apparatus, device and computer readable medium for providing service using component

Publications (1)

Publication Number Publication Date
CN114398035A true CN114398035A (en) 2022-04-26

Family

ID=81226127

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111577912.1A Pending CN114398035A (en) 2021-12-22 2021-12-22 Method, apparatus, device and computer readable medium for providing service using component

Country Status (1)

Country Link
CN (1) CN114398035A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115098579A (en) * 2022-08-24 2022-09-23 中关村科学城城市大脑股份有限公司 Business data publishing method and device, electronic equipment and computer readable medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115098579A (en) * 2022-08-24 2022-09-23 中关村科学城城市大脑股份有限公司 Business data publishing method and device, electronic equipment and computer readable medium

Similar Documents

Publication Publication Date Title
CN112860451A (en) Multi-tenant data processing method and device based on SaaS
CN110377440B (en) Information processing method and device
CN111309375A (en) Method, device, medium and electronic equipment for generating remote procedure call toolkit
CN113821352A (en) Remote service calling method and device
CN113900721A (en) Operating system starting method and device and electronic equipment
CN114500481A (en) Service request processing method, system and device
CN112748962B (en) Application loading method, device, electronic equipment and computer readable medium
CN114398035A (en) Method, apparatus, device and computer readable medium for providing service using component
CN114513552A (en) Data processing method, device, equipment and storage medium
CN109981546B (en) Method and device for acquiring remote call relation between application modules
CN115167874B (en) Automatic driving software mirror image deployment method and device, electronic equipment and readable medium
CN110730197B (en) Service discovery method and system
CN111382953A (en) Dynamic process generation method and device
CN114157658B (en) Mirror warehouse deployment method, apparatus, electronic device and computer readable medium
CN111124523A (en) Method and apparatus for initializing applications
CN111797160B (en) Method, system and electronic device for sharing intelligent contract
CN113760487A (en) Service processing method and device
CN111314457B (en) Method and device for setting virtual private cloud
CN113472565B (en) Method, apparatus, device and computer readable medium for expanding server function
CN113157365B (en) Program running method, program running device, electronic equipment and computer readable medium
CN116319322B (en) Power equipment node communication connection method, device, equipment and computer medium
CN113434124A (en) Method, device, equipment and medium for constructing multi-language project engineering
CN115543347A (en) Application deployment method and device, electronic equipment and computer readable medium
CN114513548A (en) Directional call information processing method and device
CN115756636A (en) Process instance configuration method, device, electronic equipment, medium and program product

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