Best practices for implementing Notifications and Streaming (Gen AI-enabled chats) in Blazor Web App

Manoj Ganapathi 0 Reputation points
2025-01-11T13:56:34.58+00:00

Need some architectural guidance.

I am building a B2C solution using Blazor Web App model. The entire stack is C# and runs on Azure. I am just trying to understand some best practices for integrating the following capabilities:

  1. Push Notifications (pushed through Azure Web PubSub)
  2. Streaming of Chat responses (in a Gen AI based ChatBot)

The broad questions relating to the above:

  1. Choice of Interactive mode for each of the above scenarios. The Blazor samples for Web PubSub are purely in WASM, but can I just carry that logic to Web Apps? Any other consideration to keep in mind (other than scaling the units on the PubSub service side in Azure).
  2. Can I pool Web Socket connection effectively across these scenarios (considering that Interactive Server mode also needs one).

Is EShop the reference I can use for patterns related to my context? Any other references?

Thanks in Advance!

Azure Web PubSub
Azure Web PubSub
An Azure service that provides real-time messaging for web applications using WebSockets and the publish-subscribe pattern.
81 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,645 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.