streaming database
Traditional database are used as follows:
- Store data
- Fetch data (have to keep fetch if you want updates, doesn’t track changes to data)
Streaming database are used as follows:
- Register data source
- Register queries, these will continually stream results.
So for example we had the following rows of data, which transition overtime:
key | value |
---|---|
a | 1 |
to
key | value |
---|---|
a | 1 |
b | 2 |
to
key | value |
---|---|
a | 1 |
b | 2 |
c | 3 |
Now in traditional database, this will dump data according to above state, it doesn’t return you changes, and we have to poll.
On the other hand, for streaming database, we will immediately get data pushed.
key | value |
---|---|
a | 1 |
to
key | value |
---|---|
b | 2 |
to
key | value |
---|---|
c | 3 |
Datastructures
Use cases
See also
Stream processing vs batch processing Stream data processing