Movatterモバイル変換


[0]ホーム

URL:


CN118051355A - Method, device, electronic equipment and storage medium for managing application service - Google Patents

Method, device, electronic equipment and storage medium for managing application service
Download PDF

Info

Publication number
CN118051355A
CN118051355ACN202410288279.1ACN202410288279ACN118051355ACN 118051355 ACN118051355 ACN 118051355ACN 202410288279 ACN202410288279 ACN 202410288279ACN 118051355 ACN118051355 ACN 118051355A
Authority
CN
China
Prior art keywords
service
target
caller
software
present disclosure
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410288279.1A
Other languages
Chinese (zh)
Inventor
刘富康
许旻昊
杨隶川
陈志勇
马学明
刘俊峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zitiao Network Technology Co LtdfiledCriticalBeijing Zitiao Network Technology Co Ltd
Priority to CN202410288279.1ApriorityCriticalpatent/CN118051355A/en
Publication of CN118051355ApublicationCriticalpatent/CN118051355A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

Translated fromChinese

提供了一种管理应用服务的方法、装置、电子设备和存储介质。管理应用服务的方法包括:基于服务调用者的服务请求确定目标服务和目标服务的服务提供者;与服务提供者进行信息交互以得到目标服务的服务调用结果;以及将目标服务的服务调用结果返回给服务调用者。

A method, device, electronic device and storage medium for managing application services are provided. The method for managing application services includes: determining a target service and a service provider of the target service based on a service request of a service caller; performing information interaction with the service provider to obtain a service call result of the target service; and returning the service call result of the target service to the service caller.

Description

Translated fromChinese
管理应用服务的方法、装置、电子设备和存储介质Method, device, electronic device and storage medium for managing application services

技术领域Technical Field

本公开涉及计算机技术领域,具体涉及一种管理应用服务的方法、装置、电子设备和存储介质。The present disclosure relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for managing application services.

背景技术Background technique

操作系统通常需要提供一系列应用服务来为应用程序提供支持,例如搜索服务、邮件服务、地图服务、支付服务、信息推送服务等,如何提供并管理这些应用服务是操作系统需要解决的问题。一种方案是通过一个中心集成化的系统应用提供所有的应用服务,但是随着提供的应用服务越来越多,这个系统应用会变得越来越庞大、复杂和难以维护。另外一种方案是直接基于操作系统提供的服务能力(例如安卓系统提供的Service组件),但这种方式缺少统一的服务规范,无法进行统一的服务管理。Operating systems usually need to provide a series of application services to support applications, such as search services, email services, map services, payment services, information push services, etc. How to provide and manage these application services is a problem that the operating system needs to solve. One solution is to provide all application services through a centrally integrated system application, but as more and more application services are provided, this system application will become increasingly large, complex and difficult to maintain. Another solution is to directly rely on the service capabilities provided by the operating system (such as the Service component provided by the Android system), but this method lacks unified service specifications and cannot perform unified service management.

发明内容Summary of the invention

提供该发明内容部分以便以简要的形式介绍构思,这些构思将在后面的具体实施方式部分被详细描述。该发明内容部分并不旨在标识要求保护的技术方案的关键特征或必要特征,也不旨在用于限制所要求的保护的技术方案的范围。This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

第一方面,根据本公开的一个或多个实施例,提供了一种管理应用服务的方法,包括:In a first aspect, according to one or more embodiments of the present disclosure, a method for managing application services is provided, including:

基于服务调用者的服务请求确定目标服务和所述目标服务的服务提供者;Determine a target service and a service provider of the target service based on a service request of a service caller;

与所述服务提供者进行信息交互以得到所述目标服务的服务调用结果;以及Interacting with the service provider to obtain a service call result of the target service; and

将所述目标服务的服务调用结果返回给所述服务调用者。The service call result of the target service is returned to the service caller.

第二方面,根据本公开的一个或多个实施例,提供了一种管理应用服务的装置,包括:In a second aspect, according to one or more embodiments of the present disclosure, there is provided a device for managing application services, including:

确定单元,用于基于服务调用者的服务请求确定目标服务和所述目标服务的服务提供者;A determination unit, configured to determine a target service and a service provider of the target service based on a service request of a service caller;

通信单元,用于与所述服务提供者进行信息交互以得到所述目标服务的服务调用结果,以及将所述目标服务的服务调用结果返回给所述服务调用者。The communication unit is used to perform information exchange with the service provider to obtain the service call result of the target service, and return the service call result of the target service to the service caller.

第三方面,根据本公开的一个或多个实施例,提供了一种电子设备,包括:至少一个存储器和至少一个处理器;其中,所述存储器用于存储程序代码,所述处理器用于调用所述存储器所存储的程序代码以使所述电子设备执行根据本公开的一个或多个实施例提供方法。In a third aspect, according to one or more embodiments of the present disclosure, an electronic device is provided, comprising: at least one memory and at least one processor; wherein the memory is used to store program code, and the processor is used to call the program code stored in the memory so that the electronic device executes the method provided according to one or more embodiments of the present disclosure.

第四方面,根据本公开的一个或多个实施例,提供了一种非暂态计算机存储介质,所述非暂态计算机存储介质存储有程序代码,所述程序代码被计算机设备执行时,使得所述计算机设备执行根据本公开的一个或多个实施例提供的方法。In a fourth aspect, according to one or more embodiments of the present disclosure, a non-transitory computer storage medium is provided, wherein the non-transitory computer storage medium stores a program code, and when the program code is executed by a computer device, the computer device executes the method provided according to one or more embodiments of the present disclosure.

根据本公开的一个或多个实施例,通过基于服务调用者的服务请求确定目标服务及其服务提供者,与该服务提供者进行信息交互以得到目标服务的服务调用结果并将其返回给服务调用者,从而可以在不依赖集成化的系统应用的情况下,通过代理的方式实现应用服务的统一调用。According to one or more embodiments of the present disclosure, by determining the target service and its service provider based on the service request of the service caller, information is interacted with the service provider to obtain the service call result of the target service and return it to the service caller, it is possible to achieve unified calling of application services through a proxy without relying on an integrated system application.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

图1为本公开一实施例提供的管理应用服务的方法的流程图;FIG1 is a flow chart of a method for managing application services provided by an embodiment of the present disclosure;

图2为本公开一实施例提供的应用服务系统的示意图;FIG2 is a schematic diagram of an application service system provided by an embodiment of the present disclosure;

图3为本公开另一实施例提供的应用服务系统的示意图;FIG3 is a schematic diagram of an application service system provided by another embodiment of the present disclosure;

图4为本公开一实施例提供的应用服务系统信号流的示意图;FIG4 is a schematic diagram of a signal flow of an application service system provided by an embodiment of the present disclosure;

图5为本公开一实施例提供的管理应用服务的装置的示意图;FIG5 is a schematic diagram of a device for managing application services provided by an embodiment of the present disclosure;

图6为本公开一实施例提供的电子设备的结构示意图。FIG6 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure.

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

应当理解,本公开的实施方式中记载的步骤可以按照不同的顺序执行,和/或并行执行。此外,实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。It should be understood that the steps described in the embodiments of the present disclosure may be performed in different orders and/or in parallel. In addition, the embodiments may include additional steps and/or omit the steps shown. The scope of the present disclosure is not limited in this respect.

本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。术语“响应于”以及有关的术语是指一个信号或事件被另一个信号或事件影响到某个程度,但不一定是完全地或直接地受到影响。如果事件x“响应于”事件y而发生,则x可以直接或间接地响应于y。例如,y的出现最终可能导致x的出现,但可能存在其它中间事件和/或条件。在其它情形中,y可能不一定导致x的出现,并且即使y尚未发生,x也可能发生。此外,术语“响应于”还可以意味着“至少部分地响应于”。As used herein, the term "including" and its variations are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". The term "responsive to" and related terms refer to a signal or event being affected to a certain extent by another signal or event, but not necessarily completely or directly. If event x occurs "responsive to" event y, x may be directly or indirectly responsive to y. For example, the occurrence of y may ultimately lead to the occurrence of x, but there may be other intermediate events and/or conditions. In other cases, y may not necessarily lead to the occurrence of x, and x may occur even if y has not yet occurred. In addition, the term "responsive to" may also mean "at least partially responsive to".

术语“确定”广泛涵盖各种各样的动作,可包括获取、演算、计算、处理、推导、调研、查找(例如,在表、数据库或其他数据结构中查找)、探明、和类似动作,还可包括接收(例如,接收信息)、访问(例如,访问存储器中的数据)和类似动作,以及解析、选择、选取、建立和类似动作等等。其他术语的相关定义将在下文描述中给出。其他术语的相关定义将在下文描述中给出。The term "determine" broadly covers a variety of actions, which may include obtaining, calculating, computing, processing, deriving, investigating, searching (e.g., searching in a table, database, or other data structure), ascertaining, and similar actions, and may also include receiving (e.g., receiving information), accessing (e.g., accessing data in a memory) and similar actions, as well as parsing, selecting, choosing, establishing, and similar actions, etc. The relevant definitions of other terms will be given in the following description. The relevant definitions of other terms will be given in the following description.

可以理解的是,本技术方案所涉及的数据(包括但不限于数据本身、数据的获得或使用)应当遵循相关法律法规的规定。It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the provisions of relevant laws and regulations.

可以理解的是,在使用本公开各实施例公开的技术方案之前,均应当根据相关法律法规通过适当的方式对本公开所涉及个人信息的类型、使用范围、使用场景等告知用户并获得用户的授权。例如,在响应于接收到用户的主动请求时,向用户发送提示信息,以明确地提示用户,其请求执行的操作将需要获得和使用到用户的个人信息,从而使得用户可以根据提示信息来自主地选择是否向执行本公开技术方案的操作的电子设备、应用程序、服务器或存储介质等软件或硬件提供个人信息。It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the type, scope of use, and usage scenarios of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations. For example, in response to receiving an active request from the user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information, so that the user can autonomously choose whether to provide personal information to the electronic device, application, server, storage medium, or other software or hardware that performs the operation of the technical solution of the present disclosure according to the prompt message.

