Visual service arrangement method and device
1. A visualization service orchestration method, comprising:
receiving a service request instruction sent by a client;
determining the service content and the service type contained in the service request instruction;
determining the type of a target arrangement component according to the service type;
calling a target arrangement component in the target arrangement component type according to the service content;
and combining all the target arrangement components to obtain a service system required by the client.
2. The method of claim 1, wherein the traffic classes comprise: service traffic and message traffic.
3. The method of claim 1, wherein the service traffic comprises: dubbo service and Http service;
the message service comprises: an Event message.
4. The method of claim 2, wherein determining a target orchestration component class according to the traffic class comprises:
when the service type is the service, the target arrangement component type is a service component;
and when the service type is the message service, the target editing component type is a message service component.
5. The method of claim 4, wherein the service content is authentication, and the service category is the service;
the calling of the target arrangement component in the target arrangement component type according to the service content comprises the following steps:
traversing the service business component according to the identity authentication;
and acquiring a corresponding identity verification component in the service business component.
6. A visualization service orchestration apparatus, comprising:
the service request instruction receiving module is used for receiving a service request instruction sent by a client;
a service content type determining module, configured to determine the service content and the service type included in the service request instruction;
the component type determining module is used for determining the type of the target arrangement component according to the service type;
the target component determining module is used for calling the target arrangement components in the target arrangement component types according to the service contents;
and the target component combination module is used for combining all the target arrangement components to obtain the service system required by the client.
Background
With the deep development of the internet industry, a new industry trend appears in the field of system research and development, wherein a low-code platform is also one of the industry trends, and the visualized service arrangement can reduce the code amount and improve the production and research efficiency.
In the existing system product research and development process, the requirement for business is generally completed in a coding mode, and the same is true when a plurality of services are needed, so that the existing technical scheme causes that a business party needs to perform joint debugging test with a plurality of service providers, the communication is coordinated, the efficiency is low, and the research and development period is prolonged; in addition, the provider and the user of the service do not establish a clear relationship, which is not beneficial to the governance of the service.
Disclosure of Invention
In view of the above, the present invention provides a method and an apparatus for visually arranging services to overcome the shortcomings of the prior art. The problem of low research and development efficiency of the current business system is solved.
In order to achieve the purpose, the invention adopts the following technical scheme:
a visualization service orchestration method, comprising:
receiving a service request instruction sent by a client;
determining the service content and the service type contained in the service request instruction;
determining the type of a target arrangement component according to the service type;
calling a target arrangement component in the target arrangement component type according to the service content;
and combining all the target arrangement components to obtain a service system required by the client.
Optionally, the service category includes: service traffic and message traffic.
Optionally, the service includes: dubbo service and Http service; the message service comprises: an Event message.
Optionally, the determining the category of the target orchestration component according to the service category includes:
when the service type is the service, the target arrangement component type is a service component; and when the service type is the message service, the target editing component type is a message service component.
Optionally, the service content is identity authentication, and the service type is the service;
the calling of the target arrangement component in the target arrangement component type according to the service content comprises the following steps:
traversing the service business component according to the identity authentication;
and acquiring a corresponding identity verification component in the service business component.
A visualization service orchestration device, comprising:
the service request instruction receiving module is used for receiving a service request instruction sent by a client;
a service content type determining module, configured to determine the service content and the service type included in the service request instruction;
the component type determining module is used for determining the type of the target arrangement component according to the service type;
the target component determining module is used for calling the target arrangement components in the target arrangement component types according to the service contents;
and the target component combination module is used for combining all the target arrangement components to obtain the service system required by the client.
The technical scheme provided by the application can comprise the following beneficial effects:
the application discloses a visual service arranging method and a visual service arranging device, wherein the method comprises the following steps: receiving a service request instruction sent by a client; determining the service content and the service type contained in the service request instruction; determining the type of a target arrangement component according to the service type; calling a target arrangement component in the target arrangement component type according to the service content; and combining all the target arrangement components to obtain a service system required by the client. According to the method, the low-code implementation requirement is realized by calling the service arrangement system, the service arrangement is adjusted at any time to meet the requirement of a business party, version release is not relied on, common service arrangement meets a plurality of business scenes, repeated development is not needed, and the production and research efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart of a visualization service orchestration method according to an embodiment of the present invention;
FIG. 2 is a block diagram of a visualization service orchestration apparatus according to an embodiment of the present invention;
FIG. 3 is a schematic interface diagram of a service component in a calling service orchestration system according to an embodiment of the present invention;
fig. 4 is a structural diagram of a visualization service orchestration device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the examples given herein without any inventive step, are within the scope of the present invention.
Fig. 1 is a flowchart of a visualization service orchestration method according to an embodiment of the present invention. Referring to fig. 1, a visualization service orchestration method comprises:
step 101: and receiving a service request instruction sent by the client.
Step 102: and determining the service content and the service type contained in the service request instruction. The service types include: service traffic and message traffic. The service business comprises the following steps: dubbo service and Http service; the message traffic includes an Event message.
A plurality of service components are pre-constructed in the service orchestration system, and when research and development personnel research and develop products, the service components in the service orchestration system can be directly called according to customer requirements. For example: a Dubbo service component, an http service component. And calling the corresponding service component according to the functional requirements in the programming process.
Step 103: and determining the type of the target arrangement component according to the service type. When the service type is the service, the target arrangement component type is a service component; and when the service type is the message service, the target editing component type is a message service component. And selecting different kinds of arrangement components according to different service kinds.
Step 104: and calling the target arrangement component in the target arrangement component type according to the service content.
Step 105: and combining all the target arrangement components to obtain a service system required by the client.
In order to describe the specific implementation process of the visualization service orchestration method in the present application in more detail, taking a service request as an example of identity verification, the orchestration process is described in detail. The method comprises the following specific steps:
after the research and development personnel know the service requirements of the customers, product research and development can be carried out according to the service requirements of the customers. Firstly, a client sends a service request instruction to a research and development platform, and the service request instruction contains product requirement information of a client, namely target service.
And then, determining that the service is the identity verification of the client according to the service request instruction.
Specifically, the method comprises the following steps: when information interaction is carried out among the systems, the information interaction is realized through request interaction, and when the information interaction is carried out, a request instruction sent by a client side comprises identity information of a sender. In the application, the address information protected in the service request instruction is obtained, then the latitude and longitude analysis is carried out on the address information, and if the address information contains the latitude and longitude information, the relevant operation is directly carried out according to the request of the client. If the address information does not contain latitude and longitude information, the empty set is directly returned to the client, so that the condition that the identity authentication is not passed is indicated, and a service request instruction of the client cannot be corresponded.
When the longitude and latitude resolution is carried out, the longitude and latitude resolution is determined to be service business, and then the longitude and latitude resolution component in the Dubbo service component is adopted to identify the longitude and latitude in the address information. At this time, the corresponding longitude and latitude analysis component in the Dubbo service component is called.
It should be noted that the means used for identifying the latitude and longitude of the address is not limited to the Dubbo service, and may be determined according to the actual situation of service component grouping.
For a more detailed and clear description of the procedure for retrieving service components in the present application, reference will now be made by way of example. Fig. 3 is a schematic interface diagram of a service component in a calling service orchestration system according to an embodiment of the present invention. With reference to figure 3 of the drawings,
and when the service component in the service arranging system is called, determining a target arranging component according to the service content and the service type in the service request instruction. The service request instruction in this embodiment is: the copy shorthand queries for two-hour appointments. Then according to a preset flow: start-call service component-end.
After the execution starts, according to the content of the service request instruction, firstly checking the identity of the client, calling a longitude and latitude analysis component in the Dubbo service at the moment, adding the longitude and latitude analysis component, further carrying out address longitude and latitude analysis through the component, and when carrying out the longitude and latitude analysis, specifically realizing the process as shown in figure 3, setting a specific analysis process on a component configuration interface, wherein the service name is address longitude and latitude analysis, and then needing research and development personnel to select specific services: and the data development platform and the address resolution service are subjected to related setting according to interface requirements, after the setting is finished, the calling of a latitude resolution component in the Dubbo service is finished, and then the latitude and longitude resolution of the address is carried out through the latitude and longitude resolution component. Therefore, the identity verification of the client is realized.
After the longitude and latitude resolution is finished, whether the express hand supports the two-hour reservation is judged, and the function is realized in the following process: firstly, determining whether a service for judging whether the express supports a two-hour reservation belongs to a service, then determining that the request belongs to a Dubbo service in the service, traversing a Dubbo service assembly, searching a functional assembly of a corresponding function for judging whether the express supports the two-hour reservation, and adding the functional assembly to realize the function of judging whether the express supports the two-hour reservation.
Therefore, according to the above implementation process principle, a target arrangement component for "inquiring two-hour reservation" in the service component, a target arrangement component for "acquiring two-hour reservation", and a target arrangement component for "returning to an empty set" in the message component, a target arrangement component for "not supporting two-hour reservation", a target arrangement component for "returning to an uncontrolled amount result", and a target arrangement component for "supporting two-hour reservation" are added.
And then all the target editing components are combined to realize the function of inquiring the two-hour reservation by the copy fast hand.
On the basis of the above embodiment, in the present application, when performing visualization service orchestration, a service request instruction is identified, service content and service type of a client are determined, then a target orchestration component type is determined according to the service type, a target orchestration component in the target orchestration component type is called by using the service content, and then all the target orchestration components are combined to realize a service request of the client. The embodiment improves the research and development efficiency of products and realizes the low code requirement; meanwhile, unified service management and visualization of the relation between a business party and a service provider are realized, service arrangement is adjusted at any time to meet the requirements of the business party, a plurality of business scenes are met without version release and common service arrangement, and repeated development is not needed.
Corresponding to the visual service arranging method provided by the embodiment of the invention, the embodiment of the invention also provides a visual service arranging device. Please see the examples below.
Fig. 2 is a block diagram of a visualization service orchestration apparatus according to an embodiment of the present invention. Referring to fig. 2, a visualization service orchestration device comprises:
a service request instruction receiving module 201, configured to receive a service request instruction sent by a client.
A service content category determining module 202, configured to determine the service content and the service category included in the service request instruction. The service categories include: service traffic and message traffic. The service business comprises the following steps: dubbo service and Http service, the message traffic including: an Event message.
A component type determining module 203, configured to determine a target arrangement component type according to the service type.
And the target component determining module 204 is configured to invoke a target arrangement component in the target arrangement component category according to the service content.
And the target component combination module 205 is configured to combine all the target orchestration components to obtain a service system required by the client.
The component type determining module 203 is specifically configured to: when the service type is the service, the target arrangement component type is a service component; and when the service type is the message service, the target editing component type is a message service component.
The relationship between a service provider and a caller is displayed in a visual form in the device; the service arrangement is completed in a visual form, the business requirements are realized by low codes, and the production efficiency is improved; the business party accesses the service arrangement platform, the platform finishes the visual arrangement of a plurality of services, and the business party does not need to be connected with each party.
In order to more clearly introduce a hardware system for implementing the embodiment of the present invention, an embodiment of the present invention further provides a visualization service orchestration device, which corresponds to the visualization service orchestration method provided by the embodiment of the present invention. Please see the examples below.
Fig. 4 is a structural diagram of a visualization service orchestration device according to an embodiment of the present invention. Referring to fig. 4, a visualization service orchestration device comprises:
a processor 401 and a memory 402 connected to the processor 401;
the memory 402 is used for storing a computer program for at least the visualization service orchestration method described above;
the processor 401 is used to call and execute the computer program in the memory 402.
It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar parts in other embodiments may be referred to for the content which is not described in detail in some embodiments.
It should be noted that the terms "first," "second," and the like in the description of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present invention, the meaning of "a plurality" means at least two unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, various steps or methods may be implemented in software or firmware stored in the memory 402 and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory 402, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:用于确定信息的方法和装置