a love letter to tangled (android, iOS, and a search API)
19
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs: add post-deploy checklist to deployment walkthrough

* set read limit for JetStream connection

+15
+13
docs/reference/deployment-walkthrough.md
··· 113 113 114 114 - PostgreSQL restore is the rollback primitive 115 115 - keep `--local` only as a temporary development fallback 116 + 117 + ## Post-Deploy Checklist 118 + 119 + After a fresh deploy or indexer recovery: 120 + 121 + 1. confirm `migrate` exited successfully 122 + 2. confirm `api` returns `200` from `/readyz` 123 + 3. confirm `indexer` returns `200` from `/health` 124 + 4. in the `indexer` container run the following 125 + 1. run `twister backfill` 126 + 2. run `twister enrich` 127 + 3. run `twister reindex` 128 + 5. watch `indexer` logs and confirm the Tap cursor keeps moving forward
+2
packages/api/internal/api/jetstream.go
··· 16 16 const ( 17 17 jetstreamConsumerName = "jetstream-cache-v1" 18 18 jetstreamReconnectDelay = 5 * time.Second 19 + jetstreamMaxReadBytes = 8 << 20 19 20 // persist cursor every N events 20 21 jetstreamCursorInterval = 50 21 22 ) ··· 66 67 return fmt.Errorf("jetstream dial: %w", err) 67 68 } 68 69 defer conn.CloseNow() 70 + conn.SetReadLimit(jetstreamMaxReadBytes) 69 71 70 72 s.log.Info("jetstream consumer connected", slog.Int64("cursor_us", cursorUS)) 71 73