作为一种可选的但非限制性的实现方式,响应于接收到用户的主动请求,向用户发送提示信息的方式,例如可以是弹窗的方式,弹窗中可以以文字的方式呈现提示信息。此外,弹窗中还可以承载供用户选择“同意”或“不同意”向电子设备提供个人信息的选择控件。As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information is sent to the user in the form of a pop-up window, in which the prompt information can be presented in text form. In addition, the pop-up window can also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

可以理解的是,上述通知和获得用户授权过程、以及对图像的处理,仅是示意性的,不对本公开的实现方式构成限定,其他满足相关法律法规的方式也可应用于本公开的实现方式中。It is understandable that the above-mentioned notification and process of obtaining user authorization, as well as the processing of images, are merely illustrative and do not constitute a limitation on the implementation method of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation method of the present disclosure.

需要注意,本公开中提及的“第一”、“第二”等概念仅用于对装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish between devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

为了本公开的目的,短语“A和/或B”意为(A)、(B)或(A和B)。For the purposes of this disclosure, the phrase "A and/or B" means (A), (B), or (A and B).

本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

参考图1,其示出了本公开一实施例提供的管理应用服务的方法100的流程图,方法100包括步骤S110-步骤S130。Referring to FIG. 1 , there is shown a flowchart of a method 100 for managing application services provided by an embodiment of the present disclosure. The method 100 includes steps S110 to S130 .

步骤S110:基于服务调用者的服务请求确定目标服务和所述目标服务的服务提供者。Step S110: determining a target service and a service provider of the target service based on a service request of a service caller.

目标服务者是服务调用者拟调用的服务,其可以包括但不限于地图服务、视频服务、支付服务、账户服务等。在一些实施例中,服务调用者和服务提供者的类型均可以为客户端应用。对应某一个客户端应用,其既可能在一些使用场景下作为服务提供者来提供自身的服务,也可能在另一使用场景下作为服务调用者调用其他服务提供者的服务。The target service provider is the service that the service caller intends to call, which may include but is not limited to map services, video services, payment services, account services, etc. In some embodiments, the types of service callers and service providers can both be client applications. For a certain client application, it may act as a service provider to provide its own services in some usage scenarios, and it may also act as a service caller to call the services of other service providers in another usage scenario.

在一些实施例中,服务请求可以包括用于查找或调用服务的请求。In some embodiments, a service request may include a request to look up or invoke a service.

在一些实施例中,可以通过服务发现机制确定目标服务实例的信息,其中,服务发现(Service Discovery)机制是用于记录和查询服务信息,以定位需要调用的服务(例如服务的IP地址、端口等)。示例性地,可以通过相关技术领域提供的服务发现框架、组件或工具实现该服务发现机制,本公开在此不做限制。In some embodiments, the information of the target service instance can be determined through a service discovery mechanism, wherein the service discovery mechanism is used to record and query service information to locate the service to be called (e.g., the IP address, port, etc. of the service). Exemplarily, the service discovery mechanism can be implemented through a service discovery framework, component, or tool provided in the relevant technical field, and the present disclosure does not limit this.

步骤S120:与所述服务提供者进行信息交互以得到所述目标服务的服务调用结果。Step S120: performing information interaction with the service provider to obtain a service call result of the target service.

步骤S130:将所述目标服务的服务调用结果返回给所述服务调用者。Step S130: Return the service call result of the target service to the service caller.

在一些实施例中,可以基于适用的通信协议或其他方式与服务提供者进行一轮或多轮的信息交互,以从服务提供者处获得目标服务的服务调用结果,并将该结果返回给服务调用者。在一个具体实施方式中,可以向服务提供者代理转发服务调用请求,并接受服务提供者返回的服务存根(stub)实例,并通过向服务提供者调用服务存根实例得到目标服务的调用结果。In some embodiments, one or more rounds of information interaction may be performed with the service provider based on an applicable communication protocol or other means to obtain the service call result of the target service from the service provider, and return the result to the service caller. In a specific implementation, the service call request may be forwarded to the service provider proxy, and the service stub instance returned by the service provider may be accepted, and the call result of the target service may be obtained by calling the service stub instance to the service provider.

在一些实施例中,第一软件与服务提供者之间可以采取进程间通信(Inter-Process Communication,IPC)的方式进行信息交互。其中,进程间通信是操作系统提供的一种能力,用于不同进程之间进行数据交换和共享。In some embodiments, the first software and the service provider may exchange information in an inter-process communication (IPC) manner, wherein inter-process communication is a capability provided by the operating system for data exchange and sharing between different processes.

这样,根据本公开的一个或多个实施例,通过基于服务调用者的服务请求确定目标服务及其服务提供者,与该服务提供者进行信息交互以得到目标服务的服务调用结果并将其返回给服务调用者,从而可以在不依赖集成化的系统应用的情况下,通过代理的方式实现应用服务的统一调用。In this way, according to one or more embodiments of the present disclosure, by determining the target service and its service provider based on the service request of the service caller, information is interacted with the service provider to obtain the service call result of the target service and return it to the service caller, it is possible to achieve unified calling of application services through a proxy without relying on an integrated system application.

