Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi journal config feature implementation #272

Merged
merged 11 commits into from
Mar 15, 2023

Conversation

Arkatufus
Copy link
Contributor

@Arkatufus Arkatufus commented Dec 9, 2022

Multi journal configuration feature based on discussion in akkadotnet/Akka.Hosting#142

AzureTableStorageMultiJournalSetup and AzureBlobMultiSnapshotSetup class are wrapper classes that contains a dictionary that maps journal/snapshot config id with their respective setup classes.
Setup class are applied on to the respective journal/snapshot settings twice, once for the "global" Setup class and then with the individual per ID Setup classes, if any were found.

Option classes are added for Azure journal and snapshot, the AzureTableStorageJournalOptions class allows user to setup multiple journal with different journal identifiers so that it can be used by other plugins that can utilize specific journal ids

@Arkatufus Arkatufus marked this pull request as draft December 9, 2022 14:34
@Aaronontheweb
Copy link
Member

@Arkatufus is this already implemented or does this still need to be merged?

@Arkatufus Arkatufus changed the title A proof of concept of how multi journal config can be implemented Multi journal config feature implementation Mar 13, 2023
@Arkatufus Arkatufus marked this pull request as ready for review March 13, 2023 16:45
Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - @Arkatufus can you do a separate PR to cleanup the copyright headers on the code sample?

// <copyright file="ShardRegionKey.cs" company="Akka.NET Project">
// Copyright (C) 2013-2023 .NET Foundation <https://github.com/akkadotnet/akka.net>
// </copyright>
// -----------------------------------------------------------------------
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No DNF headers here - this is a Petabridge project


builder.AddSetup(setup);
builder.AddSetup(multiSetup);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Aaronontheweb Aaronontheweb merged commit 05368d5 into petabridge:dev Mar 15, 2023
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