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

Поделиться
HTML-код
  • Опубликовано: 13 июл 2024
  • .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.microsoft.com/dotnet/as...
    Tutorial: learn.microsoft.com/dotnet/as...
    Garnet: github.com/microsoft/garnet
    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! - jamesmontemagno.myspreadshop....
    ☕️ Buy me a coffee - www.buymeacoffee.com/jamesmon...
    Follow:
    👨‍💻 GitHub: github.com/jamesmontemagno
    🦜 Twitter: / jamesmontemagno
    📄 Website: www.montemagno.com
    📰 Newsletter: newsletter.montemagno.com/
    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.myshopify.com/
    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
  • НаукаНаука

Комментарии • 53

  • @benjsoft
    @benjsoft 2 месяца назад +7

    Thanks James, your demo makes .NET Aspire interesting and easy to understand :D

  • @Mr767267
    @Mr767267 2 месяца назад +3

    This is crazy simple. Thanks for this video, as always a fantastic tutorial.

  • @alkishadjinicolaou5831
    @alkishadjinicolaou5831 2 месяца назад +1

    As always you have been excellent James! Thanks!

  • @benjsoft
    @benjsoft 2 месяца назад +8

    Hope next time you can demo how to add .NET MAUI application in .NET Aspire

  • @amit141307
    @amit141307 2 месяца назад

    Awesome James, Thanks!

  • @timur2887
    @timur2887 23 дня назад

    Very informative, thank you!

  • @danielbub
    @danielbub 2 месяца назад +6

    Great video!
    Can you make a video on how to deploy it?
    Afaik, the aspire projet reference the hardcoded .csproj file

  • @ozory
    @ozory Месяц назад

    Amazing !!!

  • @cristovaomorgado
    @cristovaomorgado 2 месяца назад

    AMAZING!

  • @LosWochos76
    @LosWochos76 Месяц назад +1

    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  Месяц назад

      You can easily use YARP for reverse proxy - see github.com/dotnet/eshop

  • @olivier0003
    @olivier0003 2 месяца назад

    What can I say ! You are the best :)

  • @krishnankuppaswamy7553
    @krishnankuppaswamy7553 Месяц назад

    This is interesting ❤

  • @appomobi
    @appomobi 2 месяца назад

    Awesome tech, awesome presentation with that zooming and nice tempo!
    How easily can we then deploy this to a self-hosted linux server?

  • @paragraut3504
    @paragraut3504 2 месяца назад +1

    Hey James, nice work. Would be great if you show the deployment process using .Net Aspire.

  • @saroshwadia
    @saroshwadia 2 месяца назад +1

    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?

  • @manusidler
    @manusidler 2 месяца назад

    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 Месяц назад

      Those packages depend solely on configuration. They are not for local development only.

  • @grant_vine
    @grant_vine 2 месяца назад

    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

  • @sacalbal
    @sacalbal 2 месяца назад +1

    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 2 месяца назад

      Use the resource id ('db') in connection string. I think he missed .WithDatabase() part.

  • @dlandi
    @dlandi 2 месяца назад

    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  2 месяца назад

      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

  • @dotnetdevni
    @dotnetdevni 2 месяца назад

    we should do a collage of all of james hair styles and beards lol 😂

  • @jportugal100
    @jportugal100 16 дней назад

    How do you publish to use a custom azure vnet?!

  • @stevehiggin
    @stevehiggin 2 месяца назад

    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 2 месяца назад +3

      The apphost project is not deployed. Service defaults are used by your applications and are deployed.

  • @AmirHosseinBagheri
    @AmirHosseinBagheri 2 месяца назад

    Do you have any videos on monorepos?

  • @CubiqleSystems
    @CubiqleSystems 2 месяца назад

    How to deploy the Aspire app to Azure. Please do a video.

  • @thiagomatu
    @thiagomatu 2 месяца назад

    Can this be used with React or other Javascript technology?

    • @JamesMontemagno
      @JamesMontemagno  2 месяца назад

      Absolutely! check this out: learn.microsoft.com/en-us/dotnet/aspire/get-started/build-aspire-apps-with-nodejs

  • @Paul-uo9sv
    @Paul-uo9sv Месяц назад

    How do we add user access/control for net Aspire for production environment?

    • @JamesMontemagno
      @JamesMontemagno  Месяц назад +1

      It’s just a .NET app so the same way as normal. Aspire just adds to your app. It isn’t a new app

  • @nerdydragon42
    @nerdydragon42 2 месяца назад +1

    Is it possible to use this with Blazor WASM?

    • @JamesMontemagno
      @JamesMontemagno  2 месяца назад +1

      Should be able to yeah

    • @nerdydragon42
      @nerdydragon42 2 месяца назад +1

      @JamesMontemagno sorry meant WASM Standalone, not that new one

  • @R0ckyRocket
    @R0ckyRocket 2 месяца назад

    How do you deploy it? Will it automatically deploy all the services?

    • @JamesMontemagno
      @JamesMontemagno  2 месяца назад

      Will have a video soon but check the docs to show you deployments

  • @zoiobnu
    @zoiobnu 2 месяца назад +1

    Can i add Aspire to a .NET app that is hosted at AWS or Azure ?

    • @JamesMontemagno
      @JamesMontemagno  2 месяца назад +1

      Yup, they added CDK support in the latest preview

    • @sigma_z
      @sigma_z 26 дней назад

      I think you will lose a few features hosting with AWS than with Azure.

  • @xBodro
    @xBodro 6 дней назад

    It's unfortunate that you have to add specific to aspire packages to your projects

  • @ramasamynagappan7586
    @ramasamynagappan7586 2 месяца назад

    But you didn't explain how to access those containers in backemd app.

    • @JamesMontemagno
      @JamesMontemagno  2 месяца назад

      Each component is documented and I showed how to add the component via nuget. Will be in my next video