Skip to content

feat: give the adapters a Redis registry cache - #125

Open
tdprajwal wants to merge 7 commits into
developmentfrom
feat/network-adapter-109-redis-cache
Open

tdprajwal wants to merge 7 commits into
developmentfrom
feat/network-adapter-109-redis-cache

Conversation

@tdprajwal

@tdprajwal tdprajwal commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

What

Adds Redis for the adapters, and turns on the registrycache plugin (OpenAgriNet/network-adapter#132) in the network and provider modules of the chart and quick-start configs. cache.registryRecords: false turns the plugin off; cache.preload lists the entities it keeps.

Breaking: set cache.addr before upgrading. Needs an adapter image that includes the registrycache plugin.

Why

Signature checks, agreement checks and routing read active registry records from Redis instead of calling the registry per request.

Testing

helm lint and helm template with each CI values file, with cache.registryRecords on and off.

Closes OpenAgriNet/network-adapter#109

@tdprajwal
tdprajwal force-pushed the feat/network-adapter-109-redis-cache branch from 3327508 to de4d7ee Compare November 4, 2026 12:46
@tdprajwal

Copy link
Copy Markdown
Contributor Author

Self-review:

  • Fixed the cache.ttl comment: the network and provider adapters use the registrycache plugin's 24h instead.
  • Merge after network-adapter#132 is released, with the adapter image tag bumped: the current 0.2.0 has no registrycache plugin, and the adapter will not start with this config.

@tdprajwal
tdprajwal force-pushed the feat/network-adapter-109-redis-cache branch from 4a778d1 to 43d0a96 Compare November 11, 2026 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant