What Is .NET Aspire and Why Is Everyone Talking About It?

Поделиться
HTML-код
  • Опубликовано: 10 фев 2025
  • Heard about .NET Aspire but have no clue what it is, and what it can do for you? Let me show you exactly what you have been missing out on!
    Don’t let all the buzzwords scare you. It’s a lot easier than it may sound. Throughout this video we will explore the different parts of what makes .NET Aspire. How do you make it easier for a web frontend to discover an API? How do you easily add a Redis cache to an application, or any arbitrary docker container for that matter?
    No matter if you can figure out how to get a complex solution running locally, making this process easier will save both time and money.
    .NET Aspire is really just a tool to make development easier. By providing a set of opinionated decisions, to introduce open telemetry, service discovery, http client configurations, and much more. All of this to make it a lot easier to run complex, and easy, solutions. Locally, or in the cloud!
    At the end of this video, we will take it one step further from local development to get the entire stack published to the cloud, without a lot of work at all!
    Without further ado, let’s learn about .NET Aspire!
    Follow me on X: @fekberg
    Check out my courses on Pluralsight: pluralsight.px...
    DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the links, I may receive a small commission.
    00:00: Introduction
    01:01: Aspire Starter App
    02:20: Introducing the applications
    04:19: Service Defaults
    05:40: App Host
    06:19: The Dashboard
    08:21: Output, Metrics and Traces
    09:24: Accessing the API
    10:42: Docker Containers
    11:20: Redis
    12:25: Persistent containers
    13:26: Redis as a Distributed Cache
    15:40: Hybrid Cache
    19:16: Azure Setup
    20:00: Prepare for deployment
    21:30: Deploy to Azure
    22:26: Aspire Dashboard in Azure
    23:12: Resources in Azure
    24:20: Custom Commands

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

  • @kirillnovikov8269
    @kirillnovikov8269 2 месяца назад +9

    Couldn’t understand the noise around the Aspire, but now I get it. Thank you!

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

      Awesome, you are very welcome!

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

    Trust me, The way you explained is magic. Anyone can understand so easily.

  • @5m-motivation
    @5m-motivation 2 месяца назад +4

    Thanks for helping me put this Aspire buzz in perspective.

  • @razkuff
    @razkuff Месяц назад +2

    Great video, thank you for explaining what .NET Aspire is. I will try to create a dummy project with Angular/.NET Aspire.

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

    The production-quality is OFF THE CHARTS! 👌🏻

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

    Man, Microsoft, this is some more magic unicorn stuff. I am a sucker for it though, kind of absolutely awesome. The only thing I am fearful for is the support on Aspire, it's basically going out of support every time they release a new major version (maybe it's minor, I doubt that though). That kind of freaks me out to adopt it, but this is such a no brainer for distributed cloud native development that I can't resist.

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

    Snyggt och bra förklarat.

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

      @@MatsGF Tack!

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

      @FilipEkberg Just started to look at and play with Blazor. It looks interesting buy one has to be aware that there are some new paradigms to be aware of regarding web development with this tool.

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

    Thank you for making this, just started trying to use Aspire in building my Blazor app

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

      You are most welcome! How are you finding it so far?

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

    Cool explanation!

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

    Could not control myself to ask while I am at 9:23. Can this be used to non .net projects. BTW awesome video on .net aspire

  • @itsolutionsdev
    @itsolutionsdev 2 месяца назад +4

    How to use react/angular frontend?
    Is it even possible?
    I like blazer but honestly both above are way more popular

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

      Great question, it's definitely possible!
      Here's some sample code on using React, Angular, Vue: github.com/dotnet/aspire-samples/tree/main/samples/AspireWithJavaScript
      For the Vue example, take a look at vite.config.ts where it loads the configuration to access the API.

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

      I don't see why they wouldn't be, if you consider the Host just being an integration/abstraction point. To the host, a react or angular frontend should (theoretically) be no different than say a standalone Blazor WASM front end and possibly integrated similarly? Personally, I am going to test this out because I want to know too, especially with React. If you beat me to it, post back here lol. I do have questions about deployment and if that will work with it.

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

    Yo, Microsoft is moving mad with this one. You can just launch cloud project like that now!🤯

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

      It’s great isn’t it!

  • @SedricWinningham
    @SedricWinningham 14 дней назад

  • @murat.eraydin
    @murat.eraydin 2 месяца назад

    great video! is this applicable to a local kubernetes instance too??

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

      @@murat.eraydin Thank you!
      Yes, you can deploy to Kuberneted!
      Check this: learn.microsoft.com/en-us/dotnet/aspire/deployment/overview#deploy-to-kubernetes

  • @mahmadmusffir8459
    @mahmadmusffir8459 27 дней назад

    How to deploy on iis or linux

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

    Thanks

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

    Dotnet Aspire looks interesting, and your examples are focused on .NET and Azure cloud perspectives. Could we also include Angular or React as the front-end framework and explore hosting options on any other cloud platform? Additionally, can it be designed as a Docker Compose setup for deployment on any virtual machine? What about deploying it on Kubernetes?

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

      Great question! You definitely can use Angular, React, Vue or whatever frontend you want. It supports npm, as a javascript host. You can also publish to any provider that you want, it does not have to be azure. There is tooling to generate scripts to deploy to other platforms such as aws, or Kubernetes.
      It will not generate a docker compose for you, it would rather replace the docker compose. I my latest video I show how to do just that, by using two docker containers and connecting them. Rather than using a docker compose.
      In terms of Angular, React and JavaScript, you can check that out here: learn.microsoft.com/en-us/samples/dotnet/aspire-samples/aspire-angular-react-vue/
      Hope this helps!

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

    The real question is what happens to all this code/hard linking when aspire 2.0 comes along and changes everything?

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

    Aspire looks interesting but to be forced to use a certain cloud service in this case azure is not encouraging azure is very expensive and our apps already hosted with other providers. Guess will wait tell they introduce a way to host aspire anywhere we want. Thanks

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

      @@waitingforyou2082 I should probably have been more clear ln that part, you can host it wherever you want. It’s just extremely easy to get it published to Azure. I believe I’ve seen tools to do this for aws as well.

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

      A Kubernetes publishing tool called Aspir8 is mentioned in the online documentation.

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

    Does aspire support az functions yet ??

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

      @@KBoxx it’s on the way! that feature is in preview: learn.microsoft.com/en-us/dotnet/aspire/serverless/functions?tabs=dotnet-cli&pivots=visual-studio

  • @David-id6jw
    @David-id6jw 2 месяца назад +1

    So Aspire is an upgraded Generic Host?

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

      It's using the generic host: github.com/dotnet/aspire/blob/main/src/Aspire.Hosting/DistributedApplicationBuilder.cs

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

    It would be awesome to publish my Aspire composition to k8s cluster

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

    nothing turns me on than someone stating the reason for doing anything is "managing dependencies"

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

    everything was perfect until azure comes in. expensive and very hard to go back once you put your projects into it since it is pretty well integrated.

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

      @@yigitgnc You don’t have to use Azure if you don’t want to. There’s just great tools available if you do :)

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

      @FilipEkberg of course but I wonder if there are any other alternative to azure cli which can simplify publishing for other platforms

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

    I wish techs would stop abusing English. "Opinionated" means "assertively dogmatic in expressing opinions" - someone who has strong options about something and imposes them on everyone else. In the context of "opinionated software", it simply means the software uses a design pattern and enforces it on the user. Which means it's rigid and probably brittle in that it can handle very specific kind of tasks in one and only one way. But I guess we can't say "rigidly designed software" or even "purpose specific software", can we?

  • @Solomon-k8p
    @Solomon-k8p 2 месяца назад

    .NET??? Useless crap.

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

      @@Solomon-k8p Very curious what happened to you to have so much hate for .NET. I’m here if you need to talk, privately of that helps. Have a great day ❤️

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

    Doctor Strange Started RUclips Channel?

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

      @@imashar not sure i get the reference 🫣

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

      @FilipEkberg Search Doctor Strange on google. You look like him😂

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

    I don't see what it adds to the explaination that some people use screen space to display their face hading VS behind, or worse use the full screen showing themselves talking.

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

      It’s the style that I prefer to watch myself, and what I enjoy making. If it’s not something you like then there’s plenty of other channels to explore.