CN112468557A - Method, device, gateway and storage medium for providing network service - Google Patents

Method, device, gateway and storage medium for providing network service Download PDF

Info

Publication number
CN112468557A
CN112468557A CN202011281104.6A CN202011281104A CN112468557A CN 112468557 A CN112468557 A CN 112468557A CN 202011281104 A CN202011281104 A CN 202011281104A CN 112468557 A CN112468557 A CN 112468557A
Authority
CN
China
Prior art keywords
service
service interface
interfaces
interface
access priority
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.)
Granted
Application number
CN202011281104.6A
Other languages
Chinese (zh)
Other versions
CN112468557B (en
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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202011281104.6A priority Critical patent/CN112468557B/en
Publication of CN112468557A publication Critical patent/CN112468557A/en
Application granted granted Critical
Publication of CN112468557B publication Critical patent/CN112468557B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present disclosure provides a method for providing network services, which relates to the field of internet services, and in particular, to the field of internet service gateways. The method of providing a network service includes receiving a request for a network service; determining a plurality of service interfaces for providing network services according to the request; determining a dependency relationship between a plurality of service interfaces; determining the access priority of each service interface in the plurality of service interfaces according to the dependency relationship; and accessing the plurality of service interfaces to provide the network service according to the access priority. The present disclosure also provides an apparatus, a gateway, and a storage medium for providing a network service.

Description

Method, device, gateway and storage medium for providing network service
Technical Field
The present disclosure relates to the field of internet services, and in particular, to the field of internet service gateways, and more particularly, to a method, an apparatus, a gateway, and a storage medium for providing a network service.
Background
With the exponential growth of internet services and internet users, there is an increasing need to integrate internet services within a company, business, or department. Internet service gateways can be used to handle interactions between service providers and service users, and therefore, internet service gateways are increasingly used in internet services, and the quality of internet services is seriously affected by the performance of the internet service gateways.
Disclosure of Invention
In view of the above, the present disclosure provides a method, an apparatus, a gateway and a storage medium for providing a network service.
A first aspect of the present disclosure provides a method of providing a network service, comprising:
receiving a request for a network service;
determining a plurality of service interfaces for providing the network service according to the request;
determining a dependency relationship between the plurality of service interfaces;
determining the access priority of each service interface in the plurality of service interfaces according to the dependency relationship; and
accessing the plurality of service interfaces to provide the network service according to the access priority.
A second aspect of the present disclosure provides an apparatus for providing a network service, including:
a request receiving module configured to receive a request for a network service;
an interface determination module configured to determine a plurality of service interfaces for providing the network service according to the request;
a dependency determination module configured to determine dependencies between the plurality of service interfaces;
a priority determination module configured to determine an access priority of each of the plurality of service interfaces according to the dependency; and
an access module configured to access the plurality of service interfaces to provide the network service according to the access priority.
A third aspect of the present disclosure provides a gateway for providing a network service, comprising:
a memory storing program instructions; and
a processor configured to execute the program instructions to perform the method provided by the first aspect of the present disclosure.
A fourth aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions for implementing the method provided by the first aspect of the present disclosure when executed.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an application scenario of an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a method of providing network services according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a process of determining dependencies between a plurality of service interfaces according to an embodiment of the disclosure;
FIG. 4 schematically illustrates a process of determining access priority of a service interface according to an embodiment of the disclosure;
FIG. 5 schematically illustrates a block diagram of a configuration service interface according to an embodiment of the present disclosure;
FIG. 6 is a diagram schematically illustrating a hierarchy of access priorities among a plurality of service interfaces according to an embodiment of the present disclosure;
fig. 7 schematically shows a block diagram of an apparatus for providing a network service according to an embodiment of the present disclosure; and
FIG. 8 schematically illustrates a block diagram of an electronic device adapted to provide network services in accordance with an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
Fig. 1 schematically illustrates an application scenario of an embodiment of the present disclosure. As shown in fig. 1, an internet service provider 101 may provide various service interfaces for an internet service user 102. The internet service user 102 requests one or more service interfaces from the internet service provider 101 to obtain the required service according to his actual needs. The internet service provider 101 may provide a desired service to a plurality of internet service consumers 102. In an embodiment of the present disclosure, an internet service provider 101 interacts with an internet service consumer 102 via an internet service gateway 103. According to an embodiment of the present disclosure, the internet service user 102 transmits a request for a web service to the internet service gateway 103, and the internet service gateway 103 obtains response data from at least one service interface of the internet service provider 101 according to the received request and provides the corresponding web service to the internet service user 102 based on the obtained response data.
Fig. 2 schematically shows a flow chart of a method 200 of providing network services according to an embodiment of the present disclosure. As shown in fig. 2, the method 200 for providing network services includes the following steps:
in step S210, a request for a network service is received.
In step S220, a plurality of service interfaces for providing the network service are determined according to the request.
In step S230, dependencies between the plurality of service interfaces are determined.
In step S240, an access priority of each of the plurality of service interfaces is determined according to the dependency relationship.
In step S250, a plurality of service interfaces are accessed to provide a network service according to the access priority.
Specifically, in step S210, information about the requested network service or related service interface information may be included in the request for the network service. Different network services may be provided based on a received request for a network service.
Next, in step S220, after receiving the request for the network service, a plurality of service interfaces for providing the network service are determined according to information included in the request for the network service. The service interface for providing the network service may be one service interface or a plurality of service interfaces. The disclosed embodiments are generally directed to scenarios in which network services are provided through multiple service interfaces. According to an embodiment, a plurality of service interfaces for providing a network service may be determined based on whether data transmission is performed between each other in providing the network service.
Next, in step S230, determining the dependency relationship between the plurality of service interfaces includes determining a specific data transmission relationship between the service interfaces. According to an embodiment, the specific data transmission relationship between the service interfaces may include which service interfaces need to receive data from and output data to which service interfaces in the plurality of service interfaces in the process of providing the network service.
Next, in step S240, a data source required by the service interface to provide a service may be determined according to the dependency relationship between the service interfaces, and therefore, at least one service interface of the plurality of service interfaces providing the data source for the service interface needs to be accessed to obtain required data before the service interface provides the service, and therefore, the access priority of the at least one service interface providing the required data for the service interface is higher than the access priority of the service interface.
Next, in step S250, accessing the plurality of service interfaces according to the access priority may include sequentially accessing the service interfaces and concurrently accessing the service interfaces. According to the embodiment, the service interfaces with the dependency relationship are accessed according to the determined access priority sequence, and the service interfaces with the same access priority are accessed in parallel under the condition that the requirement of the access priority is met.
Conventional internet service gateways simply aggregate the individual service interfaces used to provide web services. When different service interfaces are requested, only sequential requests can be made. The access mode not only has complex interface access, but also has low access efficiency. Especially for large systems with large network delay, such as Internet Data Center (IDC), the user experience of Internet service users is seriously affected by the low access speed caused by sequentially accessing each Data interface.
According to the embodiment of the disclosure, the access priority of the service interfaces is determined according to the dependency relationship between the service interfaces, and the service interfaces are accessed sequentially or parallelly according to the access priority, so that the access capability of the service interfaces is improved. The method for providing the network service can solve the problem that the sequential access throughput cannot be improved and broken through due to network delay and network faults, so that the sequential access throughput of the whole system is not influenced by IDC and network topology, the utilization rate of the system to resources is greatly improved, and meanwhile, the network communication cost is effectively reduced.
In an embodiment of the present disclosure, for each of a plurality of service interfaces as a target service interface, a dependency relationship between the plurality of service interfaces is determined according to a data transmission direction between the target service interface and other service interfaces of the plurality of service interfaces. Fig. 3 schematically illustrates a process of determining a dependency relationship between a plurality of service interfaces according to an embodiment of the present disclosure, which is described below in conjunction with fig. 3.
As shown in fig. 3, with a service interface B as a target service interface, the relationship between the service interface B and other service interfaces includes: a service interface that provides data to service interface B, such as service interface a shown in fig. 3, and a service interface that receives data from service interface B, such as service interface C in fig. 3.
It should be noted that the service interface B may only provide data to other service interfaces, and not receive data from any other service interface. The example shown in fig. 3 illustrates the complete relationship between service interface B and service interface a and service interface C for ease of illustration only.
As shown in fig. 3, the dotted lines above the service interface a, the service interface B, and the service interface C indicate the data transmission direction between the service interface a, the service interface B, and the service interface C, and the dotted lines between the service interface a, the service interface B, and the service interface C indicate the data transmission direction between the service interfaces. Between the service interface A and the service interface B, data is transmitted from the service interface A to the service interface B, and the service interface (service interface A) providing data to the target service interface (service interface B) is determined as a superior service interface of the target service interface. Between the service interface B and the service interface C, data is transferred from the service interface B to the service interface C, and the service interface (service interface C) that receives data from the target service interface (service interface B) is determined as a service interface subordinate to the target service interface.
It is easily understood that the service interface B may not only receive data from one service interface, but also may output data to one service interface only. In the case where data is provided to the service interface B by a plurality of service interfaces, all the service interfaces providing data are determined as upper-level service interfaces of the service interface B. In a case where the service interface B outputs data to a plurality of service interfaces, all service interfaces that receive data are determined as lower-level service interfaces of the service interface B.
According to an embodiment of the present disclosure, the above-described operation may be performed for each of the plurality of service interfaces so as to determine an upper level service interface and a lower level service interface of each of the plurality of service interfaces, thereby determining a dependency relationship between the plurality of service interfaces.
In an embodiment of the present disclosure, an access priority of an upper level service interface of a target service interface is determined to be higher than an access priority of the target service interface, and an access priority of a lower level service interface of the target service interface is determined to be lower than the access priority of the target service interface.
The service interface a, the service interface B and the service interface C shown in fig. 3 are still taken as examples. Service interface a is a superior service interface to service interface B, and thus the access priority of service interface a is higher than that of service interface B. Service interface C is a lower-level service interface of service interface B, and thus the access priority of service interface C is lower than that of service interface B.
According to the embodiment, when the service interface A and the service interface B are accessed, the service interface A needs to be accessed first, and after the service interface A is accessed, the service interface B needs to be accessed. If service interface B has two or more superior service interfaces, then access to all superior service interfaces needs to be completed before access to service interface B. According to the embodiment, when accessing the service interface B and the service interface C, the service interface B needs to be accessed first, and after the access to the service interface B is completed, the service interface C needs to be accessed. If the service interface B has two or more lower level service interfaces, access to all the lower level service interfaces needs to be performed after access to the service interface B.
Further, in the embodiment of the present disclosure, a target service interface having no superior service interface is determined to have the highest priority. If the target service interface does not have the upper service interface, the target service interface does not need to wait for access after the access of other service interfaces is completed, namely, the target service interface can be accessed before the other service interfaces are accessed.
Further, in the embodiment of the present disclosure, a target service interface without any upper service interface and lower service interface is determined to have an arbitrary priority. And no dependency relationship exists between the target service interface without any upper service interface and lower service interface and other service interfaces. The access of the target service interface is not restricted by other service interfaces and has no influence on other service interfaces. Thus, such service interfaces can be accessed at any access phase. According to an embodiment, the access order of such service interfaces may be set at a certain access phase, for example, an access to a service interface with an arbitrary priority is set at a phase of accessing a service interface with the highest priority. According to the embodiment, according to the determined priorities of the plurality of service interfaces, the access to the service interface with any priority can be set at the stage where the service interfaces accessed at the same time are the least.
Further, in the embodiment of the present disclosure, in a case that a plurality of upper service interfaces of a target service interface have different access priorities, an upper service interface with a lowest access priority among the plurality of upper service interfaces is determined, and the access priority of the target service interface is determined to be lower than that of the upper service interface. Fig. 4 schematically shows the above-described process of determining the access priority of a service interface, which is described below in conjunction with fig. 4.
As shown in fig. 4, service interface a is an upper level service interface of service interface B, service interface B and service interface D are upper level service interfaces of service interface C, and wherein service interface a and service interface D do not have an upper level service interface. The case where the access priority of the service interface is determined for service interface B is: service interface a needs to be accessed before service interface B and service interface B needs to be accessed before service interface C. The case where the access priority of the service interface is determined for service interface C is: service interface B and service interface D need to be accessed before service interface C. Next, the access priorities of the service interface a, the service interface B, the service interface C, and the service interface D are jointly determined. Since service interface a and service interface D do not have an upper level service interface, i.e., service interface a and service interface D have the same highest access priority, service interface a and service interface D can be accessed first and in parallel. Service interface B may be accessed after access to service interface a is completed, according to the order of access priority. After access to service interface D is completed, service interface C may be accessed. However, since the service interface B is simultaneously an upper-level service interface of the service interface C, the service interface B and the service interface C cannot be accessed in parallel. This situation can be determined from a plurality of upper level service interfaces of the service interface C. Service interface B and service interface D are both superior service interfaces to service interface C, and service interface D has the highest access priority, referred to herein as the first access priority. And service interface B acts as a lower level service interface with service interface a having the highest access priority, having the next highest access priority, referred to herein as the second access priority. That is, upper service interfaces B and D of target service interface C have different access priorities. According to an embodiment, a service interface with a low access priority, i.e. a service interface B with a second access priority, among the upper service interfaces B and D is first determined, and then the target service interface C is determined to have a lower priority than the service interface B, e.g. the target service interface C is determined to have a third access priority.
In embodiments of the present disclosure, new service interfaces may be generated for different requests for network services, respectively, e.g., a configuration service interface for receiving requests is created prior to receiving requests for network services. The configuration service interface masks the service interfaces (also referred to as internal service interfaces) used to provide network services. When the internet service user requests the network service, the internet service user only needs to send a request to the configuration service interface, and does not need to separately request each internal service interface.
Fig. 5 schematically shows a block diagram of a configuration service interface according to another embodiment of the present disclosure.
As shown in fig. 5, the configuration service interface mainly includes a processing entity 501 for processing the operation of the configuration service interface to implement the configuration service interface function. The processing entity 501 comprises information 502 of the configuration service interface itself and a list 503 of plug-ins on which the configuration service interface is mounted. In embodiments of the present disclosure, configuring the service interface may orchestrate access to the internal service interface according to requests for network services to provide network services to internet service consumers.
According to an embodiment, the orchestration of access to the internal service interface is achieved through a plug-in. As shown in fig. 5, a plurality of plug-ins such as plug-in 1, plug-in 2, plug-in 3, and the like are included in the plug-in list 503. Each plug-in may implement different functions. According to an embodiment, the plug-in may implement at least one of the three methods before, access, and after, respectively. The method before is executed before requesting the internal service interface, and is used for judging whether to access the service interface. For example, a determination of whether to initiate access to a service interface may be based on whether the required data is received. The method access is used to access the service interface. The method after completes the access to the service interface, is used for interpreting the returned data result and storing the data result for the service interface of the lower level to use.
According to an embodiment, the configuration service interface may obtain information of a plurality of internal service interfaces related to providing the network service from a superior configuration center. As shown in fig. 5, when a service is initialized, the initialization plug-in init issued from the upper-level configuration center is used to obtain the global service interface list and the specific configuration information of each service interface in the multiple internal service interfaces. According to the embodiment, when the internal service interface is changed, the configuration service interface can also obtain the information of the internal service interface after the change from the upper-level configuration center. As shown in fig. 5, after a new internal service interface is added or configuration information of an original internal service interface is updated, configuration information of the newly added internal service interface is added or configuration information of the original internal service interface is updated through a plug-in onChange.
The configuration service interface pair according to the embodiment of the disclosure can determine the access priority of each internal service interface based on the dependency relationship among the internal service interfaces, and access the internal service interfaces based on the access priority sequence or in parallel, thereby improving the access speed of the internal service interfaces.
The following describes a process of determining an access priority of each of the plurality of service interfaces according to a dependency relationship between the plurality of service interfaces and accessing the plurality of service interfaces according to the access priority to provide a requested service, in conjunction with an example of pulling a product review list.
The following is an example of a pull item review list service for providing a list of displayed item reviews to users who purchase items. In this case, a request for a service of obtaining a product review list issued by a user may be received through the configuration service interface. In this example, the configuration between the plurality of service interfaces for providing the network service is as follows:
Figure BDA0002780785800000101
Figure BDA0002780785800000111
Figure BDA0002780785800000121
as can be seen from the above dependency relationship, the service interfaces related to the pulled commodity comment list service include 12 service interfaces, which are a1, a2, A3, a4, a5, A6, a7, A8, a9, a10, a11, and a 12. Among the above service interfaces, the service interfaces a1, a2, A3, a4, a5, a6, and a7 provide data for them independently of other service interfaces, that is, these 7 service interfaces do not have a superior service interface. The service interfaces A8, A9, A10, A11 and A12 have dependency relationships with other service interfaces, and the upper service interface and the lower service interface of each service interface can be determined according to the dependency relationship list.
For example, for service interface A8, it relies on service interfaces a1, a2, A3, and a4 to provide data for it, and thus service interfaces a1, a2, A3, and a4 are superior service interfaces to service interface A8. Meanwhile, the service interface A8 also exists in the dependency list of the service interfaces a9, a10 and a11, i.e. the service interface A8 needs to provide data for the service interfaces a9, a10 and a11, and thus the service interfaces a9, a10 and a11 are subordinate service interfaces of the service interface A8. A hierarchy of access priorities as shown in fig. 6 may be established based on the resulting dependencies between the plurality of service interfaces.
FIG. 6 is a diagram schematically illustrating a hierarchy of access priorities among a plurality of service interfaces according to an embodiment of the present disclosure. As shown in fig. 6, it may be determined that the service interfaces a1, a2, A3, a4, a5, a6, and a7 have the highest access priority, determined as the first access priority. Service interfaces a1, a2, A3, a4, a5, a6, and a7 may be accessed in parallel in the first stage. Next, the service interface A8, which is a lower-level service interface of the service interfaces a1, a2, A3, and a4, has the next highest access priority lower than the highest access priority, and is determined as the second access priority. The A8 may be accessed in the second phase after completing access to the service interfaces a1, a2, A3, and a 4. It should be noted here that although the service interfaces a9, a10, and a11, which are lower-level service interfaces of the service interfaces a5 and A6, should have the second access priority before being adjusted, since the upper-level service interface A8, which is also the service interfaces a9, a10, and a11, is the second access priority, the access priorities of the service interfaces a9, a10, and a11 are adjusted to be lower than the access priority of the service interface A8, and determined as the third access priority. I.e. in parallel access to the service interfaces a9, a10 and a11 in the third phase. Finally, service interface a12 is determined to be the fourth access priority and accesses service interface a12 in the fourth phase. In addition, the service interface a7 is a service interface with an arbitrary priority, which is incorporated in the first-phase access here.
In a conventional internet service gateway, it is necessary to sequentially access each service interface. For the 12 service interfaces in this example, each service interface needs to be requested individually in sequence, and the access efficiency is very low, thereby resulting in a low speed of providing network services. According to the method disclosed by the embodiment of the disclosure, access to 12 service interfaces is completed only by four access stages, and the access time is only 1/3 of the original access time, so that the access efficiency is greatly improved, and better service experience can be provided for users.
Fig. 7 schematically illustrates a block diagram of an apparatus 700 for providing a network service according to an embodiment of the present disclosure. As shown in fig. 7, the apparatus 700 for providing a web service includes a request receiving module 710, an interface determining module 720, a dependency determining module 730, a priority determining module 740, and an accessing module 750.
According to an embodiment, the request receiving module 710 is configured to receive a request for a network service. The interface determination module 720 is configured to determine a plurality of service interfaces for providing network services according to the request. The dependency determination module 730 is configured to determine dependencies between a plurality of service interfaces. The priority determination module 740 is configured to determine an access priority for each of the plurality of service interfaces based on the dependency. The access module 750 is configured to access the plurality of service interfaces to provide the network service according to the access priority.
The specific operations of the above functional modules may be obtained by referring to the operation steps of the method 200 for providing network services in the foregoing embodiment, which are not described herein again.
Fig. 8 schematically illustrates a block diagram of an electronic device 800 adapted to provide network services according to an embodiment of the present disclosure. In a particular embodiment, the electronic device 800 may be an internet service gateway.
As shown in fig. 8, the electronic apparatus includes: one or more processors 801, memory 802, and interfaces for connecting the various components, including a high speed interface and a low speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). Only one processor 801 is shown in fig. 8 as an example.
The memory 802 is a non-transitory computer readable storage medium as provided herein. Wherein the memory stores instructions executable by at least one processor to cause the at least one processor to perform the method of providing network services provided herein. The non-transitory computer-readable storage medium of the present application stores computer instructions for causing a computer to perform the method of providing a network service provided by the present application.
The memory 802, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the method of providing a web service in the embodiments of the present application. The processor 801 executes various functional applications of the server and data processing by running non-transitory software programs, instructions, and modules stored in the memory 802, that is, implements the method of providing a web service in the above-described method embodiments.
The memory 802 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the electronic device providing the network service, and the like. Further, the memory 802 may include high speed random access memory and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 802 optionally includes memory located remotely from the processor 801, which may be connected to electronic devices providing network services through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device for implementing the method for identifying a traffic signal lamp fault of the present application may further include: an input device 803 and an output device 804. The processor 801, memory 802, input devices 803, and output devices 804 may be connected by a bus or other means, an example of which is shown in fig. 8.
The input device 803 may receive input numeric or character information, and key signal inputs related to user settings and function control, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointing stick, one or more mouse buttons, a track ball, a joystick, and the like. The output devices 804 may include a display device, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
According to embodiments of the present disclosure, the computer-readable storage medium may be a computer-non-volatile computer-readable storage medium, which may include, for example and without limitation: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (12)

1. A method of providing network services, comprising:
receiving a request for a network service;
determining a plurality of service interfaces for providing the network service according to the request;
determining a dependency relationship between the plurality of service interfaces;
determining the access priority of each service interface in the plurality of service interfaces according to the dependency relationship; and
accessing the plurality of service interfaces to provide the network service according to the access priority.
2. The method of claim 1, wherein determining dependencies between the plurality of service interfaces comprises:
for each of the plurality of service interfaces as a target service interface, determining a dependency relationship between the plurality of service interfaces according to a data transmission direction between the target service interface and other service interfaces of the plurality of service interfaces.
3. The method of claim 2, wherein determining dependencies between the plurality of service interfaces as a function of data transfer directions between the target service interface and other service interfaces of the plurality of service interfaces comprises:
determining a service interface providing data for the target service interface as a superior service interface of the target service interface; and
determining a service interface receiving data from the target service interface as a subordinate service interface of the target service interface.
4. The method of claim 3, wherein determining the access priority for each of the plurality of service interfaces according to the dependency comprises:
determining the access priority of a superior service interface of the target service interface to be higher than that of the target service interface; and
determining an access priority of a subordinate service interface of the target service interface to be lower than the access priority of the target service interface.
5. The method of claim 4, wherein determining an access priority for each of the plurality of service interfaces according to the dependency further comprises:
determining the target service interface without a superior service interface as having the highest priority.
6. The method of claim 4, wherein determining an access priority for each of the plurality of service interfaces according to the dependency further comprises:
determining the target service interface without any superior service interface and inferior service interface as having an arbitrary priority.
7. The method of claim 4, wherein in a case that a plurality of upper service interfaces of the target service interface have different access priorities, determining an upper service interface with a lowest access priority among the plurality of upper service interfaces, and determining the access priority of the target service interface to be lower than that of the upper service interface.
8. The method of any of claims 1-7, wherein the plurality of service interfaces includes at least one service interface having a first access priority and at least another service interface having a second access priority, the first access priority being higher than the second access priority, the accessing the plurality of service interfaces to provide the network service according to the access priority comprising:
after accessing the at least one service interface having the first access priority, accessing the at least one other service interface having the second access priority.
9. The method of any of claims 1 to 8, further comprising:
before receiving a request for a network service, a configuration service interface for receiving the request is created, and configuration information of the plurality of service interfaces is received through the configuration service interface.
10. An apparatus for providing network services, comprising:
a request receiving module configured to receive a request for a network service;
an interface determination module configured to determine a plurality of service interfaces for providing the network service according to the request;
a dependency determination module configured to determine dependencies between the plurality of service interfaces;
a priority determination module configured to determine an access priority of each of the plurality of service interfaces according to the dependency; and
an access module configured to access the plurality of service interfaces to provide the network service according to the access priority.
11. A gateway for providing network services, comprising:
a memory storing program instructions; and
a processor configured to execute the program instructions to perform the method of any of claims 1 to 9.
12. A computer-readable storage medium storing computer-executable instructions for implementing the method of any one of claims 1 to 9 when executed.
CN202011281104.6A 2020-11-16 2020-11-16 Method, device, gateway and storage medium for providing network service Active CN112468557B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011281104.6A CN112468557B (en) 2020-11-16 2020-11-16 Method, device, gateway and storage medium for providing network service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011281104.6A CN112468557B (en) 2020-11-16 2020-11-16 Method, device, gateway and storage medium for providing network service

