TheDruidsKeeper
TheDruidsKeeper

Reputation: 325

ServiceStack Pub/Sub via Api

Is it possible to set up a pubsub via an api? I'm planning on using redis, but I don't want to expose it to the WWW (a security concern). I'd like to have subscribers come in via my Api so I can handle authentication & authorization, but I'm not sure if that's possible? Could I use something like SignalR to have a client subscribe to the bus via the api?

Upvotes: 1

Views: 448

Answers (1)

mythz
mythz

Reputation: 143284

You can use ServiceStack Server Events to enable pub/sub real-time notifications over the Internet. It includes an JavaScript client for enabling real-time notifications to Ajax clients as well as a typed .NET Server Events Client for real-time notifications for C#/.NET PCL Clients, including support for Xamarin.Android and Xamarin.iOS clients.

By default it uses an In Memory Server Events implementation but there's also a Redis-server backed Server Events drop-in replacement which will enable subscriptions to the same channel over multiple load-balanced app servers.

The Server Event Examples contains several examples and Live Demos showcasing real-time notifications possible using Server Events.

Upvotes: 1

Related Questions