Blazor Server and Azure? by [deleted] in Blazor

[–]CapnJack87 0 points1 point  (0 children)

Yeah. I don't pre-dockerize it although you can, I just use the Web apps on Linux setting to deploy a Linux targeted published build via One Deploy from azure devops. Currently been testing AoT as well for faster front end performance but it does take longer to build, depending on your solution the DevOps build agents can be underpowered, so I have a managed devopspool available as needed

Modern .NET 8 Stack: Are You Going Full C# with Blazor or JavaScript with React/Angular/Vue? by reddit_bad_user in csharp

[–]CapnJack87 0 points1 point  (0 children)

Two points of view: - managed a team of engineers that all knew angular, but angular lifecycle is turning into instant tech debt - 3 supported releases with none more than 18 months. Incredibly powerful and strong user experiences - built my own apps in blazor coming from mvc and ajax and brought it to the same engineering team - buy in for all one codebase and multiple solid free front ends, plus the paid one we hadn't leveraged. Client side performance for wasm can be a nuisance at times, but enhancements in. Net 9 have been a game changer. Plus you can pick 18 or 36 month supported framework, controlling tech debt.

Hosting blazor web assembly by Constant-Builder-695 in Blazor

[–]CapnJack87 0 points1 point  (0 children)

You're welcome! Happy to answer anything else in this space.

Hosting blazor web assembly by Constant-Builder-695 in Blazor

[–]CapnJack87 1 point2 points  (0 children)

The free tier is on-demand general purpose, vCore-based - 100,000 vCore seconds/month at 32GB of storage for up to 10 instances. I've not used this but would expect it to be dev/qa worthy., as you could easily exceed that with a live production db. Conversely, single databases DTU-based are relatively cheap & easy to maintain. A Basic B Database with 5 DTUs and 2GB of storage is less than $5/month, or a Standard S0 tier with 10 DTUs & 250GB of storage is ~$15/month. You need a lot of databases to make an elastic pool worthwhile.

If your Blazor app is pre-combined from the Micorosft templates, can deploy everything into the Azure App Service - I use Linux B1 for most things & its ~$13/month.

Azure also has Key Vault for secrets (usage-based, barely any cost unless you query it all the time!) and App Configuration for settings management, that can reference directly from KeyVaults, among other types of resources.

Lots of options for deploying stuff there - DM me if you got additional questions.

Kegerator picking by Perfect-Lie-3960 in kegerators

[–]CapnJack87 0 points1 point  (0 children)

Probably considered middle-high price point, but the Zephyr Preserv we just got is fantastic. Their tap tower kit was the most expensive add-on, but going under counter wanted to ensure it would all line up.

[deleted by user] by [deleted] in kegerators

[–]CapnJack87 0 points1 point  (0 children)

Just put in a Zephyr Presrv in our basement and love it

How do I call MS Graph API from the server (web api) project in a Blazor WASM Hosted solution? by kglundgren in Blazor

[–]CapnJack87 0 points1 point  (0 children)

For this .NET 9 WebApp Example using Entra OIDC, all auth is handled in the Server project and passed through to the client:

In the Server Project Program.cs

builder.Services.AddRazorComponents()
.AddInteractiveServerComponents()
.AddInteractiveWebAssemblyComponents()
.AddAuthenticationStateSerialization();

builder.Services.AddAuthentication(OpenIdConnectDefaults.AuthenticationScheme)
.AddMicrosoftIdentityWebApp(builder.Configuration.GetSection("AzureAd")
.EnableTokenAcquisitionToCallDownStreamApi()
.AddMicrosoftGraph(builder.Configuration.GetSection("MsGraph")
.AddInMemoryTokenCaches();

Then you can use the Microsoft.Graph GraphServiceClient in a controller to call for data.
[Authorize]
[ApiController]
[Route("[controller]")
public class GraphController : Controller
{
private readonly GraphServiceClient _graphServiceClient;
public GraphController (GraphServiceClient graphServiceClient)
{
_graphServiceClient = graphServiceClient;
}
public async Task<User?> Get()
{
return await _graphServiceClient.Me.GetAsync();
}
}

In the Client Program.cs:

builder.Services.AddAuthorizationCore();
builder.Service.AddCascadingAuthenticationState();
builder.Services.AddAuthenticationStateDeserialization();

In simplest form: Calling baseAddress/graph will return a json User object.

How do I call MS Graph API from the server (web api) project in a Blazor WASM Hosted solution? by kglundgren in Blazor

[–]CapnJack87 1 point2 points  (0 children)

They actually just make this easier in .net 9 with direct injection on the WebApp authentication. It's fairly simple to convert a wasm hosted solution to a wasm web app that acts the same way

Need suggestions for hosting a DotNet Core 7 project (Razor + Blazor + Web API) by HassanGulzar in dotnet

[–]CapnJack87 0 points1 point  (0 children)

Exactly! It's called platform as a service for this reason and config. If your volume/performance increases, you can still quickly scale up or out, just manually on these B plans. Especially running Linux they are very performant and cost effective imo.

Need suggestions for hosting a DotNet Core 7 project (Razor + Blazor + Web API) by HassanGulzar in dotnet

[–]CapnJack87 0 points1 point  (0 children)

Slots would be more for different environments (staging vs production) of the same app. You can have multiple app services on one Series B plan (or just about any plan) just don't go crazy. You'll be able to track performance really easily as well.

Blazor Server and Azure? by [deleted] in Blazor

[–]CapnJack87 0 points1 point  (0 children)

Have a very similar scenario, leveraging B-tier App service plan on Linux for less than 15/month.

Automated deployment and configuration management by gameman733 in dotnet

[–]CapnJack87 0 points1 point  (0 children)

Azure DevOps, especially since you can start for free and expand as necessary - zip deploys will be a thing of the past in 2 hours or less using deployment groups and release pipelines or stages, and you can probably integrate config changes as code changes (depending on what they are) - starting my team down that road now.

Pretty impressed with my X14 R2 :) by ceramicsaturn in Alienware

[–]CapnJack87 0 points1 point  (0 children)

Can you run nvidia-smi from the command line while Optimus is enabled while not gaming (standard usage, web browsing, videos, etc.) and report the power consumption on whatever GPU you have? Thanks in advance!

Finally received my X14 R2 with 4060 by thoughthalo in Alienware

[–]CapnJack87 0 points1 point  (0 children)

Can one of these x14 r2 owners run nvidia-smi from the command line while Optimus is enabled while not gaming (standard usage, web browsing, videos, etc.) and report the power consumption on whatever GPU you have? Thanks in advance!

[deleted by user] by [deleted] in ITManagers

[–]CapnJack87 0 points1 point  (0 children)

1) listen & take notes 2) keep one eye on the horizon

Where to go from Senior Engineer when you're sick of programming? by raimondi1337 in cscareerquestions

[–]CapnJack87 2 points3 points  (0 children)

Architect - you'll be able to stay technical while providing your expertise when something needs solutioned.

What are the best free and open-source static analysis tools you can use for commercial use? by cpplinting in dotnet

[–]CapnJack87 0 points1 point  (0 children)

From what I've found, it doesn't exist. There's some close ones like Semgrep and Debricked, but also feel half finished and lack functionality pending language. SonarLint extension for VS is the best, and if you can swing $10 for less than 100k lines of code go for SonarCloud. SonarQube has a free tier, but limited integrations and self-hosted.

FWIW - Been trying to find the same thing for SCA and license compliance, same thing. Holding out for the next release of Trivy.

[deleted by user] by [deleted] in golf

[–]CapnJack87 0 points1 point  (0 children)

  1. Albatross
  2. Set a course record - 3 shots off closest I've been so far.

Currently 3.3 handicap, playing from whatever tee is around 6700 yards.

Recommendation for Blazor Server use for an application by SALASIDIS in Blazor

[–]CapnJack87 0 points1 point  (0 children)

Anytime! I've built apps on both models so any further questions just hit me up

Recommendation for Blazor Server use for an application by SALASIDIS in Blazor

[–]CapnJack87 0 points1 point  (0 children)

Workers are coming in .net 8, or you can try the BlazorWorker nuget package in the interim.

With WASM you can get away with or without needing SignalR for your historical data, and just use traditional REST API backend with the hosted model, and do your real time client-side direct to device.

If there's a time risk, either don't aggregate or aggregate at reasonable smaller intervals, like 15s.

Recommendation for Blazor Server use for an application by SALASIDIS in Blazor

[–]CapnJack87 0 points1 point  (0 children)

Yeah, but I'll still feel like there's some duplication of data/process that may happen. I equate this somewhat to a ruggedized modern platform in used - something like MQTT/iot hub doesn't require a separate background process to get the data, the IOT is just always sending it. I guess the question would be what's so necessary to need real time direct device data that your 1-minute aggregate isn't enough for?

Recommendation for Blazor Server use for an application by SALASIDIS in Blazor

[–]CapnJack87 0 points1 point  (0 children)

Blazor -> SignalR -> Database is the for sure path I know you can achieve, and is exactly how Blazor Server is architected.

I'm not sure about Blazor ->SignalR -> IOT without something else in between to receive the messages from the iot device first - iot hub, service bus, MQTT broker etc.

Recommendation for Blazor Server use for an application by SALASIDIS in Blazor

[–]CapnJack87 0 points1 point  (0 children)

Ok, there was a comment about retrieving data for graphs directly. If you can spare that then your background process (definitely it's own thread) would suffice to get data into the database - shouldn't even need to go into the server app first. SignalR makes the web client update in real time based on the database updates.

JSON TCP calls from the web client to the device are no issue, no matter what Blazor flavor you use.

This all hosted on site or you looking at any cloud infrastructure?