CN113630273A - Account logout system, method, device and storage medium - Google Patents

Account logout system, method, device and storage medium Download PDF

Info

Publication number
CN113630273A
CN113630273A CN202110901939.5A CN202110901939A CN113630273A CN 113630273 A CN113630273 A CN 113630273A CN 202110901939 A CN202110901939 A CN 202110901939A CN 113630273 A CN113630273 A CN 113630273A
Authority
CN
China
Prior art keywords
logout
account
service
request
target account
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110901939.5A
Other languages
Chinese (zh)
Inventor
姚奕帆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bigo Technology Pte Ltd
Original Assignee
Bigo Technology Pte 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 Bigo Technology Pte Ltd filed Critical Bigo Technology Pte Ltd
Priority to CN202110901939.5A priority Critical patent/CN113630273A/en
Publication of CN113630273A publication Critical patent/CN113630273A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • 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/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Computational Linguistics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses an account logout system, method, device and storage medium. Wherein, this system includes: a parent logout service, a plurality of child logout services, and a storage service. The sub-logout service is used for receiving an account logout request aiming at a target account initiated by a client, storing request data corresponding to the account logout request into the storage service, and returning a logout notice to the client after login data corresponding to the target account is cleared, wherein the logout notice is used for indicating that the target account enters a logout process; and the parent logout service is used for acquiring the request data from the storage service and performing account logout processing on the target account according to the request data. According to the technical scheme provided by the embodiment of the invention, the account logout process is completed by utilizing the parent logout service and the child logout service together, and the child logout service returns a logout notification to the client after the login data is cleared, so that the situation that the user side waits for the logout process to be completed for a long time is avoided, the low delay is ensured, and the interaction efficiency is improved.

Description

