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

# Messages: browse and produce

> Read records from a topic — point-in-time or live — across serdes, and produce test messages from a drawer.

Open a topic from the **Topics** page and switch to its **Messages** tab.
Everything on this page is per-topic, and your serde choices are remembered
per topic — shared between browsing and producing.

![A topic's Messages tab showing records with the browsing toolbar](https://mintcdn.com/alginte-9b6e883f/XzJ_luxj10zyLCus/images/topic-messages.png?fit=max\&auto=format\&n=XzJ_luxj10zyLCus\&q=85\&s=0ad95ea7f3b4a2e0b80d3de4e3fa6c2b)

The Messages tab: seek, serde, and partition controls above the record table.

## Browsing messages

The toolbar drives what you see:

* **Key / Value deserializer** — how records are decoded: String, Short,
  Integer, Long, Float, Double, Bytes, JSON, JSON Schema, Avro Schema,
  Protobuf Schema, or Void for a key that is intentionally absent.
* **Partitions** — all partitions by default, or a subset.
* **Max results** — the total cap for a fetch (10 up to 1000).
* **Seek type** — *where* in the topic to read:

| Seek | What you get |
| - | - |
| **Newest** | The latest N messages (the default). |
| **Oldest** | From the beginning of the topic. |
| **Offset ≥** / **Offset ≤** | From, or up to, a specific offset. |
| **After** / **Before** | Around a point in time (a date-time picker appears). |
| **Live** | A continuous tail of new messages as they arrive. |

**Live** mode streams into the table as records land, with **Pause /
Continue** and a clear control; the other seek types fetch a page and offer
**Reload**.

![The Seek dropdown open on a topic's Messages tab, showing Newest, Oldest, offset, time, and Live options](https://mintcdn.com/alginte-9b6e883f/XzJ_luxj10zyLCus/images/topic-messages/seekType.png?fit=max\&auto=format\&n=XzJ_luxj10zyLCus\&q=85\&s=92386d0ee68534af5abb69a91c7a40b7)

The seven seek types — from point-in-time browsing to a live tail.

> [!NOTE]
>
> On a very large or slow topic a fetch can hit its polling budget before
> reaching the requested count — the table then flags the result as
> incomplete rather than stalling. Narrow the partitions or lower Max results
> and reload.

### Compacted topics show fewer records than you asked for

Seeking works in **offsets**, and on a [compacted](https://kafka.apache.org/documentation/#compaction)
topic offsets are not records: compaction removes superseded values for a key
and leaves gaps behind. So asking for the latest 100 records may return far
fewer — everything that still exists in that offset range. Nothing is broken
and nothing is hidden; the range simply holds fewer live records than its
size suggests. For the same reason the Partitions tab labels its count
**≈ messages** ("based on offsets difference") — on a compacted topic the
real number is lower.

Two related things worth recognizing on compacted topics:

* **Blank values are real records.** A *tombstone* — a record with a `null`
  value — is how a key is marked deleted. It shows as an empty value cell,
  and that's the record, not a decoding failure.
* **Consumer-group lag reads high.** Lag is `latest − committed` offsets, so
  it counts the gaps too; a group can show lag it will never actually
  process. See [Consumer groups](https://docs.alginte.com/guides/consumer-groups.md).

## Producing a message

Click **Produce Message** on the topic's page. The form slides in as a
resizable drawer from the right — the page stays usable behind it, so with
the Messages tab in **Live** mode you can watch your own message arrive.

1. **Pick the Key and Value serdes** — the same list as browsing, plus
   **Void** for an intentional `null` (a compaction tombstone). Numeric and
   JSON serdes deliberately reject empty input — "I mean null" is Void,
   never a forgotten field.
2. **Enter the key and value** — a full editor with live validation for JSON
   and schema serdes, a plain input for scalars. Or click **Generate
   Randomly** to fill the field with serde-appropriate sample data — handy
   for quickly exercising a topic or its consumers.
3. **For a schema serde, pick the Subject** — the Schema Registry subject the
   record is encoded against. The picker filters to subjects whose registered
   type matches the serde, and a scope switch (*Default* = topic-prefixed
   subjects / *All subjects*) narrows the list.
4. *(Optional)* **pick the Schema version.** Once a subject is chosen, a
   **Schema version** selector lists that subject's registered versions and
   defaults to the latest. Choose an older one to produce exactly what a
   client that has not been upgraded would send — the record is encoded
   against that version and carries its schema id, so you can prove your
   consumers still handle it before anything is upgraded. Available since
   0.8.0.
5. *(Optional)* expand the collapsed **Partition**, **Timestamp**,
   **Headers**, or **Compression** panels to override the defaults (Kafka
   picks the partition, the broker stamps the time, no headers, no
   compression).
6. **Submit** — a success toast confirms, and the Messages tab behind the
   drawer refreshes.

![The Produce Message drawer open beside the record table, with key and value serdes, the JSON editor, and Partition/Timestamp/Headers/Compression panels](https://mintcdn.com/alginte-9b6e883f/XzJ_luxj10zyLCus/images/topic-messages/produceMessage.png?fit=max\&auto=format\&n=XzJ_luxj10zyLCus\&q=85\&s=f624ffde84773f71878c6dbc4c3d5b54)

The produce drawer over the Messages tab: serde pickers, the value editor, and the collapsed override panels.

> [!NOTE]
>
> Producing is deliberately **permissive**: any serde can be produced to any
> topic, and a serde that doesn't match the topic's registered schema raises
> a non-blocking warning rather than a hard stop — the same behaviour as
> comparable Kafka UIs. Hard enforcement, where you want it, belongs to
> broker-side schema validation.

Two power details for schema users: the **Schema ID in headers** toggle
places the Schema Registry id in a record header instead of the payload
prefix (Confluent's header format — consumers with the default deserializer
handle both), and the **Compression** choice sets the producer codec — mostly
useful for testing a topic and its consumers against a specific codec, since
a single hand-produced record gains nothing from compression.


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