Pros and Cons of running Quartz.NET embedded or as a windows service

前端 未结 2 1630
北荒
北荒 2021-02-01 07:51

I want to add quartz scheduling to an ASP.NET application.

It will be used to send queued up emails.

What are the pros and cons of running quartz.net as windows

2条回答
  •  花落未央
    2021-02-01 08:20

    Quartz.NET can be instantiated on a per-application basis (web farm configuration mandates number of schedulers). You can safely run multiple schedulers if you have your jobs backed in a database and you have Quartz.NET configured in clustered mode (and clocks synced naturally).

    The main concern is to the application pool handling prior to IIS 7.5. Without constant checks your application worker can get recycled and your scheduler will be down until someone issues a web request to fire up the application pool again. IIS 7.5 has the new feature to keep application pools running all the time.

    Otherwise there should not be a big difference between the two models.

提交回复
热议问题