What is .NET Aspire? Why do you NEED it in every .NET app? How to get started in minutes!

  Рет қаралды 24,984

James Montemagno

James Montemagno

Күн бұрын

.NET Aspire is an opinionated, cloud ready stack for building observable, production ready, distributed applications, and it is AWESOME! You may have seen a lot of demos about what .NET Aspire is and how to get started with the amazing templates, but let's look at how to add .NET Aspire to an existing .NET API back-end, Blazor front-end, and then add in Redis Cache, Garnet, Open Telemetry, and Postgres!
Links:
Docs: learn.microsof...
Tutorial: learn.microsof...
Garnet: github.com/mic...
Videos: • .NET Aspire
Chapters:
00:00 - Intro & project walkthrough
02:15 - Add .NET Aspire Orchestration to .NET API
05:25 - Exploring Dashboard and Telemetry
06:58 - Add .NET Aspire to Blazor app and enable Service Discovery
12:45 - Adding Redis Cache to .NET Aspire
16:00 - Adding PostgresSQL and PgAdmin
18:30 - Adding Garnet to existing Redis Client
20:30 - Wrap-up
Join this channel to get access to perks:
/ @jamesmontemagno
👕 Buy some swag! - jamesmontemagn...
☕️ Buy me a coffee - www.buymeacoff...
Follow:
👨‍💻 GitHub: github.com/jam...
🦜 Twitter: / jamesmontemagno
📄 Website: www.montemagno...
📰 Newsletter: newsletter.mon...
Disclaimer: This channel, videos, and streams are created in my spare time and are a product of me... James Montemagno! They are NOT officially affiliated or endorsed by Microsoft (my employer) in any way. Opinions and views are my own.
What is on my hat? It is the CLE clothing logo because I am from Cleveland! Checkout their awesome CLE merch: cleclothingco....
What is that art on my wall? It is an original piece from the French street artist Gregos of La Butte Montmartre: / bcez1onhiqx
My Setup:
📷 Canon M50 Mark II - amzn.to/3P8R7lp
💡 Nanoleaf Elements Lights - amzn.to/3umwJVW
🎙 Blue Spark Microphone - amzn.to/3qgtYkq
🎙 Blue Pop Filter - amzn.to/3jEWM3r
🤳 Rode Microphone Arm - amzn.to/2Z68AlE
🎧 Sony MDR7306 Headphones - amzn.to/372jxta
📲 Stream Deck - amzn.to/373Uk1n
🖱 MX Master 2S Mouse - amzn.to/3d7J2gj
⌨️ Tecware Phantom Keyboard - amzn.to/3aUP4y9
Using links I provide I may receive a commission if you buy something which helps support the channel.
#dotnet #dotnetaspire #aspire #visualstudio #blazor #aspnetcore