Account logout system, method, device and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to an account logout system, method, device and storage medium.
Background
With the rapid development of internet technology and computer technology, the types of application programs are more and more, and the functions are more and more abundant. Currently, in order to manage user data, an application usually supports an account registration function, and a user can register his or her account and log in the application using the account.
In the process of using the application program by a user, sometimes an account logout requirement exists, so the application program generally provides an account logout function. However, after the user submits an account logout application, the background service usually needs to perform many related operations, which results in a long page waiting time of the application program, and particularly for the application program that needs to be deployed across countries or regions, the interaction efficiency is seriously affected, and needs to be improved.
Disclosure of Invention
The embodiment of the invention provides an account logout system, method, device and storage medium, which can optimize the existing account logout scheme.
In a first aspect, an embodiment of the present invention provides an account logout system, including a parent logout service, a plurality of child logout services, and a storage service;
the sub-logout service is used for receiving an account logout request aiming at a target account initiated by a client, storing request data corresponding to the account logout request into the storage service, and returning a logout notice to the client after login data corresponding to the target account is cleared, wherein the logout notice is used for indicating that the target account enters a logout process;
and the parent logout service is used for acquiring the request data from the storage service and performing account logout processing on the target account according to the request data.
In a second aspect, an embodiment of the present invention provides an account logout method, which is applied to an account logout system provided in the embodiment of the present invention, and the method includes:
receiving an account logout request aiming at a target account initiated by a client through a sub-logout service, storing request data corresponding to the account logout request into a storage service, and returning a logout notification to the client after login data corresponding to the target account is cleared, wherein the logout notification is used for indicating that the target account enters a logout process;
and acquiring the request data from the storage service through a parent logout service, and performing account logout processing on the target account according to the request data.
In a third aspect, an embodiment of the present invention provides a computer device, including a memory, a processor, and a computer program that is stored in the memory and is executable on the processor, where a parent logout service in an account logout system provided in an embodiment of the present invention is configured in the computer device, or a child logout service in the account logout system provided in an embodiment of the present invention is configured in the computer device, and when the processor executes the computer program, the processor implements a corresponding function in the account logout system provided in an embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements a corresponding function in an account deregistration system according to an embodiment of the present invention.
According to the account logout scheme provided by the embodiment of the invention, the account logout system comprises a father logout service, a plurality of child logout services and a storage service, wherein the child logout services are used for receiving an account logout request aiming at a target account initiated by a client, storing request data corresponding to the account logout request into the storage service, and returning a logout notification to the client after login data corresponding to the target account is cleared, wherein the son logout notification is used for indicating that the target account enters a logout flow, and the father logout service is used for acquiring the request data from the storage service and carrying out account logout treatment aiming at the target account according to the request data. By adopting the technical scheme, for the application program needing to be deployed across countries or regions and the like, a parent logout service and a plurality of child logout services are set, the parent logout service and the child logout services are used for jointly completing an account logout process, and the child logout services return logout notifications to the client after login data corresponding to a target account is cleared, so that the user side is prevented from waiting for the completion of the logout process for a long time, low delay is ensured, and interaction efficiency is improved.
Drawings
Fig. 1 is a block diagram of an account logout system according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a working process of an account logout system according to an embodiment of the present invention;
fig. 3 is a timing diagram of a working process of an account logout system according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of an account logout system according to an embodiment of the present invention;
fig. 5 is a block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures. In addition, the embodiments and features of the embodiments in the present invention may be combined with each other without conflict.
Fig. 1 is a block diagram of an account logout system according to an embodiment of the present invention, and as shown in fig. 1, an account logout system 100 may include a parent logout service 101, a plurality of child logout services 102, and a storage service 103, where each service may be deployed in a corresponding server. The number of the sub logout services may be set according to actual requirements, and only 2 are shown in the figure as an example. In practical application, when an application needs to be deployed across countries or regions, a corresponding number of sub logout services can be set according to the number of countries or regions, for example, if a service side of the application needs to be deployed in N regions, N sub logout services can be set correspondingly. The sub-logout service is used for receiving an account logout request aiming at a target account initiated by a client, storing request data corresponding to the account logout request into the storage service, and returning a logout notice to the client after login data corresponding to the target account is cleared, wherein the logout notice is used for indicating that the target account enters a logout process; and the parent logout service is used for acquiring the request data from the storage service and performing account logout processing on the target account according to the request data.
The specific type of the application program in the embodiment of the present invention is not limited, and may be, for example, a live application program, a short video application program, a game application program, an instant messaging application program, or the like, and a user may register an account in the application program and log in a client corresponding to the application program through the account.
For example, when a user wants to log off his account, an account log-off request may be initiated by the client, and the account log-off request may include, for example, an account that wants to log off, which is referred to herein as a target account. The embodiment of the invention relates to a plurality of logout subsystems, and a Content Delivery Network (CDN) can issue an account logout request to a sub-logout service of a corresponding area according to the position of a user, so that the account logout request of the user can be quickly responded.
For example, the sub-logout service that receives the account logout request may determine corresponding request data according to the account logout request, where the request data may include, for example, a request timestamp, target account information or a request status, and the target account information may be, for example, a User Identification (UID). Subsequently, the child logout service may store the request data in a storage service for the parent logout service to obtain. The content contained in the request data can be extracted from the account logout request, and the request data can be obtained through simple secondary packaging. The storage service may be, for example, message middleware, a database, a cache, or the like, and is not particularly limited. The secondary packaging may include data conversion, for example, converting information extracted from the account logout request into a data format supported by the storage service to be transmitted, to obtain the requested data.
Illustratively, after the sub-logout service stores the request data in the storage service, the current account logout request of the user is recorded, the subsequent complex logout operation can be completed by the parent logout service, and after the login data corresponding to the target account is cleared, a logout notification can be returned to the client, wherein the logout notification is used for indicating that the target account enters a logout process. At this time, the client used by the user may not need to wait for the logout procedure to be completed, and may perform operations such as interface jump according to the logout notification, for example, jump to a page of a guest identity or a login page, so as to avoid long-time waiting at the user side.
Illustratively, the storage service may store the request data according to the receiving time of the request data, that is, may record the storage timestamp, and the parent logout service may sequentially obtain the request data according to the time sequence and perform the account logout process with respect to the corresponding target account. The details of the account logout process are not limited, and may include, for example, deleting user data corresponding to the target account. In the related art, when logging off an account, only login data is usually deleted, and other user data is not deleted, so that many user personal data are at risk of leakage. In addition, because the types of the user data corresponding to the account are more, the embodiment of the invention can perform distinguishing processing according to the types. For example, preset personal data and preset business data can be included, and other related data can also be included. The preset personal data may include, for example, User login registration data (e.g., private data including a birthday, a city, a mobile phone number, and the like of the User), behavior data (e.g., browsing behavior or forwarding behavior Generated by the User in the process of using the application program), social relationships (e.g., friends of the User or a group joined to the User, and the like), and User Generated Content (UGC) (e.g., an article, a comment, a short video, and the like published by the User); the preset service data may include highly sensitive service data such as transaction data and anchor contract data, for example. For example, the preset personal data corresponding to the target account can be deleted according to the request data, so that leakage of the private data of the user is prevented; for another example, the preset service data corresponding to the target account may be encrypted according to the request data, and in order to ensure normal development of the related services, the data may be retained, and in order to prevent data leakage, the encryption may be performed, and further, the encrypted preset service data may be migrated, for example, transferred and stored to a dedicated storage area.
Optionally, the preset personal data and the preset service data may be stored by a storage service, and when performing an account logout process for a corresponding target account, the parent logout service may perform operations such as corresponding data deletion or data encryption in a storage device corresponding to the storage service.
In the related art, the logout service is realized by a single service deployed on a single machine or a cluster with a short distance in an area, and for an application program needing to be deployed across countries, regions and the like, the problems of low data access speed, long response time, low query rate per second and the like exist. The account logout system provided by the embodiment of the invention sets a parent logout service and a plurality of child logout services for application programs needing to be deployed across countries, regions and the like, and completes an account logout process jointly by utilizing the division of labor and cooperation of the parent logout service and the child logout services, and the child logout services return logout notifications to a client after login data corresponding to a target account is cleared, so that a user side is prevented from waiting for the completion of the logout process for a long time, low delay is ensured, and interaction efficiency is improved.
In some embodiments, the storage service includes at least two storage data sources; the sub logout service is used for respectively storing the request data corresponding to the account logout request into the at least two storage data sources so as to realize backup storage of the request data; and the parent logout service is used for acquiring the request data corresponding to the target account from the at least two storage data sources and performing account logout processing on the target account according to the request data with the storage timestamp closest to the current time. The method has the advantages that data consistency can be guaranteed by means of multi-data source storage, data loss caused by failure of a certain link is prevented, termination of logout procedures is further prevented, and high availability of the account logout system is guaranteed.
Illustratively, the at least two stored data sources may include, for example, at least one of message middleware, such as a Kafka card (Kafka), a database, and a cache, such as a Codis. The database may include a master database and a slave database, and master-slave synchronization may be performed according to a preset synchronization policy. The father logout service can actively read or consume the request data in each storage data source, if the storage time stamps are different, the storage time stamps are compared and judged, and the request data corresponding to the target account is determined based on the latest storage time stamp.
In some embodiments, the child logoff service is to: and verifying the legality of the account logout request and/or verifying a first preset logout condition on the target account, and if the verification is passed, storing request data corresponding to the account logout request to the storage service. The method has the advantages that the pre-check is carried out before the account logout process is entered, the account is prevented from being logout due to abnormal account logout application caused by misoperation, number stealing operation and the like, the loss of users is reduced, and the normal operation of platform services is ensured while the safety of the user accounts is ensured.
For example, verifying the legitimacy of the deregistration request may include verifying whether the deregistration request was initiated by the true holder of the account. The specific authentication method may include, for example, password authentication, short message authentication, third party login authentication, and authentication of a common device number.
For example, after the validity of the account logout request is verified, and the verification is passed, the verification of the first preset logout condition may be continued on the target account. The first preset logout condition can be understood as verifying the related state of the target account and the like, so that the loss caused by logout of the account is reduced. The first preset logout condition may include, for example, that the number of virtual resources in the target account is smaller than a preset number threshold, the virtual resources may include, for example, resources with a certain value, such as virtual currency, virtual gold beans, virtual diamonds, or points, set in the application program, and if the number of virtual resources is smaller than the preset number threshold, the verification is passed, otherwise, the verification is not passed; the first preset logout condition may include, for example, that no trading order exists in the target account number, such as an order being presented or an order being exchanged between virtual resources, and if the trading order exists, the verification fails, and if the trading order does not exist, the verification passes; the first preset logout condition may include, for example, that the account type of the target account does not belong to a preset account type, if the account type does not belong to the preset account type, the verification fails, if the account type does not belong to the preset account type, the verification passes, the preset account type may be, for example, an important type set in the application program, such as a subscription account, a family long account, or an account of another type, and if the account of the preset account type wants to be logout, the user may be prompted to perform a related operation, the type of the target account is converted into a common account, and then logout is applied; the first preset logout condition may include, for example, that a preset service work order does not exist in the target account, if the preset service work order exists, the verification is not passed, and if the preset service work order does not exist, the verification is passed, where the preset service work order may include, for example, a complaint handling order, a service dispute order, a picture examination order, or a live examination order. The first predetermined logout condition may include, for example, that the user agrees to relinquish the virtual resource in the account, and if the user agrees, the authentication is passed, and if the user disagrees, the authentication is not passed.
In some embodiments, a request timestamp is included in the request data; the sub-logout service is further configured to receive a logout withdrawal request of the client for the target account and delete corresponding request data from the storage service when the target account is in an account freezing period, where a starting point of the account freezing period is a time corresponding to a request timestamp in the request data, and an ending point of the account freezing period is a time when a preset delay time elapses after the request timestamp; and the parent logout service is used for carrying out account logout processing on the target account according to the request data under the condition of determining that the account freezing period of the target account is ended. The method has the advantages that by setting the account freezing period, the parent logout service does not need to quickly execute the account logout related operation, and does not need to execute the account logout related operation after logout withdrawal, so that the pressure of the parent logout service is relieved, meanwhile, the buffer period is provided for the user, the user has the remorse right, the situation that the account logout cannot be retrieved due to misoperation or malicious operation of other people is prevented, and the user loss is reduced.
For example, the account freezing period may be a time from when the client initiates an account logout request to when a preset delay time period elapses, where the preset delay time period may be set according to actual needs, and may be, for example, 20 days. In the account freezing period, when a user wants to use an account which is applied for logout on a client, the user can be prompted that the account is in the freezing period, the user is inquired whether to cancel the logout, and if the user selects to cancel the logout, the client can send a logout withdrawal request aiming at a target account. Optionally, after the logout revocation request is checked, the user may use the target account normally, and at this time, because the account freezing period is not over, the parent logout service does not execute the relevant operation, and the user data still exists, so that the influence on the normal use of the user is reduced.
Optionally, the parent logout service is configured to verify a first preset logout condition for the target account when it is determined that the account freezing period of the target account is ended, and perform, if the verification is passed, logout processing on the target account according to the request data. The advantage of this arrangement is that the target account is verified again, minimizing user loss. In the account freezing period, some virtual resources may return or be set as a preset account type by the service side, and therefore, the virtual resources can be verified again before account logout processing is performed.
Optionally, before the account freezing period of the target account is ended, the parent logout service may also perform related preprocessing on the target account, such as determining data to be deleted, so as to facilitate quick account logout processing when the account freezing period is ended.
In some embodiments, the system further includes a monitoring service, configured to verify a second preset logout condition for the target account number when the target account number is in an account freezing period, and perform corresponding first alarm processing if the verification fails. The method has the advantages that before the parent logout service does not really execute the logout related operation, the target account can be further checked, the misregistered account or the high-value account and the like can be found in time to a certain extent, and loss of important users is reduced. The second preset logout condition can be set according to the account activity, the account level, the account registration time or other relevant factors. For example, if the account activity is higher than the preset activity threshold, it may be said that the account has a higher value and fails verification, and if the account activity is less than or equal to the preset activity threshold, the verification passes. The account liveness can be determined by obtaining historical data corresponding to the target account, and for example, the account liveness can be evaluated by using online time in unit time. For the case that the authentication fails, corresponding first alarm processing may be performed, for example, a first alarm notification is sent to an operator side corresponding to the application program, where the first alarm notification is used to indicate that the target account is an important account, and the willingness and reason for logout of the user need to be further verified by manual or other relevant means, so as to prevent loss of the important user.
In some embodiments, the system further includes a parent cancellation service monitoring service and/or a child cancellation service monitoring service, configured to perform exception monitoring on a corresponding cancellation service, and perform corresponding second alarm processing when an exception condition is monitored; the abnormal condition comprises at least one of logout failure, failure in executing preset logout operation after exceeding preset time length and failure in requesting data storage. The method has the advantages that the parent logout service and/or the child logout service are monitored, the abnormal conditions existing in the whole account logout process are found in time, intervention is carried out in an alarm processing mode, and high availability of the account logout system is further guaranteed. Wherein the parent cancellation service monitoring service may be multiplexed with the monitoring service described above.
For example, the parent logout service monitoring service may monitor the parent logout service, for example, the parent logout service monitoring service may poll and scan logout schedules of all accounts at the end of an account freezing period, when logout fails or logout does not start for a preset time (e.g., 24 hours), the parent logout service may be notified to perform a retry operation first, if the retry operation reaches a preset threshold, an abnormal condition is not eliminated, a second alarm notification may be sent to an operating side corresponding to the application program, where the second alarm notification is used to indicate that an account logout is abnormal and needs to be analyzed. The sub-logout service monitoring service may monitor the sub-logout service, for example, may monitor whether the sub-logout service successfully stores the corresponding request data in the storage service for the account logout request, and if it is determined that the corresponding request data does not exist in the storage service, it may indicate that the sub-logout service or the storage data source is abnormal, and send a third alarm notification to the operating side corresponding to the application program, where the third alarm notification is used to indicate that the sub-logout service or the storage data source is abnormal and needs to be analyzed and processed.
In some embodiments, the storage service is further configured to provide a subscription function, so that a preset service performs an operation associated with an account logout procedure when subscribing to the request data. The preset service can be understood as a service related to an account logout process except for a logout service. The configuration has the advantages that for the preset service, decoupling with the logout service can be realized, namely the logout service does not need to actively inform the logout service to execute the operation associated with the account logout flow, the preset service subscribes the request data from the storage service in a subscription mode, and when the request data is subscribed, the operation associated with the account logout flow can be timely and quickly executed, so that the working efficiency of the preset service is improved, the operations required to be executed by the logout service are reduced, and the working efficiency of the logout service is improved.
In some embodiments, the preset service comprises a login service; and the login service clears the login data corresponding to the target account under the condition of subscribing the request data. The method has the advantages that the login data corresponding to the target account can be quickly cleared without sub-logout service notification when the login service subscribes to the request data, the user is forced to log out and limited to log in, the response speed of the login service is improved, the time length of the client side for receiving the logout notification is further shortened, and the waiting time of the user is reduced.
In some embodiments, when a data query requirement corresponding to a logout service exists in an application program, the data query can be realized by accessing a sub logout service in an area where the data query is located, so that the query efficiency is improved, the request time is shortened, the response speed of a front-end interface is ensured, and the low delay is realized. That is, the child logout service is also used to: and receiving a query request aiming at the logged-out account number initiated by the client, and responding to the query request. Optionally, the CDN issues the query request to a sub-logout service in the corresponding area according to the location of the user, so that the query request of the user can be quickly responded. It should be noted that the client is generally different from the client initiating the account logout request, that is, a query requirement for the target account may exist due to business needs of other accounts other than the target account during the process of using the application program, for example, the account a shares an article with the account B once, and the account B wants to query the article shared by the account B. Optionally, when responding to the query request, if the queried account is successfully logged off, the shielding process may be performed on the personal information of the user whose account has been logged off, for example, the account may be displayed as a default identifier, such as "Deleted account" or "Deleted", for example, when the account B queries an account from which an article is sourced, the account a is not displayed, but "Deleted account" is displayed.
Fig. 2 is a schematic diagram of an operating process of an account logout system according to an embodiment of the present invention, and as shown in fig. 2, the account logout system may include a child logout system, a data storage center, and a parent logout system. For each of a plurality of deployment areas corresponding to the application program deployed across the areas, at least one local area logout server may be set, a sub logout service is deployed in the local area logout server, at least one monitoring server, which may also be called a sub monitoring server, may also be deployed in the sub logout system, and a sub logout service monitoring service is deployed in the sub monitoring server. A plurality of storage data sources can be also deployed in the sub logout system, and the storage data sources can comprise message middleware, a database and a cache which are deployed in the local area. In addition, the database in the data storage center can be in data synchronization with the database in the logout system, and the cache in the data storage center can be in data synchronization with the cache in the logout system. The parent logout system can be provided with at least one parent logout server, the parent logout server is deployed with a parent logout service, the parent logout system can be provided with a monitoring server, also called a parent monitoring server, and the parent logout service monitoring service is deployed in the parent monitoring server. When a user wants to logout an account, an account logout request aiming at a target account can be initiated through a client, the CDN distributes the account logout request to a nearest local area logout server, and the local area logout server extracts relevant data from the account logout request, packages the data for the second time and stores the data to message middleware, a database and a cache in the local area. And the father logout server consumes the request data from the message middleware, respectively reads the request data from the database and the cache, and selects the latest request data according to the storage time stamp to carry out account logout processing aiming at the target account. And in the whole logout process, the monitoring server is responsible for corresponding monitoring work.
Fig. 3 is a sequence diagram of an operating process of an account logout system according to an embodiment of the present invention, which can be understood with reference to fig. 3. Other services in the graph may include, for example, a monitoring service, a logging service, a querying service, or other related services.
Fig. 4 is a flowchart of an account logout system according to an embodiment of the present invention, where the method may be executed by the account logout system according to the embodiment of the present invention, and each service in the account logout system may be implemented by software and/or hardware, and may generally be deployed in a computer device. As shown in fig. 4, the method includes:
step 401, receiving an account logout request for a target account initiated by a client through a sub-logout service, storing request data corresponding to the account logout request in the storage service, and returning a logout notification to the client after login data corresponding to the target account is cleared, wherein the logout notification is used for indicating that the target account enters a logout process;
step 402, obtaining the request data from the storage service through a parent logout service, and performing account logout processing on the target account according to the request data.
The account logout method provided by the embodiment of the invention comprises a parent logout service, a plurality of child logout services and a storage service, wherein the child logout service is used for receiving an account logout request aiming at a target account initiated by a client, storing request data corresponding to the account logout request into the storage service, returning a logout notification to the client after login data corresponding to the target account is cleared, and being used for indicating that the target account enters a logout process. By adopting the technical scheme, for the application program needing to be deployed across countries or regions and the like, a parent logout service and a plurality of child logout services are set, the parent logout service and the child logout services are used for jointly completing an account logout process, and the child logout services return logout notifications to the client after login data corresponding to a target account is cleared, so that the user side is prevented from waiting for the completion of the logout process for a long time, low delay is ensured, and interaction efficiency is improved.
Further, the storage service comprises at least two storage data sources; storing request data corresponding to the account logout request into the storage service through a sub logout service, wherein the request data comprises: and the sub logout service is used for respectively storing the request data corresponding to the account logout request into the at least two storage data sources so as to realize backup storage of the request data. The acquiring the request data from the storage service through the parent logout service, and performing account logout processing on the target account according to the request data includes: and acquiring request data corresponding to the target account from the at least two storage data sources through the father logout service, and performing account logout processing on the target account according to the request data with the storage timestamp closest to the current time.
Further, storing request data corresponding to the account logout request in the storage service through the sub-logout service includes: and verifying the legality of the account number logout request and/or verifying a first preset logout condition on the target account number through a sub logout service, and if the verification is passed, storing request data corresponding to the account number logout request to the storage service.
Further, the request data includes a request timestamp; the method further comprises the following steps: and receiving a logout withdrawal request of the client aiming at the target account by the sub-logout service under the condition that the target account is in an account freezing period, and deleting corresponding request data from the storage service, wherein the starting point of the account freezing period is the time corresponding to the request timestamp in the request data, and the end point is the time when a preset delay time duration passes after the request timestamp. Performing account logout processing on the target account through a parent logout service according to the request data, wherein the account logout processing comprises the following steps: and performing account logout processing on the target account according to the request data under the condition that the end of the account freezing period of the target account is determined through a parent logout service.
Further, the system also includes a monitoring service. The method further comprises the following steps: and verifying a second preset logout condition on the target account number by the monitoring service under the condition that the target account number is in the account number freezing period, and if the verification fails, performing corresponding first alarm processing.
Further, the system also comprises a parent logout service monitoring service and/or a child logout service monitoring service. The method further comprises the following steps: performing abnormal monitoring on the corresponding logout service through the parent logout service monitoring service and/or the child logout service monitoring service, and performing corresponding second alarm processing when an abnormal condition is monitored; the abnormal condition comprises at least one of logout failure, failure in executing preset logout operation after exceeding preset time length and failure in requesting data storage.
The embodiment of the invention provides computer equipment, wherein the computer equipment is provided with a parent logout service in an account logout system provided by the embodiment of the invention, or is provided with a child logout service in the account logout system provided by the embodiment of the invention. Fig. 5 is a block diagram of a computer device according to an embodiment of the present invention. The computer device 500 includes a memory 501, a processor 502 and a computer program stored on the memory 501 and executable on the processor 502, wherein the processor 502 implements corresponding functions in the logout system provided by the embodiment of the present invention when executing the computer program.
The embodiment of the invention also provides a storage medium containing computer executable instructions, and the computer executable instructions are used for realizing corresponding functions in the account logout system provided by the embodiment of the invention when being executed by a computer processor.
The account logout method, the device and the storage medium provided in the embodiments above can implement corresponding functions in the account logout system provided in any embodiment of the present invention, and have corresponding beneficial effects. For details of the technology that are not described in detail in the above embodiments, reference may be made to an account logout system provided in any embodiment of the present invention.
Note that the above is only a preferred embodiment of the present invention. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in more detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the claims.

