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

# Consume Messages

From another terminal, run the following command to run the consumer application which will read the events from the `purchases` topic and write the information to the terminal.

```bash theme={null}
./out/consumer
```

The consumer application will start and print any events it has not yet consumed and then wait for more events to arrive. On startup of the consumer, you should see output resembling this:

```bash theme={null}
Consumed event from topic purchases: key = awalther   value = batteries
Consumed event from topic purchases: key = htanaka    value = alarm clock
Consumed event from topic purchases: key = awalther   value = t-shirts
Consumed event from topic purchases: key = eabara     value = t-shirts
Consumed event from topic purchases: key = jbernard   value = t-shirts
Consumed event from topic purchases: key = eabara     value = alarm clock
Consumed event from topic purchases: key = jbernard   value = t-shirts
Consumed event from topic purchases: key = sgarcia    value = gift card
Consumed event from topic purchases: key = jsmith     value = t-shirts
Consumed event from topic purchases: key = jsmith     value = alarm clock
```

Rerun the producer to see more events, or feel free to modify the code as necessary to create more or different events.

Once you are done with the consumer, enter `Ctrl-C` to terminate the consumer application.
