Programming Tips πŸ’‘
51.7K subscribers
67 photos
10 videos
30 files
355 links
Programming & AI:
Tips πŸ’‘
Articles πŸ“•
Resources πŸ‘Ύ
Design Patterns πŸ’Ž
Software Principles βœ…

πŸ‡³πŸ‡± Contact: @MoienTajik

🎯 Buy ads: https://telega.io/c/ProgrammingTip
Download Telegram
Kubernetes for .NET Developers ☸️

Have you started building containerized application and struggled with scaling across multiple hosts❓

Would you like to simplify DevOps tasks such as deployment and configuration❓

Have you heard about Kubernetes and would like to learn more❓

Then this presentation is for you. πŸ’Ž

Kubernetes
is an open source system for managing containerized applications across multiple hosts; providing basic mechanisms for deployment, maintenance, and scaling of applications. πŸ”₯

In this presentation, I will walk you through Kubernetes fundamentals, the high level architecture, how would you deploy an ASP.NET Core application to Kubernetes and finally how would you configure and launch auto-scaling, self-healing Kubernetes cluster. ⚑️


[ YouTube ] : youtu.be/uh4V2IjSrlI
[ Github ] : kutt.it/KubeAsp

〰️〰️〰️〰️〰️〰️
#Kubernetes #DotNet #Core #AspMvc #AspCore
@ProgrammingTip
Running async tasks on app startup in ASP.NET Core 3.0 ⚑️

In this post, I describe how a small change in the ASP.NET Core 3.0 WebHost makes it easier to run asynchronous tasks on app startup using IHostedService. βœ…

Unfortunately, in 2.x it wasn't possible to use any of the built-in ASP.NET Core primitives to achieve this ❌ :

β€’ IStartupFilter has a synchronous API, so would require doing sync over async. πŸ€¦πŸ»β€β™‚οΈ

β€’ IApplicationLifetime has a synchronous API and raises the ApplicationStarted event after the server starts handling requests. πŸ€·πŸ»β€β™‚οΈ

β€’ IHostedService has an asynchronous API, but is executed after the server is started and starts handling requests. πŸ‘πŸ»

With ASP.NET Core 3.0, a small change in the WebHost code makes a big difference - we no longer need these solutions, and can use IHostedService without the previous concerns❗️


[ Article ] : kutt.it/asphost

〰️〰️〰️〰️〰️〰️
#AspNet #AspMvc #AspCore
@ProgrammingTip