Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The OpenHub framework uses the following data structures:

NameData structure typeUsageCommon parameters
throttlingmapthrottling counting

Distributed map for counting throttling.
Configuration has several interesting points - we need computation as fast as possible, accuracy is not crucial:

  • no backups
  • eviction-policy = Least Recently Used)
  • merge policy = entry with the latest update wins
config_paramsmapconfiguration parameters caching

Distributed map for caching configuration parameters.
Main parameters:

  • no backups
  • eviction-policy = Least Recently Used
  • time-to-live-seconds = 600 seconds (10 minutes)
  • max-idle-seconds = 3600 (1 hour)


Tip

There is org.openhubframework.openhub.core.config.CacheNames class with all defines cache names.