Best approach for handling large initial datasets in OPAL_DATA_CONFIG_SOURCES #847
-
|
Hi, My initial data is fetched through Specifically:
Any guidance, best practices, or pointers to relevant docs/examples would be much appreciated. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
1. Multiple Data Source EntriesYou can break down your data loading into multiple entries within 2. External API Server for Dynamic ConfigurationOPAL supports redirecting to an external API server that can serve different
The external API server would expose an endpoint that returns a Multi-Tenant Architecture ConsiderationFor scalability with multiple tenants, OPAL supports a single-topic multi-tenant configuration where all tenants share one topic but each gets its own data source with different destination paths[(3)](https://docs.opal.ac/tutorials/single-topic-multi-tenant). This approach provides better resource utilization and doesn't require service restarts when adding new tenants[(3)](https://docs.opal.ac/tutorials/single-topic-multi-tenant). For more details on configuring external data sources and the OPAL Scope API, check out the [Use External Data Source guide](https://docs.permit.io/how-to/manage-data/use-external-data-source)[[(4)](https://docs.permit.io/how-to/manage-data/use-external-data-source)](https://docs.permit.io/how-to/manage-data/use-external-data-source). ** |
Beta Was this translation helpful? Give feedback.
1. Multiple Data Source Entries
You can break down your data loading into multiple entries within
OPAL_DATA_CONFIG_SOURCES, where each entry fetches a different subset of data and stores it at different paths[(1)](https://docs.opal.ac/getting-started/tldr). Each entry can point to a different URL (e.g., different pages of your API) with uniquedst_pathvalues.2. External API Server for Dynamic Configuration
OPAL supports redirecting to an external API server that can serve different
DataSourceEntryconfigurations dynamically[(2)](https://docs.opal.ac/tutorials/configure_external_data_sources). This approach allows you to: