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

Support default mode in SignalR Service emulator #1990

Open
ADH-LukeBollam opened this issue Jul 23, 2024 · 2 comments
Open

Support default mode in SignalR Service emulator #1990

ADH-LukeBollam opened this issue Jul 23, 2024 · 2 comments

Comments

@ADH-LukeBollam
Copy link

ADH-LukeBollam commented Jul 23, 2024

Is your feature request related to a problem? Please describe.

Our application consists of a main web app, and several supporting function apps. Users connect to signalr from the web app where they are assigned groups etc. The function apps send notifications to these groups when things complete.

  • When running in Azure, each service connects to SignalR Service with the same connection string and now any service can send notifications to users.
  • When running locally, we need to run it very differently. Each of the function apps needs to obtain authorization from the main application, then attempt to become a client of the main apps self-hosted SignalR. You need to write client methods for the services to call, and add more authorization to make sure only the services can call them and not users.

This means that

  1. You have to write two different solutions for the same functionality.
  2. You aren't debugging the same workflow as when you are running live so it's harder to validate that your code is working as expected.

Describe the solution you'd like

A local emulator that could run in place of the SignalR Service which supported default mode would allow apps to run exactly the same whether local or in Azure. A perfect example of this is Azurite, where you simply change the connection string and you have a fully working blob storage for debugging.

Additional context

@vicancy
Copy link
Member

vicancy commented Jul 24, 2024

How about creating a free tier SignalR service for your local runs?

@ADH-LukeBollam
Copy link
Author

It's an okay option, but a fully local development environment is preferable for a number of reasons.

  • multiple developers will connect to the same SignalR Service and start sending notifications to each other that may not make sense when no other data is shared (eg. devs have their own local database and file storage)
  • adds an online dependency to run a debug instance

@ADH-LukeBollam ADH-LukeBollam changed the title We need an emulator that supports default mode Support default mode in SignalR Service emulator Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants