We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Decoupling

One of the big advantages of a Pub/Sub architecture over a point-to-point messaging system is decoupling.

Our server publishes the "Hey, I'm pausing the game" message once to the broker, and anyone who cares can get a copy of the message in their own queue, all without the server knowing or caring who's listening.

Assignment

First, let's update the server so that it can interactively pause and resume the game.

Run and submit the CLI tests.