CN109302465B - Management method and system of multi-terminal service resources - Google Patents

Management method and system of multi-terminal service resources Download PDF

Info

Publication number
CN109302465B
CN109302465B CN201811087089.4A CN201811087089A CN109302465B CN 109302465 B CN109302465 B CN 109302465B CN 201811087089 A CN201811087089 A CN 201811087089A CN 109302465 B CN109302465 B CN 109302465B
Authority
CN
China
Prior art keywords
resource
server
cache information
entity
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811087089.4A
Other languages
Chinese (zh)
Other versions
CN109302465A (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.)
Shanghai Suixun Electronic Technology Co ltd
Original Assignee
Tianjin ByteDance 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 Tianjin ByteDance Technology Co Ltd filed Critical Tianjin ByteDance Technology Co Ltd
Priority to CN201811087089.4A priority Critical patent/CN109302465B/en
Publication of CN109302465A publication Critical patent/CN109302465A/en
Application granted granted Critical
Publication of CN109302465B publication Critical patent/CN109302465B/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/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Abstract

The invention discloses a method and a system for managing multi-terminal service resources, wherein the method for managing the multi-terminal service resources comprises the following steps: the resource manager receives a resource request sent by a first server, wherein the resource request is used for requesting a resource entity of a second server; the resource manager judges whether cache information corresponding to the resource entity of the second server exists in a local resource list or not according to the resource request; if the cache information corresponding to the resource entity of the second server exists, the resource manager directly adopts an asynchronous transmission mechanism to send the cache information to the first server; and if the cache information corresponding to the resource entity of the second server does not exist, the resource manager acquires the resource entity of the second server from the second server through the preset interface and sends the resource entity to the first server. The multi-terminal service resource management method and system provided by the embodiment of the invention can effectively reduce resource consumption, improve working efficiency and have low development complexity.

Description

