Replies: 2 comments
-
CacheCurrent data publishing scheme: The proposed scheme with the cache:
Options for a caching layer:
In any case, adding a cache looks extremely simple. The final cache option is selected on the server side that uses the OGC API. |
Beta Was this translation helpful? Give feedback.
-
Sequence diagramsGetting a feature by its ID. The feature is present in the cacheThe OGC API accesses the cache. If the object is present in the cache, it is immediately returned to the client. Getting a feature by its ID. The feature is NOT present in the cacheThe OGC API checks the cache. If an object is not found in the cache, it makes a request to the data source. From an implementation perspective, this involves passing a delegate to a GetOrCreateAsync method or equivalent in the cache. The information about the object is then added to the cache and the spatial index updated. Getting features in a bboxThe spatial index is being queried. The result is a set of object IDs. Objects based on the received identifiers are requested from the cache (or if they are missing from the data source). Data modification (POST/PUT/PATCH/DELETE)The order in which data is updated is important. It is recommended to update the data source first, followed by the cache, and finally the spatial index. Complete cache update based on data from the sourceThis is not a required scenario. The data in the source can be modified not only through the OGC API, but also directly in the database. In this case, the cache can be fully reloaded or only the data since the last load can be updated. It is also possible to set a time after which objects in the cache become obsolete (cache expiration/duration) instead of using this scenario. |
Beta Was this translation helpful? Give feedback.
-
File sources
Currently, we can use the following APIs:
Current features:
The proposed approach for processing file sources:
Beta Was this translation helpful? Give feedback.
All reactions