Time matters, particularly in distributed applications. Most sophisticated systems need to schedule things, and MassTransit has excellent scheduling support. From broker-based scheduling to leveraging Quartz.NET as a standalone message scheduler, MassTransit provides a consistent scheduling API.
MassTransit uses Quartz.NET to schedule messages, making it possible to build complex time-based workflows. Several extensions are available to message consumers, as well as middleware for using message scheduling.
In a production system, Quartz.NET is run as a service with multiple instances active for high availability and load balancing. Quartz can use any SQL database to coordinate scheduled jobs across servers, making it suitable for this type of use.
There is a standalone MassTransit service, MassTransit.QuartzService, which can be installed and used on servers for this purpose. It is configured via the
App.config file and is a good example of how to build a standalone MassTransit service.
This service will likely move to be hosted in the MassTransit.Host, making the service logic reusable across any message transport.
Message scheduling is described in details in the following articles: