1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
For production deployments with multiple users and horizontal scaling.
Build with the `cloud-runtime` feature:
```bash
cargo build --release --features cloud-runtime
```
Or use the Docker image (cloud-runtime is included).
Sessions are stored in Redis for fast access and cross-pod sharing.
```bash
RECURSIVE_REDIS_URL=redis://your-redis-host:6379
RECURSIVE_REDIS_KEY_PREFIX=recursive: # optional namespace
RECURSIVE_REDIS_SESSION_TTL_SECS=7200 # 2 hours default
```
Sessions automatically expire after TTL. Extend the TTL on each access.
Full conversation transcripts and memory are stored in S3.
```bash
RECURSIVE_S3_BUCKET=my-recursive-bucket
RECURSIVE_S3_PREFIX=recursive
RECURSIVE_S3_TENANT_ID=default # multi-tenant namespace
AWS_DEFAULT_REGION=us-east-1
```
For LocalStack (local S3 emulation):
```bash
AWS_ENDPOINT_URL=http://localhost:4566
AWS_ACCESS_KEY_ID=test
AWS_SECRET_ACCESS_KEY=test
```
```yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: recursive
spec:
replicas: 3
selector:
template:
```
Use `RECURSIVE_S3_TENANT_ID` to namespace data per tenant. Each tenant's transcripts and memory are isolated under `s3://bucket/prefix/tenant_id/`.