Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I tell if my SignalR Backplane (Redis) is really working as it should?

I'm currently playing SignalR 2.0.3, scaling out with a BackPlane that utilizes Redis for windows http://msopentech.com/blog/2013/04/22/redis-on-windows-stable-and-reliable/

I've integrated with the appropriate SignalR.Redis package in VS.

I made the following changes to my startup:

   GlobalHost.DependencyResolver.UseRedis(
        server: "localhost",
        port: 6379,
        password: string.Empty,
        eventKey: "BroadcasterExample"
        );
    app.MapSignalR(hubConfiguration);

It builds fine. My client appear to connect OK. I can send notifications between client & server and visa versa.

From the Redis-client, I can enter:

get BroadcasterExample
which returns: "3"

I assume that things are working, but...

A couple of question: 1) How can I tell that is actually working?

2) What can I examine on the Redis server (though the Redis-client)?

3) What is getting stored in what data structures (key/value pairs, lists, hashes, sets)?

I would like a little more in depth view as to what is going on. I've looked at the commands on: http://redis.io/commands Nothing is jumping out at me which will help me map what's really going on.

Can someone point me in the right direction here?

Thanks, JohnB

like image 410
JohnB Avatar asked May 15 '14 22:05

JohnB


1 Answers

1) I believe you have already verified that it was working when you ran "get BroadcasterExample" and it returned "3". BroadcasterExample is the name of the channel that SignalR will send messages over and I believe the 3 represents the number of messages that have been processed. As you send more messages with SignalR you should see that number increment.

2) A good way to tell that things are working is to subscribe to the BroadcasterExample channel with the redis client and watch the messages come through. From the client, run:

subscribe BroadcasterExample

3) SignalR will probably just store that one key, the "BroadcasterExample" key. SignalR is really just using the publish/subscribe functionality of Redis, not storing any data.

like image 166
jaggedaz Avatar answered Nov 01 '22 18:11

jaggedaz