-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #142 from akkadotnet/dev
v1.4.17 Release
- Loading branch information
Showing
28 changed files
with
867 additions
and
280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -202,4 +202,5 @@ FakesAssemblies/ | |
tools/ | ||
build/ | ||
.nuget/ | ||
.dotnet/ | ||
.dotnet/ | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,4 @@ | ||
#### 1.4.16 February 6th 2021 #### | ||
This is a major update to the Akka.Persistence.Redis plugin. | ||
#### 1.4.17 March 17 2021 #### | ||
|
||
**Enabled Redis Cluster Support** | ||
Akka.Persistence.Redis will now automatically detect whether or not you are running in clustered mode via your Redis connection string and will distribute journal entries and snapshots accordingly. | ||
|
||
All journal entries and all snapshots for a single entity will all reside inside the same Redis host cost - [using Redis' consistent hash distribution tagging](https://redis.io/topics/cluster-tutorial) scheme. | ||
|
||
**Significant Performance Improvements** | ||
Akka.Persistence.Redis' write throughput was improved significantly in Akka.Persistence.Redis v1.4.16: | ||
|
||
| Test | Akka.Persistence.Redis v1.4.4 (msg/s) | current PR (msg/s) | | ||
|-----------------|---------------------------------------|--------------------| | ||
| Persist | 782 | 772 | | ||
| PersistAll | 15019 | 20275 | | ||
| PersistAsync | 9496 | 13131 | | ||
| PersistAllAsync | 32765 | 44776 | | ||
| PersistGroup10 | 611 | 6523 | | ||
| PersistGroup100 | 8878 | 12533 | | ||
| PersistGroup200 | 9598 | 12214 | | ||
| PersistGroup25 | 9209 | 10819 | | ||
| PersistGroup400 | 9209 | 11824 | | ||
| PersistGroup50 | 9506 | 9704 | | ||
| Recovering | 17374 | 20119 | | ||
| Recovering8 | 36915 | 37290 | | ||
| RecoveringFour | 22432 | 20884 | | ||
| RecoveringTwo | 22209 | 21222 | | ||
|
||
These numbers were generated running a single Redis instance inside a Docker container on Docker for Windows - real-world values generated in cloud environments will likely be much higher. | ||
|
||
**Removed Akka.Persistence.Query Support** | ||
In order to achieve support for clustering and improved write performance, we made the descision to drop Akka.Persistence.Query support from Akka.Persistence.Redis at this time - if you wish to learn more about our decision-making process or if you are affected by this change, please comment on this thread here: https://github.com/akkadotnet/Akka.Persistence.Redis/issues/126 | ||
|
||
**Other Changes** | ||
|
||
- Bump [Akka.NET to version 1.4.16](https://github.com/akkadotnet/akka.net/releases/tag/1.4.16) | ||
- Modernized Akka.NET Serialization calls | ||
- [Added benchmarks](https://github.com/akkadotnet/Akka.Persistence.Redis/pull/118) | ||
- Upgraded to [StackExchange.Redis 2.2.11](https://github.com/StackExchange/StackExchange.Redis/blob/main/docs/ReleaseNotes.md) | ||
- Improved documentation | ||
* Upgraded to [Akka.NET 1.4.17](https://github.com/akkadotnet/akka.net/releases/tag/1.4.17) | ||
* [Added Akka.Persistence.Query support for EventsByPersistenceId back](https://github.com/akkadotnet/Akka.Persistence.Redis/pull/133) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
src/Akka.Persistence.Redis.Cluster.Tests/Query/RedisCurrentEventsByPersistenceIdSpec.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
using Akka.Configuration; | ||
using Akka.Persistence.Query; | ||
using Akka.Persistence.Redis.Query; | ||
using Akka.Persistence.TCK.Query; | ||
using Xunit; | ||
using Xunit.Abstractions; //----------------------------------------------------------------------- | ||
// <copyright file="RedisCurrentEventsByPersistenceIdSpec.cs" company="Akka.NET Project"> | ||
// Copyright (C) 2017 Akka.NET Contrib <https://github.com/AkkaNetContrib/Akka.Persistence.Redis> | ||
// </copyright> | ||
//----------------------------------------------------------------------- | ||
|
||
namespace Akka.Persistence.Redis.Cluster.Tests.Query | ||
{ | ||
[Collection("RedisClusterSpec")] | ||
public class RedisCurrentEventsByPersistenceIdSpec : CurrentEventsByPersistenceIdSpec | ||
{ | ||
public static Config Config(RedisClusterFixture fixture) | ||
{ | ||
DbUtils.Initialize(fixture); | ||
|
||
return ConfigurationFactory.ParseString($@" | ||
akka.loglevel = INFO | ||
akka.persistence.journal.plugin = ""akka.persistence.journal.redis"" | ||
akka.persistence.journal.redis {{ | ||
class = ""Akka.Persistence.Redis.Journal.RedisJournal, Akka.Persistence.Redis"" | ||
plugin-dispatcher = ""akka.actor.default-dispatcher"" | ||
configuration-string = ""{fixture.ConnectionString}"" | ||
}} | ||
akka.test.single-expect-default = 3s") | ||
.WithFallback(RedisPersistence.DefaultConfig()); | ||
} | ||
|
||
public RedisCurrentEventsByPersistenceIdSpec(ITestOutputHelper output, RedisClusterFixture fixture) | ||
: base(Config(fixture), nameof(RedisCurrentEventsByPersistenceIdSpec), output) | ||
{ | ||
ReadJournal = Sys.ReadJournalFor<RedisReadJournal>(RedisReadJournal.Identifier); | ||
} | ||
|
||
protected override void Dispose(bool disposing) | ||
{ | ||
DbUtils.Clean(); | ||
base.Dispose(disposing); | ||
} | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
src/Akka.Persistence.Redis.Cluster.Tests/Query/RedisEventsByPersistenceIdSpec.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
//----------------------------------------------------------------------- | ||
// <copyright file="RedisEventsByPersistenceIdSpec.cs" company="Akka.NET Project"> | ||
// Copyright (C) 2017 Akka.NET Contrib <https://github.com/AkkaNetContrib/Akka.Persistence.Redis> | ||
// </copyright> | ||
//----------------------------------------------------------------------- | ||
|
||
using Akka.Configuration; | ||
using Akka.Persistence.Query; | ||
using Akka.Persistence.Redis.Query; | ||
using Akka.Persistence.TCK.Query; | ||
using Xunit; | ||
using Xunit.Abstractions; | ||
|
||
namespace Akka.Persistence.Redis.Cluster.Tests.Query | ||
{ | ||
[Collection("RedisClusterSpec")] | ||
public class RedisEventsByPersistenceIdSpec : EventsByPersistenceIdSpec | ||
{ | ||
public static Config Config(RedisClusterFixture fixture) | ||
{ | ||
DbUtils.Initialize(fixture); | ||
|
||
return ConfigurationFactory.ParseString($@" | ||
akka.loglevel = INFO | ||
akka.persistence.journal.plugin = ""akka.persistence.journal.redis"" | ||
akka.persistence.journal.redis {{ | ||
class = ""Akka.Persistence.Redis.Journal.RedisJournal, Akka.Persistence.Redis"" | ||
plugin-dispatcher = ""akka.actor.default-dispatcher"" | ||
configuration-string = ""{fixture.ConnectionString}"" | ||
}} | ||
akka.test.single-expect-default = 3s") | ||
.WithFallback(RedisPersistence.DefaultConfig()); | ||
} | ||
|
||
public RedisEventsByPersistenceIdSpec(ITestOutputHelper output, RedisClusterFixture fixture) | ||
: base(Config(fixture), nameof(RedisEventsByPersistenceIdSpec), output) | ||
{ | ||
ReadJournal = Sys.ReadJournalFor<RedisReadJournal>(RedisReadJournal.Identifier); | ||
} | ||
|
||
protected override void Dispose(bool disposing) | ||
{ | ||
DbUtils.Clean(); | ||
base.Dispose(disposing); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.