在一些实施例中,可以通过预设的第一软件执行前述步骤S110-S130。其中,第一软件包括但不限于指令、指令集、代码、代码段、程序代码、程序、子程序、组件、应用、软件包、例程、子例程、对象、可执行件、执行的线程、规程、函数等。在本实施例中,第一软件虽非服务的提供方,但可以作为桥梁来连接服务调用者和服务提供者,实现对应用服务的统一注册、查找和调用。In some embodiments, the aforementioned steps S110-S130 may be performed by a preset first software. The first software may include but is not limited to instructions, instruction sets, codes, code segments, program codes, programs, subroutines, components, applications, software packages, routines, subroutines, objects, executables, threads of execution, procedures, functions, etc. In this embodiment, although the first software is not a service provider, it can serve as a bridge to connect the service caller and the service provider to achieve unified registration, search and call of application services.

在一些实施例中,所述第一软件包含服务发现模块,所述服务发现模块用于记录和查询服务信息。服务信息可以包含服务元数据,例如服务的地址、端口、服务名等信息。示例性地,服务发现模块可以通过目录、列表等方式记录服务信息,注册服务的信息,查询服务的信息;服务发现模块还可以管理服务的生命周期,例如,在服务结束、退出或销毁后,注销服务的注册记录。In some embodiments, the first software includes a service discovery module, which is used to record and query service information. The service information may include service metadata, such as the address, port, service name, and other information of the service. Exemplarily, the service discovery module may record service information, register service information, and query service information in the form of a directory or list; the service discovery module may also manage the life cycle of the service, for example, cancel the registration record of the service after the service ends, exits, or is destroyed.

在一些实施例中,所述第一软件中定义有统一的、适用于多个服务的关于服务的规范。该规范包括但不限于关于服务声明、服务注册、服务查找、服务生命周期管理的规范。服务声明用于声明服务及其服务提供者,例如哪些服务提供者提供哪些服务;服务注册用于注册服务的信息;服务查找用于查询服务信息;服务生命周期管理用于管理服务的生命周期。这样,通过在第一软件中定义有统一的、适用于多个服务的规范,可以便于对应用服务进行统一管理,形成不依赖集成化系统应用的应用服务网络。In some embodiments, the first software defines a unified specification for services applicable to multiple services. The specification includes, but is not limited to, specifications for service declaration, service registration, service lookup, and service lifecycle management. Service declaration is used to declare services and their service providers, such as which service providers provide which services; service registration is used to register service information; service lookup is used to query service information; and service lifecycle management is used to manage the lifecycle of services. In this way, by defining a unified specification applicable to multiple services in the first software, it is possible to facilitate unified management of application services and form an application service network that does not rely on integrated system applications.

根据本公开的一个或多个实施例,通过在第一软件中内置服务注册、服务查找、服务生命周期管理等功能,可以减少大量重复冗余的工作,提升了开发效率,提高了应用协同和服务复用水平。According to one or more embodiments of the present disclosure, by embedding functions such as service registration, service search, and service lifecycle management in the first software, a large amount of repetitive and redundant work can be reduced, development efficiency can be improved, and the level of application collaboration and service reuse can be improved.

参见图2,其示出了本公开一实施例提供的应用服务系统。该应用服务系统包括服务调用者A、B和C,服务提供者X、Y和Z,以及可通信地连接各服务调用者与各服务提供者的第一软件。在该应用服务系统中,服务调用者在请求调用服务时,各服务提供者不直接与服务调用者进行通信,而是统一地通过第一软件对外提供的服务,从而可以实现在不依赖集成化系统应用(例如集成服务提供者X、Y和Z的系统应用)的情况下,通过第一软件对应用服务进行统一地注册、查找和管理。Refer to Figure 2, which shows an application service system provided by an embodiment of the present disclosure. The application service system includes service callers A, B and C, service providers X, Y and Z, and a first software that can communicatively connect each service caller with each service provider. In the application service system, when a service caller requests to call a service, each service provider does not communicate directly with the service caller, but uniformly provides services to the outside through the first software, so that the application service can be uniformly registered, searched and managed through the first software without relying on an integrated system application (such as a system application that integrates service providers X, Y and Z).

在一些实施例中,可以通过在服务调用者中嵌入与第一软件对应的软件开发工具包(Software Development Kit,SDK)来实现第一软件的加载,并通过第一服务管理和更新第一软件的实现。在本实施例中,服务调用者中嵌入的软件开发工具包仅起到提供第一软件接口或入口的作用,而第一软件的实现本身由第一服务进行管理,这样,通过软件开发工具包对应的动态加载机制与第一服务配合,从而实现在不依赖该软件开发工具包更新的情况下,实现第一软件的动态更新。在一些实施例中,第一服务可以为系统层的服务,例如系统的核心服务(CoreService)。In some embodiments, the loading of the first software can be achieved by embedding a software development kit (SDK) corresponding to the first software in the service caller, and managing and updating the implementation of the first software through the first service. In this embodiment, the software development kit embedded in the service caller only serves to provide the first software interface or entry, and the implementation of the first software itself is managed by the first service. In this way, the dynamic loading mechanism corresponding to the software development kit cooperates with the first service to achieve dynamic update of the first software without relying on the update of the software development kit. In some embodiments, the first service can be a system-level service, such as a core service (CoreService) of the system.

