An Event Store serves as a comprehensive repository comprising databases and file directories utilized by Syntasa applications to store and manage data generated through various processes. The primary purpose of an Event Store is to facilitate the efficient storage and retrieval of data, enabling seamless operation of Syntasa applications.
The Datastore Event Store Type reference can be utilized with any Synthesizer, Composer, or Orchestrator template type app.
Typically, an Event Store encompasses three primary databases and corresponding file storage directories:
- Development Database (dev): This database is the primary workspace for developers and administrators to experiment with configurations and settings. It allows for iterative development and testing of new features without impacting the production environment.
- Snapshot Database (snap): The snapshot database functions as a repository for storing configurations and settings at specific points in time. Snapshots serve as reference points and can be crucial for rollback procedures in case of unforeseen issues or the need to revert to a previous configuration state.
- Production Database (prod): The production database is the operational backbone of the Event Store, housing the finalized configurations and settings utilized in live environments. Data stored in the production database is actively used by Syntasa applications to deliver real-time insights and analytics.
Note: It's important to understand that Event Stores come into existence and become operational only when data is stored in them. Therefore, make sure you have at least one Event Store set up before you create an app.
To define an Event Store Type of Datastore you may select the Event Store Type while creating a new Datastore.
All apps require a store, whether it be an event store or an ID store, to be specified. It is recommended to have one event store per Synthesizer app, but it is not necessary.
Key Functions and Benefits
Having distinct database and file repositories for each environment offers numerous advantages:
- Configuration Management: Event Stores streamline the management of configurations across different environments, facilitating smooth transitions from development to production. They ensure consistency and reliability in system settings, minimizing the risk of discrepancies between environments.
- Testing and Deployment: By providing distinct development and production environments, Event Stores enable comprehensive testing of new configurations before they are deployed to live systems. This proactive approach mitigates the risk of disruptions and ensures a seamless deployment process.
- Rollback Capabilities: The presence of snapshot databases empowers administrators with the ability to roll back configurations to previous states swiftly. This feature serves as a safety net, allowing for quick recovery from configuration errors or unforeseen issues without compromising data integrity.