WuKongIM Docs

Core Concepts

Use five concepts—message, channel, user, device, and conversation—to understand how WuKongIM organizes communication.

You do not need to understand nodes, Raft, or data sharding before integrating WuKongIM. Start with five product concepts and most application guides will make sense:

ConceptQuestion it answersIn one sentence
MessageWhat is being sent?A piece of content such as text, an image, a notification, or a business command
ChannelWhere is it sent?The message target and recipient scope, such as a direct chat or group chat
UserWho is communicating?A product-defined communication identity with a stable UID
DeviceFrom which endpoint?A phone, browser, desktop client, or another client instance used by a user
ConversationHow does a user return to a chat?That user's view of a channel, usually with a latest message and unread count

How the five concepts work together

Consider Alice sending a message to Bob:

Alice (user) sends a message from her phone (device)

            The message enters a direct channel

  Bob's online devices receive it; offline devices sync later

      Alice and Bob each see the chat in their conversation list

For a group chat, the channel changes from a direct target to a group ID and its members. The basic relationship among users, devices, messages, and conversations stays the same.

WuKongIM and your product system

WuKongIM is communication infrastructure. It does not replace your account and product services.

Your product system ownsWuKongIM owns
Registration, sign-in, profiles, contacts, and group detailsClient connections, message routing, and realtime delivery
Group membership, roles, content policy, and moderationPer-channel order, persistence, and offline synchronization
Product-token issuance, risk controls, and mobile pushOnline device connections and UID-scoped conversation data

An application-developer reading path

Core Concepts explains product semantics. For nodes, Slots, Leaders, replicas, and failover, go to Server Architecture.

Explore each concept

With these concepts in place, run the Quick Start and exchange your first message.

On this page