Ways to persist data from an App
You can persist results using any of the following approaches:-
Mounted Datasets: Datasets provide read/write storage and are versioned independently from your project files. Use them to store:
- Generated files
- Log outputs
- Snapshots or other intermediate results
-
Databases or External Data Sources: Use standard client libraries to write to:
- SQL or NoSQL databases
- Cloud object storage (for example, S3, Azure Blob)
- Enterprise data warehouses (ensure your runtime environment has credentials and network access)
-
APIs: Your App can invoke internal or external APIs to:
- Record state
- Send metrics or events
- Trigger workflows
- Store data in external services
Concurrency considerations
Apps can serve multiple users at the same time, which means your app code must be designed to handle concurrent access safely. Here are important safeguards:- Use locking mechanisms or atomic operations if multiple users write to the same resource.
- Prefer per-user namespaces, directories, files, or database tables to isolate individual user actions.
- Watch for race conditions or state inconsistencies, especially in long-running or interactive Apps.
Next steps
- Publish and deploy App versions: Create a version and start it for viewers.
- Learn more about how Apps in Domino run and what identity and permissions are used.