An example showing usage of streaming with SnappyData
To run the example in local mode go to your SnappyData product distribution
directory and type following command on the command prompt
bin/run-example snappydata.StreamingExample
This example starts embedded Kafka and publishes messages(advertising bids)
on it to be processed in SnappyData as streaming data. In SnappyData, streams
are managed declaratively by creating a stream table(adImpressionStream). A
continuous query is executed on the stream and its result is processed and
publisher_bid_counts table is modified based on the streaming data
We also update a row table to maintain the no of distinct bids so far(example
of storing and updating a state of streaming data)
For more details on streaming with SnappyData refer to:
http://snappydatainc.github.io/snappydata/programming_guide
/stream_processing_using_sql/#stream-processing-using-sql
An example showing usage of streaming with SnappyData
To run the example in local mode go to your SnappyData product distribution directory and type following command on the command prompt
This example starts embedded Kafka and publishes messages(advertising bids) on it to be processed in SnappyData as streaming data. In SnappyData, streams are managed declaratively by creating a stream table(adImpressionStream). A continuous query is executed on the stream and its result is processed and publisher_bid_counts table is modified based on the streaming data
We also update a row table to maintain the no of distinct bids so far(example of storing and updating a state of streaming data)
For more details on streaming with SnappyData refer to: http://snappydatainc.github.io/snappydata/programming_guide /stream_processing_using_sql/#stream-processing-using-sql