Core concepts
Core concepts
Mental models for channels, state, cache, envelopes, presence, and operations.
CachePuppy combines three ideas that look similar in code but behave very differently:
- Shared topic state — one logical map per
events:<topic>room, coordinated cluster-wide. - Per-socket session state — private to a single websocket connection on the
sessionchannel. - Distributed cache tables — key/value storage accessed through HTTP or the
sessionchannel, routed through the cache layer.
The following pages explain how Phoenix channels, the wire protocol, and the SDK surface line up.