Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Data Streams on ElasticSearch

Data Streams on ElasticSearch

Midwest.io '15 talk on #datastreams #realtimeAPIs #ElasticSearch

Siddharth Kothari

November 09, 2015
Tweet

More Decks by Siddharth Kothari

Other Decks in Technology

Transcript

  1. We have a problem… Databases have been around for over

    half a century. Indexes, Caches, Distributed, Materialized Views, Stored Procedures, Aggregations
  2. We have a problem… Databases have been around for over

    half a century. Indexes, Caches, Distributed, Materialized Views, Stored Procedures, Aggregations Not Unix Philosophy!
  3. Topics: 1. What is the point of “data streams”? 2.

    ElasticSearch as the Query Layer 3. Data Streams in Action 4. Seriously, where would I use this 5. Scale 6. The Next 5 Years
  4. Topics: 1. What is the point of “data streams”? 2.

    ElasticSearch as the Query Layer 3. Data Streams in Action 4. Seriously, where would I use this 5. Scale 6. The Next 5 Years
  5. Tweet with hashtag -> “#midwestio” client.stream('statuses/filter', {track: 'midwestio', language: 'en'},

    function(stream) { stream.on('data', function(tweet) { appbaseRef.index({ "type": "onlymidwestio", "body": tweet }); }); }); Indexes incoming streams from twitter.
  6. var response = appbase.searchStream({ type: "onlymidwestio", body: {query: {match_all: {}}}

    }); response.on('data', function(res) { var div = document.getElementById('tweetshero'); div.innerHTML = res._source.text + "<br><br>" + div.innerHTML; }); Live MidwestIO Tweets - http://midwest.appbase.io
  7. Topics: 1. What is the point of “data streams”? 2.

    ElasticSearch as the Query Layer 3. Data Streams in Action 4. Seriously, where would I use this 5. Scale 6. The Next 5 Years
  8. Topics: 1. What is the point of “data streams”? 2.

    ElasticSearch as the Query Layer 3. Data Streams in Action 4. Seriously, where would I use this 5. Scale 6. The Next 5 Years
  9. Topics: 1. What is the point of “data streams”? 2.

    ElasticSearch as the Query Layer 3. Data Streams in Action 4. Seriously, where would I use this 5. Scale 6. The Next 5 Years
  10. Next 5 Years Native Stream support in all major languages.

    Data Streams as an interface for every DB.
  11. Next 5 Years Native Stream support in all major languages.

    Data Streams as an interface for every DB. Data Streams for processing all computations, la Dataflow model.