Skip to content

> I have seen no indications of this being addressed: There should be an automatic, native and super efficient way of making function calls between the client and the server. #47703

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

Closed
Bartolomeus-649 opened this issue Apr 14, 2023 · 1 comment
Labels
area-blazor Includes: Blazor, Razor Components ✔️ Resolution: Duplicate Resolved as a duplicate of another issue

Comments

@Bartolomeus-649
Copy link

Bartolomeus-649 commented Apr 14, 2023

          > I have seen no indications of this being addressed: There should be an automatic, native and super efficient way of making function calls between the client and the server.

@Bartolomeus-649 That's fair. We do envision facilitating client-server data access for Blazor United apps, but it hasn't been decided yet what approach we will take, and I don't think we have a good tracking issue for this yet. There's lots to consider: What format/protocol should we use? How do we provide a strongly typed integrated .NET programming model without introducing tight coupling? How do we enable interoperability for when these endpoints aren't just for the frontend client anymore? How do we appropriately surface considerations when making network calls like network failures or latency? Is there tech we can just reuse without having to reinvent the wheel? Etc. Do you want to split this out as a separate issue and start the discussion on a proposal?

Originally posted by @danroth27 in #35358 (comment)

@danroth27

  • What format/protocol should we use? Use SignalR (or the same one you use for everything else).
    Do not invent a new second protocol that needs to be supported. It’s hard enough even for Microsoft to get support for SignalR (Ask the FrontDoor team).

  • How do we provide a strongly typed integrated .NET programming model without introducing tight coupling?
    Why is tight coupling an issue? The client and server are one thing. The server-side part and the client (WASM) side part are one unit. You should not release them as separate packages.

  • How do we enable interoperability for when these endpoints aren’t just for the frontend client anymore?
    That’s not supported. This should be exactly for the scenario where the only supported client is the WASM-project in the same VS solution. If anyone wants an open API, there are plenty of ways of doing that.

  • How do we appropriately surface considerations when making network calls like network failures or latency?
    This is all built into SignalR. Handle it the same way as you do any other client/server communication.

  • Is there tech we can just reuse without having to reinvent the wheel?
    Yes, use the communication platform already in use by Blazor (SignalR). No new wheels needed.

@ghost ghost added the area-signalr Includes: SignalR clients and servers label Apr 14, 2023
@mitchdenny mitchdenny added the area-blazor Includes: Blazor, Razor Components label Apr 17, 2023
@javiercn javiercn removed the area-signalr Includes: SignalR clients and servers label Apr 17, 2023
@javiercn
Copy link
Member

@Bartolomeus-649 thanks for contacting us.

This is a dupe of #46400

@javiercn javiercn added the ✔️ Resolution: Duplicate Resolved as a duplicate of another issue label Apr 17, 2023
@javiercn javiercn closed this as not planned Won't fix, can't repro, duplicate, stale Apr 17, 2023
@ghost ghost locked as resolved and limited conversation to collaborators May 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components ✔️ Resolution: Duplicate Resolved as a duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants