webserver switched from axon to redis subscribe, so change this to redis publish · Issue #1 · codeschool/WatchUsBuild-ImageStreamingAppWithNodePubSubServer · GitHub
Skip to content
This repository was archived by the owner on Jul 15, 2021. It is now read-only.
This repository was archived by the owner on Jul 15, 2021. It is now read-only.

webserver switched from axon to redis subscribe, so change this to redis publish #1

Description

@cataquil

in models.badges.js

replace the socket.send command
in exports.send with

redis.publish('badge',JSON.stringify(badge));

or you can replace it in the lib file.

After watching the video and typing the code by hand then seeing something different on github, I was definately surprised when cloning both webserver and pubsub samples from github fresh, still didn't update in realtime when running the producer script.

sure its 18 months old and nobody cares, but if it helps, you will probably update the materials at some point so I thought it would be good to make a record of it. redis pub-sub must be better for pubsub, because just 1 library, while axon more for is for queue based messaging.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions