forked from confluentinc/ksql
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: refactor pull and push queries topics (DOCS-2891, DOCS-2956) (c…
- Loading branch information
1 parent
125e4f9
commit 1a910b6
Showing
6 changed files
with
125 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,35 @@ | ||
--- | ||
layout: page | ||
title: Queries | ||
tagline: Query event streams | ||
description: Learn how to query event streams by using the SELECT statement. | ||
keywords: ksqldb, query, select | ||
tagline: Query materialized views of event streams | ||
description: Learn how to query materialized views of event streams by using the SELECT statement. | ||
keywords: ksqldb, query, select, pull, push, materialized view | ||
--- | ||
|
||
- [Pull Queries](pull.md) | ||
- [Push Queries](push.md) | ||
ksqlDB has a rich set of constructs for both storing events in collections and | ||
deriving new ones through stream processing. Sometimes, you need to process | ||
your events by aggregating them together into a materialized view. In this | ||
case, you need a way for your applications or microservices to leverage this | ||
view. That's where queries come in. | ||
|
||
Push and pull queries | ||
--------------------- | ||
|
||
Queries enable you to ask questions about materialized views. ksqlDB supports | ||
two different kinds of client-issued queries: push and pull. | ||
|
||
- [Push Queries](push.md) enable you to subscribe to a result as it changes in | ||
real-time. | ||
- [Pull Queries](pull.md) enable you to look up information at a point in time. | ||
|
||
ksqlDB supports both kinds of queries by using SQL over its REST API. Combining | ||
them enables you to build powerful real-time applications. | ||
|
||
API Reference | ||
------------- | ||
|
||
- [SELECT (Push Query)](../../developer-guide/ksqldb-reference/select-push-query.md) | ||
- [SELECT (Pull Query)](../../developer-guide/ksqldb-reference/select-pull-query.md) | ||
|
||
|
||
Page last revised on: {{ git_revision_date }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,31 @@ | ||
--- | ||
layout: page | ||
title: Push Queries | ||
tagline: Query instantaneous state | ||
tagline: Query state continuously | ||
description: Learn about continuously updated queries by using the SELECT statement. | ||
keywords: ksqldb, query, select | ||
--- | ||
keywords: ksqldb, push, query, select | ||
--- | ||
|
||
Push queries are a form of query issued by a client that subscribe to a result | ||
as it changes in real-time. A good example of a push query is subscribing to a | ||
particular user’s credit score. The query requests the value of the credit | ||
score. Because it's a push query, any change to the credit score is "pushed" | ||
to the client as soon as it occurs over a long-lived connection. This is useful | ||
for building programmatically controlled microservices, real-time apps, or any | ||
sort of asynchronous control flow. | ||
|
||
Push queries are expressed using a SQL-like language. They can be used to query | ||
either streams or tables for a particular key. They’re executed by running over | ||
the ksqlDB REST API. The result of a push query isn't persisted to a backing | ||
{{ site.ak }} topic. | ||
|
||
Push queries enable you to query a materialized view with a subscription to | ||
the results. Push queries emit refinements to materialized views, which enable | ||
reacting to new information in real-time. They’re a good fit for asynchronous | ||
application flows. For request/response flows, see | ||
[Pull Query](pull.md). | ||
|
||
Execute a push query by sending an HTTP request to the ksqlDB REST API, and | ||
the API sends back a chunked response of indefinite length. | ||
|
||
Page last revised on: {{ git_revision_date }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters