Welcome to the DigiInsight smartcache_samples repository.
This repository contains sample code and examples to help you understand and effectively use the DigiInsight SmartCache.
The samples cover a wide range of use cases and demonstrate the capabilities and features of the SmartCache. Whether you're a beginner or an experienced developer, these samples will provide valuable insights into the workings of DigiInsight SmartCache.
you can use the following solutions:
- SmartCache.Samples.sln to run the samples using diginsight as a package reference.
- SmartCache.Samples.Debug.sln to run the samples using diginsight code as a project reference
pleae, note that diginsight
telemetry
andsmartcache
repositories must also be cloned on the same root folder assmartcache_samples
repository.
After running the sample you'll obtain se service swagger shown:
After calling the operation your %userprofile%\LogFiles\Diginsight
folder will contain the SampleWebApi
log file:
Please note the call has a cache miss from PlantsController.GetPlantsAsync
and latency is over 1 second when obtaining data from PlantsController.GetPlantsImplAsync
.
The second time you call PlantsController.GetPlantsAsync
you'll get a cache hit and latency will be 5ms.
The following articles discuss the details of Diginsight.SmartCache
use and configuration:
-
Diginsight SmartCache repository
includes diginsight smartcache source code and documentation -
HowTo: Cache data, Invalidate entries and reload cache on invalidation
discusses how to cache calls, and add support for invalidation and reload to cached data. -
HowTo: Synchronize cache entries across application instances with ServiceBusCompanion or KubernetesCompanion.
discusses how to configure the ServiceBusCompanion or the KubernetesCompanion to support distributed cache entries across application instances. -
HowTo: Configure SmartCache size, latencies, expiration, instances synchronization and RedIs integration.
discusses how to configure cache size, expiration latencies and connection to external RedIs backing storage. -
HowTo: Boost application performance with age sensitive data management.
discusses how performance of our applications can be boosted by using smartcache. -
[HowTo: Enable data preloading by means of AI assisted algorithms.md]
(TODO): explores how to enable AI assisted preloading to improve data preloading efficiency.
Additional information is available in the following articles:
- Introduction to diginsight smartcache
Explores basic concepts about diginsight smartcache and how to integrate it- HowTo: Debug samples using diginsight project references
Explores how to use the samples solution and debug diginsight code