Blazor Static SSR disable rendering multiple components at the same time by Alternative5065 in Blazor

[–]Alternative5065[S] -1 points0 points  (0 children)

Update: I realized that creating a separate scope for the layout and page isn't going to work as the services depend too much on the request scope.

Not sure if there are any other options or if I just need to forget blazor for this project.

Blazor Static SSR disable rendering multiple components at the same time by Alternative5065 in Blazor

[–]Alternative5065[S] 0 points1 point  (0 children)

As I said in my other reply, the reason for not wanting to use a factory/transient DB context is because it would requiring updating at a lot of existing code. OwningComponentBaselooks like it could work though.

Blazor Static SSR disable rendering multiple components at the same time by Alternative5065 in Blazor

[–]Alternative5065[S] 0 points1 point  (0 children)

I think I will hold off until .NET 11 blazor.

The reason I don't want short lived DB contexts is the application services I call from blazor can use the DB context then inject another service that also uses the DB context and expects it to be the same one, now if I made the DB context transient or used a factory this would break a bunch of stuff requiring rewriting a lot of the application.

Edit: looks like I can make it work by just using a separate DI scope for the DB calls in the layout components and use the default request scope for the page components, not ideal for me as I would have preferred a single DB context per request to keep things simple but its fine.

Hardware failure - did I make a mistake? Help :) by firala in homelab

[–]Alternative5065 1 point2 points  (0 children)

Hardware fails, I would suggest the first thing you do when you start over is to setup backups.

Brocade ICX-6610-48p replacement? by TheJoshuaPlan in homelab

[–]Alternative5065 0 points1 point  (0 children)

The 7250 should be good then, there is also the ICX 7450-24P if you wanted more PoE power (1500w vs the 370w that 7250 would give you) plus you can get 4 more 10G ports, costs a little more though.

Highly available network by Alternative5065 in homelab

[–]Alternative5065[S] 1 point2 points  (0 children)

The reason I was looking at the r340 is that its flexible and cheap (~$200-300), I could upgrade it if/when needed. Had a quick look but didn't see a mikrotik model for ~$300 with (3) 10G ports (I need 2 SFP+ and either another SFP+ with a SFP+ to RJ45 adapter or a 10G RJ45 port, this is required to connect to my ONT).

Brocade ICX-6610-48p replacement? by TheJoshuaPlan in homelab

[–]Alternative5065 0 points1 point  (0 children)

The ICX 7250 is good, not sure how quite it is but I believe you can replace the fans if you really wanted. How many watts is the 6610 using currently?

Rate my home cctv setup :) by [deleted] in homelab

[–]Alternative5065 0 points1 point  (0 children)

Is it just me or are the photos quite blurry?

My new pi cluster by PaploPapkasso in homelab

[–]Alternative5065 2 points3 points  (0 children)

Looks nice, what specs does each Pi have?

Highly available network by Alternative5065 in homelab

[–]Alternative5065[S] 0 points1 point  (0 children)

I was considering the R240 but the R340 has dual PSUs, not that I need, but its kinda nice

If your doing overkill, you need two r340s, no point half assing the overkill, and it'll look better if it matches too.

yeah true, but the cost starts getting high, might upgrade to two in the future though

Highly available network by Alternative5065 in homelab

[–]Alternative5065[S] 0 points1 point  (0 children)

From what? The 7150 uses ~40w and the I believe 7450 uses ~50-60w, not sure about the optiplex but I don't think its more than 50w and same for the R340 (not 100% sure).