ElasticSearch push mechanism


(Ashish Mukherjee) #1

Hello,

I have a scenario where my ElasticSearch index is being updated very frequently (nearly every second). I would like to implement a push-based mechanism to stream the latest data to the client (Browser). I was considering using Websockets for this.

I was looking at the ES Websocket plugin but it seems to have dependency on JBoss Netty etc. Is there anything different in writing a WebSocket server with javax.websocket , which performs a query to ES every n seconds (say, n = 3) and then writes the fresh data to the Web socket client?

Is there any more optimal approach to this?

Regards,
Ashish


(system) #2