Пікірлер: 57
@benjsoft
@benjsoft 3 ай бұрын
Thanks James, your demo makes .NET Aspire interesting and easy to understand :D
@JamesMontemagno
@JamesMontemagno 3 ай бұрын
Great to hear!
@benjsoft
@benjsoft 3 ай бұрын
Hope next time you can demo how to add .NET MAUI application in .NET Aspire
@Mr767267
@Mr767267 3 ай бұрын
This is crazy simple. Thanks for this video, as always a fantastic tutorial.
@LosWochos76
@LosWochos76 2 ай бұрын
That looks awesome. I would like to see more, eg using a reverse proxy like Nginx, configuring SSL with letsencrypt and deploying all that to a virtual maschine.
@JamesMontemagno
@JamesMontemagno 2 ай бұрын
You can easily use YARP for reverse proxy - see github.com/dotnet/eshop
@danielbub
@danielbub 3 ай бұрын
Great video! Can you make a video on how to deploy it? Afaik, the aspire projet reference the hardcoded .csproj file
@kabal911
@kabal911 12 күн бұрын
That's amazing. Even just for local development as a first step for adoption 👍
@alkishadjinicolaou5831
@alkishadjinicolaou5831 3 ай бұрын
As always you have been excellent James! Thanks!
@davidmasterson883
@davidmasterson883 4 күн бұрын
Nice video, but the "Add Aspire to any App" title seems odd when maui is not supported. Any chance of you doing a video on where we are with maui aspire support. I appreciate that this is a "Cloud First" technology but 95% plus maui apps need a back end and I can see how this would be very useful.
@saroshwadia
@saroshwadia 3 ай бұрын
Can we use .Net Aspire with a Azure Static Web App with Blazor WASM (Client) and Azure Functions (Api) - Will it replace GIT hub Actions?
@paragraut3504
@paragraut3504 3 ай бұрын
Hey James, nice work. Would be great if you show the deployment process using .Net Aspire.
@JamesMontemagno
@JamesMontemagno 3 ай бұрын
Coming up in future video
@timur2887
@timur2887 Ай бұрын
Very informative, thank you!
@dlandi
@dlandi 3 ай бұрын
It's all very cool. But the missing piece is the deployment to the Cloud Platform, which was the last sentence in your presentation. I realize it is a preview, but frankly, it will remain a preview until that part is demonstrable. I am looking forward to your future video covering that.
@JamesMontemagno
@JamesMontemagno 3 ай бұрын
Lots of docs: learn.microsoft.com/en-us/dotnet/aspire/deployment/overview Have a video on the way as well. Many devs will only end up using aspire for development purposes if they already had deployment setup as well, which is totally valid
@amit141307
@amit141307 3 ай бұрын
Awesome James, Thanks!
@grant_vine
@grant_vine 3 ай бұрын
Please look at an example with DAPR or any service that fails to start without a referenced service running yet (I.e. the database isn’t yet up). Or even just explain some mitigations for this scenario? Otherwise short and simple and informative video thanks
@appomobi
@appomobi 3 ай бұрын
Awesome tech, awesome presentation with that zooming and nice tempo! How easily can we then deploy this to a self-hosted linux server?
@sacalbal
@sacalbal 3 ай бұрын
Great video. A question : In your example, does this mean you can use a postgre database from your backend after having configured .net aspire ? Then, how to use it from your backend ?
@solalem2001
@solalem2001 3 ай бұрын
Use the resource id ('db') in connection string. I think he missed .WithDatabase() part.
@tsooooooo
@tsooooooo 27 күн бұрын
They should have pushed Orleans more, it's really underrated
@JamesMontemagno
@JamesMontemagno 27 күн бұрын
They are pretty different but can be used together learn.microsoft.com/en-us/dotnet/aspire/frameworks/orleans?tabs=dotnet-cli
@olivier0003
@olivier0003 3 ай бұрын
What can I say ! You are the best :)
@manusidler
@manusidler 3 ай бұрын
Great tutorial, thank you! How would you handle a scenario where Aspire is used for local development only? Do you still integrate the Aspire NuGet packages into your projects (eg. Aspire.Npgsql for Postgres)?
@davidfowl
@davidfowl 2 ай бұрын
Those packages depend solely on configuration. They are not for local development only.
@jportugal100
@jportugal100 Ай бұрын
How do you publish to use a custom azure vnet?!
@ozory
@ozory 2 ай бұрын
Amazing !!!
@dotnetdevni
@dotnetdevni 3 ай бұрын
we should do a collage of all of james hair styles and beards lol 😂
@krishnankuppaswamy7553
@krishnankuppaswamy7553 2 ай бұрын
This is interesting ❤
@cristovaomorgado
@cristovaomorgado 3 ай бұрын
AMAZING!
@stevehiggin
@stevehiggin 3 ай бұрын
Watching a video with Fowler and Edwards they say Aspire is for the local development environment only and you dont deploy anything. But you modified your two existing projects with AddServiceDefaults so now you do need to deploy the project that provides that into say production and what happens if all the ServiceDefaults are not valid for production?
@davidfowl
@davidfowl 3 ай бұрын
The apphost project is not deployed. Service defaults are used by your applications and are deployed.
@CubiqleSystems
@CubiqleSystems 3 ай бұрын
How to deploy the Aspire app to Azure. Please do a video.
@Paul-uo9sv
@Paul-uo9sv 2 ай бұрын
How do we add user access/control for net Aspire for production environment?
@JamesMontemagno
@JamesMontemagno 2 ай бұрын
It’s just a .NET app so the same way as normal. Aspire just adds to your app. It isn’t a new app
@zoiobnu
@zoiobnu 3 ай бұрын
Can i add Aspire to a .NET app that is hosted at AWS or Azure ?
@JamesMontemagno
@JamesMontemagno 3 ай бұрын
Yup, they added CDK support in the latest preview
@sigma_z
@sigma_z Ай бұрын
I think you will lose a few features hosting with AWS than with Azure.
@xBodro
@xBodro Ай бұрын
It's unfortunate that you have to add specific to aspire packages to your projects
@nerdydragon42
@nerdydragon42 3 ай бұрын
Is it possible to use this with Blazor WASM?
@JamesMontemagno
@JamesMontemagno 3 ай бұрын
Should be able to yeah
@nerdydragon42
@nerdydragon42 3 ай бұрын
@JamesMontemagno sorry meant WASM Standalone, not that new one
@thiagomatu
@thiagomatu 3 ай бұрын
Can this be used with React or other Javascript technology?
@JamesMontemagno
@JamesMontemagno 3 ай бұрын
Absolutely! check this out: learn.microsoft.com/en-us/dotnet/aspire/get-started/build-aspire-apps-with-nodejs
@R0ckyRocket
@R0ckyRocket 3 ай бұрын
How do you deploy it? Will it automatically deploy all the services?
@JamesMontemagno
@JamesMontemagno 3 ай бұрын
Will have a video soon but check the docs to show you deployments
@AmirHosseinBagheri
@AmirHosseinBagheri 3 ай бұрын
Do you have any videos on monorepos?
@JamesMontemagno
@JamesMontemagno 3 ай бұрын
I don't anything specific?
@ramasamynagappan7586
@ramasamynagappan7586 3 ай бұрын
But you didn't explain how to access those containers in backemd app.
@JamesMontemagno
@JamesMontemagno 3 ай бұрын
Each component is documented and I showed how to add the component via nuget. Will be in my next video
What Is .NET Aspire? The Insane Future of .NET!
18:35
Nick Chapsas
Рет қаралды 266 М.
My First look at .NET Aspire. What's with the Hype?
12:16
CodeOpinion
Рет қаралды 14 М.
Little brothers couldn't stay calm when they noticed a bin lorry #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 17 МЛН
Викторина от МАМЫ 🆘 | WICSUR #shorts
00:58
Бискас
Рет қаралды 6 МЛН
Parenting hacks and gadgets against mosquitoes 🦟👶
00:21
Let's GLOW!
Рет қаралды 11 МЛН
哈莉奎因以为小丑不爱她了#joker #cosplay #Harriet Quinn
00:22
佐助与鸣人
Рет қаралды 10 МЛН
Writing async/await from scratch in C# with Stephen Toub
1:06:02
Starting .NET MAUI Development in 2024 - What You Need To Know
35:18
James Montemagno
Рет қаралды 63 М.
Turns out REST APIs weren't the answer (and that's OK!)
10:38
Dylan Beattie
Рет қаралды 138 М.
I DONT USE NEXT JS
54:01
ThePrimeTime
Рет қаралды 344 М.
How .NET Aspire will save .NET (and its not about "the cloud")
8:54
Why I think .NET Aspire is Overhyped
21:16
Raw Coding
Рет қаралды 13 М.
How to become a Java Jr. Developer in 2024
20:27
Learn with Phil
Рет қаралды 70 М.
Swagger is Going Away in .NET 9!
10:48
Nick Chapsas
Рет қаралды 92 М.
POV: You Find a 🗑️ Full of iPhones ⭐
0:13
Shakeuptech
Рет қаралды 1,2 МЛН
Новая функция в Xiaomi! Apple скопирует?
0:45
ÉЖИ АКСЁНОВ
Рет қаралды 1,2 МЛН
Слетела прошивка на LiXiang L7
1:01
Настя ЧПЕК Туман
Рет қаралды 3,5 МЛН
Samsung Galaxy S24 Ultra Vs Iphone 15 Pro Max
0:56
Roanet Tech
Рет қаралды 6 МЛН