Notice: Function WP_Scripts::add was called incorrectly. The script with the handle "markdown-renderer" was enqueued with dependencies that are not registered: mermaid-js, prism-core. Please see Debugging in WordPress for more information. (This message was added in version 6.9.1.) in /home/dataadl/www/wp-includes/functions.php on line 6131

Azure Web PubSub: Real-time WebSockets

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.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.