r/Blazor
•
u/megadonkeyx
•
Feb 10 '22
•
1
Two weeks of blazor.. I'm sold
Have been doing development since the 90s and generally have always found the mix of js, html, css and c# to be laborious.
Even react which I find to be the least annoying js framework is painful. Most of the time I would just go back to html, css and jquery to get stuff done quicker.
But blazor, wow, just doing server side blazor for two weeks and I'm making stuff with such little faff. Everything works so painlessly.
Using radzen ui components but not their ide, this is seriously impressive stuff.
Has anyone tested how well server side blazor scales when using azure signalr service? . Now I have used this there's no going back.
10
u/lux44 Feb 11 '22
Dan Roth had a blog post a couple of years ago, IIRC they could serve over 20 000 clients and ran out of RAM of the VM, not CPU.
8
u/BoredBSEE Feb 11 '22
You bet.
Your quote about "js, html, css and c# to be laborious" is 100% spot-on.
Javascript is annoying, and patching it all together with all these other things and frameworks and other crap to make it vaguely useful is tedious and unintuitive.
Blazor is a neat streamlined experience that uses only one language geared to get one result. It's WAY better.
Edit: And oh yeah, Radzen is wonderful as well. Lots of the work of making an application is already done for you. Radzen FTW.
13
u/mjhillman Feb 11 '22
I’m with you. Never going back.
4
u/similiarintrests Feb 11 '22
Hell even using server side for some of our public facing portals, pick your favorite UI pack and off you go. Development speed as C# dev is just insane.
If you dont know JS like the back of your hand then dont bother with imo
3
u/AperiodicCoder Feb 13 '22
And as a team that’s been working on a big Blazor project for over 2 years, refactoring is a pleasure! I’ve done some major refactors I’d shudder to think about in JS.
6
u/Mordeor Feb 11 '22
Similar question about scaling Blazor server-side. Assuming you're not doing anything fancy with SignalR, what is the benefit to scaling with Azure SignalR service as opposed to just spinning up more instances of the web app? Similar to scaling a web API.
4
u/jcradio Feb 11 '22
I started with blazor server, and have now been building a few applications with wasm. Love it. They have documentation on things to consider between server and wasm. Scaling is one of the cons for server, I believe.
4
u/VkeZiV Feb 11 '22
They said on net conference that it can scale a lot
9
u/zaibuf Feb 11 '22 edited Feb 11 '22
Azure SignalR has a limit of 100 000 concurrent conections. So unless you have more than 100 000 users visiting at once it isnt an issue. But I use Blazor mostly for business apps that have 100-200 users.
6
u/Footballer_Developer Feb 11 '22
That's what I'm using BS for, mine has around 1-2k concurrent users at best and it is doing absolutely fine.
2
u/Sonos Feb 12 '22
I work for a local authority and we are rolling the beta version of the website out shortly and it's blazor server. With some sub applications that aren't. But they are using a RCL for shared components where needed. A long as it's a .net core site you can do whatever you want really.
It's so powerful
2
u/BawdyLotion Feb 11 '22
I’m in the same boat. Blazor is so comfy to work with!
You mentioned using radzen components, while I have a lot of feelings about their ide, I strongly suggest anyone doing rapid development at least test it. It’s suuuuper slick as a way to one click scaffold an existing data set to a working code base. I would argue as soon as you’re past the initial prototype you’ll probably ditch the ide side of things but it just generates a blazor project at its core so all the core functionality is still there to build off of.
Supposedly their 3.0 version will solve basically all the complaints I have with it but given it’s not had much news I won’t hold my breath on that side of it.
1
u/beingmusical Feb 16 '22
I've been using radzen controls for 2 years. They are solid and reliable. The Radzen IDE, s a great pieces of work but once you start tweaking it beyond crud, it can become cumbersome. Had to roll back too may times when changing things produced an error, so I abandoned it and just wrote by hand. It's awesome to spin up a quick nice looking CRUD app with authentication.
1
u/BawdyLotion Feb 16 '22
Completely agree. My approach has been to use it to produce a project boilerplate and then handle any more advanced page logic by hand ditching the ide past that stage.
Still wouldn’t use it in a larger project because the benefits to rapid development would be overlooked by the somewhat unique project structure I’d have to work around down the road but for smaller stuff it’s easy to just pretend the ide doesn’t exist after the scaffolding and start writing your own pages and logic in visual studio
3
4
u/dathtit Feb 11 '22
I belive in the future of blazor but at the moment it's not suitable for critical products yet. The perfomance of most UI components are just meh compare to other js UI library
9
u/similiarintrests Feb 11 '22
Not everyone is building a FAANG company.
Idea to market is sometimes more important
8
u/zaibuf Feb 11 '22
Blazor server is fine for internal apps. We use it for several admin dashboards.
5
u/grauenwolf Feb 11 '22
Given how bad typical internal business apps are, I don't think the component speed would even be noticeable. I'm used to minute plus load times just for my SAP timesheet.
1
u/beingmusical Feb 16 '22
I've been developing solo in Blazor for 2 years now. With a history that goes back to Microsoft Access 1.0. I've been working server-side since it was first out, but switching to more webassembly. So nice to not have to integrate 5 different things into an app.
1
u/Ok-Audience-8993 Feb 24 '22
It's been 4months in this technology basically a fresher. I didn't know it's that fascinating, after reading your post definitely I'm gonna try this. Any suggestions lecture videos?
1
u/L-Jaxx Jul 03 '22
I've been following Carl Franklin's Blazor Train videos on YouTube. Everything explained step by step. Check it out.
1
u/Z010X Mar 03 '22
js, css, and html not only bring pain, they also bring their estranged frameworks which contains separate venues of nodejs, npm, typescript and browser compatibilities.
.net solved those problems very well in 3.1 and even better in 6. I'll never look at js the same way again because all my years of c# under my belt got boost productivity instead of the tedious hassles of frontend work.
1
u/zenstain Mar 04 '22
Same. I had avoided it altogether, even to the point of not trying to find out what it actually is and does (I know, stupid of me). I had such negative experiences with Razor that I figured (assumed) it to be Razor 2.0. And on a new Core/Vue.js project that we started last fall, figured screw it, let's do a quick demo using Blazor. And we have not looked back at all, it is awesome.
1
u/LeighPointer Jun 04 '22
And you will not look back! I have been developing since the birth of Visual C++ and Blazor is the nuts!
1
26
u/propostor Feb 11 '22
Blazor becoming the next big thing. Hell fucking yes.
I'm working on a new internal web app at work and casually suggested MVC/jQuery was an oddly old choice for a new project. We are now writing it in Blazor and everything is just wonderful.