TickerQ.MongoDB 11.5.0

Prefix Reserved
dotnet add package TickerQ.MongoDB --version 11.5.0
                    
NuGet\Install-Package TickerQ.MongoDB -Version 11.5.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TickerQ.MongoDB" Version="11.5.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TickerQ.MongoDB" Version="11.5.0" />
                    
Directory.Packages.props
<PackageReference Include="TickerQ.MongoDB" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TickerQ.MongoDB --version 11.5.0
                    
#r "nuget: TickerQ.MongoDB, 11.5.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package TickerQ.MongoDB@11.5.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TickerQ.MongoDB&version=11.5.0
                    
Install as a Cake Addin
#tool nuget:?package=TickerQ.MongoDB&version=11.5.0
                    
Install as a Cake Tool

TickerQ.MongoDB

MongoDB persistence provider for TickerQ. Drop-in alternative to TickerQ.EntityFrameworkCore — use one or the other, not both.

Uses the official MongoDB.Driver directly. No EF Core, no ODM.

Runtime compatibility

Use this provider with the managed .NET runtime. It is not supported in a Native AOT application because the current MongoDB driver creates BSON serializers through runtime reflection. The TickerQ core scheduler, dashboard, and Redis provider have separate verified Native AOT lanes.

Install

dotnet add package TickerQ.MongoDB

Usage

builder.Services.AddTickerQ(options =>
{
    options.UseApplicationNamespace("orders-api");
    options.AddOperationalStore(mongoOptions =>
    {
        mongoOptions.UseTickerQMongoClient(
            connectionString: "mongodb://localhost:27017",
            databaseName: "tickerq");
    });
});

Or reuse an IMongoClient already registered in DI:

services.AddSingleton<IMongoClient>(_ => new MongoClient("mongodb://localhost:27017"));

builder.Services.AddTickerQ(options =>
{
    options.UseApplicationNamespace("orders-api");
    options.AddOperationalStore(mongoOptions =>
    {
        mongoOptions.UseExistingMongoClient(databaseName: "tickerq");
    });
});

Notes

  • UseApplicationNamespace(...) physically partitions runtime documents, results, locks, evidence, outbox, and metadata. Applications sharing a database may reuse GUIDs only with distinct explicit namespaces. Scheduler mode also requires the exact positive activation epoch; namespaced queue-only mode does not activate one. Namespace-less queue-only explicitly targets the legacy-global compatibility partition.
  • UseLegacyRuntimePartitionAdoption("orders-api", epoch) is only for a verified single-owner pre-partition database. It holds one global authority, rejects a different owner, and is transactional, idempotent, and resumable on a replica set or mongos. Standalone MongoDB rejects adoption because it cannot provide the required transaction.
  • See Upgrading CronTicker and TimeTicker storage before rolling an existing MongoDB store across scheduler versions.
  • Single-document operations use atomic findAndModify. Atomic graph fencing, terminal result publication, retention, the durable Node finalization outbox, and reconciliation activation require multi-document transactions on a replica set. Reconciliation activation is persisted in an application-scoped ticker_StoreMetadata document with a monotonic epoch, ordered checkpoint, and CAS version; standalone MongoDB fails activation before claiming an epoch, so the local scheduler gate remains closed.
  • Protocol-aware rolling binaries serialize publication by touching the application-scoped activation metadata document in the same transaction as related writes. Readers treat only Activated(epoch) as ready, so they observe either the pre-epoch/Activating state or the complete committed publication. This fence cannot control binaries that predate the protocol: the first rollout must drain/quiesce every pre-protocol writer before activation. Do not attempt first adoption as an unconstrained mixed-version rolling deployment.
  • Legacy code-defined Cron documents remain unclaimed unless ownership is explicit. Shared databases must configure the same MapLegacyDefinedCronOwnership(function, ownerNamespace) map in every application. AdoptLegacyDefinedCronTickers() is a catch-all only for a verified single-application database and is unsafe when applications share the database.
  • Indexes are created idempotently on startup, including a unique index on (CronTickerId, ExecutionTime) for cron occurrence deduplication, the unique identity/due indexes for the Node finalization outbox, and the node-heartbeat/control-command indexes used by the dashboard and cross-node cancellation.
  • Collection names default to ticker_TimeTickers, ticker_CronTickers, ticker_CronTickerOccurrences, ticker_TickerResults, ticker_NodeFinalizationOutbox, and ticker_StoreMetadata. Override with SetCollectionPrefix.
Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.5.0 28 10/25/2026
11.5.0-rc.1 39 10/25/2026
10.5.0 26 10/25/2026
10.5.0-rc.1 38 10/25/2026
9.5.0 34 10/25/2026
9.5.0-rc.1 37 10/25/2026
8.5.0 32 10/25/2026
8.5.0-rc.1 37 10/25/2026