> For the complete documentation index, see [llms.txt](https://bus.node-ts.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bus.node-ts.com/guide/transports/redis.md).

# Redis

Redis can be used as a message transport by installing the **@node-ts/bus-redis** package. This will configure Redis to use lists as de-facto message queues and route messages according to your application handlers.

### Installation

Install the **@node-ts/bus-redis** package

```bash
npm install @node-ts/bus-redis
```

Configure the Redis transport and provide it to the bus configuration

```typescript
import { Bus } from '@node-ts/bus-core'
import { RedisTransport, RedisTransportConfiguration } from '@node-ts/bus-redis'

const redisTransportConfiguration: RedisTransportConfiguration = {
  queueName: 'accounts-application-queue',
  connectionString: 'redis://127.0.0.1:6379',
  maxRetries: 3
}
const redisTransport = new RedisTransport(redisTransportConfiguration)
await Bus
  .configure()
  .withTransport(redisTransport)
  .initialize()
```