Publications (2)

Publication Number Publication Date
CN112468557A true CN112468557A (en) 2021-03-09
CN112468557B CN112468557B (en) 2022-04-22

Family

ID=74837111

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011281104.6A Active CN112468557B (en) 2020-11-16 2020-11-16 Method, device, gateway and storage medium for providing network service

Country Status (1)

Country Link
CN (1) CN112468557B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020118691A1 (en) * 1997-05-26 2002-08-29 Pascal Albert Emile Lefebvre Method for prioritised data transmission and data transmission arrangement
CN103118098A (en) * 2013-01-25 2013-05-22 清华大学 Forecast based multi-connection mobile terminal interface switching method
US20140098796A1 (en) * 2012-10-09 2014-04-10 Qualcomm Incorporated Interface selection in a hybrid communication device
EP2720096A2 (en) * 2012-10-13 2014-04-16 Universitatea Tehnica din Cluj-Napoca Intelligent automation system based on a distributed, reconfigurable and adaptive architecture
WO2015159320A1 (en) * 2014-04-16 2015-10-22 三菱電機株式会社 Protocol conversion apparatus and industrial network system
US20180124178A1 (en) * 2016-10-28 2018-05-03 Johnson Controls Technology Company Thermostat with direction display
CN109240838A (en) * 2018-09-20 2019-01-18 深圳市牛鼎丰科技有限公司 Interface call method, device, computer equipment and storage medium
CN109314708A (en) * 2016-06-10 2019-02-05 微软技术许可有限责任公司 Network accessibility detection control
CN109892007A (en) * 2016-11-03 2019-06-14 高通股份有限公司 Double priority grade for transmission of video carries
CN109922012A (en) * 2017-12-13 2019-06-21 华为技术有限公司 A kind of method and relevant device for transmitting data
CN109962804A (en) * 2017-12-26 2019-07-02 中移(杭州)信息技术有限公司 A kind of system and method distributing business service grade
CN110267128A (en) * 2019-04-29 2019-09-20 中国联合网络通信集团有限公司 Access network service QoS dispositions method and device based on OLT in PON system
CN110535777A (en) * 2019-08-12 2019-12-03 新华三大数据技术有限公司 Access request control method, device, electronic equipment and readable storage medium storing program for executing
CN110535901A (en) * 2019-07-05 2019-12-03 中国平安财产保险股份有限公司 Service degradation method, apparatus, computer equipment and storage medium
CN111478857A (en) * 2019-01-24 2020-07-31 北京嘀嘀无限科技发展有限公司 Interface current limiting control method and device and electronic equipment

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020118691A1 (en) * 1997-05-26 2002-08-29 Pascal Albert Emile Lefebvre Method for prioritised data transmission and data transmission arrangement
US20140098796A1 (en) * 2012-10-09 2014-04-10 Qualcomm Incorporated Interface selection in a hybrid communication device
EP2720096A2 (en) * 2012-10-13 2014-04-16 Universitatea Tehnica din Cluj-Napoca Intelligent automation system based on a distributed, reconfigurable and adaptive architecture
CN103118098A (en) * 2013-01-25 2013-05-22 清华大学 Forecast based multi-connection mobile terminal interface switching method
WO2015159320A1 (en) * 2014-04-16 2015-10-22 三菱電機株式会社 Protocol conversion apparatus and industrial network system
CN109314708A (en) * 2016-06-10 2019-02-05 微软技术许可有限责任公司 Network accessibility detection control
US20180124178A1 (en) * 2016-10-28 2018-05-03 Johnson Controls Technology Company Thermostat with direction display
CN109892007A (en) * 2016-11-03 2019-06-14 高通股份有限公司 Double priority grade for transmission of video carries
CN109922012A (en) * 2017-12-13 2019-06-21 华为技术有限公司 A kind of method and relevant device for transmitting data
CN109962804A (en) * 2017-12-26 2019-07-02 中移(杭州)信息技术有限公司 A kind of system and method distributing business service grade
CN109240838A (en) * 2018-09-20 2019-01-18 深圳市牛鼎丰科技有限公司 Interface call method, device, computer equipment and storage medium
CN111478857A (en) * 2019-01-24 2020-07-31 北京嘀嘀无限科技发展有限公司 Interface current limiting control method and device and electronic equipment
CN110267128A (en) * 2019-04-29 2019-09-20 中国联合网络通信集团有限公司 Access network service QoS dispositions method and device based on OLT in PON system
CN110535901A (en) * 2019-07-05 2019-12-03 中国平安财产保险股份有限公司 Service degradation method, apparatus, computer equipment and storage medium
CN110535777A (en) * 2019-08-12 2019-12-03 新华三大数据技术有限公司 Access request control method, device, electronic equipment and readable storage medium storing program for executing

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
AKSHAY KUMAR等: "A Review of Error-Related Potential-Based Brain–Computer Interfaces for Motor Impaired People", 《IEEE ACCESS》 *
丁志锋等: "基于信息逻辑的智能变电站设计方法与实现", 《中国电业(技术版)》 *
张汉萍等: "云计算激光网络接口选择模型设计", 《激光杂志》 *
王胜等: "基于NoC的网络接口设计", 《电子与封装》 *

