The present application discloses a method, device,
computer device and readable storage medium for
client survival
perception, which relates to the field of Internet technology. This method abstracts the computing and
processing work to the
server side, combines
heartbeat detection with business requests to avoid the sending of redundant
heartbeat packets, thereby achieving high-efficiency and low-
power consumption survival detection. The method includes: intercepting a target request sent by a target
client, where the target request includes a
heartbeat request and a business request, and the target
client sends the heartbeat request based on the
heartbeat detection status; updating a target heartbeat value corresponding to the target client according to the target request; when the target request is a heartbeat request, performing
heartbeat detection based on the heartbeat request to determine the
survival status of the target client; comparing the target heartbeat value with a heartbeat threshold, and updating the
heartbeat detection status according to the comparison result, so that the target client sends a heartbeat request based on the updated heartbeat detection status to perform heartbeat detection and determine the
survival status.