Skip to content

Commit c20e4ac

Browse files
docs: show support of Socket.IO on Azure (#403)
Co-authored-by: Kevin Guo <[email protected]>
1 parent c8ef9be commit c20e4ac

File tree

3 files changed

+42
-1
lines changed

3 files changed

+42
-1
lines changed

blog/2023-08-23-socketio-on-azure.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
title: Socket.IO on Azure
3+
slug: /socket-io-on-azure-preview/
4+
authors:
5+
- kevinguo-ed
6+
---
7+
- [Overview of Socket.IO support on Azure](https://learn.microsoft.com/azure/azure-web-pubsub/socketio-overview)
8+
- [Quickstarts of hosting a Socket.IO app on Azure](https://learn.microsoft.com/azure/azure-web-pubsub/socketio-quickstart)
9+
10+
Hello developers,
11+
12+
Since we put up an invitation to participate in a user study, we collected **hundreds of responses** and had the chance to speak in depth with several Socket.IO users. Thank you for your interest in the user study and helping us understand your experience.
13+
14+
In this post, I am going to share with you some notable learnings from the study. It’s our hope that such sharing can shed light on how we can build a stronger community as Socket.IO users, contributors, and cloud providers.
15+
16+
<!--truncate-->
17+
18+
## Socket.IO is used in a wide range of app scenarios
19+
We were pleasantly surprised by the variety of applications built using Socket.IO. Although a fair number of users reported building chat apps using Socket.IO, many shared that they use Socket.IO for identity management to limit the number of active browser tabs, for robotics to control the movement of mobile robots, for multi-player mobile games and for collaborative apps where users can track work items in real-time.
20+
21+
## Overwhelmingly, users enjoy the “intuitive APIs”
22+
Users seem to have exhausted the synonyms for “intuitive” in their responses. Once users have gone over the initial learning curve, it doesn’t take long before they can get productive with Socket.IO’s APIs, which are described as “simple”, “easy” and “plain”. Plains APIs are definitely a praise in this case.
23+
24+
## Some users seem to have doubts about Socket.IO’s viability for large projects
25+
Users new to Socket.IO seem to have the impression that Socket.IO is for small-scale and toy projects and it would be necessary to find alternatives when an app needs to scale. I am happy to report that impression doesn’t reflect the reality; a few Socket.IO users shared that their apps handled 10s of thousand concurrent connections well, powered by running multiple Socket.IO instances behind a load balancer.
26+
27+
## Scaling out a Socket.IO is where developers report the most pain
28+
Scaling out a Socket.IO app requires a multi-server setup. Essentially, client connections are spread across several Socket.IO server instances. To emit an event to clients connected with different server instances, there needs to be a component to coordinate the message passing. While simple in broad-stroke description, implementation is not particularly straight-forward or familiar to most users. Deploying and maintaining a separate adapter component add additional complexity to the task.
29+
30+
This is an area where we studied the most and thought we could bring the most value to developers. I am happy to share with you that with the input from the open-source community, we brought support for Socket.IO on Azure. With this support, Azure hosts and manages client connections; in other words, developers don’t need an “adapter” component.
31+
32+
What’s more important is that server and client apps continue using the **same and familiar Socket.IO APIs**. With only a few lines of code, you can get any socket.io apps running locally to Azure. You can learn more about the support and try it out for free by following the links below.
33+
34+
- [Overview of Socket.IO support on Azure](https://learn.microsoft.com/azure/azure-web-pubsub/socketio-overview)
35+
- [Quickstarts of hosting a Socket.IO app on Azure](https://learn.microsoft.com/azure/azure-web-pubsub/socketio-quickstart)

blog/authors.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,9 @@ darrachequesne:
99
title: Maintainer of Socket.IO
1010
url: https://github.com/darrachequesne
1111
image_url: https://github.com/darrachequesne.png
12+
13+
kevinguo-ed:
14+
name: Kevin Guo
15+
title: Product Manager at Microsoft | Support for Socket.IO on Azure
16+
url: https://github.com/kevinguo-ed
17+
image_url: https://github.com/kevinguo-ed.png

docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ module.exports = {
215215
},
216216
announcementBar: {
217217
content:
218-
'📣 📣 📣 Participate in paid</strong> user research to help Azure build the most productive cloud. <a target="_blank" rel="noopener noreferrer" href="https://microsoft.qualtrics.com/jfe/form/SV_4NmtotjrO4tJtki">Learn more</a>',
218+
'Thank you for your interest in the user study, aimed at providing better support for Socket.IO users on Azure. <a target="_blank" rel="noopener noreferrer" href="https://socket.io/blog/socket-io-on-azure-preview/"> Read our findings</a> from the hundreds of responses and learn about how Azure can help with scaling out Socket.IO apps easily.',
219219
backgroundColor: "#25c2a0",
220220
textColor: "#fff",
221221
isCloseable: false,

0 commit comments

Comments
 (0)