参见图3,其示出了本公开另一实施例提供的应用服务系统。服务调用者和服务提供者均嵌入了第一软件的软件开发工具包,服务调用者和服务提供者在运行时均会通过该软件开发工具包加载第一软件,而第一软件的实现本身由独立于服务调用者和服务提供者的第一服务进行管理。第一软件的实现包含了服务注册、服务发现、服务远程调用、服务质量监控和服务鉴权等功能。服务调用者端的第一软件与服务提供者的端的第一软件的实现之间通过诸如进程间通信服务等方式等进行通信,从而实现服务调用过程。在一个具体实施方式中,可以通过独立于服务调用者和服务提供者的应用程序包负责第一软件的实现,并通过第一服务来管理该应用程序包,但本公开不限于此。Refer to Figure 3, which shows an application service system provided by another embodiment of the present disclosure. The service caller and the service provider are both embedded with the software development kit of the first software. The service caller and the service provider will load the first software through the software development kit at runtime, and the implementation of the first software itself is managed by a first service independent of the service caller and the service provider. The implementation of the first software includes functions such as service registration, service discovery, service remote call, service quality monitoring and service authentication. The first software on the service caller side communicates with the implementation of the first software on the service provider side through methods such as inter-process communication services, thereby realizing the service call process. In a specific embodiment, the implementation of the first software can be responsible for the implementation of the first software by an application package independent of the service caller and the service provider, and the application package is managed by the first service, but the present disclosure is not limited to this.

在一些实施例中,在得到所述目标服务的服务调用结果之前,通过所述第一服务确定所述服务调用者是否具有调用所述目标服务的权限(即鉴权),例如,若确定服务调用者不具有调用所述目标服务的权限,则不允许调用目标服务,后续返回的服务调用结果可以包括服务调用失败的结果,相反,若服务调用者具有调用所述目标服务的权限,则允许继续调用目标服务。在一个具体实施方式中,可以判断服务调用者的类型,根据服务调用者的类型选择不同的鉴权方法(例如快速鉴权、普通鉴权等),但本公开不限于此。In some embodiments, before obtaining the service call result of the target service, the first service is used to determine whether the service caller has the authority to call the target service (i.e., authentication). For example, if it is determined that the service caller does not have the authority to call the target service, the target service is not allowed to be called. The service call result returned subsequently may include a result of a service call failure. On the contrary, if the service caller has the authority to call the target service, the target service is allowed to continue to be called. In a specific embodiment, the type of the service caller can be determined, and different authentication methods (such as quick authentication, ordinary authentication, etc.) can be selected according to the type of the service caller, but the present disclosure is not limited to this.

在一些实施例中,还可以通过所述第一服务监控所述目标服务的运行情况。例如,监控目标服务在服务调用过程中是否发生异常、或运行耗时等。在一个具体实施方式中,可以通过埋点的方式监控目标服务的运行情况。In some embodiments, the operation of the target service may also be monitored through the first service. For example, monitoring whether the target service is abnormal during the service call process, or whether the operation takes time, etc. In a specific implementation, the operation of the target service may be monitored by embedding points.

根据本公开的一个或多个实施例,通过借助第一服务进行第一软件的更新、服务调用权限的鉴权和/或服务运行情况监控,从而提供了应用服务整体的安全能力和可维护性。According to one or more embodiments of the present disclosure, by using the first service to update the first software, authenticate the service call authority and/or monitor the service operation status, the overall security capability and maintainability of the application service are provided.

参见图4,其示出了本公开一实施例提供的应用服务系统的信号流图。在步骤201中,获取服务调用者的服务查找请求。Referring to Fig. 4, it shows a signal flow diagram of an application service system provided by an embodiment of the present disclosure. In step 201, a service search request of a service caller is obtained.

在步骤202a中,响应于服务查找请求,加载第一软件的实现。同步或异步地,在步骤202b中,向服务调用者返回服务代理实例。In step 202a, in response to the service lookup request, the implementation of the first software is loaded. Synchronously or asynchronously, in step 202b, a service proxy instance is returned to the service caller.

可选地,在步骤203中,通过第一服务更新第一软件的实现。Optionally, in step 203, the implementation of the first software is updated by the first service.

在步骤204中,第一软件通过服务发现机制确定对应的目标服务及其服务者。In step 204, the first software determines the corresponding target service and its server through a service discovery mechanism.

在步骤205中,第一软件获取服务调用者的针对服务代理实例的服务调用请求。In step 205, the first software obtains a service call request from a service caller for a service proxy instance.

在步骤206中,第一软件响应于该服务调用请求,向服务提供者发送服务调用请求,即通过第一软件代理转发服务调用请求。因服务代理实例并非真实的目标服务的实例,服务调用者调用该实例无法调用目标服务,因此,服务调用者向第一软件发送针对服务代理实例的服务调用请求后,还需通过第一软件进行代理转发以向服务提供者调用目标服务。在一些实施例中,第一软件向服务调用者发送的服务调用请求中包含目标服务的信息。In step 206, the first software responds to the service call request and sends a service call request to the service provider, that is, forwards the service call request through the first software proxy. Because the service proxy instance is not a real instance of the target service, the service caller cannot call the target service by calling the instance. Therefore, after the service caller sends the service call request for the service proxy instance to the first software, it is necessary to forward the request through the first software proxy to call the target service to the service provider. In some embodiments, the service call request sent by the first software to the service caller contains information about the target service.

