Skip to Content

Ark Broker

In-memory storage service with Server-Sent Events (SSE) streaming support for Ark queries.

This service provides a basic but complete memory system for an Ark cluster, as well as offering the up-coming streaming APIs which enable real-time streaming responses to queries.

Installation

Install via helm:

helm install ark-broker \ ghcr.io/mckinsey/agents-at-scale-ark/charts/ark-broker

Or for local development:

cd services/ark-broker # Deploy the service... devspace deploy # ...or run in dev mode with live-reload. devspace dev

Configuration

All configuration options are documented in the Helm chart. Key configuration is:

Environment variables:

VariableDescriptionDefault
PORTServer port8080
MAX_MESSAGE_SIZEMaximum message size in bytes10485760 (10MB)
MAX_MEMORY_DBMaximum number of messages/chunks to keep50000
MAX_ITEM_AGEMaximum age of items in seconds0 (no age limit)
MEMORY_FILE_PATHPath to persist memory dataNot set (no persistence)
STREAM_FILE_PATHPath to persist stream dataNot set (no persistence)

The Helm chart can optionally configure a persistent volume for data storage by setting persistence.enabled=true.

Last updated on