CN109428924A - Presence maintaining method, access layer assembly, application system and the equipment of application - Google Patents

Presence maintaining method, access layer assembly, application system and the equipment of application Download PDF

Info

Publication number
CN109428924A
CN109428924A CN201710757797.3A CN201710757797A CN109428924A CN 109428924 A CN109428924 A CN 109428924A CN 201710757797 A CN201710757797 A CN 201710757797A CN 109428924 A CN109428924 A CN 109428924A
Authority
CN
China
Prior art keywords
user
application
layer assembly
access layer
request
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
CN201710757797.3A
Other languages
Chinese (zh)
Other versions
CN109428924B (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201710757797.3A priority Critical patent/CN109428924B/en
Publication of CN109428924A publication Critical patent/CN109428924A/en
Application granted granted Critical
Publication of CN109428924B publication Critical patent/CN109428924B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/54Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session
    • H04L67/145Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session

Abstract

The embodiment of the present application discloses a kind of presence maintaining method of application, access layer assembly, application system and equipment, this method comprises: the user online status maintenance request for the application that the client that the access layer assembly of application receives the application is sent, wherein, which carries the first user identifier of the application;The access layer assembly is according to the user online status maintenance request, safeguard the presence of the corresponding user of first user identifier in the corresponding caching of access layer assembly, wherein, the caching is used to store the presence of specific user, which is the user for accessing the application service layer of the application.

Description

Presence maintaining method, access layer assembly, application system and the equipment of application
Technical field
This application involves computer software technical field more particularly to a kind of presence maintaining methods of application, access Layer assembly and application system.
Background technique
In existing large-scale application system, usually by the presence of the user of application service layer assembly maintenance application. Due to just needing to send the holding heartbeat request of a maintenance user online status between each online user every few seconds, for possessing Application of huge user group, such as Wang Wang, Alipay, QQ etc., the maintenance service amount of the presence of the user of application system Very big, the presence maintenance of instantaneous user can reach million grades, millions or even hundred million grades.The maintenance of so big quantity Portfolio requests to safeguard by access layer assembly such as API gateway of application system etc. to the application service layer assembly of application system User online status needs to consume a certain amount of process resource in application system.
Summary of the invention
The purpose of the embodiment of the present application is to provide a kind of presence maintaining method of application, access layer assembly, using system System and equipment, to improve the maintenance efficiency of the presence of the user in application system, so as to save to a certain extent The process resource of application system improves the treatment effeciency of application system.
In order to solve the above technical problems, the embodiment of the present application is achieved in that
In a first aspect, a kind of presence maintaining method using user is proposed, this method comprises:
The user online status maintenance request for the application that the client that the access layer assembly of application receives the application is sent, Wherein, which carries the first user identifier of the application;
For the access layer assembly according to the user online status maintenance request, safeguarding should in the corresponding caching of access layer assembly The presence of the corresponding user of first user identifier, wherein the caching is used to store the presence of specific user, this is specific User is the user for accessing the application service layer assembly of the application.
Second aspect proposes a kind of access layer assembly of application, which includes:
Receiving unit receives the user online status maintenance request of the application of the client transmission of the application, wherein should User online status maintenance request carries the first user identifier of the application;
Maintenance unit safeguards this in the corresponding caching of access layer assembly according to the user online status maintenance request The presence of the corresponding user of one user identifier, wherein the caching is used to store the presence of specific user, the specific use Family is the user for accessing the application service layer assembly of the application.
The third aspect proposes a kind of electronic equipment, which includes:
Processor;And
It is arranged to the memory of storage computer executable instructions, which makes the processor when executed Execute following operation:
Receive the user online status maintenance request of the application of the client transmission of the application, wherein the user is online State-maintenance request carries the first user identifier of the application;
According to the user online status maintenance request, first user identifier in the corresponding caching of access layer assembly is safeguarded The presence of corresponding user, wherein the caching is used to store the presence of specific user, which is that access should The user of the application service layer assembly of application.
Fourth aspect proposes a kind of computer readable storage medium, the computer-readable recording medium storage one or Multiple programs, the one or more program is when the electronic equipment for being included multiple application programs executes, so that the electronic equipment Execute following operation:
Receive the user online status maintenance request of the application of the client transmission of the application, wherein the user is online State-maintenance request carries the first user identifier of the application;
According to the user online status maintenance request, first user identifier in the corresponding caching of access layer assembly is safeguarded The presence of corresponding user, wherein the caching is used to store the presence of specific user, which is that access should The user of the application service layer assembly of application.
5th aspect, proposes a kind of application system, including applications client, using access layer component and application service layer Component, wherein
The applications client sends user online status maintenance request to the application access layer assembly, wherein the user exists Linear state maintenance request carries the first user identifier of application;
The application access layer assembly, receives the user online status maintenance request, and safeguard according to the user online status The presence of the corresponding user of first user identifier in the corresponding caching of application access layer assembly is safeguarded in request, wherein The caching is used to store the presence of specific user, which is the use for accessing the application service layer assembly of the application Family.
6th aspect, proposes a kind of presence maintaining method of application, this method comprises:
Access the presence maintenance request that layer assembly receives the application that client is sent, wherein presence dimension Shield request carries the first identifier of the application;
The access layer assembly according to the presence maintenance request, safeguard in the corresponding caching of access layer assembly this first Identify corresponding presence.
7th aspect, proposes a kind of access layer assembly of application, which includes:
Receiving unit receives the presence maintenance request for the application that client is sent, wherein presence maintenance Request carries the first identifier of the application;
Maintenance unit safeguards first mark in the corresponding caching of access layer assembly according to the presence maintenance request Know corresponding presence.
Eighth aspect proposes a kind of electronic equipment, which includes:
Processor;And
It is arranged to the memory of storage computer executable instructions, which makes the processor when executed Execute following operation:
Receive the presence maintenance request for the application that client is sent, wherein the presence maintenance request carries The first identifier of the application;
According to the presence maintenance request, safeguard in the corresponding caching of access layer assembly the first identifier it is corresponding Linear state.
9th aspect, propose a kind of computer readable storage medium, the computer-readable recording medium storage one or Multiple programs, the one or more program is when the electronic equipment for being included multiple application programs executes, so that the electronic equipment Execute following operation:
Receive the presence maintenance request for the application that client is sent, wherein the presence maintenance request carries The first identifier of the application;
According to the presence maintenance request, safeguard in the corresponding caching of access layer assembly the first identifier it is corresponding Linear state.
Tenth aspect, proposes a kind of application system, including applications client, using access layer component and application service layer Component, wherein
The applications client, to the presence maintenance request of the application access layer assembly sending application, wherein this is online State-maintenance request carries the first identifier of the application;
The application access layer assembly, receives the presence maintenance request of the application of applications client transmission, and root According to the presence maintenance request, the corresponding presence of the first identifier in the corresponding caching of access layer assembly is safeguarded.
As can be seen from the technical scheme provided by the above embodiments of the present application, the embodiment of the present application passes through the access layer group in application Part safeguards the presence of user according to the user online status maintenance request of applications client, so that the user in application system Presence maintenance only need to can be completed in the next-hop device of client, safeguard user online status compared with the prior art Scheme reduce needed for the network node that routes, while the process resource of application service layer is decreased, so as to one Determine the process resource for saving application system in degree, improves the treatment effeciency of application system.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The some embodiments recorded in application, for those of ordinary skill in the art, in the premise of not making the creative labor property Under, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the method flow diagram of one embodiment user online status maintenance of the application.
Fig. 2 is one embodiment of the application according to the detailed process for keeping heartbeat request maintenance user online status information Figure.
Fig. 3 is that one embodiment of the application safeguards the specific flow chart of user online status information according to de-registration request.
Fig. 4 is that one embodiment of the application safeguards the specific flow chart of user online status information according to logging request.
Fig. 5 is that one embodiment of the application safeguards the specific flow chart of user online status information according to heart time.
Fig. 6 is that one embodiment application service layer of the application sends downstream message/downlink notice specific flow chart.
Fig. 7 is the specific flow chart of one embodiment application service layer inquiry user online status of the application.
Fig. 8 is the detailed process of one embodiment application service layer inquiry user online status statistical information of the application Figure.
Fig. 9 is that one embodiment application service layer of the application sends the specific flow chart of offline message.
Figure 10 is the structural schematic diagram of one embodiment electronic equipment of the application.
Figure 11 is the structural schematic diagram of one embodiment access layer assembly of the application.
Figure 12 is the structural schematic diagram of one embodiment application system of the application.
Figure 13 is the method flow diagram of one embodiment application presence maintenance of the application.
Figure 14 is the structural schematic diagram of another embodiment electronic equipment of the application.
Figure 15 is the structural schematic diagram of another embodiment access layer assembly of the application.
Figure 16 is the structural schematic diagram of another embodiment application system of the application.
Specific embodiment
The embodiment of the present application provides a kind of user online status maintaining method and application interface gateway.
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application reality The attached drawing in example is applied, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described implementation Example is merely a part but not all of the embodiments of the present application.Based on the embodiment in the application, this field is common The application protection all should belong in technical staff's every other embodiment obtained without creative efforts Range.
Fig. 1 is the method flow diagram that one embodiment of the application is safeguarded using the presence of user.The method of Fig. 1 by The access layer assembly of application executes.In the embodiment of the present application, which can be with API gateway etc..The method of Fig. 1 can wrap It includes:
S102, the user online status maintenance for the application that the client that the access layer assembly of application receives the application is sent Request, wherein the user online status maintenance request carries the first user identifier of the application.
It should be understood, of course, that in the embodiment of the present application, the access layer assembly of application is and the client of application establishes length Connection, in other words, the method for step S102 application access layer assembly and the client of application establish it is long after connecting It executes.
The type of long connection may include a variety of.It specifically, should in the application of the end PC such as laptop, desktop computer Long connection can be socket (socket) connection;In the application of mobile terminal such as smart phone, tablet computer, which connects It connects and is also possible to socket (socket) connection;Particularly, when the application is web in application, the i.e. application is logged in web form When, length connection can be web socket connection.
In the embodiment of the present application, access layer assembly can be connected by the length having built up between access layer assembly and client It connects, receives the user online status maintenance request of client transmission.
S104, the access layer assembly safeguard that the access layer assembly is corresponding slow according to the user online status maintenance request The presence of the corresponding user of the first user identifier of this in depositing.
Wherein, which is used to store the presence of specific user, which is the application clothes for accessing the application The user of business layer assembly.
It should be understood that in the embodiment of the present application, an application system may include multiple access layer assemblies, multiple access Layer assembly both corresponds to the caching of application system, and multiple access layer assembly shares the caching.The caching can be a caching Server, or a cluster being made of multiple cache servers.By taking Alipay as an example, in the access layer of Alipay system Including multiple API gateways, each API gateway is corresponded on cache server cluster, and the cache server cluster is for storing Log in the presence of the user of Alipay.Wherein, API gateway, that is, the embodiment of the present application access layer assembly, caching clothes Business device cluster, that is, the embodiment of the present application caching.
It should be understood that in the embodiment of the present application, the only API gateway presence information that just needs to safeguard user, this is answered Application service layer assembly does not safeguard the presence information of user, the not presence information of cache user yet.
In the embodiment of the present application, the access layer assembly of application is asked according to the maintenance of the user online status of the client of application The presence of maintenance user is sought, so that the presence maintenance of the user in application system need to only be set in the next-hop of client It is standby to can be completed, the network node routed needed for the scheme of user online status reduces is safeguarded compared with the prior art, simultaneously The process resource of application service layer is decreased, so as to save the process resource of application system to a certain extent, is improved The treatment effeciency of application system.
Optionally, as one embodiment, when the user online status maintenance request is logging request, step S102 tool Body is realized are as follows: the access layer assembly receives the logging request of client transmission, which carries first user identifier And verification information;
Wherein, step S104 is implemented are as follows: the access layer assembly is according to the logging request to the application service layer assembly The validity of requests verification first user identifier and the verification information;When first user identifier and the verification information are effective When, then the access layer assembly stores the presence of the corresponding user of first user identifier in the caching, wherein this first The presence of the corresponding user of user identifier is online.
It should be understood that in the embodiment of the present application, which can be password or electronic certificate (Credential) fingerprint or the face feature figure of user etc. of string or user.Credential string, for example, can To be that application system passes through the random string etc. to smart phone or mailbox transmission.The face feature figure of user, for example, payment The face feature figure of user collected in precious brush face login function.
In the embodiment of the present application, access layer assembly can according to client send logging request, application service layer into Row is verified, and stores the user of the corresponding user identifier of the logging request in the buffer after user identification and verification information is effective Presence.
Further, in the embodiment of the present application, this method further include: if the login authentication result is first user Mark and the verification information are effective, which is logging state by the long linkage flag.
Optionally, as another embodiment, when the user online status maintenance request is to keep heartbeat request, step S104 specific implementation are as follows: the access layer assembly is according to the time for receiving the holding heartbeat request, or according to the holding heartbeat request The timestamp of carrying updates the heart time in the caching in the presence of the corresponding user of first user identifier.
In the embodiment of the present application, by safeguarding the heart time of user online status according to holding heartbeat request, thus Access layer assembly is enabled to determine whether heartbeat is overtime according to heart time, so that it is determined that whether user is online.
Optionally, as further embodiment, when the user online status maintenance request is de-registration request, step S104 Specific implementation are as follows: the access layer assembly deletes the corresponding user of first user identifier in the caching according to the de-registration request Presence data.
In the embodiment of the present application, by deleting the presence data of corresponding user in caching according to de-registration request, The attended operation of user can be timely responded to, the maintenance efficiency of user online status data is improved.
Further, in the embodiment of the present application, this method further include: the access layer assembly is to the application service layer assembly The request for nullifying the corresponding user of first user identifier is sent, which closes and the long company between the client It connects.
In the embodiment of the present application, corresponding long connection is closed according to de-registration request, so as to discharge access layer in time The memory source of component.
Optionally, as one embodiment, this method may also include that each user exists in the access layer assemblies monitor caching The corresponding heart time of linear state;If current time is identified apart from the second user corresponding to the presence of corresponding user Heart time time interval be greater than heart beat cycle, then delete the second user in the caching and identify the online of corresponding user Status data, and close the corresponding long connection of second user mark.
It should be understood that heart beat cycle and heart time be for measure heartbeat whether Chao Shi index.Heart time is usually all Before current time.If the time interval between current time and heart time is greater than heart beat cycle, illustrate that heartbeat is super When.
In the embodiment of the present application, by monitoring the heart time of user online status, and caching is deleted after heartbeat timeout In corresponding user presence data, and close corresponding long connection in access layer assembly, it is non-so as to safeguard in time The presence data of the user normally exited.
Optionally, as one embodiment, this method may also include that
The access layer assembly receives downstream message/downlink that the application service layer assembly is sent and notifies, and the downstream message/under Row notice carries third user identifier;
If there are the corresponding long connection of the third user identifier, the access layer assemblies in the memory of the access layer assembly It is connected by the corresponding length of third user identifier to the corresponding client of third user identifier and sends the downstream message/downlink Notice.
In the embodiment of the present application, access layer assembly is logical by the downstream message/downlink sent according to application service layer assembly Know, judges that access layer is corresponding by user with the presence or absence of the long connection of corresponding user, and when there are corresponding long connection Client sends downstream message/downlink notice, so as to judge that the whether online movement of user is placed in application system Layer assembly processing is accessed, reduces the process resource consumption of application service layer to a certain extent.
Optionally, as one embodiment, this method may also include that
The access layer assembly receives downstream message/downlink that the application service layer assembly is sent and notifies, and the downstream message/under Row notice carries third user identifier;
If there is no the corresponding long connection of the third user identifier, the access layer groups in the memory of the access layer assembly Part feeds back the not online response message of the corresponding user of the third user identifier to the application service layer assembly.
In the embodiment of the present application, access layer assembly is logical by the downstream message/downlink sent according to application service layer assembly Know, judges that access layer is connected with the presence or absence of the long of corresponding user, and to application service layer when there is no corresponding long connection The not online response message of component feedback user, so as to judge that the whether online movement of user is placed in application system Layer assembly processing is accessed, reduces the process resource consumption of application service layer to a certain extent.
Optionally, as one embodiment, this method may also include that the access layer assembly receives the application service layer assembly The user online status inquiry request of transmission, the user online status inquiry request carry fourth user mark, and the user is online Status query request is used to request to inquire the presence that the fourth user identifies corresponding user, which deposits It stores up user identifier and accesses the corresponding relationship of layer assembly;If there are fourth user marks in the memory of the access layer assembly Corresponding long connection, then the access layer assembly to the application service layer assembly feeds back the fourth user to identify corresponding user online Response message.
It should be understood that in the embodiment of the present application, application service layer assembly can be sent out according to access layer assembly when user logs in The logging request sent, determines user identifier and accesses the corresponding relationship of layer assembly, determines that user is accessed with the user in other words Access layer assembly corresponding relationship.Application service layer assembly, can be according to user when sending user online status inquiry request The corresponding relationship of mark and access layer assembly determines the corresponding access layer assembly of user identifier and sends user online status inquiry Request.
Alternatively, optionally, as another embodiment, this method may also include that the access layer assembly receives application clothes The user online status inquiry request that business layer assembly is sent, the user online status inquiry request carry fourth user mark, should User online status inquiry request is used to request to inquire the presence that the fourth user identifies corresponding user, the application service Layer assembly stores user identifier and accesses the corresponding relationship of layer assembly;If in the memory of the access layer assembly there is no this The corresponding long connection of four user identifiers, then the access layer assembly feeds back fourth user mark to the application service layer assembly and corresponds to The not online response message of user.
Optionally, as one embodiment, this method may also include that the access layer assembly receives the application service layer assembly The user online status of transmission counts request, the request of user online status statistics for the request application user The statistical information of line status data;The access layer assembly counts the presence data of the user of the application in the caching and feeds back Give the application service layer assembly.
Optionally, as one embodiment, this method may also include that the access layer assembly receives the application service layer assembly The offline request sent, the offline request carry the 5th user identifier, and the offline request is corresponding for kicking the 5th user identifier User offline, the application service layer assembly store user identifier and access layer assembly corresponding relationship;If the access layer There are the corresponding long connection of the 5th user identifier in the memory of component, then it is corresponding that the 5th user identifier is deleted in the caching User presence data, and corresponding length is identified by the fourth user and connects visitor corresponding to the 5th user identifier Family end sends and kicks offline notice.Optionally, this method further include: close the corresponding long connection of fourth user mark.
It should be understood that in the embodiment of the present application, application service layer assembly can be sent out according to access layer assembly when user logs in The logging request sent, determines user identifier and accesses the corresponding relationship of layer assembly, determines that user is accessed with the user in other words Access layer assembly corresponding relationship.Application service layer assembly, can be according to user identifier and access layer when sending offline request The corresponding relationship of component determines the corresponding access layer assembly of user identifier and sends offline request.
In the following, will be further described in conjunction with specific embodiments to the method for the embodiment of the present application.
Fig. 2 is that one embodiment of the application safeguards the specific flow chart of user online status information according to logging request. The method of Fig. 2 can include:
201, client sends logging request to API gateway.
It should be understood that also carrying the user identity information of application in the logging request, it might as well assume that the user identity information is First user identifier.
In the embodiment depicted in figure 2, which can be the client comprising SDK, such as Android client or apple Fruit client.It should be understood, of course, that in specific application, the client of application can also be other than the client in mobile phone Client on other terminal devices such as PC machine or tablet computer, the embodiment of the present application to this with no restriction.In addition, the client It can be the client opened by the corresponding app of application or application program, or the web client opened by webpage, This is not restricted for the embodiment of the present application.The client that occurs in following Fig. 3-embodiment illustrated in fig. 9 and the embodiment of the present application The function of client is identical.
In the embodiment of the present application, API gateway is the access layer assembly in the application embodiment illustrated in fig. 1.Following figures The API gateway occurred in 3- embodiment illustrated in fig. 9 is identical as the function of the API gateway of the embodiment of the present application.
In the embodiment of the present application, which can also carry verification information other than carrying the first user identifier.
It should be understood that in the embodiment of the present application, which can be password or electronic certificate (Credential) fingerprint or the face feature figure of user etc. of string or user.Credential string, for example, can To be that application system passes through the random string etc. for verification to smart phone or mailbox transmission.The face feature of user Figure, for example, in the brush face login function of Alipay user collected face feature figure, etc..
202, API gateway sends login authentication request to application service layer.
In the embodiment of the present application, application service layer is the application service layer assembly in the application embodiment illustrated in fig. 1, Refer to the service equipment in application system.The application service layer and the application occurred in following Fig. 3-embodiment illustrated in fig. 9 is implemented The function of the application service layer of example is identical.
After API gateway receives the logging request of client transmission, it can be based on the logging request, sent to application service layer Login authentication request, the legitimacy of requests verification the first user identification and verification information.Wherein, login authentication request can also be taken With the first user identification and verification information.
203, application service layer feeds back login authentication result to API gateway.
Application service layer can be requested based on login authentication, feed back login authentication result to API gateway.It should be understood, of course, that answering It can also be requested according to login authentication with service layer, after being proved to be successful, determine the corresponding relationship of user identifier and API gateway, or Person says the corresponding relationship for the API gateway that determining user and the user are accessed.
204, API gateway increases user online status information.
API gateway can store the presence information of the user of access application service layer by cache server.It should be understood that The cache server of the embodiment of the present application is the caching in the application embodiment illustrated in fig. 1, following Fig. 3-embodiment illustrated in fig. 9 The function of cache server of cache server and the embodiment of the present application of middle appearance is identical.It should be understood, of course, that specifically answering In, the caching in the application embodiment illustrated in fig. 1 can also be the cache server cluster being made of more cache servers, Etc..
If the login authentication is the result shows that the first user identification and verification information is effective, API gateway can cached Increase the presence information of the corresponding user of the first user identifier on server, and marking presence is online, same to markers Remember the heart time of the presence information of the corresponding user of first user identifier.
In addition, API gateway can will be also to have logged in the long linkage flag of the client.
It should be understood, of course, that if the login authentication the result shows that the first user identification and verification information is invalid, API Gateway can be to the prompt of client feedback login failure.
In the embodiment of the present application, according to client send logging request, verified in application service layer, and with The online of the user of the corresponding user identifier of the logging request is stored after family mark is effective with verification information in cache server State provides the possibility of realization for the maintenance work of the presence of subsequent user.
Fig. 3 is one embodiment of the application according to the detailed process for keeping heartbeat request maintenance user online status information Figure.The method of Fig. 3 can include:
301, client sends to API gateway and keeps heartbeat request.
It should be understood that keeping the user identity information of portable application in heartbeat request.It might as well also assume that the user identifier is believed Breath is the first user identifier.
In the embodiment of the present application, client has been established long connection with API gateway and has successfully been logged in.When client logs in Afterwards, it needs to send to API gateway and keeps heartbeat request, to keep its presence.Client can be by between API gateway Long connection sends the holding heartbeat request.
It should be understood that under normal circumstances, client can periodicity sending keep heartbeat request, sending cycle is no more than heartbeat week Phase.Certainly, client can also send according to not timings such as Network status and keep heartbeat request, and adjacent transmission twice keeps heartbeat The time interval of request should be less than or be equal to heart beat cycle.
302, API gateway updates user online status information.
API gateway can receive the time for keeping heartbeat request after receiving holding heartbeat request according to API gateway, Or according to the timestamp that carries in heartbeat request is kept, update the corresponding user of the first user identifier in cache server The heart time of line status information.
Certainly, API gateway also can determine whether the corresponding user's of the first user identifier before safeguarding user online status information Whether the heart time of presence information is overtime, if be not timed-out, updates its heart time.
In the embodiment of the present application, by safeguarding the heart time of user online status according to holding heartbeat request, thus API gateway is enabled to determine whether heartbeat is overtime according to heart time, so that it is determined that whether user is online.
Fig. 4 is that one embodiment of the application safeguards the specific flow chart of user online status information according to de-registration request. The method of Fig. 4 can include:
401, client sends de-registration request to API gateway.
It should be understood that also carrying the user identity information of application in the de-registration request, the user identity information might as well be also assumed that For the first user identifier.
Similar with step 201, client can also send the de-registration request by the long connection between API gateway.
402, API gateway deletes user online status information.
API gateway can delete the first user according to the de-registration request after receiving de-registration request in cache server Identify the presence information of corresponding user.
403, API gateway sends logging off users notice to application service layer.
After API gateway deletes the corresponding user online status information of the first user identifier, it can send and infuse to application service layer User's notice is sold, logging off users notice carries the first user identifier, for notifying application service layer by the first user identifier pair The presence of the user answered is nullified.
404, API gateway is closed and the long connection between client.
After API gateway deletes the corresponding user online status information of the first user identifier, it may also turn off between client Long connection, discharge the resource of API gateway in time.
In the embodiment of the present application, by deleting the presence data of corresponding user in caching according to de-registration request, The attended operation of user can be timely responded to, the maintenance efficiency of user online status data is improved.
Fig. 5 is that one embodiment of the application safeguards the specific flow chart of user online status information according to heart time. The method of Fig. 5 includes:
501, API gateway monitors heartbeat.
API gateway can periodically monitor the heart time of the user accessed by API gateway.Its monitoring cycle is smaller than the heart Hop cycle, or it is equal to heart beat cycle.
It should be understood that in the embodiment of the present application, heart beat cycle refers to user online status information effective maximum time.Such as The heart time of fruit user online status information and the time interval of current time are less than heart beat cycle, then illustrate that heartbeat does not surpass When;, whereas if the heart time of user online status information and the time interval of current time are greater than heart beat cycle, then illustrate Heartbeat timeout.
API gateway can grow connection according to present in memory, inquire the corresponding user identifier of long connection in cache server In heartbeat it is whether overtime.
502, delete the presence information of the user of heartbeat timeout.
API gateway determines whether user is overtime according to the heart time of heart beat cycle and user online status information.This Shen It please might as well assume that second user identifies corresponding user online status information time-out in embodiment.
API gateway can delete corresponding user online status information after monitoring user online status information time-out.
In the embodiment of the present application, API gateway can delete the corresponding user of second user mark in cache server and exist Line status information.
Certainly, in specific application, if cache server data-base recording user online status information, API Gateway can be by executing a cancel statement, and the user that directly deletion heart time and current time interval are greater than heart beat cycle exists Line status information.
503, API gateway sends logging off users notice to application service layer.
In the embodiment of the present application, API gateway can also send logging off users notice to application service layer, and the logging off users are logical Know and carry second user mark, for notifying application service layer to nullify the presence that second user identifies corresponding user.
504, API gateway is closed and the long connection between client.
After sending logging off users notice, API gateway can be closed to be identified between corresponding client with second user Long connection.
In the embodiment of the present application, by monitoring the heart time of user online status, and caching is deleted after heartbeat timeout The presence data of corresponding user in server, and corresponding long connection in API gateway is closed, so as to safeguard in time The presence data of the improper user exited.
Fig. 6 is that one embodiment application service layer of the application sends downstream message/downlink notice specific flow chart.Figure 6 method can include:
601, application service layer sends downstream message/downlink notice to API gateway.
Application service layer is sent to downstream message/downlink notice of designated user to API gateway.It might as well assume the specified use The user identifier at family is third user identifier, then carries the third user identifier in downstream message/downlink notice.
602, API gateway sends downstream message/downlink notice.
API gateway, can be according to the third in downstream message/downlink notice after receiving the downstream message/downlink notice User identifier is inquired in API gateway with the presence or absence of the corresponding long connection of the third user identifier.If third user identifier is corresponding User application service layer is accessed by API gateway, and the heartbeat of user online status information has not timed out, then meeting in API gateway Deposit long connection after the user logs.
If API gateway can be connected by the length there are the third user identifier corresponding long connection in API gateway, The downstream message/downlink notice is sent to the length and connects corresponding client.It is logical that client receives the downstream message/downlink The processing operation known can refer to the prior art.
It should be understood, of course, that if API gateway can there is no the third user identifier corresponding long connection in API gateway The not online response message of user is returned to application service layer.
In the embodiment of the present application, API gateway is notified by the downstream message/downlink sent according to application service layer, judgement With the presence or absence of the long connection of corresponding user in API gateway, and pass through the corresponding client of user when there are corresponding long connection End sends downstream message/downlink notice, so as to judge that the whether online movement of user is placed on access in application system Layer processing reduces the process resource consumption of application service layer to a certain extent.
Fig. 7 is the specific flow chart of one embodiment application service layer inquiry user online status of the application.The side of Fig. 7 Method includes:
701, application service layer sends user online status inquiry request to API gateway.
It should be understood that application service layer can be requested based on login authentication when user logs in, after being proved to be successful, determines and use The corresponding relationship of family mark and API gateway determines the corresponding relationship for the API gateway that user and the user are accessed in other words.
Application service layer sends the user online status inquiry request of designated user to API gateway.It might as well assume that this is specified The user identifier of user is fourth user mark, then fourth user mark, the use are carried in user online status inquiry request Family presence inquiry request is used to request to inquire the presence that the fourth user identifies corresponding user.
Application service layer can determine the API gateway of fourth user mark, and send the user online status to the API gateway Inquiry request.
702, API gateway sends user online status to application service layer.
API gateway can be used after receiving the presence inquiry request according to the 4th in presence inquiry request Family mark is inquired in API gateway with the presence or absence of the corresponding long connection of fourth user mark.
If API gateway can be anti-to application service layer there are the corresponding long connection of fourth user mark in API gateway It presents the fourth user and identifies the online response message of corresponding user;
If API gateway can be to application service layer there is no the corresponding long connection of fourth user mark in API gateway It feeds back the fourth user and identifies the not online response message of corresponding user.
Fig. 8 is the detailed process of one embodiment application service layer inquiry user online status statistical information of the application Figure.The method of Fig. 8 includes:
801, application service layer sends user online status statistics request to API gateway.
Application service layer sends user online status statistics request to API gateway, and the user's of request application is online The statistical information of status data.
802, API gateway counting user presence information.
API gateway receive the presence statistics request after, can in cache server the user of statistics application Presence data.
803, API gateway is to application service layer feedback user presence statistical information.
It, can be to application service layer feedback user presence data statistics after API gateway counts.
Fig. 9 is that one embodiment application service layer of the application sends the specific flow chart of offline message.The method packet of Fig. 9 It includes:
901, application service layer sends offline request to API gateway.
Application service layer is sent to the offline request of designated user to API gateway.It might as well assume the user of the designated user It is identified as the 5th user identifier, then carries the 5th user identifier in offline request, for kicking the corresponding use of the 5th user identifier Family is offline.
902, API gateway deletes user online status information.
API gateway, can be according to the 5th user identifier in downbound request, in buffer service after receiving the downbound request The corresponding user online status information of the 5th user identifier is deleted in device.
903, API gateway sends offline notice.
API gateway cocoa passes through the corresponding long connection of the 5th user identifier according to the 5th user identifier in downbound request Offline notice is sent to the corresponding client of the 5th user identifier, notifies user offline.
904, API gateway is closed and the long connection between client.
After sending offline notice, API gateway can close the long company between client corresponding with the 5th user identifier It connects.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment It executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitable Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also can With or may be advantageous.
Figure 10 is the structural schematic diagram of one embodiment electronic equipment of the application.Referring to FIG. 10, in hardware view, it should Electronic equipment includes processor, optionally further comprising internal bus, network interface, memory.Wherein, memory may be comprising interior It deposits, such as high-speed random access memory (Random-Access Memory, RAM), it is also possible to further include non-volatile memories Device (non-volatile memory), for example, at least 1 magnetic disk storage etc..Certainly, which is also possible that other Hardware required for business.
Processor, network interface and memory can be connected with each other by internal bus, which can be ISA (Industry Standard Architecture, industry standard architecture) bus, PCI (Peripheral Component Interconnect, Peripheral Component Interconnect standard) bus or EISA (Extended Industry Standard Architecture, expanding the industrial standard structure) bus etc..The bus can be divided into address bus, data/address bus, control always Line etc..Only to be indicated with a four-headed arrow in Figure 10, it is not intended that an only bus or a type of convenient for indicating Bus.
Memory, for storing program.Specifically, program may include program code, and said program code includes calculating Machine operational order.Memory may include memory and nonvolatile memory, and provide instruction and data to processor.
Processor is from the then operation into memory of corresponding computer program is read in nonvolatile memory, in logical layer Access layer assembly is formed on face.Processor executes the program that memory is stored, and is specifically used for executing following operation:
Receive the user online status maintenance request of the application of the client transmission of the application, wherein the user is online State-maintenance request carries the first user identifier of the application;
According to the user online status maintenance request, first user identifier in the corresponding caching of access layer assembly is safeguarded The presence of corresponding user, wherein the caching is used to store the presence of specific user, which is that access should The user of the application service layer assembly of application.
The method that access layer assembly or API gateway disclosed in above-mentioned Fig. 1-9 illustrated embodiment such as the application execute can answer It is realized in processor, or by processor.Processor may be a kind of IC chip, the processing energy with signal Power.During realization, each step of the above method can pass through the integrated logic circuit or software of the hardware in processor The instruction of form is completed.Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components.It may be implemented or execute the public affairs in the embodiment of the present application Each method, step and the logic diagram opened.General processor can be microprocessor or the processor be also possible to it is any often The processor etc. of rule.The step of method in conjunction with disclosed in the embodiment of the present application, can be embodied directly in hardware decoding processor and hold Row complete, or in decoding processor hardware and software module combine execute completion.Software module can be located at deposits at random Reservoir, flash memory, read-only memory, this fields such as programmable read only memory or electrically erasable programmable memory, register In mature storage medium.The storage medium is located at memory, and processor reads the information in memory, completes in conjunction with its hardware The step of above method.
It should be understood that in the embodiment of the present application, the only API gateway presence information that just needs to safeguard user, this is answered Application service layer assembly does not safeguard the presence information of user, the not presence information of cache user yet.
The method that the electronic equipment can also carry out Fig. 1, and realize access layer assembly or the API gateway implementation shown in Fig. 1-9 The function of example, details are not described herein for the embodiment of the present application.
Certainly, other than software realization mode, other implementations are not precluded in the electronic equipment of the application, for example patrol Collect device or the mode of software and hardware combining etc., that is to say, that the executing subject of following process flow is not limited to each patrol Unit is collected, hardware or logical device are also possible to.
The embodiment of the present application also proposed a kind of computer readable storage medium, the computer-readable recording medium storage one A or multiple programs, the one or more program include instruction, and the instruction is when by the portable electronic including multiple application programs When equipment executes, the method for portable electronic device execution embodiment illustrated in fig. 1 can be made.
Figure 11 is the structural schematic diagram of one embodiment access layer assembly of the application.Figure 11 is please referred to, in a kind of software In embodiment, layer assembly is accessed can include:
Receiving unit 1110 receives the user online status maintenance request of the application of the client transmission of the application, In, which carries the first user identifier of the application;
Maintenance unit 1120 is safeguarded in the corresponding caching of access layer assembly according to the user online status maintenance request The presence of the corresponding user of first user identifier, wherein the caching is used to store the presence of specific user, the spy Determining user is the user for accessing the application service layer assembly of the application.
In the embodiment of the present application, application accesses layer assembly according to the user online status maintenance request of the client of application The presence of user is safeguarded, so that the presence maintenance of the user in application system only need to be in the next-hop device of client It can be completed, safeguard the network node routed needed for the scheme of user online status reduces compared with the prior art, while Reduce the process resource of application service layer, so as to save the process resource of application system to a certain extent, raising is answered With the treatment effeciency of system.
It should be understood that in the embodiment of the present application, the only API gateway presence information that just needs to safeguard user, this is answered Application service layer assembly does not safeguard the presence information of user, the not presence information of cache user yet.
Optionally, as one embodiment, when the user online status maintenance request is logging request, receiving unit 1110 are specifically used for: receiving the logging request of client transmission, which carries first user identification and verification letter Breath;
Wherein, maintenance unit 1120 is specifically used for: should to the application service layer assembly requests verification according to the logging request The validity of first user identifier and the verification information;When first user identifier and the verification information are effective, in the caching The presence of the middle storage corresponding user of first user identifier, wherein the corresponding user's of first user identifier is online State is online.
Further, in the present embodiment, if first user identifier and the verification information are effective, maintenance unit 1120 are also used to the long linkage flag be logging state.
Optionally, as another embodiment, when the user online status maintenance request is to keep heartbeat request, maintenance Unit 1110 is specifically used for: according to the time for receiving the holding heartbeat request, or the time carried according to the holding heartbeat request Stamp, updates the heart time in the caching in the presence of the corresponding user of first user identifier.
Optionally, as further embodiment, when the user online status maintenance request is de-registration request, maintenance unit 1110 are specifically used for: according to the de-registration request, deleting the presence data of the corresponding user of the user identifier in the caching.
Further, as shown in figure 11, which may also include transmission unit 1130, and transmission unit 1130 can be to The application service layer assembly sends the request for nullifying the corresponding user of the user identifier;Maintenance unit 1120 is also turn off and the client Long connection between end.
Optionally, as shown in figure 11, which may also include monitoring unit 1140, monitor each user in the caching The corresponding heart time of presence;If it is corresponding that monitoring unit 1140 monitors that current time is identified apart from the second user The time interval of heart time corresponding to the presence of user is greater than heart beat cycle, then it is slow also to delete this for maintenance unit 1120 The second user identifies the presence data of corresponding user in depositing, and closes the corresponding long connection of second user mark.
Optionally, receiving unit 1110 also receives downstream message/downlink notice of application service layer assembly transmission, under this Row message/downlink notice carries third user identifier;If there are the third user identifiers pair in the memory of the access layer assembly The long connection answered, then transmission unit 1130 is also connected by the corresponding length of third user identifier corresponding to the third user identifier Client send the downstream message/downlink notice;Alternatively, if third user is not present in the memory of the access layer assembly Corresponding long connection is identified, then transmission unit 1130 also feeds back the corresponding use of third user identifier to the application service layer assembly The not online response message in family.
Optionally, receiving unit 1110 also receives the user online status inquiry request of application service layer assembly transmission, The user online status inquiry request carries fourth user mark, the user online status inquiry request for request inquiry this The presence of the corresponding user of four user identifiers, the application service layer assembly store user identifier and access pair of layer assembly It should be related to;If there are the corresponding long connection of fourth user mark, transmission units 1130 in the memory of the access layer assembly The fourth user also, which is fed back, to the application service layer assembly identifies the online response message of corresponding user;Alternatively, if this connects Enter there is no the corresponding long connection of fourth user mark in the memory of layer assembly, then transmission unit 1130 is also to the application service Layer assembly feeds back the fourth user and identifies the not online response message of corresponding user.
Optionally, as shown in figure 11, which further includes statistic unit 1150, and receiving unit 1110 also receives should The user online status that application service layer assembly is sent counts request, and user online status statistics request should for request The statistical information of the presence data of user in;The user's of the application is online in the statistics of statistic unit 1150 caching Status data;Transmission unit 1130 gives the presence data feedback to the application service layer assembly.
Optionally, receiving unit 1110 also receives the offline request of application service layer assembly transmission, which takes The 5th user identifier of band, the offline request is for kicking the corresponding user offline of the 5th user identifier, the application service layer assembly It stores user identifier and accesses the corresponding relationship of layer assembly;If there are the 5th user marks in the memory of the access layer assembly Know corresponding long connection, then maintenance unit 1120 deletes the presence of the corresponding user of the 5th user identifier in the caching Data, and transmission unit 1130 identifies corresponding length by the fourth user and connects client corresponding to the 5th user identifier Offline notice is kicked in transmission, and maintenance unit 1120 is also turn off the corresponding long connection of fourth user mark.
Figure 12 is the structural schematic diagram of the application system of the embodiment of the present application.As shown in figure 12, which includes answering With client 1210, using access layer assembly 1220 and application service layer assembly 1230, wherein
Applications client 1210 sends user online status maintenance request to application access layer assembly 1220, wherein the use Family presence maintenance request carries the first user identifier of application;
Using access layer assembly 1220, the user online status maintenance request is received, and is tieed up according to the user online status Shield request, maintenance application access the presence of the corresponding user of first user identifier in the corresponding caching of layer assembly 1220, Wherein, which is used to store the presence of the user of application.
In the embodiment of the present application, using access layer assembly according to the user online status maintenance request of the client of application The presence of user is safeguarded, so that the presence maintenance of the user in application system only need to be in the next-hop device of client It can be completed, safeguard the network node routed needed for the scheme of user online status reduces compared with the prior art, while Reduce the process resource of application service layer, so as to save the process resource of application system to a certain extent, raising is answered With the treatment effeciency of system.
It should be understood that in the embodiment of the present application, applications client 1210 can also carry out client in Fig. 2-embodiment illustrated in fig. 9 The method executed is held, can also carry out using access layer assembly 1220 and access layer assembly or API network management in Fig. 1-embodiment illustrated in fig. 9 The method of execution, application service layer assembly 1230 can also carry out the method that application service layer executes in Fig. 2-embodiment illustrated in fig. 9, Specific implementation can refer to Fig. 1-embodiment illustrated in fig. 9, and details are not described herein for the embodiment of the present application.
Figure 13 is the method flow diagram of the presence maintenance of one embodiment application of the application.The method of Figure 13 is by answering Access layer assembly executes.In the embodiment of the present application, which can be with API gateway etc..The method of Figure 13 can wrap It includes:
S1302, access layer assembly receive the presence maintenance request for the application that client is sent, wherein this is online State-maintenance request carries the first identifier of the application.
It should be understood that in the embodiment of the present application, the access layer assembly of application is and the client of application establishes long connection, In other words, the method for step S1302 has been established after length connects and has been executed with the client of application in the access layer assembly of application.
S1304, the access layer assembly are safeguarded in the corresponding caching of access layer assembly according to the presence maintenance request The corresponding presence of the first identifier.
Wherein, which is used to store the presence of application.
It should be understood that in the embodiment of the present application, the only API gateway presence information that just needs maintenance application, this is answered The presence information of application service layer assembly not maintenance application, does not cache the presence information of application yet.
In the embodiment of the present application, the access layer assembly of application is according to the presence maintenance request maintenance application of application Presence, so that the presence maintenance in application system need to only can be completed in the next-hop device of client, compared to The network node that the scheme of prior art maintenance presence routes needed for reducing, while decreasing the place of application service layer It manages resource and improves the treatment effeciency of application system so as to save the process resource of application system to a certain extent.
Optionally, as one embodiment, when the presence maintenance request is logging request, step S1302 is specific It realizes are as follows: the access layer assembly receives the logging request of client transmission, which carries the first identifier and verifying Information;
Wherein, step S1304 is implemented are as follows: the access layer assembly is according to the logging request to the application service layer assembly The validity of the requests verification first identifier and the verification information;When the first identifier and the verification information are effective, then this connects Enter layer assembly and store the corresponding presence of the first identifier in the caching, wherein the corresponding presence of the first identifier It is online.
It should be understood that in the embodiment of the present application, which can be password or electronic certificate (Credential) fingerprint or the face feature figure of user etc. of string or user.Credential string, for example, can To be that application system passes through the random string etc. to smart phone or mailbox transmission.The face feature figure of user, for example, payment The face feature figure of user collected in precious brush face login function.
In the embodiment of the present application, access layer assembly can according to client send logging request, application service layer into Row verifying, and store the online of the corresponding first identifier of the logging request in the buffer after first identifier and verification information are effective State.
Further, in the embodiment of the present application, this method further include: if the login authentication result is the first identifier Effective with the verification information, which is logging state by the long linkage flag.
Optionally, as another embodiment, when the presence maintenance request is to keep heartbeat request, step S1304 specific implementation are as follows: the access layer assembly is according to the time for receiving the holding heartbeat request, or according to the holding heartbeat request The timestamp of carrying updates the heart time in the caching in the corresponding presence of the first identifier.
In the embodiment of the present application, by safeguarding the heart time of presence according to holding heartbeat request, so that Whether access layer assembly can determine whether heartbeat is overtime according to heart time, so that it is determined that using online.
Optionally, as further embodiment, when the presence maintenance request is de-registration request, step S1304 tool Body is realized are as follows: the access layer assembly deletes the corresponding presence data of the first identifier in the caching according to the de-registration request.
In the embodiment of the present application, by deleting corresponding presence data in caching, Neng Gouji according to de-registration request When response application attended operation, improve presence data maintenance efficiency.
Further, in the embodiment of the present application, this method further include: the access layer assembly is to the application service layer assembly It sends and nullifies the corresponding request of the first identifier, which closes and the long connection between the client.
In the embodiment of the present application, corresponding long connection is closed according to de-registration request, so as to discharge access layer in time The memory source of component.
Optionally, as one embodiment, this method may also include that in the access layer assemblies monitor caching respectively in threadiness The corresponding heart time of state;If current time heart time corresponding to the corresponding presence of the second identifier when Between interval be greater than heart beat cycle, then delete the corresponding presence data of the second identifier in the caching, and close this second mark Know corresponding long connection.
It should be understood that heart beat cycle and heart time be for measure heartbeat whether Chao Shi index.Heart time is usually all Before current time.If the time interval between current time and heart time is greater than heart beat cycle, illustrate that heartbeat is super When.
It is right in deletion caching by monitoring the heart time of presence, and after heartbeat timeout in the embodiment of the present application The presence answered, and corresponding long connection in access layer assembly is closed, so as to safeguard the improper user exited in time Presence data.
Optionally, as one embodiment, this method may also include that
The access layer assembly receives downstream message/downlink that the application service layer assembly is sent and notifies, and the downstream message/under Row notice carries third mark;
If there are the corresponding long connection of third mark in the memory of the access layer assembly, which passes through The corresponding length of third mark connects to the corresponding client of third mark and sends the downstream message/downlink notice.
In the embodiment of the present application, access layer assembly is logical by the downstream message/downlink sent according to application service layer assembly Know, judges that access layer passes through applications client with the presence or absence of the long connection of corresponding application, and when there are corresponding long connection Downstream message/downlink notice is sent, so as to be judged in application system using whether online movement is placed on access layer Component processing reduces the process resource consumption of application service layer to a certain extent.
Optionally, as one embodiment, this method may also include that
The access layer assembly receives downstream message/downlink that the application service layer assembly is sent and notifies, and the downstream message/under Row notice carries third mark;
If there is no the corresponding long connection of third mark in the memory of the access layer assembly, the access layer assembly to The application service layer assembly feeds back the third and identifies the not online response message of corresponding application.
In the embodiment of the present application, access layer assembly is logical by the downstream message/downlink sent according to application service layer assembly Know, judges that access layer is connected with the presence or absence of the long of corresponding application, and to application service layer when there is no corresponding long connection The not online response message of component feedback user, so as to judge that the whether online movement of user is placed in application system Layer assembly processing is accessed, reduces the process resource consumption of application service layer to a certain extent.
Optionally, as one embodiment, this method may also include that the access layer assembly receives the application service layer assembly The presence inquiry request of transmission, the presence inquiry request carry the 4th mark, which is used for The corresponding presence of the 4th mark of request inquiry, it is corresponding with access layer assembly which stores mark Relationship;If there are the corresponding long connection of the 4th mark in the memory of the access layer assembly, which answers to this The online response message of the corresponding application of the 4th mark is fed back with services layer component.
It should be understood that in the embodiment of the present application, application service layer assembly can be sent out according to access layer assembly when user logs in The logging request sent, determines the corresponding relationship of mark with access layer assembly, determines that user connects with what the user was accessed in other words Enter the corresponding relationship of layer assembly.Application service layer assembly, can be according to mark and access layer when sending presence inquiry request The corresponding relationship of component determines and identifies corresponding access layer assembly and send presence inquiry request.
Alternatively, optionally, as another embodiment, this method may also include that the access layer assembly receives application clothes The presence inquiry request that business layer assembly is sent, the presence inquiry request carry the 4th mark, presence inquiry For requesting the corresponding presence of the 4th mark of inquiry, which stores mark and access layer group for request The corresponding relationship of part;If there is no the corresponding long connection of the 4th mark, the access layers in the memory of the access layer assembly Component feeds back the not online response message of the corresponding application of the 4th mark to the application service layer assembly.
Optionally, as one embodiment, this method may also include that the access layer assembly receives the application service layer assembly The presence of transmission counts request, presence number of the presence statistics request for the user of the request application According to statistical information;The access layer assembly counts the presence data of the user of the application in the caching and feeds back to the application Services layer component.
Optionally, as one embodiment, this method may also include that the access layer assembly receives the application service layer assembly The offline request sent, the offline request carry the 5th mark, and the offline request is for kicking under the corresponding application of the 5th mark Line, the application service layer assembly store mark and access the corresponding relationship of layer assembly;If in the memory of the access layer assembly There are the corresponding long connections of the 5th mark, then the corresponding presence data of the 5th mark are deleted in the caching, and lead to It crosses the 4th corresponding length of mark and connects to the corresponding application transmission of the 5th mark and kick offline notice.Optionally, this method is also It include: to close the corresponding long connection of the 4th mark.
It should be understood that in the embodiment of the present application, application service layer assembly can be sent out according to access layer assembly when user logs in The logging request sent, determines the corresponding relationship of mark with access layer assembly, determines that application connects with what the application was accessed in other words Enter the corresponding relationship of layer assembly.Application service layer assembly, can be according to pair of mark and access layer assembly when sending offline request It should be related to, determine and identify corresponding access layer assembly and send offline request.
The specific implementation of the embodiment of the present application can refer to access layer assembly or API gateway in the function of Fig. 1-9 illustrated embodiment Can, details are not described herein for the embodiment of the present application.
Figure 14 is the structural schematic diagram of one embodiment electronic equipment of the application.Figure 14 is please referred to, it, should in hardware view Electronic equipment includes processor, optionally further comprising internal bus, network interface, memory.Wherein, memory may be comprising interior It deposits, such as high-speed random access memory (Random-Access Memory, RAM), it is also possible to further include non-volatile memories Device (non-volatile memory), for example, at least 1 magnetic disk storage etc..Certainly, which is also possible that other Hardware required for business.
Processor, network interface and memory can be connected with each other by internal bus, which can be ISA (Industry Standard Architecture, industry standard architecture) bus, PCI (Peripheral Component Interconnect, Peripheral Component Interconnect standard) bus or EISA (Extended Industry Standard Architecture, expanding the industrial standard structure) bus etc..The bus can be divided into address bus, data/address bus, control always Line etc..Only to be indicated with a four-headed arrow in Figure 14, it is not intended that an only bus or a type of convenient for indicating Bus.
Memory, for storing program.Specifically, program may include program code, and said program code includes calculating Machine operational order.Memory may include memory and nonvolatile memory, and provide instruction and data to processor.
Processor is from the then operation into memory of corresponding computer program is read in nonvolatile memory, in logical layer Access layer assembly is formed on face.Processor executes the program that memory is stored, and is specifically used for executing following operation:
Receive the presence maintenance request for the application that client is sent, wherein the presence maintenance request carries should The first identifier of application;
According to the presence maintenance request, safeguard in the corresponding caching of access layer assembly the first identifier it is corresponding Linear state.
The method that access layer assembly or API gateway disclosed in above-mentioned Fig. 1-9 illustrated embodiment such as the application execute can answer It is realized in processor, or by processor.Processor may be a kind of IC chip, the processing energy with signal Power.During realization, each step of the above method can pass through the integrated logic circuit or software of the hardware in processor The instruction of form is completed.Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components.It may be implemented or execute the public affairs in the embodiment of the present application Each method, step and the logic diagram opened.General processor can be microprocessor or the processor be also possible to it is any often The processor etc. of rule.The step of method in conjunction with disclosed in the embodiment of the present application, can be embodied directly in hardware decoding processor and hold Row complete, or in decoding processor hardware and software module combine execute completion.Software module can be located at deposits at random Reservoir, flash memory, read-only memory, this fields such as programmable read only memory or electrically erasable programmable memory, register In mature storage medium.The storage medium is located at memory, and processor reads the information in memory, completes in conjunction with its hardware The step of above method.
It should be understood that in the embodiment of the present application, the only API gateway presence information that just needs maintenance application, this is answered The presence information of application service layer assembly not maintenance application, does not cache the presence information of application yet.
The method that the electronic equipment can also carry out Fig. 1, and realize access layer assembly or the API gateway implementation shown in Fig. 1-9 The function of example, details are not described herein for the embodiment of the present application.
Certainly, other than software realization mode, other implementations are not precluded in the electronic equipment of the application, for example patrol Collect device or the mode of software and hardware combining etc., that is to say, that the executing subject of following process flow is not limited to each patrol Unit is collected, hardware or logical device are also possible to.
The embodiment of the present application also proposed a kind of computer readable storage medium, the computer-readable recording medium storage one A or multiple programs, the one or more program include instruction, and the instruction is when by the portable electronic including multiple application programs When equipment executes, the method for portable electronic device execution embodiment illustrated in fig. 1 can be made.
Figure 15 is the structural schematic diagram of one embodiment access layer assembly of the application.Figure 15 is please referred to, in a kind of software In embodiment, layer assembly is accessed can include:
Receiving unit 1510 receives the presence maintenance request for the application that client is sent, wherein presence dimension Shield request carries the first identifier of the application;
Maintenance unit 1520 safeguards this in the corresponding caching of access layer assembly according to the presence maintenance request The corresponding presence of one mark.Wherein, which is used to store the presence of application.
In the embodiment of the present application, the access layer assembly of application is safeguarded according to the presence maintenance request of the client of application The presence of application, so that the presence maintenance of the application in application system only need to be in the next-hop device of client It completes, safeguards the network node routed needed for the scheme of presence reduces compared with the prior art, while decreasing and answering Application system is improved with the process resource of service layer so as to save the process resource of application system to a certain extent Treatment effeciency.
It should be understood that in the embodiment of the present application, the only API gateway presence information that just needs maintenance application, this is answered The presence information of application service layer assembly not maintenance application, does not cache the presence information of application yet.
Optionally, as one embodiment, when the presence maintenance request is logging request, receiving unit 1510 has Body is used for: receiving the logging request of client transmission, which carries the first identifier and verification information;
Wherein, maintenance unit 1520 is specifically used for: should to the application service layer assembly requests verification according to the logging request The validity of first identifier and the verification information;When the first identifier and the verification information are effective, storage should in the caching The presence of the corresponding application of first identifier, wherein the presence of the corresponding application of the first identifier is online.
Further, in the present embodiment, if the first identifier and the verification information are effective, maintenance unit 1520 is also For being logging state by the long linkage flag.
Optionally, as another embodiment, when the presence maintenance request is to keep heartbeat request, maintenance unit 1510 are specifically used for: according to the time for receiving the holding heartbeat request, or the timestamp carried according to the holding heartbeat request, more Heart time in the new caching in the presence of the corresponding application of the first identifier.
Optionally, as further embodiment, when the presence maintenance request is de-registration request, maintenance unit 1510 It is specifically used for: according to the de-registration request, deletes the presence data of the corresponding application of the first identifier in the caching.
Further, as shown in figure 15, which may also include transmission unit 1530, and transmission unit 1530 can be to The application service layer assembly sends the request for nullifying the corresponding application of the first identifier;Maintenance unit 1520 is also turn off and the client Long connection between end.
Optionally, as shown in figure 15, which may also include monitoring unit 1540, monitor each online in the caching The corresponding heart time of state;If monitoring unit 1540 monitors that current time exists apart from the second identifier corresponding application The time interval of heart time corresponding to linear state is greater than heart beat cycle, then maintenance unit 1520 also deletes this in the caching the The presence data of the corresponding application of two marks, and close the corresponding long connection of the second identifier.
Optionally, receiving unit 1510 also receives downstream message/downlink notice of application service layer assembly transmission, under this Row message/downlink notice carries third mark;If there are the corresponding length of third mark in the memory of the access layer assembly even It connects, then transmission unit 1530 is also connected by the corresponding length of third mark and sent under this to the corresponding client of third mark Row message/downlink notice;Alternatively, if there is no the corresponding length of third mark to connect in the memory of the access layer assembly, Transmission unit 1530 also feeds back the third to the application service layer assembly and identifies the not online response message of corresponding application.
Optionally, receiving unit 1510 also receives the presence inquiry request of application service layer assembly transmission, is somebody's turn to do Line status query request carries the 4th mark, and the presence inquiry request is for requesting the corresponding application of the 4th mark of inquiry Presence, the application service layer assembly store mark and access layer assembly corresponding relationship;If the access layer assembly Memory in there are the corresponding long connection of the 4th mark, then transmission unit 1530 also to the application service layer assembly feed back this The online response message of the corresponding application of four marks;Alternatively, if there is no the 4th marks in the memory of the access layer assembly Corresponding long connection, then it is not online also to feed back the corresponding application of the 4th mark to the application service layer assembly for transmission unit 1530 Response message.
Optionally, as shown in figure 15, which further includes statistic unit 1550, and receiving unit 1510 also receives should The presence that application service layer assembly is sent counts request, and the request of presence statistics is online for request application The statistical information of status data;Statistic unit 1550 counts the presence data applied in the caching;Transmission unit 1530 will The presence data feedback gives the application service layer assembly.
Optionally, receiving unit 1510 also receives the offline request of application service layer assembly transmission, which takes Band the 5th identifies, and the offline request is offline for kicking the corresponding application of the 5th mark, which stores mark Know the corresponding relationship with access layer assembly;If there are the corresponding length of the 5th mark to connect in the memory of the access layer assembly, Then maintenance unit 1520 deletes the presence data of the corresponding application of the 5th mark, and transmission unit 1530 in the caching It is connected by the corresponding length of the 4th mark to the corresponding client transmission of the 5th mark and kicks offline notice, maintenance unit 1520 It is also turn off the corresponding long connection of the 4th mark.
Figure 16 is the structural schematic diagram of the application system of the embodiment of the present application.As shown in figure 16, which includes answering With client 1610, using access layer assembly 1620 and application service layer assembly 1630, wherein
Applications client 1610 sends presence maintenance request to application access layer assembly 1620, wherein should be in threadiness State maintenance request carries the first identifier of application;
Using access layer assembly 1620, the presence maintenance request is received, and according to the presence maintenance request, dimension The presence of the corresponding application of the first identifier in the shield application access corresponding caching of layer assembly 1620, wherein the caching is used In the presence of storage application.
In the embodiment of the present application, existed using access layer assembly according to the presence maintenance request maintenance application of application Linear state, so that the presence maintenance of the application in application system need to only can be completed in the next-hop device of client, phase Than the network node routed needed for the scheme of prior art maintenance presence reduces, while decreasing application service layer Process resource improve the treatment effeciency of application system so as to save the process resource of application system to a certain extent.
It should be understood that in the embodiment of the present application, applications client 1610 can also carry out client in Fig. 2-embodiment illustrated in fig. 9 Hold execute method, using access layer assembly 1620 can also carry out in Fig. 2-Fig. 9 and embodiment illustrated in fig. 13 access layer assembly or The method that API network management executes, application service layer assembly 1630 can also carry out application service layer in Fig. 2-embodiment illustrated in fig. 9 and execute Method, specific implementation can refer to Fig. 2-Fig. 9 and embodiment illustrated in fig. 13, details are not described herein for the embodiment of the present application.
In short, being not intended to limit the protection scope of the application the foregoing is merely the preferred embodiment of the application. Within the spirit and principles of this application, any modification, equivalent replacement, improvement and so on should be included in the application's Within protection scope.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment The combination of equipment.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.

Claims (20)

1. a kind of presence maintaining method using user characterized by comprising
The user online status maintenance request for the application that the client that the access layer assembly of application receives the application is sent, Wherein, the user online status maintenance request carries the first user identifier of the application;
The access layer assembly is safeguarded in the corresponding caching of the access layer assembly according to the user online status maintenance request The presence of the corresponding user of first user identifier, wherein the presence cached for storing specific user, The specific user is the user for accessing the application service layer assembly of the application.
2. the method as described in claim 1, which is characterized in that
When the user online status maintenance request is logging request, the access layer assembly of application receives the client of the application Hold the user online status maintenance request of the application sent, comprising: the access layer assembly receives the client and sends Logging request, the logging request carries the first user identification and verification information;
Wherein, the access layer assembly safeguards that the access layer assembly is corresponding according to the user online status maintenance request The presence of the corresponding user of first user identifier described in caching includes: the access layer assembly according to the logging request To the validity of the first user identifier and the verification information described in the application service layer assembly requests verification;When described first When user identifier and effective verification information, then the access layer assembly stores first user identifier in the caching The presence of corresponding user, wherein the presence of the corresponding user of first user identifier is online.
3. method according to claim 2, which is characterized in that the method also includes:
If first user identifier and the verification information are effective, the long linkage flag is by the access layer assembly Logging state.
4. the method as described in claim 1, which is characterized in that
When the user online status maintenance request is to keep heartbeat request, the access layer assembly is online according to the user The presence of the corresponding user of mark of user described in the corresponding caching of the access layer assembly is safeguarded in state-maintenance request Include:
The access layer assembly keeps heartbeat request to carry according to the time for receiving the holding heartbeat request, or according to described Timestamp updates the heart time in the presence of the corresponding user of the first user identifier described in the caching.
5. the method as described in claim 1, which is characterized in that
When the user online status maintenance request is de-registration request, the access layer assembly is according to the user online status Maintenance request safeguards the presence packet of the corresponding user of the first user identifier described in the corresponding caching of the access layer assembly Include: the access layer assembly deletes the corresponding user of the first user identifier described in the caching according to the de-registration request Presence data.
6. method as claimed in claim 5, which is characterized in that the method also includes:
The access layer assembly is sent to the application service layer assembly nullifies asking for the corresponding user of the first user identifier It asks;
The access layer assembly is closed and the long connection between the client.
7. such as method of any of claims 1-6, which is characterized in that the method also includes:
The corresponding heart time of each user online status in caching described in the access layer assemblies monitor;
If current time identified apart from the second user heart time corresponding to the presence of corresponding user when Between interval be greater than heart beat cycle, then delete the presence data that second user described in the caching identifies corresponding user, And close the corresponding long connection of the second user mark.
8. such as method of any of claims 1-6, which is characterized in that the method also includes:
The access layer assembly receives downstream message/downlink that the application service layer assembly is sent and notifies, and the downstream message/ Downlink notice carries third user identifier;
If there are the corresponding long connection of the third user identifier, the access layer groups in the memory of the access layer assembly Part is connected to the corresponding client of the third user identifier by the corresponding length of the third user identifier and sends the downlink Message/downlink notice;Or
If there is no the corresponding long connection of the third user identifier, the access layers in the memory of the access layer assembly Component feeds back the not online response message of the corresponding user of the third user identifier to the application service layer assembly.
9. such as method of any of claims 1-6, which is characterized in that the method also includes:
The access layer assembly receives the user online status inquiry request that the application service layer assembly is sent, and the user exists Line status query request carries fourth user mark, and the user online status inquiry request is for requesting inquiry the described 4th to be used Family identifies the presence of corresponding user, and it is corresponding with access layer assembly that the application service layer assembly stores user identifier Relationship;
If there are the corresponding long connection of fourth user mark, the access layer groups in the memory of the access layer assembly Part feeds back the fourth user to the application service layer assembly and identifies the online response message of corresponding user;Or
If there is no the corresponding long connection of fourth user mark, the access layers in the memory of the access layer assembly Component feeds back the fourth user to the application service layer assembly and identifies the not online response message of corresponding user.
10. such as method of any of claims 1-6, which is characterized in that the method also includes:
The access layer assembly receives the user online status statistics request that the application service layer assembly is sent, and the user exists The statistical information of the presence data of user of the line statistic request for being applied described in request;
The access layer assembly counts the presence data of the user applied described in the caching and feeds back to the application Services layer component.
11. such as method of any of claims 1-6, which is characterized in that the method also includes:
The access layer assembly receives the offline request that the application service layer assembly is sent, wherein the offline request carries 5th user identifier, the offline request is for kicking the corresponding user offline of the 5th user identifier, the application service layer Component stores user identifier and accesses the corresponding relationship of layer assembly;
If there are the corresponding long connections of the 5th user identifier in the memory of the access layer assembly, in the caching The presence data of the corresponding user of the 5th user identifier are deleted, and corresponding length is identified even by the fourth user It connects to the corresponding client transmission of the 5th user identifier and kicks offline notice, and close the fourth user and identify corresponding length Connection.
12. a kind of access layer assembly of application characterized by comprising
Receiving unit receives the user online status maintenance request of the application of the client transmission of the application, wherein institute State the first user identifier that user online status maintenance request carries the application;
Maintenance unit is safeguarded described in the corresponding caching of the access layer assembly according to the user online status maintenance request The presence of the corresponding user of first user identifier, wherein the presence cached for storing specific user, it is described Specific user is the user for accessing the application service layer assembly of the application.
13. a kind of electronic equipment characterized by comprising
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the processor when executed Execute following operation:
Receive the user online status maintenance request of the application of the client transmission of the application, wherein the user exists Linear state maintenance request carries the first user identifier of the application;
According to the user online status maintenance request, the first user mark described in the corresponding caching of the access layer assembly is safeguarded Know the presence of corresponding user, wherein the presence cached for storing specific user, the specific user are Access the user of the application service layer assembly of the application.
14. a kind of computer readable storage medium, the computer-readable recording medium storage one or more program, described one A or multiple programs are when the electronic equipment for being included multiple application programs executes, so that the electronic equipment executes following behaviour Make:
Receive the user online status maintenance request of the application of the client transmission of the application, wherein the user exists Linear state maintenance request carries the first user identifier of the application;
According to the user online status maintenance request, the first user mark described in the corresponding caching of the access layer assembly is safeguarded Know the presence of corresponding user, wherein the presence cached for storing specific user, the specific user are Access the user of the application service layer assembly of the application.
15. a kind of application system, including applications client, using access layer component and application services layer component, which is characterized in that
The applications client sends user online status maintenance request to application access layer assembly, wherein the user Presence maintenance request carries the first user identifier of application;
The application accesses layer assembly, receives the user online status maintenance request, and tie up according to the user online status Shield request, safeguard the corresponding user of the first user identifier described in the corresponding caching of application access layer assembly in threadiness State, wherein the presence cached for storing specific user, the specific user are the application clothes of the access application The user of business layer assembly.
16. a kind of presence maintaining method of application characterized by comprising
Access the presence maintenance request that layer assembly receives the application that client is sent, wherein the presence dimension Shield request carries the first identifier of the application;
The access layer assembly is safeguarded described in the corresponding caching of the access layer assembly according to the presence maintenance request The corresponding presence of first identifier.
17. a kind of access layer assembly of application characterized by comprising
Receiving unit receives the presence maintenance request for the application that client is sent, wherein the presence maintenance Request carries the first identifier of the application;
Maintenance unit is safeguarded first described in the corresponding caching of the access layer assembly according to the presence maintenance request Identify corresponding presence.
18. a kind of electronic equipment characterized by comprising
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the processor when executed Execute following operation:
Receive the presence maintenance request for the application that client is sent, wherein the presence maintenance request carries The first identifier of the application;
According to the presence maintenance request, safeguard that first identifier described in the corresponding caching of the access layer assembly is corresponding Presence.
19. a kind of computer readable storage medium, the computer-readable recording medium storage one or more program, described one A or multiple programs are when the electronic equipment for being included multiple application programs executes, so that the electronic equipment executes following behaviour Make:
Receive the presence maintenance request for the application that client is sent, wherein the presence maintenance request carries The first identifier of the application;
According to the presence maintenance request, safeguard that first identifier described in the corresponding caching of the access layer assembly is corresponding Presence.
20. a kind of application system, including applications client, using access layer component and application services layer component, which is characterized in that
The applications client, to the application access layer assembly sending application presence maintenance request, wherein it is described Linear state maintenance request carries the first identifier of the application;
The application accesses layer assembly, receives the presence maintenance request for the application that the applications client is sent, and According to the presence maintenance request, safeguard that first identifier described in the corresponding caching of the access layer assembly is corresponding online State.
CN201710757797.3A 2017-08-29 2017-08-29 Application online state maintenance method, access layer assembly, application system and equipment Active CN109428924B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710757797.3A CN109428924B (en) 2017-08-29 2017-08-29 Application online state maintenance method, access layer assembly, application system and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710757797.3A CN109428924B (en) 2017-08-29 2017-08-29 Application online state maintenance method, access layer assembly, application system and equipment

Publications (2)

Publication Number Publication Date
CN109428924A true CN109428924A (en) 2019-03-05
CN109428924B CN109428924B (en) 2021-07-13

Family

ID=65503624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710757797.3A Active CN109428924B (en) 2017-08-29 2017-08-29 Application online state maintenance method, access layer assembly, application system and equipment

Country Status (1)

Country Link
CN (1) CN109428924B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109977117A (en) * 2019-03-18 2019-07-05 广州虎牙信息科技有限公司 The method and device that storage method, the data of status data are sent
CN113360783A (en) * 2021-06-21 2021-09-07 上海哔哩哔哩科技有限公司 User online list updating method and device and computer equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217512A (en) * 2008-01-11 2008-07-09 腾讯科技(深圳)有限公司 A client-end state maintenance method, system, client-end and application server
CN102395119A (en) * 2011-11-15 2012-03-28 华为技术有限公司 Method for supporting permanent online of application client, system and apparatus thereof
CN102571817A (en) * 2012-02-15 2012-07-11 华为技术有限公司 Method and device for accessing application server
CN103001860A (en) * 2012-12-20 2013-03-27 北京思特奇信息技术股份有限公司 Achieving system for converged communication Web instant messages
CN103297470A (en) * 2012-02-29 2013-09-11 中国移动通信集团公司 Method for processing always-online service, application server, user terminal and system
CN103312766A (en) * 2011-11-15 2013-09-18 华为技术有限公司 Method, system and device for supporting permanent online of application client
CN103546348A (en) * 2013-10-30 2014-01-29 上海斐讯数据通信技术有限公司 Method for detecting abnormal offline of authenticated user
US8670387B2 (en) * 2006-02-28 2014-03-11 Apple, Inc. WiMAX R6 control architecture
CN104579753A (en) * 2014-12-15 2015-04-29 腾讯科技(深圳)有限公司 User data statistical method, access layer server and statistical server
CN105721227A (en) * 2016-04-14 2016-06-29 武汉斗鱼网络科技有限公司 Method and system for carrying out statistics to online durations of user and state server

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8670387B2 (en) * 2006-02-28 2014-03-11 Apple, Inc. WiMAX R6 control architecture
CN101217512A (en) * 2008-01-11 2008-07-09 腾讯科技(深圳)有限公司 A client-end state maintenance method, system, client-end and application server
CN102395119A (en) * 2011-11-15 2012-03-28 华为技术有限公司 Method for supporting permanent online of application client, system and apparatus thereof
CN103312766A (en) * 2011-11-15 2013-09-18 华为技术有限公司 Method, system and device for supporting permanent online of application client
CN102571817A (en) * 2012-02-15 2012-07-11 华为技术有限公司 Method and device for accessing application server
CN103297470A (en) * 2012-02-29 2013-09-11 中国移动通信集团公司 Method for processing always-online service, application server, user terminal and system
CN103001860A (en) * 2012-12-20 2013-03-27 北京思特奇信息技术股份有限公司 Achieving system for converged communication Web instant messages
CN103546348A (en) * 2013-10-30 2014-01-29 上海斐讯数据通信技术有限公司 Method for detecting abnormal offline of authenticated user
CN104579753A (en) * 2014-12-15 2015-04-29 腾讯科技(深圳)有限公司 User data statistical method, access layer server and statistical server
CN105721227A (en) * 2016-04-14 2016-06-29 武汉斗鱼网络科技有限公司 Method and system for carrying out statistics to online durations of user and state server

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109977117A (en) * 2019-03-18 2019-07-05 广州虎牙信息科技有限公司 The method and device that storage method, the data of status data are sent
CN113360783A (en) * 2021-06-21 2021-09-07 上海哔哩哔哩科技有限公司 User online list updating method and device and computer equipment
CN113360783B (en) * 2021-06-21 2023-03-14 上海哔哩哔哩科技有限公司 User online list updating method and device and computer equipment

Also Published As

Publication number Publication date
CN109428924B (en) 2021-07-13

Similar Documents

Publication Publication Date Title
Li et al. A blockchain-based decentralized federated learning framework with committee consensus
CN106789089B (en) The method, apparatus and system and server of management certificate
US10095993B1 (en) Methods and apparatus for configuring granularity of key performance indicators provided by a monitored component
CN107483418A (en) Login process method, method for processing business, device and server
CN109802941A (en) A kind of login validation method, device, storage medium and server
CN103392353B (en) Wireless network capacity open system, gateway, agent and method
CN106656959A (en) Access request regulation and control method and device
CN106973062A (en) A kind of conversation managing method and server
CN109462631B (en) Data processing method, data processing device, storage medium and electronic device
CN113010818A (en) Access current limiting method and device, electronic equipment and storage medium
CN106888087A (en) A kind of method and apparatus for managing certificate
CN104580177B (en) Resource provider method, device and system
CN104348841B (en) Content distribution method, analysis and managing and control system and content distribution network system
CN105991481B (en) A kind of message forwarding method and device
CN104717131B (en) Information interacting method and server
JP2021039585A (en) Method for controlling connection with client or server
CN112738252A (en) E-commerce high-concurrency second-killing system
CN109428924A (en) Presence maintaining method, access layer assembly, application system and the equipment of application
CN109787984A (en) A kind of third party authorizes token management method and system
CN107070991A (en) Network data buffer storage and system
CN110049031A (en) A kind of interface security authentication method and server, authentication center's server
CN104967632B (en) Webpage abnormal data processing method, data server and system
KR20130065322A (en) Sns trap collection system and url collection method by the same
CN106878030A (en) A kind of charging method and device
CN107959696A (en) A kind of daily record bill processing method and 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