CN115514806B - A perception discovery method and system for a discrete service cluster - Google Patents
A perception discovery method and system for a discrete service cluster Download PDFInfo
- Publication number
- CN115514806B CN115514806B CN202211434412.7A CN202211434412A CN115514806B CN 115514806 B CN115514806 B CN 115514806B CN 202211434412 A CN202211434412 A CN 202211434412A CN 115514806 B CN115514806 B CN 115514806B
- Authority
- CN
- China
- Prior art keywords
- interface
- service
- standard field
- field set
- service 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 33
- 230000008447 perception Effects 0.000 title description 11
- 238000013507 mapping Methods 0.000 claims abstract description 44
- 230000015654 memory Effects 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000003032 molecular docking Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Stored Programmes (AREA)
Abstract
本发明公开一种离散服务集群的感知发现方法及系统,包括:对接口请求参数进行解析,得到至少一个标准字段集;根据预设映射关系获取与至少一个标准字段集相关联的所有可执行的业务接口名称,并在业务接口池中检索与至少一个可执行的业务接口名称相关联的至少一个业务接口信息;获取与至少一个业务接口信息相关联的至少一个业务接口模板,并根据至少一个标准字段集中数据对至少一个业务接口模板进行更新,形成至少一个目标接口请求参数;将至少一个目标接口请求参数代入至少一个业务接口中进行请求,使得到返回值信息并返回给用户。对于相同场景的业务,用户只需要对接一次,系统内部会感知其他接口并内部调用,操作更加简单,对接更加轻松。
The invention discloses a method and system for perceptual discovery of a discrete service cluster, comprising: parsing interface request parameters to obtain at least one standard field set; obtaining all executable files associated with at least one standard field set according to a preset mapping relationship Business interface name, and retrieve at least one business interface information associated with at least one executable business interface name in the business interface pool; obtain at least one business interface template associated with at least one business interface information, and according to at least one standard The data in the field set updates at least one business interface template to form at least one target interface request parameter; substitutes at least one target interface request parameter into at least one business interface to make a request, so that return value information is obtained and returned to the user. For the business of the same scenario, the user only needs to connect once, and the system will perceive other interfaces and call them internally, which makes the operation easier and the connection easier.
Description
技术领域technical field
本发明属于计算机技术领域,尤其涉及一种离散服务集群的感知发现方法及系统。The invention belongs to the technical field of computers, and in particular relates to a method and system for perceiving and discovering discrete service clusters.
背景技术Background technique
现在对于服务调用时,只能一个业务场景请求一个服务接口,调用方必须明确知道目标请求的接口和接口完整信息才可以使用,业务调用和服务接口完全耦合在一起,对于相同的业务场景触发多个接口时,只能一个一个接口去调用实现,使调用更加复杂且冗余。Now when calling a service, only one service interface can be requested for one business scenario. The caller must clearly know the target requested interface and the complete information of the interface before using it. The business call and the service interface are completely coupled together. For the same business scenario, trigger multiple When there are multiple interfaces, the implementation can only be called one by one, which makes the call more complicated and redundant.
发明内容Contents of the invention
本发明提供一种离散服务集群的感知发现方法及系统,用于解决相同的业务场景触发多个接口时,只能一个一个接口去调用实现,使调用更加复杂且冗余的技术问题。The present invention provides a method and system for perceiving and discovering discrete service clusters, which are used to solve the technical problem that when multiple interfaces are triggered by the same business scene, only one interface can be called and implemented, making the call more complicated and redundant.
第一方面,本发明提供一种离散服务集群的感知发现方法,包括:获取用户的接口请求参数,对所述接口请求参数进行解析,得到至少一个标准字段集,其中,所述至少一个标准字段集由至少一个业务域中的至少一个业务标准字段组成;根据预设映射关系获取与所述至少一个标准字段集相关联的所有可执行的业务接口名称,并在业务接口池中检索与至少一个可执行的业务接口名称相关联的至少一个业务接口信息;获取与所述至少一个业务接口信息相关联的至少一个业务接口模板,并根据所述至少一个标准字段集中数据对所述至少一个业务接口模板进行更新,形成至少一个目标接口请求参数;将所述至少一个目标接口请求参数代入至少一个业务接口中进行请求,使得到返回值信息并返回给用户。In a first aspect, the present invention provides a method for perceptual discovery of a discrete service cluster, including: obtaining user interface request parameters, parsing the interface request parameters, and obtaining at least one standard field set, wherein the at least one standard field The set is composed of at least one business standard field in at least one business domain; all executable business interface names associated with the at least one standard field set are obtained according to the preset mapping relationship, and are retrieved in the business interface pool and at least one At least one business interface information associated with the name of the executable business interface; obtaining at least one business interface template associated with the at least one business interface information, and collecting data for the at least one business interface according to the at least one standard field The template is updated to form at least one target interface request parameter; the at least one target interface request parameter is substituted into at least one service interface to request, so that return value information is obtained and returned to the user.
第二方面,本发明提供一种离散服务集群的感知发现系统,包括:解析模块,配置为获取用户的接口请求参数,对所述接口请求参数进行解析,得到至少一个标准字段集,其中,所述至少一个标准字段集由至少一个业务域中的至少一个业务标准字段组成;检索模块,配置为根据预设映射关系获取与所述至少一个标准字段集相关联的所有可执行业务接口名称,并在预设业务接口池中检索与至少一个可执行业务接口名称相关联的至少一个业务接口信息;更新模块,配置为获取与所述至少一个业务接口信息相关联的至少一个业务接口模板,并根据所述至少一个标准字段集中数据对所述至少一个业务接口模板进行更新,形成至少一个目标接口请求参数;请求模块,配置为将所述至少一个目标接口请求参数代入至少一个业务接口中进行请求,使得到返回值信息并返回给用户。In a second aspect, the present invention provides a perception and discovery system for discrete service clusters, including: a parsing module configured to obtain user interface request parameters, parse the interface request parameters, and obtain at least one standard field set, wherein the The at least one standard field set is composed of at least one business standard field in at least one business domain; the retrieval module is configured to obtain all executable business interface names associated with the at least one standard field set according to a preset mapping relationship, and Retrieve at least one service interface information associated with at least one executable service interface name in the preset service interface pool; the update module is configured to obtain at least one service interface template associated with the at least one service interface information, and according to The data in the at least one standard field set updates the at least one service interface template to form at least one target interface request parameter; the request module is configured to substitute the at least one target interface request parameter into at least one service interface to request, Make the return value information and return it to the user.
第三方面,提供一种电子设备,其包括:至少一个处理器,以及与所述至少一个处理器通信连接的存储器,其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行本发明任一实施例的离散服务集群的感知发现方法的步骤。In a third aspect, an electronic device is provided, which includes: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, The instructions are executed by the at least one processor, so that the at least one processor can execute the steps of the method for sensing and discovering discrete service clusters in any embodiment of the present invention.
第四方面,本发明还提供一种计算机可读存储介质,其上存储有计算机程序,所述程序指令被处理器执行时,使所述处理器执行本发明任一实施例的离散服务集群的感知发现方法的步骤。In a fourth aspect, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the program instructions are executed by a processor, the processor executes the discrete service cluster in any embodiment of the present invention. Steps in the perception discovery method.
本申请的离散服务集群的感知发现方法及系统,使得用户只需要关注业务场景即可,无需关心接口数量和对应接口信息,对于相同场景的业务,用户只需要对接一次,系统内部会感知其他接口并内部调用,操作更加简单,对接更加轻松。The perception and discovery method and system of discrete service clusters in this application enable users to only need to pay attention to business scenarios, and do not need to care about the number of interfaces and corresponding interface information. For services in the same scenario, users only need to connect once, and the system will perceive other interfaces. And call it internally, the operation is simpler and the docking is easier.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments. Obviously, the accompanying drawings in the following description are some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without making creative efforts.
图1为本发明一实施例提供的一种离散服务集群的感知发现方法的流程图;FIG. 1 is a flow chart of a method for perceptual discovery of a discrete service cluster provided by an embodiment of the present invention;
图2为本发明一实施例提供的一种离散服务集群的感知发现系统的结构框图;FIG. 2 is a structural block diagram of a perception discovery system for a discrete service cluster provided by an embodiment of the present invention;
图3是本发明一实施例提供的电子设备的结构示意图。Fig. 3 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
请参阅图1,其示出了本申请的一种离散服务集群的感知发现方法的流程图。Please refer to FIG. 1 , which shows a flow chart of a method for perceptual discovery of a discrete service cluster in the present application.
如图1所示,离散服务集群的感知发现方法具体包括以下步骤:As shown in Figure 1, the perceptual discovery method for discrete service clusters specifically includes the following steps:
步骤S101,获取用户的接口请求参数,对所述接口请求参数进行解析,得到至少一个标准字段集,其中,所述至少一个标准字段集由至少一个业务域中的至少一个业务标准字段组成。Step S101 , acquiring user interface request parameters, and parsing the interface request parameters to obtain at least one standard field set, wherein the at least one standard field set is composed of at least one service standard field in at least one service domain.
在本实施例中,业务域具体包括:新建患者档案业务,新增挂号记录业务、看诊业务、分诊业务以及书写病历业务;业务标准字段具体包括:病人姓名字段、病人性别字段、病人身份证号字段、文档标题字段以及文档建立时间字段。In this embodiment, the business domain specifically includes: new patient file business, new registration record business, doctor consultation business, triage business, and medical record writing business; business standard fields specifically include: patient name field, patient gender field, patient identity Certificate number field, document title field and document creation time field.
步骤S102,根据预设映射关系获取与所述至少一个标准字段集相关联的所有可执行的业务接口名称,并在业务接口池中检索与至少一个可执行的业务接口名称相关联的至少一个业务接口信息。Step S102, obtain all executable service interface names associated with the at least one standard field set according to the preset mapping relationship, and retrieve at least one service associated with at least one executable service interface name in the service interface pool interface information.
在本实施例中,首先,获取至少一个标准字段集,根据信息映射池中配置的映射字段在信息映射池中查找所有与至少一个标准字段集关联的预设映射关系,接着,根据预设映射关系在信息映射池中获取与至少一个标准字段集相关联的所有可执行的业务接口名称,最后,根据业务接口名称在业务接口池中检索与至少一个可执行的业务接口名称相对应的至少一个业务接口信息。In this embodiment, at first, at least one standard field set is obtained, and all preset mapping relationships associated with at least one standard field set are searched in the information mapping pool according to the mapping fields configured in the information mapping pool, and then, according to the preset mapping The relationship obtains all executable business interface names associated with at least one standard field set in the information mapping pool, and finally, retrieves at least one corresponding to at least one executable business interface name in the business interface pool according to the business interface name Business interface information.
进一步地,预设映射关系为标准字段集与业务接口名称的关联关系,其中,标准字段集为业务接口中必须的字段集。Further, the preset mapping relationship is an association relationship between a standard field set and a business interface name, wherein the standard field set is a necessary field set in the business interface.
需要说明的是,业务接口池中包含至少一个业务接口库,其中一业务接口库中包含一业务接口、一业务接口信息以及一业务接口模板;通过业务接口名称能够在业务接口池中检索到其相对应的业务接口信息,在获取到业务接口信息后,与业务接口信息相对应的业务接口模板以及业务接口均被确定。It should be noted that the business interface pool contains at least one business interface library, wherein a business interface library contains a business interface, a business interface information and a business interface template; the service interface name can be retrieved in the business interface pool For the corresponding service interface information, after the service interface information is acquired, the service interface template and the service interface corresponding to the service interface information are determined.
步骤S103,获取与所述至少一个业务接口信息相关联的至少一个业务接口模板,并根据所述至少一个标准字段集中数据对所述至少一个业务接口模板进行更新,形成至少一个目标接口请求参数。Step S103, obtaining at least one service interface template associated with the at least one service interface information, and updating the at least one service interface template according to the data in the at least one standard field set to form at least one target interface request parameter.
步骤S104,将所述至少一个目标接口请求参数代入至少一个业务接口中进行请求,使得到返回值信息并返回给用户。Step S104, substituting the at least one target interface request parameter into at least one service interface to request, so that return value information is obtained and returned to the user.
综上,本申请的方法,通过接口请求参数进行解析,得到标准字段集,并根据预设映射关系查找到与各个标准字段集相关联的业务接口,使得用户只需要关注业务场景即可,无需关心接口数量和对应接口信息,对于相同场景的业务,用户只需要对接一次,系统内部会感知其他接口并内部调用,操作更加简单,对接更加轻松。In summary, the method of this application analyzes the interface request parameters to obtain standard field sets, and finds the business interfaces associated with each standard field set according to the preset mapping relationship, so that users only need to pay attention to business scenarios, without Concerned about the number of interfaces and corresponding interface information, for the business of the same scenario, the user only needs to connect once, and the system will perceive other interfaces and call them internally, making the operation easier and easier to connect.
下面对通过描述发明人在实现本发明的过程中遇到的一些问题和对最终确定的方案的一个具体实施例进行说明,以使本领域技术人员更好地理解本申请的方案。In the following, some problems encountered by the inventor in the process of realizing the present invention and a specific embodiment of the finally determined solution will be described, so that those skilled in the art can better understand the solution of the present application.
发明人在实现本申请的过程中发现现有技术中存在的缺陷主要是由以下原因导致的:现在对于服务调用时,只能一个业务场景请求一个服务接口,调用方必须明确知道目标请求的接口和接口完整信息才可以使用,业务调用和服务接口完全耦合在一起。In the process of implementing this application, the inventor found that the defects in the existing technology are mainly caused by the following reasons: when calling a service, only one service interface can be requested for one business scenario, and the caller must clearly know the interface requested by the target The complete information of the interface and the interface can be used, and the business call and the service interface are completely coupled together.
本申请的方案主要从以下几个方面入手进行设计和优化来使外部可以不必关心接口相关参数,只需要按照标准参数传递就可以,接口内部可以动态生成相关参数信息:The solution of this application is mainly designed and optimized from the following aspects so that the outside does not need to care about the relevant parameters of the interface, and only needs to be passed according to the standard parameters, and the relevant parameter information can be dynamically generated inside the interface:
(1)规范业务标准字段和值域,根据医疗行业业务特点,定义的标准字段(Field)为:PATI_ID(病人标识),PATI_NAME(病人姓名),GENDER_NAME(性别-名字),IDCARD_NO(身份证),DOC_TITLE(文档-标题),DOC_TIELE_TIME(文档建立时间)等,相关值域(Busi)为:新建患者档案,新增挂号记录,看诊,分诊,书写病历等;(1) Standardize business standard fields and value fields. According to the business characteristics of the medical industry, the defined standard fields (Field) are: PATI_ID (patient identification), PATI_NAME (patient name), GENDER_NAME (gender-name), IDCARD_NO (ID card) , DOC_TITLE (document-title), DOC_TIELE_TIME (document creation time), etc., the relevant value range (Busi) is: new patient files, new registration records, consultation, triage, writing medical records, etc.;
(2)定义和实现每一个业务接口BI1,BI2,.....Bin,将业务接口全部初始化到接口池(IC)中,并将接口池部署到服务端;(2) Define and implement each business interface BI1, BI2,.....Bin, initialize all business interfaces into the interface pool (IC), and deploy the interface pool to the server;
(3)设置每个业务接口BIn中必须的标准字段集Fields,将必须的的字段集Fields与业务接口BIn之间建立相关映射关系,将信息映射池(MC)放置到服务器内存中;(3) Set the necessary standard field set Fields in each business interface BIn, establish the relevant mapping relationship between the necessary field set Fields and the business interface BIn, and place the information mapping pool (MC) in the server memory;
(4)当用户请求接口时,根据请求的参数Para,解析成一个个标准的字段集PFields,根据传参相关字段集和信息映射池MC中配置的映射字段集Fields找到所有符合标准字段集的映射关系(MSS);(4) When the user requests the interface, according to the requested parameter Para, it is parsed into a standard field set PFields, and all fields that meet the standard field set are found according to the relevant field set of the passed parameter and the mapped field set Fields configured in the information mapping pool MC. Mapping relationship (MSS);
(5)将MSS拆分成多个服务段进行处理,获取MSS中一个映射关系(MS1)信息,找到对应的可执行业务接口BI1名称,根据BI1名称在接口池(IC)中检索相关业务接口信息BI1;(5) Split the MSS into multiple service segments for processing, obtain a mapping relationship (MS1) information in the MSS, find the corresponding executable business interface BI1 name, and retrieve related business interfaces in the interface pool (IC) according to the BI1 name Information BI1;
(6)根据检索到IC中的接口信息BI1,获取相关接口模板,将请求参数Para中字段集中数据替换模板中数据,形成新的接口参数nPara;(6) Obtain the relevant interface template according to the retrieved interface information BI1 in the IC, and replace the data in the template with the field set data in the request parameter Para to form a new interface parameter nPara;
(7)将nPara参数代入接口中进行请求,并获取返回值信息返回给接口调用方;(7) Substitute the nPara parameter into the interface to request, and obtain the return value information and return it to the interface caller;
(8)重复执行步骤5,6,7,直至所有服务都请求完成。(8) Repeat steps 5, 6, and 7 until all service requests are completed.
发明人在实现本申请的过程中,还采用过如下备选方案:In the process of realizing the present application, the inventor has also adopted the following alternatives:
HSB服务总线采用本申请的方案,业务和接口分离,内部解析处理。The HSB service bus adopts the scheme of this application, the business and the interface are separated, and the internal analysis is processed.
综上,本申请的方法相比于现有方案,避免一个业务场景调用一个接口,此方法可以处理一个业务场景只触发一个接口,接口内部可以动态检索需要触发其他的接口。外部可以不必关心接口相关参数,只需要按照标准参数传递就可以,接口内部可以动态生成相关参数信息。To sum up, compared with the existing solutions, the method of this application avoids calling an interface for a business scenario. This method can handle a business scenario and only trigger one interface, and the interface can dynamically retrieve other interfaces that need to be triggered. The outside does not need to care about the relevant parameters of the interface, it only needs to be passed according to the standard parameters, and the relevant parameter information can be dynamically generated inside the interface.
请参阅图2,其示出了本申请的一种离散服务集群的感知发现系统的结构框图。Please refer to FIG. 2 , which shows a structural block diagram of a perception and discovery system for discrete service clusters of the present application.
如图2所示,感知发现系统200,包括解析模块210、检索模块220、更新模块230以及请求模块240。As shown in FIG. 2 , the
其中,解析模块210,配置为获取用户的接口请求参数,对所述接口请求参数进行解析,得到至少一个标准字段集,其中,所述至少一个标准字段集由至少一个业务域中的至少一个业务标准字段组成;检索模块220,配置为根据预设映射关系获取与所述至少一个标准字段集相关联的所有可执行业务接口名称,并在预设业务接口池中检索与至少一个可执行业务接口名称相关联的至少一个业务接口信息;更新模块230,配置为获取与所述至少一个业务接口信息相关联的至少一个业务接口模板,并根据所述至少一个标准字段集中数据对所述至少一个业务接口模板进行更新,形成至少一个目标接口请求参数;请求模块240,配置为将所述至少一个目标接口请求参数代入至少一个业务接口中进行请求,使得到返回值信息并返回给用户。Wherein, the
在一个具体实施例中,检索模块220包括:第一获取单元,配置为获取至少一个标准字段集;查找单元,配置为根据信息映射池中配置的映射字段在所述信息映射池中查找所有与所述至少一个标准字段集关联的预设映射关系;第二获取单元,配置为根据预设映射关系在信息映射池中获取与所述至少一个标准字段集相关联的所有可执行的业务接口名称。In a specific embodiment, the
应当理解,图2中记载的诸模块与参考图1中描述的方法中的各个步骤相对应。由此,上文针对方法描述的操作和特征以及相应的技术效果同样适用于图2中的诸模块,在此不再赘述。It should be understood that the modules described in FIG. 2 correspond to the steps in the method described with reference to FIG. 1 . Therefore, the operations and features and corresponding technical effects described above for the method are also applicable to the modules in FIG. 2 , and will not be repeated here.
在另一些实施例中,本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,所述程序指令被处理器执行时,使所述处理器执行上述任意方法实施例中的离散服务集群的感知发现方法;In some other embodiments, the embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored, and when the program instructions are executed by a processor, the processor executes any of the above method embodiments Aware discovery method for discrete service clusters in ;
作为一种实施方式,本发明的计算机可读存储介质存储有计算机可执行指令,计算机可执行指令设置为:As an implementation manner, the computer-readable storage medium of the present invention stores computer-executable instructions, and the computer-executable instructions are set to:
获取用户的接口请求参数,对所述接口请求参数进行解析,得到至少一个标准字段集,其中,所述至少一个标准字段集由至少一个业务域中的至少一个业务标准字段组成;Obtaining user interface request parameters, parsing the interface request parameters to obtain at least one standard field set, wherein the at least one standard field set is composed of at least one business standard field in at least one business domain;
根据预设映射关系获取与所述至少一个标准字段集相关联的所有可执行的业务接口名称,并在业务接口池中检索与至少一个可执行的业务接口名称相关联的至少一个业务接口信息;Obtaining all executable service interface names associated with the at least one standard field set according to a preset mapping relationship, and retrieving at least one service interface information associated with at least one executable service interface name in the service interface pool;
获取与所述至少一个业务接口信息相关联的至少一个业务接口模板,并根据所述至少一个标准字段集中数据对所述至少一个业务接口模板进行更新,形成至少一个目标接口请求参数;Obtain at least one service interface template associated with the at least one service interface information, and update the at least one service interface template according to the data in the at least one standard field set to form at least one target interface request parameter;
将所述至少一个目标接口请求参数代入至少一个业务接口中进行请求,使得到返回值信息并返回给用户。Substituting the at least one target interface request parameter into at least one service interface to request, so that return value information is obtained and returned to the user.
计算机可读存储介质可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据离散服务集群的感知发现系统的使用所创建的数据等。此外,计算机可读存储介质可以包括高速随机存取存储器,还可以包括存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,计算机可读存储介质可选包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至离散服务集群的感知发现系统。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The computer-readable storage medium may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application program required by at least one function; Created data etc. In addition, a computer-readable storage medium may include high-speed random access memory, and may also include memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, the computer-readable storage medium may optionally include memory located remotely from the processor, and these remote memories may be connected to the perception discovery system of the discrete service cluster through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
图3是本发明实施例提供的电子设备的结构示意图,如图3所示,该设备包括:一个处理器310以及存储器320。电子设备还可以包括:输入装置330和输出装置340。处理器310、存储器320、输入装置330和输出装置340可以通过总线或者其他方式连接,图3中以通过总线连接为例。存储器320为上述的计算机可读存储介质。处理器310通过运行存储在存储器320中的非易失性软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例离散服务集群的感知发现方法。输入装置330可接收输入的数字或字符信息,以及产生与离散服务集群的感知发现系统的用户设置以及功能控制有关的键信号输入。输出装置340可包括显示屏等显示设备。FIG. 3 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. As shown in FIG. 3 , the device includes: a
上述电子设备可执行本发明实施例所提供的方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本发明实施例所提供的方法。The above-mentioned electronic device can execute the method provided by the embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method. For technical details that are not exhaustively described in this embodiment, refer to the method provided in the embodiment of the present invention.
作为一种实施方式,上述电子设备应用于离散服务集群的感知发现系统中,用于客户端,包括:至少一个处理器;以及,与至少一个处理器通信连接的存储器;其中,存储器存储有可被至少一个处理器执行的指令,指令被至少一个处理器执行,以使至少一个处理器能够:As an implementation manner, the above-mentioned electronic device is applied to a perception discovery system of a discrete service cluster, and is used for a client, including: at least one processor; and a memory connected to the at least one processor; instructions to be executed by at least one processor, the instructions to be executed by at least one processor to enable at least one processor to:
获取用户的接口请求参数,对所述接口请求参数进行解析,得到至少一个标准字段集,其中,所述至少一个标准字段集由至少一个业务域中的至少一个业务标准字段组成;Obtaining user interface request parameters, parsing the interface request parameters to obtain at least one standard field set, wherein the at least one standard field set is composed of at least one business standard field in at least one business domain;
根据预设映射关系获取与所述至少一个标准字段集相关联的所有可执行的业务接口名称,并在业务接口池中检索与至少一个可执行的业务接口名称相关联的至少一个业务接口信息;Obtaining all executable service interface names associated with the at least one standard field set according to a preset mapping relationship, and retrieving at least one service interface information associated with at least one executable service interface name in the service interface pool;
获取与所述至少一个业务接口信息相关联的至少一个业务接口模板,并根据所述至少一个标准字段集中数据对所述至少一个业务接口模板进行更新,形成至少一个目标接口请求参数;Obtain at least one service interface template associated with the at least one service interface information, and update the at least one service interface template according to the data in the at least one standard field set to form at least one target interface request parameter;
将所述至少一个目标接口请求参数代入至少一个业务接口中进行请求,使得到返回值信息并返回给用户。Substituting the at least one target interface request parameter into at least one service interface to request, so that return value information is obtained and returned to the user.
以上所描述的装置实施例仅仅是示意性的,其中作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place , or can also be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without any creative effort.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211434412.7A CN115514806B (en) | 2022-11-16 | 2022-11-16 | A perception discovery method and system for a discrete service cluster |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211434412.7A CN115514806B (en) | 2022-11-16 | 2022-11-16 | A perception discovery method and system for a discrete service cluster |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115514806A CN115514806A (en) | 2022-12-23 |
CN115514806B true CN115514806B (en) | 2023-03-03 |
Family
ID=84513934
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211434412.7A Active CN115514806B (en) | 2022-11-16 | 2022-11-16 | A perception discovery method and system for a discrete service cluster |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115514806B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112328224A (en) * | 2021-01-06 | 2021-02-05 | 广州市玄武无线科技股份有限公司 | Service interface docking method and device, storage medium and electronic equipment |
CN112667720A (en) * | 2020-12-28 | 2021-04-16 | 平安普惠企业管理有限公司 | Conversion method, device, equipment and storage medium of interface data model |
CN113419719A (en) * | 2021-06-29 | 2021-09-21 | 北京仁科互动网络技术有限公司 | Interface case generation method and system based on business scene |
CN113676521A (en) * | 2021-07-29 | 2021-11-19 | 北京百度网讯科技有限公司 | Service request response method and device and electronic equipment |
WO2021233327A1 (en) * | 2020-05-19 | 2021-11-25 | 中兴通讯股份有限公司 | Message processing method and apparatus, announcement method and apparatus, network bridge node, source device, storage medium, and message processing system |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111562953A (en) * | 2020-03-13 | 2020-08-21 | 深圳壹账通智能科技有限公司 | Interface calling method and device, computer device and readable storage medium |
CN113626223A (en) * | 2021-08-12 | 2021-11-09 | 北京京东振世信息技术有限公司 | Interface calling method and device |
CN114168343A (en) * | 2021-12-15 | 2022-03-11 | 平安付科技服务有限公司 | Response method, device, server and storage medium for service request |
-
2022
- 2022-11-16 CN CN202211434412.7A patent/CN115514806B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021233327A1 (en) * | 2020-05-19 | 2021-11-25 | 中兴通讯股份有限公司 | Message processing method and apparatus, announcement method and apparatus, network bridge node, source device, storage medium, and message processing system |
CN112667720A (en) * | 2020-12-28 | 2021-04-16 | 平安普惠企业管理有限公司 | Conversion method, device, equipment and storage medium of interface data model |
CN112328224A (en) * | 2021-01-06 | 2021-02-05 | 广州市玄武无线科技股份有限公司 | Service interface docking method and device, storage medium and electronic equipment |
CN113419719A (en) * | 2021-06-29 | 2021-09-21 | 北京仁科互动网络技术有限公司 | Interface case generation method and system based on business scene |
CN113676521A (en) * | 2021-07-29 | 2021-11-19 | 北京百度网讯科技有限公司 | Service request response method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN115514806A (en) | 2022-12-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10366053B1 (en) | Consistent randomized record-level splitting of machine learning data | |
US7664829B2 (en) | Document managing system, document managing apparatus and document managing method | |
JP5023715B2 (en) | Information processing system, information processing apparatus, and program | |
US11153071B2 (en) | Citation and attribution management methods and systems | |
WO2020211236A1 (en) | Read-write conflict resolution method and apparatus employing b+ tree and storage medium | |
CN109885577B (en) | Data processing method, device, terminal and storage medium | |
CN1954318A (en) | Methods, systems and programs for maintaining a namespace of filesets accessible to clients over a network | |
US8713368B2 (en) | Methods for testing OData services | |
CN110956269A (en) | Data model generation method, device, equipment and computer storage medium | |
CN113204558B (en) | Automatic data table structure updating method and device | |
CN111753141B (en) | Data management method and related equipment | |
CN111651424B (en) | Data processing method, device, data node and storage medium | |
CN112148678A (en) | A file access method, system, device and medium | |
CN113111138A (en) | Data processing method, device, computing equipment and medium | |
CN112559913B (en) | Data processing method, device, computing equipment and readable storage medium | |
CN111198678A (en) | Method and device for generating GraphQL front-end operation interface | |
CN112347794A (en) | Data translation method, apparatus, device and computer storage medium | |
CN110413350A (en) | Request processing method, system, server and storage medium based on dynamic mapping plug-in | |
EP2587381A1 (en) | Server device and content acquisition method | |
CN115514806B (en) | A perception discovery method and system for a discrete service cluster | |
CN111880964B (en) | Method and system for provenance-based data backup | |
CN112783842B (en) | Log collection method and device | |
CN105893640A (en) | Favorite combining method and device | |
CN113220237B (en) | Distributed storage method, device, equipment and storage medium | |
CN116126248A (en) | Renaming processing method, server, client and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CB03 | Change of inventor or designer information |
Inventor after: Zhou Binbin Inventor after: He Changhai Inventor after: Ding Chuan Inventor after: Ye Kai Inventor after: Fan Haidong Inventor after: Lu Bingqing Inventor after: Zeng Zhongan Inventor before: Zhou Binbin Inventor before: He Changhai Inventor before: Ding Chuan Inventor before: Ye Kai Inventor before: Fan Haidong Inventor before: Lu Bingqing Inventor before: Zeng Zhongan Inventor before: Ji Zhengrong |
|
CB03 | Change of inventor or designer information | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A Perception Discovery Method and System for Discrete Service Clusters Granted publication date: 20230303 Pledgee: Wuxi New District Chuang friends financing Company limited by guarantee Pledgor: JIANGSU MANDALA SOFTWARE Co.,Ltd. Registration number: Y2024980004486 |
|
PC01 | Cancellation of the registration of the contract for pledge of patent right | ||
PC01 | Cancellation of the registration of the contract for pledge of patent right |
Granted publication date: 20230303 Pledgee: Wuxi New District Chuang friends financing Company limited by guarantee Pledgor: JIANGSU MANDALA SOFTWARE Co.,Ltd. Registration number: Y2024980004486 |
|
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A Perception Discovery Method and System for Discrete Service Clusters Granted publication date: 20230303 Pledgee: Wuxi New District Chuang friends financing Company limited by guarantee Pledgor: JIANGSU MANDALA SOFTWARE Co.,Ltd. Registration number: Y2025980004958 |