Workspaces Implementation
On this page
Workspaces leverage SingleStore’s unique architecture and data durability guarantees to launch isolated compute pools for running discrete customer workloads.
Each workspace is a part of a Workspace Group, which allows for the configuration and management of access, updates, and data sharing.
Each workspace group is deployed in a cloud provider and region.
Database Attachments and Data Replication
Databases can be attached to multiple workspaces simultaneously.
For example, a customer-facing SaaS application is running on workspace 1 and writing data into DB01.
Attachments are created on each database, and it is possible for a workspace to have a combination of R/W and R/O attachments.
Writes made to a database from a workspace with an R/W attachment will appear on workspaces with R/O attachments almost instantaneously.
All new writes to a database are typically replicated immediately, allowing workspaces with R/O attachments to serve real-time workloads without waiting for data to load or going through complex ETL processes.
There are two situations in which replay latency can happen:
-
Load replay needs the CPU to go through the log, so if this part is slowed down, replay will fall behind.
-
SingleStore processes and saves transactions in a certain order, but it does not always commit them in that order.
For example, if you have a big load followed by a small load, the system might finish the small task first. However, when it needs to replay or sync this on a replica, the replica has to wait for the big load to finish before replaying the small one.
When attaching a database to a workspace as R/O all new data written will be replicated to the new workspace.
Workspace Groups Updates
Scheduled updates are applied to each workspace group based on the update window assigned.
Workloads that receive updates independently should be run in separate workspace groups to ensure independent update schedules.
Migrating Existing Clusters to Workspaces
Existing customers who are using clusters and want to migrate to workspaces, refer Migrating to Workspaces to plan and implement the move.
Note
All features and capabilities available for clusters are applicable in workspaces.
Last modified: November 27, 2024