Skip to content

Instantly share code, notes, and snippets.

@StarpTech
Created January 1, 2020 18:22
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 StarpTech/d023c9a8847485d8f2ee9805996f42ed to your computer and use it in GitHub Desktop.
Save StarpTech/d023c9a8847485d8f2ee9805996f42ed to your computer and use it in GitHub Desktop.
NATS Streaming Event Store configuration
max_payload: 10485760
streaming {
store: "SQL"
sql_options: {
no_caching: true
driver: "postgres"
source: "dbname=mydb host=roach1 port=26257 user=test sslmode=disable readTimeout=5s writeTimeout=5s"
}
store_limits {
max_subs: 100
max_channels: 100
max_msgs: 0
max_inactivity: "0h"
max_bytes: 0
max_age: "0s"
channels: {
"eventstore.events.>": {
max_msgs: 0
max_bytes: 1MB
max_age: "72h"
max_inactivity: "0h"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment