Search⌘ K
AI Features

PubSub

Explore how Phoenix PubSub supports scalable real-time messaging by managing topic subscriptions and broadcasting messages across nodes. Understand topic naming strategies and their impact on performance and security. This lesson helps you grasp the internal workings of PubSub, enabling effective configuration and use in real-time Phoenix applications.

Selecting a topic name

A carefully selected topic name is vital for the scalability and behavior of an application. For instance, a public Channel providing inventory updates to an e-commerce storefront could be implemented in a variety of ways:

  • inventory: This topic does not delineate between different SKUsStock Keeping Units.
  • inventory:*: This topic
...