Claims (10)

1. An account logout system is characterized by comprising a father logout service, a plurality of son logout services and a storage service;
the sub-logout service is used for receiving an account logout request aiming at a target account initiated by a client, storing request data corresponding to the account logout request into the storage service, and returning a logout notice to the client after login data corresponding to the target account is cleared, wherein the logout notice is used for indicating that the target account enters a logout process;
and the parent logout service is used for acquiring the request data from the storage service and performing account logout processing on the target account according to the request data.
2. The system of claim 1, wherein the storage service includes at least two storage data sources;
the sub logout service is used for respectively storing the request data corresponding to the account logout request into the at least two storage data sources so as to realize backup storage of the request data;
and the parent logout service is used for acquiring the request data corresponding to the target account from the at least two storage data sources and performing account logout processing on the target account according to the request data with the storage timestamp closest to the current time.
3. The system of claim 1, wherein the child logoff service is configured to:
and verifying the legality of the account logout request and/or verifying a first preset logout condition on the target account, and if the verification is passed, storing request data corresponding to the account logout request to the storage service.
4. The system of claim 1, wherein the request data includes a request timestamp;
the child logout service is further to: under the condition that the target account is in an account freezing period, receiving a logout withdrawal request of the client aiming at the target account, and deleting corresponding request data from the storage service, wherein the starting point of the account freezing period is the time corresponding to a request timestamp in the request data, and the end point is the time when a preset delay time length passes after the request timestamp;
and the parent logout service is used for carrying out account logout processing on the target account according to the request data under the condition of determining that the account freezing period of the target account is ended.
5. The system according to claim 4, further comprising a monitoring service, configured to perform verification of a second preset logout condition on the target account number when the target account number is in an account freezing period, and perform corresponding first alarm processing if the verification fails.
6. The system of claim 1, further comprising a parent cancellation service monitoring service and/or a child cancellation service monitoring service, configured to perform exception monitoring on a corresponding cancellation service, and perform corresponding second alarm processing when an exception condition is monitored; the abnormal condition comprises at least one of logout failure, failure in executing preset logout operation after exceeding preset time length and failure in requesting data storage.
7. The system according to claim 1, wherein the performing a logout process for the target account according to the request data includes:
and deleting preset personal data corresponding to the target account according to the request data, and encrypting preset service data corresponding to the target account.
8. An account deregistration method applied to the account deregistration system according to claims 1 to 7, the method comprising:
receiving an account logout request aiming at a target account initiated by a client through a sub-logout service, storing request data corresponding to the account logout request into a storage service, and returning a logout notification to the client after login data corresponding to the target account is cleared, wherein the logout notification is used for indicating that the target account enters a logout process;
and acquiring the request data from the storage service through a parent logout service, and performing account logout processing on the target account according to the request data.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the computer device is configured with a parent cancellation service in an accounting cancellation system as claimed in any one of claims 1 to 7 or with a child cancellation service in an accounting cancellation system as claimed in any one of claims 1 to 7, and wherein the processor implements the corresponding functions in the accounting cancellation system as claimed in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a corresponding function in an accounting cancellation system according to any one of claims 1 to 7.
CN202110901939.5A 2021-08-06 2021-08-06 Account logout system, method, device and storage medium Pending CN113630273A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110901939.5A CN113630273A (en) 2021-08-06 2021-08-06 Account logout system, method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110901939.5A CN113630273A (en) 2021-08-06 2021-08-06 Account logout system, method, device and storage medium

Publications (1)

Publication Number Publication Date
CN113630273A true CN113630273A (en) 2021-11-09

Family

ID=78383186

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110901939.5A Pending CN113630273A (en) 2021-08-06 2021-08-06 Account logout system, method, device and storage medium

Country Status (1)

Country Link
CN (1) CN113630273A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852136A (en) * 2005-07-19 2006-10-25 华为技术有限公司 Registering/logout system and method thereof
CN1889586A (en) * 2005-06-30 2007-01-03 华为技术有限公司 A log-on/log-down system and log-on/log-down method
JP5197843B1 (en) * 2011-12-27 2013-05-15 株式会社東芝 Authentication linkage system and ID provider device
CN103874189A (en) * 2012-12-14 2014-06-18 北京新媒传信科技有限公司 Logout method and system for IMS (IP (internet protocol) multimedia subsystem) client
US20140258215A1 (en) * 2013-03-11 2014-09-11 International Business Machines Corporation Management of updates in a database system
CN105122241A (en) * 2013-03-15 2015-12-02 亚马逊科技公司 Database system with database engine and separate distributed storage service
CN110392289A (en) * 2018-04-18 2019-10-29 北京视联动力国际信息技术有限公司 A kind of processing method and system of account
CN111460476A (en) * 2020-03-27 2020-07-28 腾讯科技(深圳)有限公司 Account logout method and device, storage medium and electronic device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1889586A (en) * 2005-06-30 2007-01-03 华为技术有限公司 A log-on/log-down system and log-on/log-down method
CN1852136A (en) * 2005-07-19 2006-10-25 华为技术有限公司 Registering/logout system and method thereof
JP5197843B1 (en) * 2011-12-27 2013-05-15 株式会社東芝 Authentication linkage system and ID provider device
CN103874189A (en) * 2012-12-14 2014-06-18 北京新媒传信科技有限公司 Logout method and system for IMS (IP (internet protocol) multimedia subsystem) client
US20140258215A1 (en) * 2013-03-11 2014-09-11 International Business Machines Corporation Management of updates in a database system
CN105122241A (en) * 2013-03-15 2015-12-02 亚马逊科技公司 Database system with database engine and separate distributed storage service
CN110392289A (en) * 2018-04-18 2019-10-29 北京视联动力国际信息技术有限公司 A kind of processing method and system of account
CN111460476A (en) * 2020-03-27 2020-07-28 腾讯科技(深圳)有限公司 Account logout method and device, storage medium and electronic device

Similar Documents

Publication Publication Date Title
US11206451B2 (en) Information interception processing method, terminal, and computer storage medium
US20180324170A1 (en) Method and apparatus for allocating device identifiers
KR102167613B1 (en) Message push method and device
CN105187372B (en) A kind of data processing method based on mobile application entrance, device and system
CN107943841A (en) Stream data processing method, system and computer-readable recording medium
CN107169094B (en) Information aggregation method and device
US20230078667A1 (en) Data transmission method and apparatus, device, storage medium, and computer program product
US20160246994A1 (en) Information collection apparatus and method
CN111382985A (en) To-do message integrated pushing system and working method
US20130024917A1 (en) Memo synchronization system, mobile system, and method for synchronizing memo data
CN112052227A (en) Data change log processing method and device and electronic equipment
WO2016107612A1 (en) Method and apparatus for processing virtual card
CN113760976A (en) Service processing method, device, equipment and storage medium
RU121946U1 (en) AUTOMATED LAST INSTANCE SOCIAL AUTHENTICATION SYSTEM
CN113630273A (en) Account logout system, method, device and storage medium
CN109040331B (en) Electronic business card processing method and device, computing equipment and storage medium
CN108156201B (en) Method and device for uniformly managing configuration data of application system
CN115525449A (en) Micro-service data transmission system, method and storage medium
CN112104888A (en) Method and system for grouping live broadcast users
CN111814130A (en) Single sign-on method and system
JP5891140B2 (en) Connection state management device and program thereof
CN113707346B (en) Novel online inquiry system and method based on Internet hospital
JP7463606B1 (en) Connection switching server and connection switching method
CN113852618B (en) Account isolation method, device and storage medium
CN114077499A (en) Data synchronization method, device, server and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination