System Configuration
Global settings and configuration for the bonus system
🌍
Environment
Environment
production
Global Store Config
{"type":"dynamodb","region":"eu-central-1","tableName":"bonus-system-stage"}ℹ️Environment variables are configured at deployment time
💾
Available Store Types
💾
memoryIn-memory storage
Use case: Development, testing
🔴
redisRedis-backed storage
Use case: Production, distributed systems
🟠
dynamodbAWS DynamoDB
Use case: Production, AWS deployments
📄
jsonfileJSON file-based (read-only)
Use case: GitOps, static configs
📝
yamlfileYAML file-based (read-only)
Use case: GitOps, static configs
📊
Ledger Configuration
Ledgers manage financial transactions and bonus balances.
🗄️
MongoDB LedgerFor persistent storage of transactions
🛡️
Circuit BreakerEnabled for resilience
🔄
Retry HelperAutomatic retry on transient failures
🎯
Ledger RegistryRoutes operations by scope
Configuration Location:
src/lib/ledger/🔌
Data Sources
Configure connections to external data sources
🍃
MongoDBConnected
Primary database for tenant data and bonus instances.
src/lib/db/mongodb.js🔑
KV BackendsAvailable
Key-value stores for caching and session management.
src/lib/storage/🔢
Counter BackendsAvailable
Distributed counters for wagering progress and limits.
src/lib/counters/🧩
Plugin Registry
Available plugins for extending bonus system functionality
🎯
Fact Plugins
Extract facts from events
src/lib/factPlugins/🎁
Bonus Plugins
Define bonus rules
src/lib/bonus/bonuses/📊
Wagering Plugins
Calculate wagering progress
src/lib/bonus/plugins/wageringPlugins/🎉
Reward Plugins
Generate bonus rewards
src/lib/bonus/plugins/rewardPlugins/