Lightning Tables in Confluent Cloud

A Lightning Table makes the data in an Apache Kafka® topic available for low-latency SQL queries. You enable a Lightning Table for a topic, and then you query it with SQL. You can query from the Confluent Cloud Console, an HTTP API, a Model Context Protocol (MCP) client, the Confluent CLI, or a Java Database Connectivity (JDBC) client.

How Lightning Tables work

When you enable a Lightning Table for a topic, Confluent Cloud materializes the topic data into a table that’s optimized for fast lookups. Confluent Cloud updates the Lightning Table within 100 milliseconds of new data arriving in the topic.

Lightning Tables are fully managed. You don’t need to provision infrastructure, write Kafka consumers, or manage Apache Flink® jobs.

Key capabilities

Lightning Tables provide the following capabilities:

Supported cluster types and regions

Lightning Tables are available on Basic, Standard, Enterprise, and Dedicated clusters on AWS.

Lightning Tables are available in some AWS regions. To find them, see the Lightning Tables row in the tables in AWS region availability.

Ways to query a Lightning Table

You query a Lightning Table with SQL through any of the following interfaces:

You can’t run queries in the Cloud Console or with the Confluent CLI over a private network. Instead, use the API, MCP, or JDBC with a private endpoint. For more information, see Private Networking for Lightning Tables in Confluent Cloud.

To learn more about Lightning Table queries, see Query a Lightning Table in Confluent Cloud. For the SQL that a Lightning Table query supports, see SQL Reference for Lightning Table Queries in Confluent Cloud.

Append and upsert modes

A Lightning Table ingests data in one of two modes. The mode determines what you can query:

  • Append mode (default): The Lightning Table ingests every record from the topic, so you can query all the topic’s records. This mode suits event logs and other immutable data.

  • Upsert mode: The Lightning Table keeps only the latest record for each key, so you query the current state of each key rather than its full history. This mode suits stateful entities, such as customer profiles, inventory, or order status.

The Lightning Table selects the mode automatically based on the topic’s cleanup.policy. For upsert mode requirements and behavior, see Upsert mode.