Paul Krill
Editor at Large

Microsoft previews Azure service for building WebSocket applications

news
Apr 30, 20212 mins

Azure Web PubSub allows developers to use WebSockets and a publish-subscribe pattern to build real-time web applications such as live monitoring dashboards, live location finding, and live chat.

cloud computing 1
Credit: Client supplied

Microsoft is previewing Azure Web PubSub, an Azure cloud service for building real-time web applications using the WebSocket protocol for two-way communication.

Unveiled April 29, Azure Web PubSub enables developers to use WebSockets and a publish-subscribe pattern to build real-time web applications such as live monitoring dashboards, real-time location on maps, and cross-platform live chats.

Microsoft said Azure Web PubSub is meant to spare developers from significant infrastructure investment, setup, and maintenance tasks, allowing them to focus on user experiences. Implementing a WebSocket-based real-time experience would otherwise require a developer to set up infrastructure to handle client connections, establish mechanisms for on-demand scaling, and ensure business SLA requirements are met.

Furthermore, real-time scenarios often need high-frequency data flows and large volumes of concurrent connections between the client and server, Microsoft said. The Azure Web PubSub service supports large-scale client connections and highly available architectures, letting developers focus on application logic for real-time connected experiences.

To get started with Azure Web PubSub, developers can go to docs.microsoft.com. Native WebSocket is supported along with languages including C#, Java, and Python, via WebSocket APIs. The service also supports the json.webpubsub.azure.v1 subprotocol, enabling clients to use publish-subscribe without routing data between the service and back-end server code.

Azure Web PubSub is integrated with Azure Functions for building serverless applications in C#, JavaScript, Python, and Java. For example, developers could use Azure Functions to process location data from IoT devices and then use Azure Web PubSub to broadcast location data to dashboard clients and visualize real-time location information.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author