> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Redis stream messages

> Read one Redis stream over direct TLS and retain exact message IDs on your app.

Use the [Documents installation](https://docs.bijection.com/integrations/native-elasticsearch) with
`redisDatabase` from `@bijectionhq/app-documents`. Pass one fixed Redis TLS
endpoint as `host:port` and use the same `data` label for the receiver and the mount. Initialize with
`{ selection: { mode: "redis" } }`.

Seal a credential with this JSON shape.

```json theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{
  "username": "orders_reader",
  "password": "<password>",
  "database": 0,
  "source": { "kind": "stream", "key": "orders:events" }
}
```

Use Redis 7 or later in standalone mode. The server certificate must be
trusted by the deployment platform. Grant AUTH, INFO, XRANGE and XINFO
STREAM, restrict key access to the selected stream, and allow SELECT when
using a database other than zero. Run the connector over direct socket
egress. Precreate the stream and use it for append-only production with
Redis-generated IDs. Keep the last accepted entry present until a later
entry is accepted.

The first read starts with the oldest retained entry. Each answer admits
one event and at most 64 field/value pairs within 48 KiB. Fields and values
are base64 and keep their order. Keys combine the installed source
identity with the numeric stream ID pair. The app checks the last
accepted entry as a witness on each resumed read. A missing witness,
provider deletion beyond the committed ID, or a changed server run ID
blocks advancement. Review `source.health` before resetting. A reset reads
the currently retained stream from its beginning. Deletion by absence
and consumer-group acknowledgements are outside this mode.

[Redis XRANGE](https://redis.io/docs/latest/commands/xrange/) ·
[Redis XINFO STREAM](https://redis.io/docs/latest/commands/xinfo-stream/)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.