Skip to content

Conversation

@Aaronontheweb
Copy link
Member

0.9.0 July 21 2022

Added Akka.Hosting support to Akka.Persistence.Azure, which you can activate via the following:

First, install the Akka.Persistence.Azure.Hosting NuGet package:

PS> install-package Akka.Persistence.Azure.Hosting

Next, add the WithAzurePersistence method calls to your AkkaConfigurationBuilder (from Akka.Hosting):

var conn = Environment.GetEnvironmentVariable("AZURE_CONNECTION_STR");
var host = new HostBuilder()
    .ConfigureServices(collection =>
    {
        collection.AddAkka("MyActorSys", builder =>
        {
        	// enables both journal and snapshot store
            builder.WithAzurePersistence(conn);
            builder.StartActors((system, registry) =>
            {
                var myActor = system.ActorOf(Props.Create(() => new MyPersistenceActor("ac1")), "actor1");
                registry.Register<MyPersistenceActor>(myActor);
            });
        });
    }).Build();

await host.StartAsync();
return host;

You can also call the following methods to activate the journal / snapshot stores independently:

  • WithAzureTableJournal
  • WithAzureBlobsSnapshotStore

dependabot bot and others added 5 commits July 21, 2022 10:21
Bumps [Azure.Data.Tables](https://github.com/Azure/azure-sdk-for-net) from 12.5.0 to 12.6.1.
- [Release notes](https://github.com/Azure/azure-sdk-for-net/releases)
- [Commits](Azure/azure-sdk-for-net@Azure.Data.Tables_12.5.0...Azure.Data.Tables_12.6.1)

---
updated-dependencies:
- dependency-name: Azure.Data.Tables
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [Docker.DotNet](https://github.com/Microsoft/Docker.DotNet) from 3.125.5 to 3.125.10.
- [Release notes](https://github.com/Microsoft/Docker.DotNet/releases)
- [Commits](dotnet/Docker.DotNet@v3.125.5...v3.125.10)

---
updated-dependencies:
- dependency-name: Docker.DotNet
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* added initial Akka.Persistence.Hosting implementation for Azure

close #222

* fixed build issues

* added sanity check for Akka.Persistence.Azure.Hosting

* close #224

fixed malformed log message

* fixed Akka.Hosting test setup
@Aaronontheweb Aaronontheweb enabled auto-merge July 21, 2022 17:08
@Aaronontheweb Aaronontheweb disabled auto-merge July 21, 2022 17:09
@Aaronontheweb Aaronontheweb merged commit a2a5dc6 into master Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants