Skip to content

Bounded and Capacity-Controlled Resource Pools [MED] #1642

Description

@HayimShaul

Description
Apply explicit upper bounds to every resource pool that wallet operations touch. This includes: capping the RecipientDataCache channel size and the background provisioning goroutine's throughput so that cache-miss storms cannot exhaust memory; setting maximum connection-pool sizes and query timeouts on the underlying wallet database so that concurrent iterator construction cannot hold locks indefinitely; and enforcing a hard limit on the total number of recipient identities that can be registered per wallet (or per enrollment ID) to prevent unbounded growth of the persistent registry and the identitydb store. Without these caps, rate limiting alone can be circumvented by a burst that fills pools before the limiter fires.

Metadata

Metadata

Assignees

Labels

Type

Fields

No fields configured for Task.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions