Redis Cache, PostgreSQL Databases, Messaging, & More with .NET Aspire

Поделиться
HTML-код
  • Опубликовано: 27 янв 2025

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

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

    The audio quality of your videos is top-notch. The bass is clearly felt when listening on my car's speakers.

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

    Thanks James for this video, let me try it out this weekend.

  • @samh6536
    @samh6536 4 месяца назад +1

    Very good explanation, saved me hours

  • @jportugal100
    @jportugal100 7 месяцев назад

    How do we more use the cache in a service?

  • @toragodzen
    @toragodzen 7 месяцев назад

    How it works without Connection Strings ? You don't have any connection strings in configuration.json and it still works somehow ...

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

      aspire creates and configures the connection strings for you automatically

  • @tonystevens2611
    @tonystevens2611 9 месяцев назад

    Hi James, I tried it and I'm getting "There is a problem loading our products. Please try again later."? How do you create the database and tables?

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

      I have the context create it: github.com/jamesmontemagno/eShopLiteOnAspire/blob/master/Products/Data/ProductDataContext.cs
      Of course you can also do a migration as well.

    • @rodrigo-5967
      @rodrigo-5967 8 месяцев назад

      @@JamesMontemagno but where do you ensure the table is created (productsdb)? The only thing I have to say is that AddDatabase in the AppHost is misleading to say the least... Anyway, other than that great video! :)

    • @mikelorengo8548
      @mikelorengo8548 8 месяцев назад

      ​@@rodrigo-5967Look at line 18 in the file he referenced.

  • @kristianmasar1532
    @kristianmasar1532 8 месяцев назад

    Every time I run my application Aspire create new docker container with DB on random port. If I cancel my application, that container with DB disappear. And this all the time, I think thats normal for Aspire. But when I fill database with some data thru app, I lost it because all the time I have new database. And I didnt find any solution for this.

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

      It should all be the same database. Hard to know without a sample but inquire on the discord maybe

    • @kristianmasar1532
      @kristianmasar1532 8 месяцев назад +1

      @@JamesMontemagno when you run Aspire app it create container for database. When you turn off your app, that database cointainer is gone and your data too. You have to create volume to database. Please can you show how to do it. I did it by the documentation and it doenst work how it should. Storing data persist

  • @rossimac
    @rossimac 8 месяцев назад

    Your EnsureDatabaseExists logic seems to run after Postgres is online, but mine seems to run sooner than that and the database has yet to be fully turned on. Weird. I'm on a 32Gb Macbook M1 Max, so I don't think it's that my system is slow or anything. Any ideas other than adding in a delay? Maybe retry numerous times and then giving up?

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

      Checkout: github.com/davidfowl/WaitForDependenciesAspire

    • @rossimac
      @rossimac 8 месяцев назад

      @@JamesMontemagno nice find. I feel like this should be front and centre in Aspire.

  • @Ador-25
    @Ador-25 9 месяцев назад

    good one

  • @JoshWeeks
    @JoshWeeks 9 месяцев назад

    I heard tell of an Aspire discord but haven't been able to get a working link. Do you happen to know about that? I have burning questions.

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

      Yes! It is a channel here: aka.ms/dotnet-discord

    • @JoshWeeks
      @JoshWeeks 8 месяцев назад

      @@JamesMontemagno my man!

  • @timur2887
    @timur2887 7 месяцев назад

    xlnt!

  • @MinaTrades
    @MinaTrades 9 месяцев назад

    Thanks James, what Nuget package do you recommend for Push Notifications in .Net Maui?