Updated on February 22, 2021
Enable the Chain Proxy cache
Codefi Orchestrate uses a caching mechanism to reduce the number of calls to the Blockchain nodes. Follow these steps to configure it when starting the Orchestrate Gateway API.
Tip
Configure each microservice using microservice-specific environment variables. Command line options are also available and take precedence over environment variables.
Configuration
Environment Variable | Command line option | Description | Default |
---|---|---|---|
PROXY_CACHE_TTL |
proxy-cache-ttl |
Proxy Cache TTL duration | 0s (disabled) |
PROXY_MAXIDLECONNSPERHOST |
proxy-max-idle-connections-per-host |
Maximum number of open HTTP connections to a chain | 50 |