.NET 7 💥 - Intro to Background Services (Hangfire) with ASP.NET Core Web Api 🔥🔥🔥🔥🔥🔥

Sdílet
Vložit
  • čas přidán 6. 09. 2023
  • In this video we will be going to learning about How to implement Background Services with Hangfire
    Support me on Patreon to access the source code:
    / mohamadlawand
    Base App: • .NET 7 💥 - ASP.NET C...
    Let us connect:
    🌍 My website - mohamadlawand.com
    📸 Instagram - / mohamadlawand087
    🐦 Twitter - / moe23
    ♯ Github - github.com/mohamadlawand087
    🎫 LinkedIn - / mlawand
    💥 LinkTree - linktr.ee/mohamadlawand
    Gear I use (affiliate link): amzn.to/3EbT8Jw
    Support my work:
    / mohamadlawand
    www.buymeacoffee.com/mohamadl...
    Hire Me:
    transactions.sendowl.com/prod...
    WHO AM I:
    I'm Mohamad, a Enterprise Architect working in Manchester, UK. I make videos about web, cloud, desktop and mobile development.
    GET IN TOUCH:
    If you’d like to talk, I’d love to hear from you. Tweeting @moe23 directly will be the quickest way to get a response, but if your question is very long, feel free to email me at hello@mohamadlawand.com.
    #dotnet #hangfire #backgoundservices

Komentáře • 18

  • @djaalabahmed2038
    @djaalabahmed2038 Před 9 měsíci +1

    I just upload my background job to azure happy to see your video , keep going

  • @JadAbouZaki-px3oo
    @JadAbouZaki-px3oo Před 7 měsíci

    Thank you

  • @StefanSieringer
    @StefanSieringer Před 2 měsíci

    Thank you for the video! In general I have two questions.
    1) It is hard to follow what is clientside and what is serverside. When the console is writing that the eMail was sent was this a serverside function?
    2) When i do BackgroundJob.Enqueue on clientside with arguments (for example an ID), how can I use it on the server to use it for a method?

  • @andershejgaard3988
    @andershejgaard3988 Před 5 měsíci

    Hello Mohamad
    Nice video. Is it possible to run multiple servers on multiple machines and only have one client/dashboard?

  • @huseyinemecen5508
    @huseyinemecen5508 Před 6 měsíci +1

    Hello, I've been working on a project with Hangfire for a while, using an API that I exclusively employ for Hangfire. Within it, I have applications that run hourly, daily, every two hours, etc. I deploy my Hangfire project to IIS and configure all settings in IIS to prevent the application from shutting down. Hangfire works steadily for a certain period, but after a while, I encounter an error on the dashboard saying:
    "Hangfire - Recurring job can’t be scheduled, see inner exception for details"
    Triggering the job again makes it continue working, but after a certain time, the same error occurs. This post is open to anyone with relevant knowledge; I'm looking forward to your comments and insights on this matter

  • @TheAzerue
    @TheAzerue Před 7 měsíci +1

    Please make a video on Continuation job

  • @andrei9218
    @andrei9218 Před 6 měsíci

    Could you also show a small example of a Continuation job?

  • @derricardo2521
    @derricardo2521 Před 2 měsíci

    Nice one! For an beginner it is very hard to understand what is the client and what is the server. Because it is all in the same solution or even method. What are your thoughts?

  • @kek_1459
    @kek_1459 Před 9 měsíci +1

    Thank you so much for your job!
    Can you make a video about mediator notifications?

  • @aliakkawi4759
    @aliakkawi4759 Před 9 měsíci +1

    Hi, thanks a lot for your video tutorials.
    Is it possible to use SignalR for mobile chat applications?

  • @muttBunch
    @muttBunch Před 6 měsíci

    Mohamad, thank you for this nice demo. I have a question though...I'm running a scheduled job every 20 minutes to post logs to SQL. Not sure of any memory leaks, but holy hell, when it started running, memory usage spiked to the full 8gig on my VM. I gave it 16 live, all 16gig is taken, just gave it 24 and now that's almost filled lol. Obviously something funky in my code but WOW on the RAM usage.

    • @muttBunch
      @muttBunch Před 6 měsíci

      Just noticed that it completed in 7 minutes, but RAM usage is still topped out, not blaming Hangfire but I think I'll comment out the server, re-publish and run the API call that I used in scheduling and see if the RAM usage spikes again.

    • @mustafahaider9115
      @mustafahaider9115 Před 6 měsíci

      any updates?@@muttBunch

  • @muttBunch
    @muttBunch Před 6 měsíci

    I paused this for a second, I know you can use Hangfire in memory, but I'm assuming that's probably a bad approach?

  • @izecjaxn9971
    @izecjaxn9971 Před 2 měsíci

    You need chapters in your video.

  • @npocnohan
    @npocnohan Před 6 měsíci

    hangifre 🤣🤣😛😛😜😜😜

  • @TheAceInfinity
    @TheAceInfinity Před 7 měsíci +1

    Hangfire installs Hangfire.Core