Akka.Persistence.Sql v1.5.28
1.5.28 September 9th 2024
- Bump Akka to 1.5.28
- Bump Akka.Hosting to v1.5.28
- Harden SQL journal and snapshot store against initialization failures
- Cleanup nullability warnings
- Port Akka.NET #7313: Made DateTime.UtcNow the default timestamp for SnapshotMetadata
- Add DataOptions support
Linq2Db DataOptions Support
You can now use DataOptions to set up your persistence journal, read journal, and snapshot store with a new Akka.Persistence.Sql.Hosting
API.
Here is an example of setting up persistence on PostgreSQL using NpgsqlDataSource
instead of the previous connection string and provider name setup.
var dataSource = new NpgsqlDataSourceBuilder(_myConnectionString).Build();
var dataOptions = new DataOptions()
.UseDataProvider(DataConnection.GetDataProvider(ProviderName.PostgreSQL, dataSource.ConnectionString))
.UseProvider(ProviderName.PostgreSQL)
.UseConnectionFactory((opt) => dataSource.CreateConnection());
var host = new HostBuilder()
.ConfigureServices((context, services) => {
services.AddAkka("my-system-name", (builder, provider) =>
{
builder.WithSqlPersistence(dataOptions);
});
});
Changes:
- 5f35062 Update RELEASE_NOTES.md for 1.5.28 release (#457)
- 5eb18b9 Adds DataOptionsSetup (#456)
- 3f03bfd Add SnapshotStore save snapshot spec (#455)
- 039dd08 Bump Akka and Akka.Hosting to 1.5.28 (#454)
- 64bdd34 Port akkadotnet/akka.net#7313 (#448)
- ce5bc63 Modernize benchmark tests (#447)
- 09b8c15 Cleanup #nullability warnings (#437)
- 7f5a65b build(deps): bump Microsoft.Data.SqlClient from 5.2.1 to 5.2.2 (#446)
- 8595497 build(deps): bump jetbrains.resharper.globaltools (#445)
- 3647e9a build(deps): bump Microsoft.NET.Test.Sdk from 17.10.0 to 17.11.0 (#442)
See More
- 397fbbc build(deps): bump jetbrains.resharper.globaltools (#443)
- 974c537 Harden SQL journal and snapshot store against initialization failures (#444)
- 9b67712 build(deps): bump BenchmarkDotNet from 0.13.12 to 0.14.0 (#433)
- 69d3753 build(deps): bump jetbrains.resharper.globaltools (#431)
This list of changes was auto generated.