![]() |
VOOZH | about |
dotnet add package Excalibur.EventSourcing.Firestore --version 3.0.0-alpha.208
NuGet\Install-Package Excalibur.EventSourcing.Firestore -Version 3.0.0-alpha.208
<PackageReference Include="Excalibur.EventSourcing.Firestore" Version="3.0.0-alpha.208" />
<PackageVersion Include="Excalibur.EventSourcing.Firestore" Version="3.0.0-alpha.208" />Directory.Packages.props
<PackageReference Include="Excalibur.EventSourcing.Firestore" />Project file
paket add Excalibur.EventSourcing.Firestore --version 3.0.0-alpha.208
#r "nuget: Excalibur.EventSourcing.Firestore, 3.0.0-alpha.208"
#:package Excalibur.EventSourcing.Firestore@3.0.0-alpha.208
#addin nuget:?package=Excalibur.EventSourcing.Firestore&version=3.0.0-alpha.208&prereleaseInstall as a Cake Addin
#tool nuget:?package=Excalibur.EventSourcing.Firestore&version=3.0.0-alpha.208&prereleaseInstall as a Cake Tool
Google Cloud Firestore event store implementation for Excalibur event sourcing.
{aggregateType}:{aggregateId} as stream IDdotnet add package Excalibur.EventSourcing.Firestore
services.AddFirestoreEventStore(options =>
{
options.ProjectId = "my-gcp-project";
options.EventsCollectionName = "events";
options.CredentialsPath = "/path/to/credentials.json";
options.UseBatchedWrites = true;
options.MaxBatchSize = 500;
options.CreateCollectionIfNotExists = true;
});
Or via configuration:
services.AddFirestoreEventStore(configuration.GetSection("FirestoreEventStore"));
For local development with the Firestore emulator:
services.AddFirestoreEventStore(options =>
{
options.EmulatorHost = "localhost:8080";
options.EventsCollectionName = "events";
});
The package registers both IEventStore and ICloudNativeEventStore:
public class MyService
{
private readonly IEventStore _eventStore;
public MyService(IEventStore eventStore)
{
_eventStore = eventStore;
}
public async Task AppendEventsAsync(
string aggregateId,
IEnumerable<IDomainEvent> events,
long expectedVersion,
CancellationToken ct)
{
var result = await _eventStore.AppendAsync(
aggregateId,
"MyAggregate",
events,
expectedVersion,
ct);
if (!result.Success)
{
// Handle concurrency conflict or failure
}
}
}
Subscribe to event changes for projections or other event handlers:
var subscription = await _eventStore.SubscribeToChangesAsync(null, ct);
await subscription.StartAsync(ct);
await foreach (var change in subscription.ReadChangesAsync(ct))
{
// Process event change
Console.WriteLine($"Event: {change.Document?.EventType}");
}
The event store uses the following Firestore document schema:
| Field | Type | Description |
|---|---|---|
| streamId | String | Stream ID: {aggregateType}:{aggregateId} |
| eventId | String | Unique event identifier |
| aggregateId | String | Aggregate identifier |
| aggregateType | String | Aggregate type name |
| eventType | String | Event type name |
| version | Number | Event version |
| timestamp | String | ISO 8601 timestamp |
| eventData | String | Base64-encoded event data |
| metadata | String | Base64-encoded metadata |
| isDispatched | Boolean | Outbox dispatch status |
Excalibur.Data.Firestore for GCP SDK setupSee LICENSE files in repository root.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0-alpha.208 | 44 | 6/11/2026 |
| 3.0.0-alpha.207 | 46 | 6/11/2026 |
| 3.0.0-alpha.205 | 51 | 6/10/2026 |
| 3.0.0-alpha.204 | 64 | 6/8/2026 |
| 3.0.0-alpha.203 | 51 | 6/8/2026 |
| 3.0.0-alpha.202 | 51 | 6/8/2026 |
| 3.0.0-alpha.201 | 60 | 6/8/2026 |
| 3.0.0-alpha.199 | 49 | 6/8/2026 |
| 3.0.0-alpha.198 | 54 | 5/28/2026 |
| 3.0.0-alpha.197 | 63 | 5/28/2026 |
| 3.0.0-alpha.194 | 53 | 5/20/2026 |
| 3.0.0-alpha.193 | 68 | 5/13/2026 |
| 3.0.0-alpha.192 | 51 | 5/13/2026 |
| 3.0.0-alpha.191 | 51 | 5/13/2026 |
| 3.0.0-alpha.189 | 50 | 5/12/2026 |
| 3.0.0-alpha.187 | 52 | 5/8/2026 |
| 3.0.0-alpha.185 | 48 | 5/7/2026 |
| 3.0.0-alpha.183 | 51 | 5/7/2026 |
| 3.0.0-alpha.182 | 47 | 5/6/2026 |
| 3.0.0-alpha.181 | 50 | 5/6/2026 |