Skip to content

LiteDbQueueCreationOptions

Brian Lehnen edited this page Apr 9, 2021 · 1 revision

LiteDb Queue Creation Options

When creating a new LiteDb queue, there are various features that you can enable and disable. Most of these options will change the schema of the queue. All of these options must be set before creating the queue. The database file can either already exist, or the queue creator will create it at the location specified by the connection string for you.

  • EnableDelayedProcessing

The queue supports delayed processing.

  • Heartbeat

The queue can be configured to support heart beats. If a worker dies, other workers will be able to dequeue the message.

  • Message Expiration

The queue supports expiration of messages.

  • Status

You queue supports status of enqueued items. This allows the queue to rollback messages, and recover from crashed workers.

  • Enable Status Table

The queue can create and update a seperate table that you can query to see the status of queue. This is safer then querying the queue itself, as you may block operations and cause deadlocks.

createQueue.Options.EnableStatusTable = true;
Clone this wiki locally