Skip to content

Instantly share code, notes, and snippets.

@Aaronontheweb
Created August 24, 2021 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Aaronontheweb/4c97e62a4308ace535e47bde157433b1 to your computer and use it in GitHub Desktop.
Save Aaronontheweb/4c97e62a4308ace535e47bde157433b1 to your computer and use it in GitHub Desktop.
Multi-journal Akka.Persistence configuration
akka.persistence{
journal {
plugin = "akka.persistence.journal.sql-server"
sql-server {
# qualified type name of the SQL Server persistence journal actor
class = "Akka.Persistence.SqlServer.Journal.SqlServerJournal, Akka.Persistence.SqlServer"
# connection string used for database access
connection-string = "str1"
# SQL server schema name to table corresponding with persistent journal
schema-name = dbo
# SQL server table corresponding with persistent journal
table-name = EventJournal
# metadata table
metadata-table-name = Metadata
}
sql-server2 {
# qualified type name of the SQL Server persistence journal actor
class = "Akka.Persistence.SqlServer.Journal.SqlServerJournal, Akka.Persistence.SqlServer"
# connection string used for database access
connection-string = "str1"
# SQL server schema name to table corresponding with persistent journal
schema-name = dbo
# SQL server table corresponding with persistent journal
table-name = EventJournal2
# metadata table
metadata-table-name = Metadata2
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment