s.akka-persistence-postgresql_2.13.0.3.0.source-code.reference.conf Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of akka-persistence-postgresql_2.13 Show documentation
Show all versions of akka-persistence-postgresql_2.13 Show documentation
Reactive Akka Journal, Snapshot Store, and Persistence Query plugin for PostgreSQL
The newest version!
postgresql-journal {
# FQCN of the R2DBC Postgres journal plugin
class = "akka.persistence.postgresql.journal.PostgreSqlJournal"
# Timeout for the underlying asyncReplayMessages SQL query
replay-messages-timeout = 10s
db {
# The hostname of the database server
hostname = "localhost"
# The port of the database server
port = 5432
# The database username
username = "postgres"
# The username's password
password = "s3cr3t"
# The name of the database
database = "db"
# Connection pool
pool {
# Initial pool size.
initial-size = 10
# Maximum pool size.
max-size = 10
# Maximum lifetime of the connection in the pool.
max-life-time = 0
# Maximum idle time of the connection in the pool.
max-idle-time = 30 minutes
# Maximum time to acquire connection from pool.
max-acquire-time = 0
# Maximum time to create a new connection.
max-create-connection-time = 0
}
}
}
postgresql-snapshot-store {
# FQCN of the R2DBC Postgres snapshot store plugin
class = "akka.persistence.postgresql.snapshot.PostgreSqlSnapshotStore"
db {
# The hostname of the database server
hostname = "localhost"
# The port of the database server
port = 5432
# The database username
username = "postgres"
# The username's password
password = "s3cr3t"
# The name of the database
database = "db"
# Connection pool
pool {
# Initial pool size.
initial-size = 10
# Maximum pool size.
max-size = 10
# Maximum lifetime of the connection in the pool.
max-life-time = 0
# Maximum idle time of the connection in the pool.
max-idle-time = 30 minutes
# Maximum time to acquire connection from pool.
max-acquire-time = 0
# Maximum time to create a new connection.
max-create-connection-time = 0
}
}
}
postgresql-read-journal {
class = "akka.persistence.postgresql.query.PostgresqlReadJournalProvider"
journal-plugin = "postgresql-journal"
refresh-interval = 1 second
db {
# Connection pool
pool {
# Initial pool size.
initial-size = 10
# Maximum pool size.
max-size = 10
# Maximum lifetime of the connection in the pool.
max-life-time = 0
# Maximum idle time of the connection in the pool.
max-idle-time = 30 minutes
# Maximum time to acquire connection from pool.
max-acquire-time = 0
# Maximum time to create a new connection.
max-create-connection-time = 0
}
}
}