.NET Core open source job scheduling framework Quartz.Net combat exercise

First, the background of the demand

Life is short, I use .NET Core! As a back-end .NET developers, project work often encountered in practice the timing of Job tasks, the idea of ​​Windows Service Windows service application platform most likely to think of, but in general Linux system will use Crontab program, PM2, Supervior and other process management tool to solve a host escrow problem. Eben today to share with you a way to Docker container to achieve rapid deployment of .NET Core timed background tasks hosted on the Linux operating system.

There are two ways to achieve development in the .NET Core timed background tasks:

1, using AspNetCore comes HostService, which is a lightweight back-office services, need to match the timer to complete the scheduled task. In front of the "ASP.NET Core Windows service development technology practical exercise" course Eben has to share a.

Advantages: host a Web application, the hosting simple and flexible way.

Disadvantages: 1), job scheduling plan is relatively simple. 2), and Web applications blend too high.

2, the use of third-party open source Quartz.Net component that supports simple and complex jobs and flexible call plans. We project more suitable for a large number of business needs require the use of operational plan.

Advantages: 1), the job scheduling rich. 2), decoupling and Web applications.

Disadvantages: If a third-party process management tools to achieve a managed way, cumbersome and difficult to configure unified management. Docker containers recommended technology to achieve a host managed.

1.1 The course for the crowd as follows:

1), there is a certain .NET Core development foundation.

2), to learn and understand .Net Core cross-platform development technology.

3), like Eben share of children's shoes dry course.

This course is not a zero-based teaching and learning we be sure to choose according to their actual situation. If you encounter any problems in the course of the learning process, please go directly to private Eben teacher online communication and exchange. Thank you for your understanding and support, I wish you a happy learning!

1.2, stating target and today we learn to achieve?

Docker container how to use technology to achieve rapid deployment host hosting our regular background job scheduling tasks.

If you are also interested in sharing of this ".NET Core open source job scheduling framework Quartz.Net practical exercise" course, then please follow Eben learning together. Ado, directly on dry goods, dry goods we do not produce, we just dry porter.

Two, Quartz.Net combat component of the project should be in .NET Core

 

 

 

 

 

 

 

 

Third, how to make use of Dockerfile to build .NET Core application image

 

Four, Docker mount host log output directory to the vessel

 

V. Consideration and summary


[Classroom] Netease cloud:Click to watch online

[Tencent] classroom: Click online viewing

No public letter [micro]: follow Eben play NET


Guess you like

Origin blog.51cto.com/4500899/2437912