Also Published As

Publication number Publication date
CN112468557B (en) 2022-04-22

Similar Documents

Publication Publication Date Title
US11184427B2 (en) Local microservice development for remote deployment
US20160321308A1 (en) Constructing a data adaptor in an enterprise server data ingestion environment
US9851933B2 (en) Capability-based abstraction of software-defined infrastructure
CN110865855B (en) Applet processing method and related equipment
US10521246B1 (en) Application programming interface endpoint analysis and modification
US20170010673A1 (en) Gesture based sharing of user interface portion
US20170031722A1 (en) Processing element placement tool
US9569203B2 (en) Service-based integration of application patterns
US20230083701A1 (en) Automatically controlling resource partitions in advance of predicted bottlenecks for log streaming messages
US20150278305A1 (en) Dynamic rules to optimize common information model queries
WO2023229695A1 (en) Web site preview generation based on web site type
US20140207846A1 (en) Client-side aggregation of nested resource dependencies
US11082520B2 (en) Process broker for executing web services in a system of engagement and system of record environments
CN112468557B (en) Method, device, gateway and storage medium for providing network service
EP4085331A1 (en) Autonomous terraforming on cloud infrastructures
US20230229438A1 (en) Kernels as a service
US11157243B2 (en) Client-side source code dependency resolution in language server protocol-enabled language server
US20230385524A1 (en) Web site preview based on client presentation state
US20230120379A1 (en) Cloud architecture interpretation and recommendation engine for multi-cloud implementation
US11537445B2 (en) Dynamic integration flows in hybrid cloud environments
US20210311942A1 (en) Dynamically altering a query access plan
CN111813407B (en) Game development method, game running device and electronic equipment
US11829741B2 (en) Instantiated deployment of microservices
US20220309219A1 (en) Software to industrial device interface
US11068248B2 (en) Staggering a stream application's deployment

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