New extension: Pub/Sub (Redis)

The next extension for the Redis challenge is now live: Pub/Sub.

The Publish/Subscribe paradigm enables senders to publish messages to channels without targeting specific recipients, allowing subscribers to receive only the messages they care about, while keeping both sides loosely coupled.

By the end of this extension, your Redis implementation will support:

  • SUBSCRIBE to one or more channels
  • PUBLISH messages to channels
  • Delivering messages to all subscribed clients

Here’s the stage breakdown:

Please give this a try and let us know how it can be improved! @UdeshyaDhungana (author of this extension) and I will be available here to help out with any tester or instruction-related issues.

1 Like

I think the 4th stage of this extension has a mistake in the syntax of expected response(a resp array), checkout my comment under the task(#LF1) please

Hey @Ahbar1999, the final CRLF is part of the empty string:

Similarly, 2\r\n$5\r\nhello\r\n$5\r\nworld\r\n breaks down like this:

2\r\n

$5\r\n
hello\r\n

$5\r\n
world\r\n

Fun comment in the Redis tests:

oh got it thanks

1 Like

Great extension

3 Likes