CN116755677A - Atomic service arrangement method, device, equipment and storage medium - Google Patents
Atomic service arrangement method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN116755677A CN116755677A CN202310613315.2A CN202310613315A CN116755677A CN 116755677 A CN116755677 A CN 116755677A CN 202310613315 A CN202310613315 A CN 202310613315A CN 116755677 A CN116755677 A CN 116755677A
- Authority
- CN
- China
- Prior art keywords
- service
- target
- atomic
- services
- interface
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 60
- 230000000007 visual effect Effects 0.000 claims abstract description 34
- 238000004806 packaging method and process Methods 0.000 claims abstract description 8
- 230000006870 function Effects 0.000 claims description 45
- 238000013475 authorization Methods 0.000 claims description 21
- 239000002131 composite material Substances 0.000 claims description 15
- 238000012545 processing Methods 0.000 claims description 14
- 238000012790 confirmation Methods 0.000 claims description 7
- 230000006978 adaptation Effects 0.000 claims description 6
- 238000012856 packing Methods 0.000 claims description 6
- 230000004044 response Effects 0.000 claims description 6
- 238000005516 engineering process Methods 0.000 abstract description 2
- 230000008569 process Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 238000004590 computer program Methods 0.000 description 4
- 238000007726 management method Methods 0.000 description 3
- 239000000203 mixture Substances 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 150000001875 compounds Chemical class 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000013506 data mapping Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The application provides an atomic service orchestration method, an atomic service orchestration device, atomic service orchestration equipment and a storage medium, which can be used in the field of distributed technology. The method comprises the following steps: responding to a selected operation acted on a visual operation interface, and determining that a plurality of atomic services indicated by the selected operation are all target atomic services; acquiring calling logic of each target atomic service when the target business function is completed; the calling logic comprises a calling sequence and a calling condition; arranging each target atomic service according to the calling logic to generate a target combined service; the target combination service is used for completing the target business function; and packaging the target combination service and transmitting the target combination service to a product library. According to the scheme, the workload of a user is greatly reduced, and the practicability of the atomic service is greatly improved; when the actual business changes, only the codes of the related atomic services can be modified, the adaptability is stronger, the current diversified business requirements are met, and the practicability of the combined service is further improved.
Description
Technical Field
The present application relates to the field of distributed technologies, and in particular, to an atomic service orchestration method, an atomic service orchestration device, and a storage medium.
Background
In distributed services, in order to meet the service handling requirements in different service scenarios, better services are provided for users, and a combined service formed by arranging and combining a plurality of atomic services is generally required to handle the services.
In the prior art, the technical staff usually write the codes of the combined service manually, the working efficiency is extremely low, when the service requirement changes, the original combined service is abandoned, the whole original codes need to be changed for upgrading the combined service, the strain capacity and the practicability are extremely low, and the current diversified service requirement cannot be met.
Therefore, how to arrange the atomic services to obtain the combination services, so as to improve the strain capacity and the practicability of the combination services becomes a problem to be solved.
Disclosure of Invention
The application provides an atomic service arranging method, an atomic service arranging device, atomic service arranging equipment and a storage medium, which are used for solving the problem of how to arrange atomic services to acquire combined services, so that the strain capacity and the practicability of the combined services are improved.
In a first aspect, the present application provides an atomic service orchestration method, where the method is applied to an electronic device, where a service orchestration system is deployed in the electronic device, and a plurality of callable atomic services are displayed in a visual operation interface of the service orchestration system; the method comprises the following steps:
Responding to a selected operation acted on the visual operation interface, and determining that a plurality of atomic services indicated by the selected operation are all target atomic services; the target atomic service is an atomic service required to be called for completing the target business function;
acquiring calling logic of each target atomic service when the target business function is completed; the calling logic comprises a calling sequence and a calling condition;
arranging each target atomic service according to the calling logic to generate a target combined service; the target combination service is used for completing the target business function;
packaging the target combined service and transmitting the target combined service to a product library; wherein the product library comprises a download interface for downloading the target combination service.
In a second aspect, the present application provides an atomic service orchestration device, where the device is applied to an electronic device, where a service orchestration system is deployed in the electronic device, and a visual operation interface of the service orchestration system displays a plurality of callable atomic services; the device comprises:
the selection unit is used for responding to the selection operation acted on the visual operation interface and determining that a plurality of atomic services indicated by the selection operation are all target atomic services; the target atomic service is an atomic service required to be called for completing the target business function;
The acquisition unit is used for acquiring the calling logic of each target atomic service when the target business function is completed; the calling logic comprises a calling sequence and a calling condition;
the arrangement unit is used for arranging each target atomic service according to the calling logic to generate a target combined service; the target combination service is used for completing the target business function;
the packing unit is used for packing the target combination service and transmitting the target combination service to a product library; wherein the product library comprises a download interface for downloading the target combination service.
In a third aspect, the present application provides an electronic device in which a service orchestration system is deployed, in which a plurality of callable atomic services are displayed in a visual operation interface of the service orchestration system, the electronic device comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes the computer-executable instructions stored in the memory to implement the method as described above.
In a fourth aspect, the present application provides a computer readable storage medium having stored therein computer executable instructions for carrying out the method as described above when executed by a processor.
In a fifth aspect, the application provides a computer program product comprising a computer program for implementing a method as described above when being executed by a processor.
The method is applied to electronic equipment, a service arrangement system is deployed in the electronic equipment, and a plurality of callable atomic services are displayed in a visual operation interface of the service arrangement system; the method comprises the following steps: responding to a selected operation acted on the visual operation interface, and determining that a plurality of atomic services indicated by the selected operation are all target atomic services; the target atomic service is an atomic service required to be called for completing the target business function; acquiring calling logic of each target atomic service when the target business function is completed; the calling logic comprises a calling sequence and a calling condition; arranging each target atomic service according to the calling logic to generate a target combined service; the target combination service is used for completing the target business function; packaging the target combined service and transmitting the target combined service to a product library; wherein the product library comprises a download interface for downloading the target combination service. According to the scheme, the atomic service is arranged in a mode of calling the atomic service, the target combined service is generated, the workload of a user is greatly reduced, the user can customize the combined engineering according to the requirements, and the practicability of the atomic service is greatly improved. In addition, when the actual business changes, only the codes of the related atomic services can be modified, the framework of the whole target combined service is not required to be modified, the adaptability is stronger, the current diversified business requirements are met, and the practicability of the combined service is further improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
Fig. 1 is a flow chart of an atomic service orchestration method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of generating a target combination service according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an atomic service orchestration device according to an embodiment of the present application;
FIG. 4 is a schematic structural diagram of another atomic service orchestration device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Specific embodiments of the present application have been shown by way of the above drawings and will be described in more detail below. The drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but rather to illustrate the inventive concepts to those skilled in the art by reference to the specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or fully authorized by each party, and the collection, use and processing of the related data need to comply with related laws and regulations and standards, and provide corresponding operation entries for the user to select authorization or rejection.
It should be noted that the method, the device, the equipment and the storage medium for arranging atomic services provided by the application can be used in the distributed technical field, and can also be used in any field except the distributed technical field.
In distributed banking, in order to meet the service handling requirements in different service scenarios, better services are provided for users, and a combination service formed by arranging and combining a plurality of atomic services is generally required to handle the service.
However, at present, the code of the combination service is usually written by technicians directly and manually, the working efficiency is extremely low, when the service requirement changes, the original combination service is invalidated, the whole original code is required to be changed for upgrading the combination service, the strain capacity and the practicability are extremely low, and the current diversified service requirement cannot be met. In addition, in the actual business, there is a situation that the business is crossed, the same atomic service may be used in different businesses, if the source code of the combined service is directly written, the code of the atomic service needs to be written for multiple times, so that a lot of unnecessary repeated work is generated, and development efficiency is affected, and resource waste is also caused.
In order to solve the problems, the application provides an atomic service orchestration method, an atomic service orchestration device, atomic service orchestration equipment and a storage medium. After the atomic service required by the target business function is selected in the visual operation interface, call logic is input, then the selected atomic service is arranged according to the call logic to obtain the target combination service capable of completing the target business function, and after the target combination service is packed into the product library, the user can download and use the target combination service through a download interface provided by the product library. The target combined service is generated by calling the atomic service and arranging the atomic service, so that the workload of technicians is greatly reduced, and the technicians can customize the combined engineering according to the requirements, so that the practicability of the atomic service is greatly improved. In addition, when the actual business changes, only the codes of the related atomic services can be modified, the framework of the whole target combined service does not need to be modified, the adaptability is stronger, and the current diversified business requirements are met.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a flow chart of an atomic service orchestration method according to an embodiment of the present application. The method provided by the embodiment is applied to the electronic equipment, a service arrangement system is deployed in the electronic equipment, and a plurality of callable atomic services are displayed in a visual operation interface of the service arrangement system. The electronic device may be a mobile phone, a tablet, a computer, a server, etc., which is not limited by the present application.
The present embodiment will be described in detail taking an execution subject as an example of a service arrangement system. As shown in fig. 1, the method for arranging atomic services provided in this embodiment includes:
s101, responding to a selected operation acting on a visual operation interface, and determining that a plurality of atomic services indicated by the selected operation are all target atomic services; the target atomic service is an atomic service required to be called for completing the target business function.
Illustratively, the plurality of callable atomic services displayed in the visual operation interface of the service orchestration system may all be pre-composed callable atomic services. Since an atom is a basic service unit that constitutes an application and is not resolvable, and is also a minimum unit that an operating system can manage and control and assign rights, and can be "shared" by a plurality of applications, a minimum service unit that can be exposed to the outside is generally referred to as an atomic service. In practical application, large business field services and business modules can be scattered and packaged into individual atomic services which can be used independently or flexibly assembled based on scenes, so that the atomic services can be called better.
Illustratively, the user wants to develop a target combination service capable of completing the target business function, which of the atomic services needed to complete the target business function is determined first, and then the atomic services in the visual operation interface are selected to be determined as target atomic services. And the service arrangement system responds to the selected operation of the user on the visual operation interface on the atomic service, and determines that a plurality of atomic services indicated by the selected operation are all target atomic services. The user in the application can refer to a technical developer and also refer to a non-technical developer.
For example, the service orchestration system may determine that only the multiple atomic services indicated by the selected operation are target atomic services, or may have other determination mechanisms that may be implemented, and the present application is not limited to how to determine that all of the multiple atomic services indicated by the selected operation are target atomic services.
In one example, determining that the plurality of atomic services indicated by the selected operation are all target atomic services may include:
determining the atomic service indicated by the selected operation as a target atomic service, and determining other atomic services with association relation with the atomic service indicated by the selected operation as target atomic services; or determining the atomic service indicated by the selected operation as the target atomic service, determining other atomic services with association relation with the atomic service indicated by the selected operation, and marking other atomic services on the visual operation interface; responding to a confirmation instruction of a user, and determining other atomic services as target atomic services; the confirmation instruction is used for indicating the user to confirm other atomic services as target atomic services; the association relation characterizes the relation with calling order among the atomic services, or the association relation characterizes the atomic services to be used for completing the target business function.
In an actual business scenario, for example, when selecting a target atomic service that completes a target business function, in addition to the primary atomic service selected by the user, there may be a call order relationship with the atomic unit selected by the user, or other atomic services necessary to complete the target business function.
Therefore, when determining that the plurality of atomic services indicated by the selected operation are target atomic services, the service orchestration system can directly determine that the atomic services indicated by the selected operation and other atomic services having an association relationship with the atomic services indicated by the selected operation are target atomic services. The method can improve the determination accuracy of the target atomic service, avoid that the target combined service capable of completing the target business function cannot be generated due to the fact that the user leaks the necessary atomic service, and enable the service arrangement system to have certain fault tolerance and error correction capability, and have higher practicability.
In addition, the service arrangement system may determine that only the atomic service selected by the user is the target atomic service, then mark other atomic services having an association relationship with the atomic service indicated by the selected operation on the visual operation interface to prompt the user to confirm, and after the user confirms, the service arrangement system responds to the confirmation instruction of the user again to determine other atomic services having an association relationship with the atomic service indicated by the selected operation as the target atomic service. The method can also improve the determination accuracy of the target atomic service, and can inform the user of the necessary atomic service missed by the user so as to improve the user experience.
S102, acquiring calling logic of each target atomic service when the target business function is completed; the call logic includes a call order and call conditions.
Illustratively, after the target atomic service is selected, call logic of each target atomic service needs to be determined, where the call logic includes all information required to execute each target atomic service when the target business function is completed, for example: execution sequence of each target atomic service, call condition, input-output field, start/end node, etc.
The calling logic may be input by the user in advance, and the service arrangement system may call and acquire the service when in use, or may be input by the user according to a prompt of the service arrangement system after the atomic service is selected, which is not limited by the present application.
S103, arranging each target atomic service according to the calling logic to generate a target combined service; the target composition service is used to complete the target business function.
Illustratively, after determining the target atomic service and the call logic, the service orchestration system orchestrates each target atomic service according to the call logic to obtain a target composite service to be able to complete target business functions when executing the target composite service.
The arrangement refers to a web combination mode through business collaboration, describes interaction of a plurality of participants for realizing multi-organization business functions, and mainly describes interaction processes among different processes. The application does not limit how the service arrangement system arranges each target atomic service according to the calling logic to generate the target combined service. For example, the service orchestration system may be preset with an orchestration template corresponding to the calling logic, and when orchestrating, the service orchestration system calls the orchestration template and fills the target atomic service into the orchestration template, so as to obtain the target combination service.
S104, packaging the target combination service and transmitting the target combination service to a product library; wherein the product library comprises a download interface for downloading the target combination service.
For example, after generating the target combination service, the service arrangement system packages the target combination service and transmits the target combination service to the product library, after updating the product library, the product library includes the target combination service, and the user can download the target combination service from the product library at the download interface of the target combination service, thereby downloading the target combination service.
The atomic service arrangement method provided by the embodiment of the application comprises the following steps: responding to a selected operation acted on a visual operation interface, and determining that a plurality of atomic services indicated by the selected operation are all target atomic services; the target atomic service is an atomic service required to be called for completing the target business function; acquiring calling logic of each target atomic service when the target business function is completed; the calling logic comprises a calling sequence and a calling condition; arranging each target atomic service according to the calling logic to generate a target combined service; the target combination service is used for completing the target business function; packaging the target combination service and transmitting the target combination service to a product library; wherein the product library comprises a download interface for downloading the target combination service. According to the scheme, in the visual operation interface, the atomic service is arranged in a mode of calling the atomic service to generate the target combined service, so that the generation process can be displayed more intuitively, the method is more humanized, the workload of a user is greatly reduced, the user can customize the combined engineering according to the requirement, and the practicability of the atomic service is greatly improved. In addition, when the actual business changes, only the codes of the related atomic services can be modified, the framework of the whole target combined service is not required to be modified, the adaptability is stronger, the current diversified business requirements are met, and the practicability of the combined service is further improved.
On the basis of the above embodiment, there may be other schemes for arranging the target atomic services according to the calling logic to generate the target combined service, among the possible schemes. Fig. 2 is a schematic flow chart of generating a target combination service according to an embodiment of the present application. As shown in fig. 2, according to the call logic, the process of arranging each target atomic service and generating the target composite service may include the following steps S201 to S203:
s201, arranging each target atomic service into a combined engineering service meeting the calling sequence and the calling condition based on a preset distributed framework; the preset distributed framework is a constant framework preset based on a distributed principle.
Illustratively, the preset distributed framework is a constant framework preset based on the distributed principle, and the framework may include a general basic distributed framework, a transaction processing framework, a framework necessary for generating the combined engineering service, and the like, and may also include input parameters, designed service classes, data mapping xml, and the like. When generating the target combined service, the service arrangement system can firstly arrange each target atomic service into the combined engineering service meeting the calling sequence and the calling condition according to the calling logic based on the preset distributed framework. Wherein, the combined engineering service is a core structure capable of completing the target business function.
S202, acquiring configuration parameters of the combination program service based on the arrangement progress.
Illustratively, after acquiring the composite engineering service, the service orchestration system acquires configuration parameters of the composite engineering service based on the orchestration progress. The configuration parameters may be pre-stored in a service orchestration system, and the service orchestration system invokes corresponding parameters according to the orchestration progress. In addition, the configuration parameters can be input by the user in real time, and the application is not limited.
In one example, the configuration parameters include one or more of the following optional attribute parameters: service identification, service name, service port, management version number, current dependency declaration.
Illustratively, the configuration parameters may include one or more non-mandatory attribute parameters of a service identification, a service name, a service port, a management version number (i.e., version number of maven), a current dependency declaration, etc. of the composite engineering service to facilitate subsequent identification of the composite engineering service. In addition, various parameters such as database parameters, encryption and decryption parameters, information sending parameters, idempotent parameters, database and table dividing parameters, database lock parameters and the like in the combined engineering service can be configured, and the specific content of the parameters can be configured according to actual needs, so that the method is not limited.
In one example, based on the orchestration progress, obtaining configuration parameters for the composite engineering service may include:
s1, displaying a parameter configuration window corresponding to the arrangement progress in a visual operation interface based on the arrangement progress.
S2, acquiring configuration parameters input from a parameter configuration window.
For example, if the configuration parameters are input by the user in real time, the service orchestration system further sequentially displays parameter configuration windows corresponding to the orchestration progress in the visual operation interface according to the orchestration progress, and the user inputs the corresponding configuration parameters from the parameter configuration windows, so that the service orchestration system obtains the configuration parameters of the combination program service.
S203, configuring the combined engineering service in response to the acquisition of the configuration parameters, and determining the configured combined engineering service as the target combined service.
Illustratively, after the service orchestration system acquires the configuration parameters, the service orchestration system responds to the acquisition of the configuration parameters, and configures the combined engineering service according to the configuration parameters, wherein the configured combined engineering service is the target combined service of the application.
Illustratively, configuring the composite engineering service in response to the obtaining of the configuration parameters may include:
s10, determining attribute characteristics of configuration content based on the configuration content corresponding to the configuration parameters; wherein the attribute features are any one of basic attributes, composite attributes and common attributes.
S20, configuring the combined engineering service according to the attribute characteristics and the actual business requirements.
Illustratively, the service orchestration system determines, based on the configuration content corresponding to the configuration parameters, that the attribute features of the configuration content are basic attributes, or compound attributes, or common attributes. The composite attribute may include a basic attribute and a public attribute, wherein the basic attribute is a field corresponding to the database, and the public attribute is an attribute referenced by all interfaces. And then, the service arrangement system configures the combined engineering service according to the attribute characteristics and the actual service requirements, so that the configured combined engineering service is a target combined service, and the target service function can be completed.
The service arrangement system in the embodiment arranges each target atomic service into a combined engineering service meeting the calling sequence and the calling condition based on a preset distributed framework; acquiring configuration parameters of the combination program service based on the arrangement progress; and then, in response to the acquisition of the configuration parameters, configuring the combined engineering service, and determining the configured combined engineering service as the target combined service. The target combination service is automatically obtained by arranging the atomic service, so that the workload of technical developers is greatly reduced, the whole code of the target combination service is not required to be rewritten, the current diversified business requirements are met, and the practicability of the combination service is further improved.
On the basis of the above embodiment, in one possible solution, the solution of the present application may further include a process of acquiring the service to be developed. Illustratively, the process of acquiring the service to be developed may include:
s100, acquiring interface parameters of a service to be developed; the interface parameters are requirements of the service to be developed, and the interface parameters comprise one or more of the following: interface name, interface identification, interface version, external release information, interface coding, flow arrangement information, input field and output field.
S200, generating the service corresponding to the interface parameters according to the interface parameters.
Illustratively, the user inputs the interface parameters of the service to be developed into the service orchestration system, and the service orchestration system may obtain the interface parameters of the service to be developed and generate a service corresponding to the interface parameters according to the interface parameters. The service corresponding to the interface parameter is generated according to the interface parameter, which may be generated by a service arrangement system according to preset logic, or may be input by a technical developer after writing according to the interface parameter, which is not limited by the application.
Illustratively, the interface parameters include one or more of the following: interface name, interface identification, interface version, external release information, interface coding, flow arrangement information, input field and output field. The information such as the interface name, the interface identifier and the like can identify and distinguish different atomic services, and generally any atomic service can be uniquely identified through interface codes and interface versions, so that the subsequent use is convenient. The external release information indicates whether the service to be developed is to be released externally, if so, the service to be developed is determined to be released externally, otherwise, the service to be developed is not released. The flow arrangement information indicates whether the service to be developed performs flow arrangement, if the service is an atomic service, the service is selected, and if the service is a combined service, the service is selected. The input field and the output field can also be manually selected according to the fields input in the basic attribute, so that the input field and the output field of the service to be developed are truly obtained.
By acquiring the interface parameters of the service to be developed to generate the service corresponding to the interface parameters according to the interface parameters, convenience can be improved, subsequent use and/or arrangement of the service can be facilitated, strain capacity and practicability of the service are improved, and actual demands of users are further met.
In one possible scenario, the scenario of the present application may further comprise: transmitting authorization information for using the service orchestration system to the user; the authorization information comprises an authorization account number, a password and an authorization range.
For example, to increase information security, a portion of the atomic services may be open to only a portion of the users, and thus, the atomic services that the users can use/orchestrate are already authorized. Thus, in some examples, the service orchestration system is further configured to authorize the user in response to the user's authorization request, and return authorization information to the user that the service orchestration system may be used. The authorization information may include an authorization account number, a password, and an authorization range, that is, a range that a user can use, where the user logs in to the system through the authorization account number and the password when using the service orchestration system. Therefore, the information security can be guaranteed, and the user requirements can be met to the greatest extent.
On the basis of the foregoing embodiment, further, after the target combination service is obtained, the target combination service may be downloaded and used by the user, so in one possible scenario, the scenario of the present application may further include:
s01, receiving an acquisition instruction sent by a terminal device; the acquisition instruction is used for indicating to acquire the target combination service, and the acquisition instruction comprises equipment parameters of the terminal equipment.
S02, performing adaptation adjustment processing on the target combined service indicated by the acquisition instruction according to the equipment parameter so as to adjust the target combined service indicated by the acquisition instruction to be adapted to the terminal equipment, and obtaining the adjusted target combined service.
S03, sending the adjusted target combined service to the terminal equipment.
For example, when the user needs to use the target combination service, an instruction for acquiring the target combination service is sent to the service orchestration system through the terminal device, where the instruction may further include a device parameter of the terminal device, and the device parameter may include information that may be used when the target combination service is used, such as a model number, a processor running capability, a memory size, and the like of the terminal device. And the service arrangement system performs adaptation adjustment processing on the target combined service indicated by the acquisition instruction according to the received acquisition instruction sent by the terminal equipment so as to adjust the target combined service indicated by the acquisition instruction to be suitable for the terminal equipment, and sends the adjusted target combined service to the terminal equipment so as to be convenient for a user to use.
The target combination service is subjected to adaptation adjustment processing, so that the target combination service downloaded by the terminal equipment can be directly used, and cannot be used due to mismatch of equipment model, parameters and the like, and convenience and practicability are improved.
The following are examples of the apparatus of the present application that may be used to perform the method embodiments of the present application. For details not disclosed in the embodiments of the apparatus of the present application, please refer to the embodiments of the method of the present application.
Fig. 3 is a schematic structural diagram of an atomic service orchestration device according to an embodiment of the present application. As shown in fig. 3, the atomic service orchestration device 30 provided by the embodiment of the present application is applied to an electronic device, in which a service orchestration system is deployed, and a plurality of callable atomic services are displayed in a visual operation interface of the service orchestration system; the apparatus 30 includes: a selection unit 301, an acquisition unit 302, an orchestration unit 303, and a packing unit 304.
A selecting unit 301, configured to respond to a selecting operation acting on the visual operation interface, and determine that a plurality of atomic services indicated by the selecting operation are all target atomic services; the target atomic service is an atomic service required to be called for completing the target business function.
An obtaining unit 302, configured to obtain call logic of each target atomic service when the target business function is completed; the call logic includes a call order and call conditions.
An orchestration unit 303, configured to orchestrate each target atomic service according to the call logic, and generate a target combination service; the target composition service is used to complete the target business function.
A packaging unit 304, configured to package the target combination service and transmit the target combination service to a product library; wherein the product library comprises a download interface for downloading the target combination service.
The device provided in this embodiment may be used to perform the method of the foregoing embodiment, and its implementation principle and technical effects are similar, and will not be described herein again.
Fig. 4 is a schematic structural diagram of another atomic service orchestration device according to an embodiment of the present application. As shown in fig. 4, the atomic service orchestration device 40 provided by the embodiment of the present application is applied to an electronic device, in which a service orchestration system is deployed, and a plurality of callable atomic services are displayed in a visual operation interface of the service orchestration system; the apparatus 40 includes: a selection unit 401, an acquisition unit 402, an arrangement unit 403, and a packing unit 404.
A selecting unit 401, configured to respond to a selecting operation acting on the visual operation interface, and determine that a plurality of atomic services indicated by the selecting operation are all target atomic services; the target atomic service is an atomic service required to be called for completing the target business function.
An obtaining unit 402, configured to obtain call logic of each target atomic service when the target business function is completed; the call logic includes a call order and call conditions.
An arrangement unit 403, configured to arrange each target atomic service according to the calling logic, and generate a target combination service; the target composition service is used to complete the target business function.
A packaging unit 404, configured to package the target combination service and transmit the target combination service to a product library; wherein the product library comprises a download interface for downloading the target combination service.
In one example, orchestration unit 403 includes: a combination module 4031, an acquisition module 4032 and a configuration module 4033.
A combination module 4031, configured to schedule each target atomic service into a combined engineering service that satisfies the calling order and the calling condition based on a preset distributed framework; the preset distributed framework is a constant framework preset based on a distributed principle.
The obtaining module 4032 is configured to obtain configuration parameters of the combined engineering service based on the scheduling progress.
The configuration module 4033 is configured to configure the combined engineering service in response to the acquisition of the configuration parameter, and determine that the configured combined engineering service is the target combined service.
In one example, the obtaining module 4032 is specifically configured to: based on the arrangement progress, displaying a parameter configuration window corresponding to the arrangement progress in a visual operation interface; configuration parameters input from a parameter configuration window are acquired.
In one example, the configuration module 4033 includes a determination module 40331 and a configuration submodule 40332.
A determining module 40331, configured to determine an attribute feature of the configuration content based on the configuration content corresponding to the configuration parameter; wherein the attribute features are any one of basic attributes, composite attributes and common attributes.
The configuration submodule 40332 is configured to configure the combined engineering service according to the attribute characteristics and the actual business requirements.
In one example, the configuration parameters include one or more of the following optional attribute parameters: service identification, service name, service port, management version number, current dependency declaration.
In one example, the selection unit 401 includes a first selection module 4011 or a second selection module 4012.
A first selection module 4011, configured to determine that an atomic service indicated by a selected operation is a target atomic service, and determine other atomic services that have an association relationship with the atomic service indicated by the selected operation are also target atomic services; the association relation characterizes the relation with calling order among the atomic services, or the association relation characterizes the atomic services to be used for completing the target business function.
A second selection module 4012, configured to determine that the atomic service indicated by the selected operation is a target atomic service, determine other atomic services that have an association relationship with the atomic service indicated by the selected operation, and mark other atomic services on the visual operation interface; responding to a confirmation instruction of a user, and determining other atomic services as target atomic services; the confirmation instruction is used for indicating the user to confirm other atomic services as target atomic services; the association relation characterizes the relation with calling order among the atomic services, or the association relation characterizes the atomic services to be used for completing the target business function.
In one example, the apparatus 40 further comprises a generating unit 405.
A generating unit 405, configured to obtain interface parameters of a service to be developed; the interface parameters are requirements of the service to be developed, and the interface parameters comprise one or more of the following: interface name, interface identification, interface version, externally issued information, interface coding, flow arrangement information, input field and output field; and generating the service corresponding to the interface parameters according to the interface parameters.
In one example, the apparatus 40 further includes an authorization unit 406.
An authorization unit 406 for transmitting authorization information that can use the service orchestration system to the user; the authorization information comprises an authorization account number, a password and an authorization range.
In one example, the apparatus 40 further comprises an adjustment unit 407, the adjustment unit 407 comprising a receiving module 4071, an adjustment module 4072, and a transmitting module 4073.
A receiving module 4071, configured to receive an acquisition instruction sent by a terminal device; the acquisition instruction is used for indicating to acquire the target combination service, and the acquisition instruction comprises equipment parameters of the terminal equipment.
The adjusting module 4072 is configured to perform an adaptation adjustment process on the target combination service indicated by the acquisition instruction according to the device parameter, so as to adjust the target combination service indicated by the acquisition instruction to be adapted to the terminal device, and obtain an adjusted target combination service.
And the sending module 4073 is configured to send the adjusted target combined service to the terminal device.
The device provided in this embodiment may be used to perform the method of the foregoing embodiment, and its implementation principle and technical effects are similar, and will not be described herein again.
It should be noted that, it should be understood that the division of the modules of the above apparatus is merely a division of a logic function, and may be fully or partially integrated into a physical entity or may be physically separated. And these modules may all be implemented in software in the form of calls by the processing element; or can be realized in hardware; the method can also be realized in a form of calling software by a processing element, and the method can be realized in a form of hardware by a part of modules. The functions of the above data processing module may be called and executed by a processing element of the above apparatus, and may be stored in a memory of the above apparatus in the form of program codes. The implementation of the other modules is similar. In addition, all or part of the modules can be integrated together or can be independently implemented. The processing element here may be an integrated circuit with signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in a software form.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic equipment is provided with the service arrangement system, and a plurality of callable atomic services are displayed in a visual operation interface of the service arrangement system. As shown in fig. 5, the electronic device 50 includes: a processor 501, and a memory 502 communicatively coupled to the processor.
Wherein the memory 502 stores computer-executable instructions; processor 501 executes computer-executable instructions stored in memory 502 to implement a method as in any one of the preceding claims.
In the specific implementation of the electronic device described above, it should be understood that the processor may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The method disclosed in connection with the embodiments of the present application may be directly embodied as a hardware processor executing or may be executed by a combination of hardware and software modules in the processor.
Embodiments of the present application also provide a computer-readable storage medium having stored therein computer-executable instructions which, when executed by a processor, are adapted to carry out a method as any one of the preceding claims.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by computer instruction related hardware. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Embodiments of the present application also provide a computer program product comprising a computer program for implementing a method as in any of the preceding claims when executed by a processor.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.
Claims (12)
1. An atomic service orchestration method is characterized in that the method is applied to electronic equipment, a service orchestration system is deployed in the electronic equipment, and a plurality of callable atomic services are displayed in a visual operation interface of the service orchestration system; the method comprises the following steps:
responding to a selected operation acted on the visual operation interface, and determining that a plurality of atomic services indicated by the selected operation are all target atomic services; the target atomic service is an atomic service required to be called for completing the target business function;
acquiring calling logic of each target atomic service when the target business function is completed; the calling logic comprises a calling sequence and a calling condition;
arranging each target atomic service according to the calling logic to generate a target combined service; the target combination service is used for completing the target business function;
packaging the target combined service and transmitting the target combined service to a product library; wherein the product library comprises a download interface for downloading the target combination service.
2. The method of claim 1, wherein orchestrating each of the target atomic services according to the invocation logic to generate a target composite service comprises:
based on a preset distributed framework, arranging each target atomic service into a combined engineering service meeting the calling sequence and the calling condition; wherein, the preset distributed frame is a constant frame preset based on a distributed principle;
acquiring configuration parameters of the combined engineering service based on the arrangement progress;
and responding to the acquisition of the configuration parameters, configuring the combined engineering service, and determining the configured combined engineering service as the target combined service.
3. The method of claim 2, wherein obtaining configuration parameters of the composite engineering service based on a scheduling schedule comprises:
based on the arrangement progress, displaying a parameter configuration window corresponding to the arrangement progress in the visual operation interface;
and acquiring configuration parameters input from the parameter configuration window.
4. The method of claim 2, wherein configuring the combined engineering service in response to the obtaining of the configuration parameters comprises:
Determining attribute characteristics of configuration content based on the configuration content corresponding to the configuration parameters; wherein the attribute features are any one of basic attributes, composite attributes and public attributes;
and configuring the combined engineering service according to the attribute characteristics and the actual business requirements.
5. The method of claim 2, wherein the configuration parameters include one or more of the following optional attribute parameters: service identification, service name, service port, management version number, current dependency declaration.
6. The method of claim 1, wherein determining that the plurality of atomic services indicated by the selected operation are all target atomic services comprises:
determining the atomic service indicated by the selected operation as a target atomic service, and determining other atomic services with association relation with the atomic service indicated by the selected operation as target atomic services;
or determining the atomic service indicated by the selected operation as a target atomic service, and determining other atomic services with association relation with the atomic service indicated by the selected operation, and marking the other atomic services on the visual operation interface; responding to a confirmation instruction of a user, and determining the other atomic services as target atomic services; the confirmation instruction is used for indicating the user to confirm other atomic services as target atomic services;
The association relation characterizes the relation with calling order among the atomic services, or the association relation characterizes the atomic services to be used for completing the target business function.
7. The method according to any one of claims 1-6, further comprising:
acquiring interface parameters of a service to be developed; wherein the interface parameter is a requirement for the service to be developed, and the interface parameter includes one or more of the following: interface name, interface identification, interface version, externally issued information, interface coding, flow arrangement information, input field and output field;
and generating a service corresponding to the interface parameter according to the interface parameter.
8. The method according to any one of claims 1-6, further comprising:
transmitting authorization information to the user that the service orchestration system may be used; the authorization information comprises an authorization account number, a password and an authorization range.
9. The method according to any one of claims 1-6, further comprising:
receiving an acquisition instruction sent by terminal equipment; the acquisition instruction is used for indicating to acquire the target combination service, and the acquisition instruction comprises equipment parameters of the terminal equipment;
Performing adaptation adjustment processing on the target combined service indicated by the acquisition instruction according to the equipment parameter so as to adjust the target combined service indicated by the acquisition instruction to be suitable for the terminal equipment, thereby obtaining an adjusted target combined service;
and sending the adjusted target combined service to the terminal equipment.
10. An atomic service orchestration device is characterized in that the device is applied to electronic equipment, a service orchestration system is deployed in the electronic equipment, and a plurality of callable atomic services are displayed in a visual operation interface of the service orchestration system; the device comprises:
the selection unit is used for responding to the selection operation acted on the visual operation interface and determining that a plurality of atomic services indicated by the selection operation are all target atomic services; the target atomic service is an atomic service required to be called for completing the target business function;
the acquisition unit is used for acquiring the calling logic of each target atomic service when the target business function is completed; the calling logic comprises a calling sequence and a calling condition;
the arrangement unit is used for arranging each target atomic service according to the calling logic to generate a target combined service; the target combination service is used for completing the target business function;
The packing unit is used for packing the target combination service and transmitting the target combination service to a product library; wherein the product library comprises a download interface for downloading the target combination service.
11. An electronic device having a service orchestration system deployed therein, a plurality of callable atomic services displayed in a visual operation interface of the service orchestration system, the electronic device comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to implement the method of any one of claims 1-9.
12. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method of any one of claims 1-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310613315.2A CN116755677A (en) | 2023-05-26 | 2023-05-26 | Atomic service arrangement method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310613315.2A CN116755677A (en) | 2023-05-26 | 2023-05-26 | Atomic service arrangement method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116755677A true CN116755677A (en) | 2023-09-15 |
Family
ID=87952379
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310613315.2A Pending CN116755677A (en) | 2023-05-26 | 2023-05-26 | Atomic service arrangement method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116755677A (en) |
-
2023
- 2023-05-26 CN CN202310613315.2A patent/CN116755677A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9235380B2 (en) | Software modeling framework | |
CN111176626B (en) | Cross-programming-language code calling method and device, medium and equipment | |
US20210149648A1 (en) | System and a method for automating application development and deployment | |
CN110532020A (en) | A kind of data processing method of micro services layout, apparatus and system | |
CN110580154A (en) | access method based on H5 access mode, access assembly and mobile terminal thereof | |
GB2589658A (en) | Method and apparatus for running an applet | |
CN106686420A (en) | Live streaming application program management method and apparatus | |
CN106569880B (en) | Method and system for dynamically sharing resources between Android applications | |
CN108965375B (en) | Service call proxy control system, method, server and readable storage medium | |
US20230401058A1 (en) | Semantic functional wrappers of services | |
CN113296742A (en) | APP data processing method and device and mobile terminal | |
CN112764756A (en) | Software resource compiling method and corresponding device, equipment and medium | |
CN117093286A (en) | Plug-in generation method, device, equipment and computer readable storage medium | |
CN112015384A (en) | Interface mapping method and device | |
WO2019043622A1 (en) | Megamodel driven process enactment | |
CN109725887B (en) | Data interaction method and device based on message research and development framework and terminal equipment | |
US7007280B1 (en) | Schema driven management of a component-based application | |
CN116755677A (en) | Atomic service arrangement method, device, equipment and storage medium | |
CN114416202B (en) | Mobile terminal SDK calling method and system | |
CN113709171B (en) | Method and device for cross-component state communication | |
CN113626007B (en) | Application method and device of connector model and server | |
Srinivasmurthy et al. | Web2exchange: A model-based service transformation and integration environment | |
CN113032004B (en) | Method, apparatus and program product for managing development jobs in a development environment | |
CN113204533A (en) | Log level adjusting method and device, computer equipment and storage medium | |
JP2006236375A (en) | Web application development method, development support system, and program about development method |
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 |