Simple .NET chat application with Azure Service Bus Topics and SignalR

Comments

Gravatar Image
Saket Karnik 3/26/2021 5:35:02 PM
Hi Jeffrey, Can you share the same article and code for ASP.NET Core 3.1 platform? Regards, Saket Karnik
Gravatar Image
Euan Gordon 10/17/2019 11:51:05 AM
Hi Jeffrey, Thanks a lot for the description and sample, it has really helped me get going. The MS documentation jumped from a nice quick start-up to code samples with nothing in between, your article has helped fill that void! Having now got this working, my next challenge is trying to wire up the Hub (ServiceBusTopicHub) & Service (TopicService) so that logged-in users connect only to their subscription (which is created under the topic). Thanks Euan
Gravatar Image
MC Fer 4/12/2017 5:02:00 PM
Can you post the code on git ? The topic is like a “group” in Whatsapp and the Subscriptions are like the users ? If i have a Chat with just one big group (4.000 users) and chats 1:1 , do you think the Azure standard 1 is enough ??
Gravatar Image
Jeffrey Rosselle 6/1/2017 7:32:00 PM
Code is available at https://github.com/JeffreyRosselle/net-chat-application-azure-service-bus-topics-signalr
Gravatar Image
Jeffrey Rosselle 4/12/2017 7:27:00 PM
I’ll see if I can post the code somewhere. Depending on how you configure your code, you can indeed say that a topic is a group and subscription an user. But you could also create multiple groups in one topic and filter them out with the subscription filter. In the example above the subscription is set to get all messages. But if you use the subscription filter you could say that the topic is just a processor and the subscription is the group. Also multiple users can “subscribe” to the same subscription. So in the end you could subscribe all your 4.000 user to one “group chat”-subscription and then create a subscription for each 1:1 chat. Keep in mind though that you can only create 2.000 subscriptions, so you’ll have to delete every subscription when a chat ends. More info on the limitations can be found here: https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-quotas I think the standard 1 should be enough, but you should check out the Azure Calculator to see if stuff doens’t get to expensive for you: https://azure.microsoft.com/en-us/pricing/calculator/
Gravatar Image
Merrick Lance 3/17/2017 10:47:00 AM
Please, what is ServiceBusTopicHub?
Gravatar Image
Jeffrey Rosselle 3/21/2017 9:31:00 AM
My apologies Merrick, ServiceBusTopicHub should have been changed to ChatHub. This was error from my part since I forgot the edit the piece of code. Code has now been changed to correct name.
Gravatar Image
Vijay 3/16/2021 3:11:52 PM
Hi