Configuration Change: The SyncSubscriptionGroup resource type has been removed. Subscriptions are now defined directly in the database configuration.
Subscriptions use Ditto Query Language (DQL) to specify exactly which
documents to sync, helping optimize bandwidth and storage usage.
Basic Configuration
Subscription Field
Subscriptions are configured as part of the database configuration:
Each subscription in the subscriptions array can be either:
Simple String Query
Query with Arguments
Complete Examples
Database with Subscriptions
Complex Subscriptions Example
Configuration Location
Subscriptions are always defined directly in the database configuration:
Best Practices
-
Use DQL best practices.
-
Group Related Subscriptions: Logically organize related subscriptions together in the subscriptions array.
-
Minimize Overlap: Avoid overlapping subscriptions that would sync the same data multiple times.
Important Notes
- Subscription Scope: Subscriptions only affect what data is synchronized to this Edge Server instance, not what data exists elsewhere in the mesh.
- Query Validation: Invalid DQL queries will cause the subscription to fail during Edge Server startup.
- Configuration Updates: Changes to subscription configuration require Edge Server restart to take effect.
- Query Arguments: The
args object supports various data types including strings, numbers, booleans, arrays, and nested objects.