Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrating custom Socket.io adapter to alfred #4933

Merged

Conversation

hedasilv
Copy link
Contributor

A custom Socket.IO adapter was implemented in #4596 - "Add custom Redis socket.io adapter". The custom adapter is based on Redis and brings interesting features such as performance improvements and support for telemetry.

In this PR, I am integrating the custom adapter to Alfred. That also involved creating simple wrappers around Redis client connections so that we could implement the pub/sub Redis connection interfaces required by the custom adapter.

This work involved changing SocketIoWebServerFactory and related classes, which not only affect Routerlicious/Alfred, but also Gateway, which depends on Services-Shared. But Gateway is an example host and performance improvements there might not be necessary at this point. So I did not update it. Still, the new parameters required in SocketIoWebServerFactory and similar are all optional, so Gateway should continue working as-is and can be easily updated in the future to use the custom Socket.IO adapter. (Note: that would require changing Gateway's config.json, runnerFactory and Helm charts).

@tanviraumi tanviraumi merged commit e68c70b into microsoft:main Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants