Skip to content

Commit

Permalink
allow globally set settings for query plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
an-tex committed Oct 9, 2024
1 parent 0c6b1f1 commit 48e0938
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# override this to use custom settings for the default query plugin
net.sc8s.akka.components.persistence.projection.r2dbc.default = ${akka.persistence.r2dbc}
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ private[r2dbc] trait R2dbcProjection extends EventSourcedT.ProjectionT {

val numberOfProjectionInstances = 1

// override this if you e.g. want to use a readonly endpoint for the projections https://discuss.lightbend.com/t/r2dbc-projections-use-read-only-hot-standby-replicas-for-projections-query/10860
val readJournalPluginId = R2dbcReadJournal.Identifier
// override this if you e.g. want to use a readonly endpoint for the projections https://discuss.lightbend.com/t/r2dbc-projections-use-read-only-hot-standby-replicas-for-projections-query/10860 . or override it in the config to customize all projections
val readJournalPluginId = "net.sc8s.akka.components.persistence.projection.r2dbc.default"
}

object R2dbcProjection {
Expand Down

0 comments on commit 48e0938

Please sign in to comment.