Microsoft Previews Azure Web PubSub
Written by Alex Denham   
Thursday, 06 May 2021

Microsoft has announced the preview of the Azure Web PubSub service, a way to build real-time web applications with WebSockets.

WebSocket is a protocol that provides bidirectional full-duplex communication over HTTP through a single TCP/IP socket connection. WebSocket is widely used for developing real-time web interactions.  Azure Web PubSub lets developers use WebSockets and the publish-subscribe pattern to build real-time web applications.

azfunc2

The Azure Web PubSub service is fully managed and handles hosting, scalability, and load balancing.It provides built-in support for large-scale client connections and highly available architectures, according to Microsoft.

The Azure Web PubSub service supports native WebSocket and programming languages including C#, Python, and Java through WebSocket APIs.

In addition to the raw WebSocket support, the service also supports the json.webpubsub.azure.v1 subprotocol, which means clients can publish-subscribe effectively without routing data between service and backend server code. The example given is of a cross-platform live chatting app where the backend server code (a Web App or Function) may need to parse the client message for natural language processing, sentiment analysis, and other AI-enabled functionalities. Action events such as read receipt, however, don’t have to be routed through the Web App or Function, so the client would send the events to targets directly through the Azure Web PubSub service using the subprotocol.

The service is also natively integrated with Azure Functions and can be used to build serverless applications in C#, JavaScript, Python, and Java using WebSockets. Such serverless apps for real-time applications using Azure Functions and Azure Web PubSub service can be written using less code, require less infrastructure, and save on costs.

The new service is available using a free tier that can be used with one unit and applications with up to 20 connections per unit and 20,000 messages per unit per day.

 azfunc2

More Information

Azure Web PubSub 

Related Articles

Learn How To Do Java On Azure  

Azure Functions 3.0 Goes Live

Microsoft Adds New Azure SDKs

Azure Functions 2 Supports More Platforms

Azure Functions For Serverless Computing

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


Meta Releases OpenSource Podcast Generating Tool
28/11/2024

Meta has released an open source project that can be used to automatically convert a PDF file into a podcast. Meta says Notebook Llama can be considered an open-source version of Google's NotebookLM.

 [ ... ]



Pico 2W Announced But There Is A Surprise!
25/11/2024

Raspberry Pi released the Pico 2 a few months ago and we have been waiting for the Pico 2W since then. But Pimoroni beat them to the draw with the Pico Plus 2W based on the RM2 radio module and hinted [ ... ]


More News

espbook

 

Comments




or email your comment to: comments@i-programmer.info