Continuous query
A continuous query remains active to process incoming data and update or emit results as the data arrives.
Kafka Streams in Action, Second Edition
A push query is a continuous ksqlDB query that emits changing results to the client that issued it without persisting those results in a topic.
- How it is used
- Streams ongoing asynchronous query results directly to the requesting client.
- How deep it goes
- Defines execution and delivery behavior, then demonstrates SELECT, WHERE, and LIMIT without detailing query internals.
- Examples
- Uses activity_leaders selections with EMIT CHANGES, a total_steps filter, and a ten-row limit.
- What you can do after
- Apply it via ksqlDB to receive filtered, continually changing stream or table results in a client.
Read how Kafka Streams in Action, Second Edition explains continuous query →
Kafka for Architects
A continuous query is a query that remains active and incrementally updates its results as new data arrives.
- How it is used
- Processes incoming Kafka events continuously to deliver low-latency filtered or aggregated results to downstream consumers.
- How deep it goes
- Explains stream filtering, grouping, and windows, and sketches translation into Kafka Streams applications without low-level implementation details.
- Examples
- Uses expensive-order filtering, per-country counts, and one-hour tumbling-window counts.
- What you can do after
- Build it with ksqlDB by defining a stream, applying SQL transformations, and emitting results to an output topic.
Event Processing in Action
A query that remains active to process incoming data continuously rather than returning a result from a fixed input.
- How it is used
- Models stream processing as always-running operators that process incoming data in a data-flow graph.
- How deep it goes
- Explains how queries process successive bounded windows of potentially unbounded streams.
- Examples
- Illustrates operators as graph nodes connected by event-stream edges.
- What you can do after
- Understand how stream processing applies queries continuously to successive windows.
Read how Event Processing in Action explains continuous query →
What to know first
- SQLSQL is a standardized declarative language for defining, querying, and manipulating data in relational database systems.
Related concepts
- pull querycontrasts with · A pull query is an on-demand query that retrieves a point-in-time result from current or materialized data and terminates after returning it.
- persistent querycontrasts with · A persistent query is a server-side ksqlDB query whose continuously computed results are stored in a Kafka topic for later consumption.
- querykind of · A query is a request or operation that retrieves information from a system or data source.
- SQLuses · SQL is a standardized declarative language for defining, querying, and manipulating data in relational database systems.
Questions about continuous query
What is continuous query?
A continuous query remains active to process incoming data and update or emit results as the data arrives.
Which Manning books explain continuous query?
Kafka Streams in Action, Second Edition, Kafka for Architects and Event Processing in Action.
What should I know before learning continuous query?
Manning books that teach continuous query usually introduce SQL first.
What is the difference between continuous query and pull query?
A continuous query remains active to process incoming data and update or emit results as the data arrives. A pull query is an on-demand query that retrieves a point-in-time result from current or materialized data and terminates after returning it.
What is continuous query a kind of?
Continuous query is a kind of query. A query is a request or operation that retrieves information from a system or data source.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.


