SignalR is great, but sometimes you want raw WebSockets or support for other languages (Python, Java clients). **Azure Web PubSub** is a managed WebSocket service that supports native WebSocket clients and the PubSub subprotocol.
Architecture
flowchart LR
Client1[Browser A] <-->|WS| PubSub[Azure Web PubSub]
Client2[Browser B] <-->|WS| PubSub
PubSub <-->|Webhook/Upstream| Server[Backend Server]
style PubSub fill:#E1F5FE,stroke:#0277BD
The service handles the massive concurrent connections. Your server only handles events (Connect, Message) via Webhooks.
Key Takeaways
- Supports standard `json.webpubsub.azure.v1` subprotocol.
- Ideal for cross-platform chat apps where clients are not just .NET/JS.
Discover more from C4: Container, Code, Cloud & Context
Subscribe to get the latest posts sent to your email.