News for hackers. Stuff that matters.
Re:Single Page Applications using Rust by bob1029 on Tuesday August 11, 2020 @07:23PM (#24127110)
Productivity is the biggest appeal. 99% of our experience with Blazor involves writing some Razor-blessed HTML, taking dependency on state services and plugging things into DI. Our existing business services are simply consumed by the UI state services, so there isn't even any code involved for wiring this part up aside from some AddScoped<T>() calls in your bootstrapping code.

Things that we do not worry about anymore: Javascript, controllers, CORS, JSON, HTTP status codes, API documentation, 3rd party dependencies.

I say we don't worry about javascript and that is true, but I want to be clear that there is still a tiny amount of javascript involved. We do maintain a single "BlazorExtensions.js" file which covers all js interop needs across the entire solution. This file is currently only 120 lines long. So, while we do have javascript, we absolutely do not lose sleep over it anymore.

Re:Single Page Applications using Rust by stuartd on Tuesday August 11, 2020 @07:47PM (#24127260)
> Things that we do not worry about anymore: Javascript, controllers, CORS, JSON, HTTP status codes, API documentation, 3rd party dependencies.

That's a good looking list of things not to worry about. Especially CORS, the bane of my life.. the fact it's pre-flight has caused me so many problems in my (tiny) UI responsibility.

Re:Single Page Applications using Rust by bob1029 on Tuesday August 11, 2020 @07:55PM (#24127302)
I've lost approximately a week of my life to it. Never again.
Re:Single Page Applications using Rust by nicoburns on Wednesday August 12, 2020 @10:34AM (#24132398)
How does Blazor avoid CORS issues? It's still running client-side, right? And thus would be subject to the same CORS restrictions as JavaScript.
Re:Single Page Applications using Rust by Nelkins on Wednesday August 12, 2020 @09:16AM (#24131736)
How is the performance? Is this for an internal application, or a public facing one?
Re:Single Page Applications using Rust by bob1029 on Wednesday August 12, 2020 @06:08PM (#24137608)
Performance is good, but I would only use it on well-bounded target audiences. Anything over 10000 simultaneous users on a single instance would probably start to concern me. It is perfect for any internal or B2B UI you might want to build.

That said, combine Blazor with other Microsoft magic like Orleans, and you can start to horizontally scale. Might even be possible to make Server-Side Blazor viable for mass public consumption using this approach.

Edit: It does appear this would be fairly easy to rig a test for as of latest versions of everything. Should be able to throw Blazor and Orleans on top of the same IWebHost instance.

https://devblogs.microsoft.com/dotnet/orleans-3-0/#co-hostin...