在步骤207中,通过第一服务确定服务调用者是否具有调用目标服务的权限。在一些实施例中,若确定服务调用者不具有调用所述目标服务的权限,则不允许调用目标服务,后续返回的服务调用结果可以包括服务调用失败的结果;若服务调用者具有调用所述目标服务的权限,则允许继续调用目标服务。In step 207, the first service determines whether the service caller has the authority to call the target service. In some embodiments, if it is determined that the service caller does not have the authority to call the target service, the target service is not allowed to be called, and the service call result returned subsequently may include a result of service call failure; if the service caller has the authority to call the target service, the target service is allowed to continue to be called.

在步骤208中,服务提供者向第一软件返回目标服务的调用结果。In step 208, the service provider returns the call result of the target service to the first software.

在步骤209中,第一软件向服务调用者返回目标服务的调用结果。In step 209, the first software returns the calling result of the target service to the service caller.

相应地,参考图5,根据本公开一实施例提供了一种管理应用服务的装置500,包括:Accordingly, referring to FIG5 , according to an embodiment of the present disclosure, there is provided a device 500 for managing application services, including:

确定单元501,用于基于服务调用者的服务请求确定目标服务和所述目标服务的服务提供者;A determination unit 501 is used to determine a target service and a service provider of the target service based on a service request of a service caller;

通信单元502,用于与所述服务提供者进行信息交互以得到所述目标服务的服务调用结果,以及将所述目标服务的服务调用结果返回给所述服务调用者。The communication unit 502 is used to perform information exchange with the service provider to obtain the service call result of the target service, and return the service call result of the target service to the service caller.

在一些实施例中,确定单元用于通过第一软件,基于服务调用者的服务请求确定目标服务和所述目标服务的服务提供者;通信单元用于通过第一软件,与所述服务提供者进行信息交互以得到所述目标服务的服务调用结果,以及将所述目标服务的服务调用结果返回给所述服务调用者;所述第一软件本身不提供所述目标服务。In some embodiments, the determination unit is used to determine the target service and the service provider of the target service based on the service request of the service caller through the first software; the communication unit is used to interact with the service provider through the first software to obtain the service call result of the target service, and return the service call result of the target service to the service caller; the first software itself does not provide the target service.

在一些实施例中,所述管理应用服务的装置还包括:In some embodiments, the device for managing application services further comprises:

第一软件管理单元,用于通过嵌入所述服务调用者中的软件开发工具包加载所述第一软件,以及通过第一服务管理和更新所述第一软件的实现。The first software management unit is used to load the first software through a software development kit embedded in the service caller, and manage and update the implementation of the first software through a first service.

在一些实施例中,所述管理应用服务的装置还包括:In some embodiments, the device for managing application services further comprises:

鉴权单元,用于在得到所述目标服务的服务调用结果之前,通过所述第一服务确定所述服务调用者是否具有调用所述目标服务的权限。The authentication unit is used to determine whether the service caller has the authority to call the target service through the first service before obtaining the service call result of the target service.

在一些实施例中,通过所述第一服务监控所述目标服务的运行情况。In some embodiments, the operation status of the target service is monitored by the first service.

在一些实施例中,所述第一软件包含服务发现模块,所述服务发现模块用于记录和查询服务信息。In some embodiments, the first software includes a service discovery module, and the service discovery module is used to record and query service information.

在一些实施例中,所述第一软件中定义有统一的、适用于多个服务的服务规范;所述服务规范包含以下中的一项或多项的规范:服务声明、服务注册、服务查找、服务生命周期管理。In some embodiments, a unified service specification applicable to multiple services is defined in the first software; the service specification includes one or more of the following specifications: service declaration, service registration, service search, and service lifecycle management.

在一些实施例中,所述服务请求包括服务查找请求;所述通信单元还用于响应于所述服务查找请求,向所述服务提供者返回服务代理实例,以及响应于服务调用者的针对所述服务代理实例的服务调用请求,与所述服务提供者进行信息交互以得到所述目标服务的服务调用结果。In some embodiments, the service request includes a service lookup request; the communication unit is also used to return a service proxy instance to the service provider in response to the service lookup request, and to interact with the service provider in response to a service call request from a service caller for the service proxy instance to obtain a service call result of the target service.

对于装置的实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中作为分离模块说明的模块可以是或者也可以不是分开的。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。For the embodiments of the device, since they basically correspond to the method embodiments, the relevant parts refer to the partial description of the method embodiments. The device embodiments described above are merely illustrative, and the modules described as separation modules may or may not be separated. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of the present embodiment. Those of ordinary skill in the art can understand and implement without paying creative work.

相应地,根据本公开的一个或多个实施例,提供了一种电子设备,包括:Accordingly, according to one or more embodiments of the present disclosure, there is provided an electronic device, including:

至少一个存储器和至少一个处理器;at least one memory and at least one processor;

其中,存储器用于存储程序代码,处理器用于调用存储器所存储的程序代码以使所述电子设备执行根据本公开一个或多个实施例提供的管理应用服务的方法。The memory is used to store program codes, and the processor is used to call the program codes stored in the memory to enable the electronic device to execute the method for managing application services provided according to one or more embodiments of the present disclosure.

相应地,根据本公开的一个或多个实施例,提供了一种非暂态计算机存储介质,非暂态计算机存储介质存储有程序代码,程序代码可被计算机设备执行来使得所述计算机设备执行根据本公开一个或多个实施例提供的管理应用服务的方法。Accordingly, according to one or more embodiments of the present disclosure, a non-transitory computer storage medium is provided, which stores program code, and the program code can be executed by a computer device to enable the computer device to execute the method for managing application services provided according to one or more embodiments of the present disclosure.

下面参考图6,其示出了适于用来实现本公开实施例的电子设备(例如终端设备或服务器)800的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图6示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。Referring to FIG6 below, it shows a schematic diagram of the structure of an electronic device (e.g., a terminal device or a server) 800 suitable for implementing the embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (e.g., vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. The electronic device shown in FIG6 is only an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.

如图6所示,电子设备800可以包括处理装置(例如中央处理器、图形处理器等)801,其可以根据存储在只读存储器(ROM)802中的程序或者从存储装置808加载到随机访问存储器(RAM)803中的程序而执行各种适当的动作和处理。在RAM803中,还存储有电子设备800操作所需的各种程序和数据。处理装置801、ROM 802以及RAM 803通过总线804彼此相连。输入/输出(I/O)接口805也连接至总线804。As shown in FIG6 , the electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 are also stored. The processing device 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input/output (I/O) interface 805 is also connected to the bus 804.

通常,以下装置可以连接至I/O接口805:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置806;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置807;包括例如磁带、硬盘等的存储装置808;以及通信装置809。通信装置809可以允许电子设备800与其他设备进行无线或有线通信以交换数据。虽然图6示出了具有各种装置的电子设备800,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Typically, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 808 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 809. The communication device 809 may allow the electronic device 800 to communicate wirelessly or wired with other devices to exchange data. Although FIG. 6 shows an electronic device 800 with various devices, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have alternatively.

特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置809从网络上被下载和安装,或者从存储装置808被安装,或者从ROM 802被安装。在该计算机程序被处理装置801执行时,执行本公开实施例的方法中限定的上述功能。In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 809, or installed from a storage device 808, or installed from a ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText TransferProtocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备执行上述的本公开的方法。The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method of the present disclosure.

可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and/or flow chart, and the combination of the square boxes in the block diagram and/or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定。The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, constitute a limitation on the unit itself.

本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

根据本公开的一个或多个实施例,提供了一种管理应用服务的方法,包括:基于服务调用者的服务请求确定目标服务和所述目标服务的服务提供者;与所述服务提供者进行信息交互以得到所述目标服务的服务调用结果;以及将所述目标服务的服务调用结果返回给所述服务调用者。According to one or more embodiments of the present disclosure, a method for managing application services is provided, comprising: determining a target service and a service provider of the target service based on a service request of a service caller; interacting with the service provider to obtain a service call result of the target service; and returning the service call result of the target service to the service caller.

根据本公开的一个或多个实施例,通过所述第一软件执行所述方法,所述第一软件本身不提供所述目标服务。According to one or more embodiments of the present disclosure, the method is executed by the first software, and the first software itself does not provide the target service.

根据本公开的一个或多个实施例,通过嵌入所述服务调用者中的软件开发工具包加载所述第一软件,以及通过第一服务管理和更新所述第一软件的实现。According to one or more embodiments of the present disclosure, the first software is loaded through a software development kit embedded in the service caller, and the implementation of the first software is managed and updated through the first service.

根据本公开的一个或多个实施例,在得到所述目标服务的服务调用结果之前,通过所述第一服务确定所述服务调用者是否具有调用所述目标服务的权限。According to one or more embodiments of the present disclosure, before obtaining the service call result of the target service, it is determined through the first service whether the service caller has the authority to call the target service.

根据本公开的一个或多个实施例,通过所述第一服务监控所述目标服务的运行情况。According to one or more embodiments of the present disclosure, the operation status of the target service is monitored by the first service.

根据本公开的一个或多个实施例,所述第一软件包含服务发现模块,所述服务发现模块用于记录和查询服务信息。According to one or more embodiments of the present disclosure, the first software includes a service discovery module, and the service discovery module is used to record and query service information.

根据本公开的一个或多个实施例,所述第一软件中定义有统一的、适用于多个服务的服务规范;所述服务规范包含以下中的一项或多项的规范:服务声明、服务注册、服务查找、服务生命周期管理。According to one or more embodiments of the present disclosure, a unified service specification applicable to multiple services is defined in the first software; the service specification includes one or more of the following specifications: service declaration, service registration, service search, and service lifecycle management.

根据本公开的一个或多个实施例,所述服务请求包括服务查找请求;所述方法还包括:响应于所述服务查找请求,向所述服务提供者返回服务代理实例;所述与所述服务提供者进行信息交互以得到所述目标服务的服务调用结果,包括:响应于服务调用者的针对所述服务代理实例的服务调用请求,与所述服务提供者进行信息交互以得到所述目标服务的服务调用结果。According to one or more embodiments of the present disclosure, the service request includes a service lookup request; the method also includes: in response to the service lookup request, returning a service proxy instance to the service provider; the information interaction with the service provider to obtain the service call result of the target service includes: in response to the service call request of the service caller for the service proxy instance, information interaction with the service provider to obtain the service call result of the target service.

根据本公开的一个或多个实施例,提供了一种管理应用服务的装置,包括:确定单元,用于基于服务调用者的服务请求确定目标服务和所述目标服务的服务提供者;通信单元,用于与所述服务提供者进行信息交互以得到所述目标服务的服务调用结果,以及将所述目标服务的服务调用结果返回给所述服务调用者。According to one or more embodiments of the present disclosure, there is provided a device for managing application services, comprising: a determination unit, for determining a target service and a service provider of the target service based on a service request of a service caller; a communication unit, for interacting with the service provider to obtain a service call result of the target service, and returning the service call result of the target service to the service caller.

根据本公开的一个或多个实施例,提供了一种电子设备,包括:至少一个存储器和至少一个处理器;其中,所述存储器用于存储程序代码,所述处理器用于调用所述存储器所存储的程序代码以使所述电子设备执行根据本公开的一个或多个实施例提供的管理应用服务的方法。According to one or more embodiments of the present disclosure, an electronic device is provided, comprising: at least one memory and at least one processor; wherein the memory is used to store program code, and the processor is used to call the program code stored in the memory so that the electronic device executes the method for managing application services provided according to one or more embodiments of the present disclosure.

根据本公开的一个或多个实施例,提供了一种非暂态计算机存储介质,所述非暂态计算机存储介质存储有程序代码,所述程序代码被计算机设备执行时,使得所述计算机设备执行根据本公开的一个或多个实施例提供的管理应用服务的方法。According to one or more embodiments of the present disclosure, a non-transitory computer storage medium is provided, wherein the non-transitory computer storage medium stores program code, and when the program code is executed by a computer device, the computer device executes a method for managing application services provided according to one or more embodiments of the present disclosure.

以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.

此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。Although the subject matter has been described in language specific to structural features and/or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims (11)

CN202410288279.1A2024-03-132024-03-13Method, device, electronic equipment and storage medium for managing application servicePendingCN118051355A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202410288279.1ACN118051355A (en)2024-03-132024-03-13Method, device, electronic equipment and storage medium for managing application service

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202410288279.1ACN118051355A (en)2024-03-132024-03-13Method, device, electronic equipment and storage medium for managing application service

Publications (1)

Publication NumberPublication Date
CN118051355Atrue CN118051355A (en)2024-05-17

Family

ID=91044668

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202410288279.1APendingCN118051355A (en)2024-03-132024-03-13Method, device, electronic equipment and storage medium for managing application service

Country Status (1)

CountryLink
CN (1)CN118051355A (en)

Similar Documents

PublicationPublication DateTitle
US20230161647A1 (en)Extending the kubernetes api in-process
CN111258725A (en) A blockchain-based data processing method, device, equipment and medium
CN112214408B (en)Dependency conflict detection method, dependency conflict detection device, electronic equipment and computer readable medium
CN114629911B (en)Method, device, equipment, medium and program product for processing domain name resolution request
CN114971786B (en)Order information management method, device, system, electronic equipment and storage medium
CN118132203A (en)Container management method, device, equipment and medium
CN117807601A (en)Vulnerability detection method, device, medium and equipment for application program
CN112286773A (en)Method, device, medium and electronic equipment for collecting crash information
CN118157957A (en)Network security vulnerability scanning method, device, system, medium and electronic equipment
CN117931813A (en)Lake bin metadata change determining method, device, equipment and medium
CN118051355A (en)Method, device, electronic equipment and storage medium for managing application service
CN115484149A (en)Network switching method, network switching device, electronic device and storage medium
CN111310043B (en)Method and device for pushing information
CN111460020B (en)Method, device, electronic equipment and medium for resolving message
CN111367590A (en)Interrupt event processing method and device
CN116149822B (en) Task execution method, device, electronic device and storage medium
CN111258852B (en)Abnormal data monitoring method, device, electronic equipment and storage medium
CN114493628B (en) Service order processing method, device, electronic device and computer readable medium
CN118012470B (en)Updating method and device for power information management application, electronic equipment and medium
CN111367555B (en)Assertion method, assertion device, electronic equipment and computer readable medium
CN110262756B (en)Method and device for caching data
CN111262776B (en)Method, device, electronic equipment and computer readable medium for sending notification message
CN118674525A (en)Order processing method, order processing device, medium, electronic equipment and program product
CN117806739A (en) Determine methods, devices, media and equipment for calling relationships across code repositories
CN115080267A (en)Communication method, apparatus, medium, and device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp