Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Instant messaging client state updating method and device

A status update and client-side technology, applied in the Internet field, can solve problems such as resource waste on the server side, achieve the effects of reducing handle calls and their concurrency, solving serious waste of resources, and reducing the pressure on the server side

Active Publication Date: 2022-01-07
BEIJING PERFECT WORLD SOFTWARE TECH DEV CO LTD
View PDF10 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] This application provides a client status update method and device for instant messaging to solve the technical problem of serious waste of server resources under high concurrency

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Instant messaging client state updating method and device
  • Instant messaging client state updating method and device
  • Instant messaging client state updating method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, but not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in the present application without creative efforts shall fall within the protection scope of the present application.

[0037]In the following description, use of suffixes such as 'module', 'part' or 'unit' for denoting elements is only for facilitating the description of the present application and has no specific meaning by itself. Therefore, "module" and "component" may be mixedly used.

[0038] In related technologies, in order to maintain its onlin...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a client state updating method and device for instant messaging. The method comprises the steps: receiving a heartbeat data packet sent by a client through a target long connection, and judging whether a connection record corresponding to the target long connection exists in a local memory of a server or not, wherein the target long connection is used for providing instant messaging service for the client by the server, and the server is provided with a first target distributed cache, and is used for storing connection state information of target long connection; if the connection record exists, determining the state of the client as an online state in the local memory of the server; and under the condition that the heartbeat data packet is not received within the preset time, determining the state of the client as an offline state, deleting the connection record in the local memory of the server, and deleting the connection state information of the target long connection in the first target distributed cache. According to the invention, the technical problem of serious waste of server resources under high concurrency is solved.

Description

technical field [0001] The present application relates to the technical field of the Internet, in particular to a method and device for updating the state of a client of instant messaging. Background technique [0002] Instant Messaging (IM for short) is a real-time communication system that allows two or more people to use the network to transmit text messages, files, voice and video exchanges in real time. The instant messaging service requires a long connection between the client and the server, so that the server can receive and push instant messaging messages in a timely manner. This long connection does not exist all the time after the establishment is completed. During the connection process of the long connection, the server will record the status of the client as online, and when the long connection is disconnected, the server will record the status of the client as offline. [0003] At present, in related technologies, in order to maintain its online status and co...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L51/043H04L67/54
CPCH04L51/043
Inventor 王贵喜覃建策窦志同杨元
Owner BEIJING PERFECT WORLD SOFTWARE TECH DEV CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products