Cache strategy

Feedback


With the development of cache in SuperMap GIS series products, SuperMap server product provides all- around support in cache. It supports HTTP Cache, Request Cache covering all service types, and provides tiles of raster, vector and attributes for map services.

Generally speaking, the map cache refers to map tiles. From the product 7C, besides the map tiles, the map cache also includes vector tiles and attribute tiles.

HTTP Cache

SuperMap iServer support to enable HTTP Cache.

HTTP Cache saves the results of different requests to memory to implement caching. You can select whether to enable/disable HTTP Cache according to the demand. After enabling HTTP Cache, the result will be cached automatically. When client sends the same request, the server will return this cached result to improve responding speed.

SuperMap iServer enables HTTP Cache by default. Cache life cycle is 1 minute. When there are no same request in one minute, the cached result will be invalidated automatically. REST map services and REST 3D services supports the HTTP Cache.

Request Cache covering all function services

Request Cache means the server saving the response result of the request from the client to local. When the server receives the same request later, it only directly return the cached result . Here the response result can be map tile, analysis result, 3D model, etc. Request Cache supports all-around REST services, such as map, data, analysis, and 3D, etc.

Table 1 Services and resources which support Request Cache

Remote REST service Resources which support Request Cache
REST map service entireImage, image, overview, symbol, tileImage
REST data service features feature statistic
Notes: only support the query operations and the getting operation of features.
REST spatial analysis service The BufferAnalyst resource datasetBufferResults, datasetBufferResult, geometryBufferResults, geometryBufferResult
The OverlayAnalyst resource datasetOverlayResults, datasetOverlayResult, geometryOverlayResults, geometryOverlayResult
The resource for extracting isoline datasetIsolineResults, datasetIsolineResult, geometryIsolineResult, geometryIsoregionResults
The resource for extracting isoregion datasetIsoregionResults, datasetIsoregionResult, geometryIsoregionResults, geometryIsoregionResult
The interpolation analysis resource datasetInterpolation, datasetThiessenResults, datasetThiessenResult, interpolationIDW,
interpolationIDWResult, interpolationDensity, interpolationDensityResult,
interpolationRBF, interpolationRBFResult, interpolationKriging,
interpolationKrigingResult
The Linear Reference resource datasetLinearReferencing, generateSpatialData, spatialDataResult
The analysis result set of space relations datasetGeorelationResults, datasetGeorelationResult
The result set resource of dataset proximity analysis datasetGeorelationResults, datasetGeorelationResult, geometryThiessennResults, geometryThiessennResult
REST transportation analysis service TSPPaths, serviceAreas, MTSPPaths, location, closestfacilities, paths
REST traffic transfer service transferSolutions, transferPath, transferStops, stopListByKeyword
REST 3D service datas, data, modelIndex, config, dataversion, tiledata

Map Cache for three types of tiles

The map cache is mainly created by Distributed Tiling service. This function supports to split the map data into many formats and tiles, such as FastDFS, MongoDB, SMTiles, UGCV5 map tiles, SVTiles vector tiles, and UTFGrid attribute tiles.

Map tile

Split and store all layers in map as raster map tiles, supporting FastDFS and MongoDB distributed storage, SMTiles and MBTiles and SuperMap UGC formats.

SuperMap UGC is a general and traditional tile format in SuperMap products. The map tiles with same version can be used. Distributed tile service supports the "UGCV5" tiles, which means the 5.0 original caches.  

Vector tile

Split and store the vector layers in maps in the format of vector tiles, supporting SVTiles format.

Attribute tile

Store the attribute data of vector layers in maps in the format of attribute tiles, supporting UTFGrid format.

Please refer to Map cache format for more information.