O'Reilly logo

Programming Phoenix by Jose Valim, Bruce Tate, Chris McCord

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating the Channel

It’s time to write some code to process connections. To review what you know so far, a channel is a conversation on a topic. Our topic has an identifier of videos:video_id, where video_id is a dynamic ID matching a record in the database. In our application, we want a user to get all events for a topic, which to us means a user will get all annotations for a given video, regardless of who created them.

More generally, at their most basic level, topics are strings that serve as identifiers. They take the form of topic:subtopic, where topic is often a resource name and subtopic is often an ID.

Since topics are organizing concepts, we’ll include topics where you’d expect: as parameters to functions and in our URLs to identify ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required