Management method and system of multi-terminal service resources
Technical Field
The invention relates to the technical field of servers, in particular to a method and a system for managing multi-terminal service resources.
Background
With the advent of the information age, users can conveniently acquire information and resources which users want from the internet. At present, any service, such as a webpage, an application, and an APP of a mobile terminal, can refer to a third-party service resource. The third-party service is located by means of URL (Uniform Resource locator) or IP (Internet Protocol), and then requests the third-party service for the required Resource content. In the process, interaction with a plurality of third-party services is required, for example, an article which refers to a resource target as a microblog needs to asynchronously access a website address such as https:// weibo.com/{ date }/gEAe 3fkQref ═ feedsdk & type ═ comment # or http://168.103.123.465, and then the full resource is obtained to complete the reference.
However, when referring to a third-party resource, there are several problems:
1. the problem generated by multi-party interaction of resources is quoted. As shown in fig. 1, there are currently 5 services, which may result in a multi-party connection of 5 × 4/2 ═ 10. In the internet, dozens of services or hundreds of services are often interacted with each other, and the interaction among the services is over-dependent, so that a large amount of resources are consumed, and the development complexity is improved;
2. when a service creates a hot resource, multiple services attempt to reference the resource, creating a single point of pressure. However, performing single-point capacity expansion for the service will cause resource waste;
3. when a new service is added or a service changes an address or a port, all services in the network need to be modified in a targeted manner, so that the development cost is greatly increased;
4. the referenced resource is a static resource, and after the referenced resource content is stored in the text, the resource content is regarded as the text content, and the resource content is not updated, such as' injured 90-fold copilot, and concerned crew members. Forward, to offer them! "after being referenced, only the text is recorded. The resource content is updated or modified in the third-party service, and the quoting party does not know the resource content, so that the problem of resource content asynchronization is caused;
5. each service has its own development standard, and interfaces for interfacing with other services need to be newly developed and cannot be reused.
Disclosure of Invention
The object of the present invention is to solve at least to some extent one of the above mentioned technical problems.
Therefore, a first objective of the present invention is to provide a method for managing a multi-port service resource, which can effectively reduce resource consumption, improve work efficiency, and reduce development complexity.
The second objective of the present invention is to provide a management system for multi-end service resources.
A third object of the invention is to propose a computer-readable storage medium.
A fourth object of the invention is to propose an electronic device.
To achieve the above object, an embodiment of a first aspect of the present invention provides a method for managing multi-port service resources, including:
the resource manager receives a resource request sent by a first server, wherein the resource request is used for requesting a resource entity of a second server;
the resource manager judges whether cache information corresponding to the resource entity of the second server exists in a local resource list or not according to the resource request;
if the cache information corresponding to the resource entity of the second service end exists, the resource manager directly adopts an asynchronous transmission mechanism to send the cache information to the first service end;
and if the cache information corresponding to the resource entity of the second server does not exist, the resource manager acquires the resource entity of the second server from the second server through a preset interface and sends the resource entity to the first server.
Optionally, the method further includes:
after determining that cache information corresponding to the resource entity of the second server exists, the resource manager further determines whether the cache information is a real-time resource;
if the cache information is real-time resource, the resource manager further judges whether the cache information is overdue;
if the cache information is expired, the resource manager acquires a resource entity of the second server from the second server through the preset interface and sends the resource entity to the first server;
and if the cache information is not expired, the resource manager directly adopts an asynchronous transmission mechanism to send the cache information to the first service terminal.
Optionally, the method further includes:
the resource manager receives registration requests of a plurality of service terminals and generates the resource list according to the registration requests.
Optionally, the method further includes:
and when the resource entity of the server side changes, the resource manager updates the resource list.
Optionally, the method further includes:
the resource manager is connected with the plurality of service terminals by adopting a bypass function.
Optionally, the multiple service ends serve as the first service end when sending the resource request, and serve as the second service end when providing the resource entity.
In the method for managing multi-service resources in the embodiment of the present invention, a resource manager receives a resource request sent by a first service end, and determines whether cache information corresponding to a resource entity of a second service end exists in a local resource list according to the resource request, if the cache information corresponding to the resource entity of the second service end exists, the resource manager directly uses an asynchronous transmission mechanism to send the cache information to the first service end, and if the cache information corresponding to the resource entity of the second service end does not exist, the resource manager obtains the resource entity of the second service end from the second service end through a preset interface and sends the resource entity to the first service end, so that resource consumption can be effectively reduced, work efficiency is improved, and development complexity is low.
To achieve the above object, a second embodiment of the present invention provides a system for managing multi-terminal service resources, including:
the first service end is used for sending a resource request to the resource manager;
the resource manager is configured to receive a resource request sent by the first service end, where the resource request is used to request a resource entity of a second service end, and determine whether cache information corresponding to the resource entity of the second service end exists in a local resource list according to the resource request, and if the cache information corresponding to the resource entity of the second service end exists, directly send the cache information to the first service end by using an asynchronous transmission mechanism, and if the cache information corresponding to the resource entity of the second service end does not exist, obtain the resource entity of the second service end from the second service end by using a preset interface, and send the resource entity to the first service end;
the second server is configured to provide a resource entity to the resource manager through the preset interface when cache information corresponding to the resource entity of the second server does not exist in the resource manager;
the first server is a request server, and the second server is a providing server.
Optionally, the resource manager is further configured to:
after determining that cache information corresponding to the resource entity of the second server exists, further judging whether the cache information is real-time resource, if the cache information is real-time resource, further judging whether the cache information is overdue, if the cache information is overdue, acquiring the resource entity of the second server from the second server through the preset interface, and sending the resource entity to the first server, and if the cache information is not overdue, directly adopting an asynchronous transmission mechanism to send the cache information to the first server.
Optionally, the resource manager is further configured to:
and receiving registration requests of a plurality of service terminals, and generating the resource list according to the registration requests.
Optionally, the resource manager is further configured to:
and updating the resource list when the resource entities of the plurality of service terminals change.
Optionally, the resource manager is further configured to:
and adopting a bypass function to be connected with the plurality of service terminals.
Optionally, the multiple service ends serve as the first service end when sending the resource request, and serve as the second service end when providing the resource entity.
In the management system of the multi-service resource of the embodiment of the present invention, a resource manager receives a resource request sent by a first service end, and determines whether cache information corresponding to a resource entity of a second service end exists in a local resource list according to the resource request, if the cache information corresponding to the resource entity of the second service end exists, the resource manager directly adopts an asynchronous transmission mechanism to send the cache information to the first service end, and if the cache information corresponding to the resource entity of the second service end does not exist, the resource manager obtains the resource entity of the second service end from the second service end through a preset interface and sends the resource entity to the first service end, so that resource consumption can be effectively reduced, work efficiency is improved, and development complexity is low.
To achieve the above object, a third embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for managing multi-terminal service resources according to the first embodiment.
To achieve the above object, a fourth aspect of the present invention provides an electronic device, including a processor, a memory, and a computer program stored in the memory and executable on the processor, where the processor is configured to perform the method for managing multi-port service resources according to the first aspect.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a diagram illustrating the effect of multi-party interaction of a referenced resource in the prior art;
fig. 2 is a flowchart of a method for managing resources of a multi-port service according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating the effect of multi-party interaction of referencing resources according to the present invention;
fig. 4 is a flowchart of a method for managing resources of a multi-port service according to another embodiment of the present invention;
fig. 5 is a block diagram of a management system for multi-port service resources according to an embodiment of the present invention;
fig. 6 is a block diagram of an electronic device according to an embodiment of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
The following describes a method and a system for managing multi-port service resources according to an embodiment of the present invention with reference to the accompanying drawings.
Fig. 2 is a flowchart of a method for managing multi-port service resources according to an embodiment of the present invention.
As shown in fig. 2, the method for managing multi-port service resources includes:
s201, the resource manager receives a resource request sent by a first server, where the resource request is used to request a resource entity of a second server.
Currently, in the internet, when a third-party service resource is referred to, a plurality of problems are generated. For example, mutual dependency may occur when a citation party and a cited party interact with each other, and the dependency is too high when services interact with each other, which results in a large amount of resources being consumed. Therefore, the invention provides a management method of multi-terminal service resources, which can reduce the mutual dependence among services and reduce the resource consumption by uniformly managing a plurality of service terminals through a resource manager.
In an embodiment of the present invention, as shown in fig. 3, the resource manager is responsible for managing a plurality of servers, and each server does not depend on each other, so as to reduce resource consumption. When the server initiates a resource request, the server is called a first server, namely a request server; and when the server provides the resource entity, it is called a second server, i.e. a providing server. For example, a user browses an article in a microblog and forwards the article to a friend of a WeChat, so that the WeChat is a request server and a citation party; the microblog is the service providing end and the referenced party. The article content in the microblog is the resource entity.
S202, the resource manager judges whether cache information corresponding to the resource entity of the second server exists in the local resource list or not according to the resource request.
If the resource entity of the second server is referenced before, the corresponding cache information exists in the resource list of the resource manager.
S203, if there is cache information corresponding to the resource entity of the second server, the resource manager directly uses an asynchronous transmission mechanism to send the cache information to the first server.
Compared with the method for transmitting the cache information by adopting an asynchronous transmission mechanism, the method for transmitting the cache information by adopting the asynchronous transmission mechanism has the advantages that the complexity and the risk of accessing different services by a plurality of second service terminals are reduced, the response speed is higher, and the efficiency is higher compared with the method for requesting a resource entity from a first service terminal to a second service terminal in the prior art.
And S204, if the cache information corresponding to the resource entity of the second server does not exist, the resource manager acquires the resource entity of the second server from the second server through a preset interface and sends the resource entity to the first server.
The preset Interface is designed as a normal API (Application Programming Interface), that is, a unified protocol and a standard Interface design, and it is not necessary to redevelop an Interface for a certain service, so that the development amount can be reduced, and the multiplexing of the interfaces can be realized. If a plurality of first service terminals simultaneously request the resource entity of the same second service terminal, the resource entity can be effectively multiplexed, and the real-time property of the acquired resource entity is ensured.
It should be understood that the first server is a requesting server and the second server is a providing server.
The method for managing the multi-terminal service resources comprises the steps that a resource manager receives a resource request sent by a first server, judges whether cache information corresponding to a resource entity of a second server exists in a local resource list or not according to the resource request, directly sends the cache information to the first server by adopting an asynchronous transmission mechanism if the cache information corresponding to the resource entity of the second server exists, and obtains the resource entity of the second server from the second server through a preset interface and sends the resource entity to the first server if the cache information corresponding to the resource entity of the second server does not exist.
In another embodiment of the present invention, as shown in fig. 4, the method for managing multi-port service resources further includes:
s205, after determining that the cache information corresponding to the resource entity of the second server exists, the resource manager further determines whether the cache information is a real-time resource.
S206, if the cache information is real-time resource, the resource manager further judges whether the cache information is overdue.
That is, it is detected whether a token is newly added, and if so, it indicates that the cache information has expired and the latest resource entity needs to be acquired.
And S207, if the cache information is overdue, the resource manager acquires the resource entity of the second server from the second server through the preset interface and sends the resource entity to the first server.
S208, if the cache information is not expired, the resource manager directly adopts an asynchronous transmission mechanism to send the cache information to the first server.
In addition, when a management system of multi-terminal service resources is established, the resource manager can receive registration requests actively initiated by a plurality of service terminals, and then generate a resource list according to the registration requests. When a resource request (reference) occurs, the request server can browse the resource of the providing server through the resource manager and acquire the resource entity through the uniform interface. Through the active registration driving mode, the server can browse the resource entities of all the servers only by connecting to the resource manager during development. When a new service is added or the address or the port is changed by the service, all the services do not need to be modified correspondingly, and only the resource manager needs to be modified, so that the development cost is reduced.
In another embodiment of the present invention, the resource manager updates the resource list when a change occurs in the resource entity of the server. The updating operation can be that the server side reports actively when the updating operation changes; or the resource manager can scan whether the resource entity of each server changes at regular time. Therefore, when the resources are quoted and the quoted resource entities change, the quote party can synchronously update in time, and the real-time performance of the resources is ensured.
Further, the resource manager is connected with the plurality of servers by using a bypass function bypass. Since the resource manager is a single-point service, in order to avoid a failure of the reference mechanism caused by a single-point failure, the embodiment also adopts a bypass technology to route the resource manager to one proxy server nginx. When the resource manager fails, the proxy server nginx forwards all the requests to the correct service providing end by using the bypass technology, and transmits the resource entities back to the request service end, so that the problem of single point of failure is avoided. When a plurality of service terminals send out resource requests, the service terminals are first service terminals; the plurality of servers are the second servers when providing the resource entities.
In order to implement the above embodiments, the present invention further provides a management system for multi-port service resources.
Fig. 5 is a block diagram of a management system for multi-port service resources according to an embodiment of the present invention.
As shown in fig. 5, the management system of the multi-terminal service resource may include a first server 510, a resource manager 520, and a second server 530.
The first server 510 is configured to issue a resource request to the resource manager 520.
The resource manager 520 is configured to receive a resource request sent by the first server 510, where the resource request is used to request a resource entity of the second server 530, and determine whether cache information corresponding to the resource entity of the second server 530 exists in a local resource list according to the resource request, and if the cache information corresponding to the resource entity of the second server 530 exists, directly send the cache information to the first server 510 by using an asynchronous transmission mechanism, and if the cache information corresponding to the resource entity of the second server 530 does not exist, obtain the resource entity of the second server 530 from the second server 530 through a preset interface, and send the resource entity to the first server 510.
The second server 530 is configured to provide the resource entity to the resource manager 520 through a preset interface when the cache information corresponding to the resource entity of the second server 530 does not exist in the resource manager 520.
The first server 510 is a request server, and the second server 530 is a providing server.
In addition, resource manager 520 is further configured to:
after determining that the cache information corresponding to the resource entity of the second server 530 exists, further determining whether the cache information is a real-time resource, if the cache information is the real-time resource, further determining whether the cache information is expired, if the cache information is expired, obtaining the resource entity of the second server 530 from the second server 530 through a preset interface, and sending the resource entity to the first server 510, and if the cache information is not expired, directly sending the cache information to the first server 510 by using an asynchronous transmission mechanism.
In another embodiment of the present invention, the resource manager 520 is further configured to receive registration requests of multiple servers, and generate a resource list according to the registration requests.
Resource manager 520 may also update the resource list when resource entities of multiple servers change.
The resource manager 520 is connected to a plurality of servers using a bypass function.
When sending a resource request, the multiple servers are the first server 510; the plurality of servers are the second server 530 when providing the resource entity.
It should be noted that the foregoing explanation of the management method for multi-port service resources is also applicable to the management system for multi-port service resources in the embodiment of the present invention, and details not disclosed in the embodiment of the present invention are not described herein again.
The management system of the multi-end service resource of the embodiment of the invention receives the resource request sent by the first server through the resource manager, judges whether the cache information corresponding to the resource entity of the second server exists in the local resource list according to the resource request, if the cache information corresponding to the resource entity of the second server exists, the resource manager directly adopts an asynchronous transmission mechanism to send the cache information to the first server, and if the cache information corresponding to the resource entity of the second server does not exist, the resource manager obtains the resource entity of the second server from the second server through the preset interface and sends the resource entity to the first server, so that the resource consumption can be effectively reduced, the working efficiency is improved, and the development complexity is low.
To achieve the above embodiments, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the management method of the multi-service resource as the first aspect embodiment.
In order to implement the above embodiments, the present invention further provides an electronic device.
As shown in fig. 6, the electronic device 600 includes a processor 610, a memory 620, and a computer program 601 stored in the memory 620 and executable on the processor 610, where the processor 610 is configured to perform the method for managing multi-terminal service resources according to the embodiment of the first aspect.
According to the electronic device provided by the embodiment of the invention, the resource manager receives the resource request sent by the first server, and judges whether cache information corresponding to the resource entity of the second server exists in the local resource list according to the resource request, if the cache information corresponding to the resource entity of the second server exists, the resource manager directly adopts an asynchronous transmission mechanism to send the cache information to the first server, and if the cache information corresponding to the resource entity of the second server does not exist, the resource manager obtains the resource entity of the second server from the second server through the preset interface and sends the resource entity to the first server, so that the resource consumption can be effectively reduced, the working efficiency is improved, and the development complexity is low.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware that is related to instructions of a program, and the program may be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (8)

1. A method for managing multi-terminal service resources is characterized by comprising the following steps:
the method comprises the steps that a resource manager receives a resource request sent by a first server, wherein the resource request is used for requesting a resource entity of a second server, a plurality of servers are the first server when sending the resource request, and the plurality of servers are the second server when providing the resource entity;
the resource manager judges whether cache information corresponding to the resource entity of the second server exists in a local resource list or not according to the resource request;
if the cache information corresponding to the resource entity of the second service end exists, the resource manager directly adopts an asynchronous transmission mechanism to send the cache information to the first service end;
and if the cache information corresponding to the resource entity of the second server does not exist, the resource manager acquires the resource entity of the second server from the second server through a preset interface and sends the resource entity to the first server.
2. The method of claim 1, further comprising:
after determining that cache information corresponding to the resource entity of the second server exists, the resource manager further determines whether the cache information is a real-time resource;
if the cache information is real-time resource, the resource manager further judges whether the cache information is overdue;
if the cache information is expired, the resource manager acquires a resource entity of the second server from the second server through the preset interface and sends the resource entity to the first server;
and if the cache information is not expired, the resource manager directly adopts an asynchronous transmission mechanism to send the cache information to the first service terminal.
3. The method of claim 1, further comprising:
the resource manager receives registration requests of a plurality of service terminals and generates the resource list according to the registration requests.
4. The method of claim 3, further comprising:
and when the resource entity of the server side changes, the resource manager updates the resource list.
5. The method of claim 3, further comprising:
the resource manager is connected with the plurality of service terminals by adopting a bypass function.
6. A system for managing resources of a multi-terminal service, comprising:
the first service end is used for sending a resource request to the resource manager;
the resource manager is configured to receive a resource request sent by the first service end, where the resource request is used to request a resource entity of a second service end, and determine whether cache information corresponding to the resource entity of the second service end exists in a local resource list according to the resource request, and if the cache information corresponding to the resource entity of the second service end exists, directly send the cache information to the first service end by using an asynchronous transmission mechanism, and if the cache information corresponding to the resource entity of the second service end does not exist, obtain the resource entity of the second service end from the second service end by using a preset interface, and send the resource entity to the first service end;
the second server is configured to provide a resource entity to the resource manager through the preset interface when cache information corresponding to the resource entity of the second server does not exist in the resource manager;
the first server is a request server, the second server is a providing server, a plurality of servers are the first server when sending resource requests, and the plurality of servers are the second server when providing resource entities.
7. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out a method of managing a multi-terminal service resource according to any one of claims 1 to 5.
8. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the processor being configured to perform the method of managing a multi-terminal service resource according to any of claims 1-5.
CN201811087089.4A 2018-09-18 2018-09-18 Management method and system of multi-terminal service resources Active CN109302465B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811087089.4A CN109302465B (en) 2018-09-18 2018-09-18 Management method and system of multi-terminal service resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811087089.4A CN109302465B (en) 2018-09-18 2018-09-18 Management method and system of multi-terminal service resources

Publications (2)

Publication Number Publication Date
CN109302465A CN109302465A (en) 2019-02-01
CN109302465B true CN109302465B (en) 2021-06-25

Family

ID=65163454

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811087089.4A Active CN109302465B (en) 2018-09-18 2018-09-18 Management method and system of multi-terminal service resources

Country Status (1)

Country Link
CN (1) CN109302465B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021179169A1 (en) * 2020-03-10 2021-09-16 Oppo广东移动通信有限公司 Resource management method and apparatus, and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009036391A2 (en) * 2007-09-12 2009-03-19 Proximetry, Inc. Systems and methods for delivery of wireless data and multimedia content to aircraft
CN101741877A (en) * 2008-11-27 2010-06-16 华为技术有限公司 Method, system and equipment for operating media resource
CN103188134A (en) * 2011-12-29 2013-07-03 腾讯科技(深圳)有限公司 Logic transition communication method, logic transition server and logic transition communication system
CN107257502A (en) * 2017-07-27 2017-10-17 四川长虹电器股份有限公司 A kind of terminal dynamic picture video mix resources circulation player method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120116772A (en) * 2011-04-13 2012-10-23 주식회사 케이티 Method for caching tenant data in multi-tenancy service platform
CN104753966A (en) * 2013-12-25 2015-07-01 明博教育科技有限公司 Resource file inquiry method and system based on server and client caches

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009036391A2 (en) * 2007-09-12 2009-03-19 Proximetry, Inc. Systems and methods for delivery of wireless data and multimedia content to aircraft
CN101741877A (en) * 2008-11-27 2010-06-16 华为技术有限公司 Method, system and equipment for operating media resource
CN103188134A (en) * 2011-12-29 2013-07-03 腾讯科技(深圳)有限公司 Logic transition communication method, logic transition server and logic transition communication system
CN107257502A (en) * 2017-07-27 2017-10-17 四川长虹电器股份有限公司 A kind of terminal dynamic picture video mix resources circulation player method

Also Published As

Publication number Publication date
CN109302465A (en) 2019-02-01

Similar Documents

Publication Publication Date Title
US9451046B2 (en) Managing CDN registration by a storage provider
US9888089B2 (en) Client side cache management
JP6173290B2 (en) Method and system for content management
US9083743B1 (en) Managing request routing information utilizing performance information
US9444759B2 (en) Service provider registration by a content broker
CN104980289B (en) Information push method, device and system
US8676912B2 (en) Topic-based messaging using consumer address and pool
US11824787B2 (en) Method and apparatus for node speed limiting, electronic device and storage medium
CN110310139B (en) Data delivery method and data delivery engine device
CN109302465B (en) Management method and system of multi-terminal service resources
CN109471713B (en) Method and device for inquiring information
CN111783005B (en) Method, device and system for displaying web page, computer system and medium
CN109324914B (en) Service calling method, service calling device and central server
CN113742617A (en) Cache updating method and device
EP3040891A1 (en) Method for providing information to determine a graph associated with a data item
CN110019671B (en) Method and system for processing real-time message
CN115665240A (en) Proxy service adding method, device, electronic equipment and storage medium
CN117131295A (en) Resource management method, system, device, electronic equipment and storage medium
CN111835704A (en) Apparatus and method for network-based media processing system

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
TR01 Transfer of patent right

Effective date of registration: 20210716

Address after: 200433 no.465 Guohe Road, Yangpu District, Shanghai

Patentee after: Shanghai suixun Electronic Technology Co.,Ltd.

Address before: 300000 Tianjin Binhai High-tech Zone Binhai Science Park, No. 39, No. 6 High-tech Road, 9-3-401

Patentee before: TIANJIN BYTEDANCE TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right