Skip to content
Bahadir Cambel edited this page Jul 31, 2014 · 5 revisions

A story is an event that happened within the network which consist of one or more actors and a action.

Some examples could be

User A follows User B
User A mentions User B
User A stars a project
User A posts a message
User A starts a discussion
User A joined network

These are currently available event types.

Whenever a feed is requested, the feed will be populated from the available stories.

Cassandra DB will contain the story object with the following fields

class Story(MBase):
    # a generated id
    id = columns.BigInt(primary_key=True)
    # the grand master of the event; who created it.
    actor = columns.Integer(partition_key=True)
    # event type
    type = columns.Integer(required=True)
    # Could be any of these: discussion_id, user_id, project_id, message_id
    target = columns.BigInt()
    # extra values get into the map.
    payload = columns.Map(columns.Ascii, columns.Ascii)
    created_at = columns.BigInt()

Stories will be populated into user streams via push model. Whenever a story is created, all the followers of the actor(creator) will receive the story-id into their feed.

[X] Post a message
[X] Upvote a message
[X] Follow user

Clone this wiki locally