Comprehensive Guide to Chat Server Business Logic

This document outlines the various business logic operations handled by a chat server, including essential functionalities like heartbeats, user registration, login, friend management, profile updates, group operations, and real-time messaging. Data Packet Structure All data packets are prefixed with a business id followed by a sequence number, ...

Posted on Sun, 14 Jun 2026 17:43:28 +0000 by monkeyj

Cache Manager for Chat Server

CacheManager The cache manager stores caches for notification messages and chat messages. Because users may be offline, when a friend sends a message or a group mesage is sent, those messages cannot be delivered to the user. Therefore, messages are first sent to the cache manager. When the user comes online, the cached messages are pushed to th ...

Posted on Thu, 07 May 2026 21:42:46 +0000 by egorig