Environment Variable | Type | Default | Description |
---|---|---|---|
AWS_REGION | String* | The AWS region of the SQS queue | |
QUEUE_URL | String* | The URL of the queue to consume from | |
SERVER_API_KEY | String* | Environment’s Server API key | |
AWS_ACCESS_KEY_ID | String* | AWS access key ID provided by Stigg | |
AWS_SECRET_ACCESS_KEY | String* | AWS secret access key provided by Stigg | |
ENVIRONMENT_PREFIX | String | production | The Identifier of the environment needs to be the same as the one used by the SDK |
REDIS_HOST | String | ” | Redis host address |
REDIS_PORT | Number | 6379 | Redis port |
REDIS_DB | Number | 0 | Redis DB identifier |
REDIS_USER | String | (Optional) Redis username | |
REDIS_PASSWORD | String | (Optional) Redis password | |
BATCH_SIZE | Number | 1 | Number of messages to receive in a single batch |
KEYS_TTL_IN_SECS | Number | 604,800 (7 days) | The duration in milliseconds that data will be kept in the cache before evicted |
EDGE_API_URL | String | https://edge.api.stigg.io | Edge API address URL |
SENTRY_DSN | String | Loaded from remote | Sentry DSN used for internal error reporting |
DISABLE_SENTRY | Boolean | 0 | Disables reporting internal errors to Sentry |
PORT | Number | 4000 | HTTP server port |
GET /livez
200
if the service is alive.
Healthy response: {"status":"UP"}
GET /readyz
200
if the service is ready to receive messages.
Healthy response: { "status": "UP", "consumers": 10, "redis": "CONNECTED" }
Unhealthy response: { "status": "DOWN", "consumers": 0, "redis": "DISCONNECTED" }
redis
config during initialization:
persistent-cache-service
are configured to use the same Redis instance, DB number, and the same environment prefix.persistent-cache-service
runs efficiently with the following configuration: