Is there any way to make Geode push update events to a listening REST client, perhaps using Server Sent Events (SSE)? Thanks, Andrew
On Tue, 27 Sep 2016, Jinmei Liao wrote: > It will depend on your web app's infrastructure. The simplest way is, as you > said, to serve up a simple html page with embedded javascript that > uses the REST api to get the data and show it in the widgets, pure client > javascript. This probably is good for some simple-purpose proof of > concept demo page. If you want to go with a heavier server side approach, > then you can use a service layer that would either use the REST api or > GEODE client to access the data. > > On Tue, Sep 27, 2016 at 3:02 PM, Andrew Munn <[email protected]> wrote: > I plan to cache objects in Geode. New objects will be added and > existing > ones will change. What is the best way to push those objects including > dynamic additions and changes from Geode to a simple web page for > visualization? Do I need to use some long-running websocket connection > between an app server(Tomcat, etc) and the web page? Or can I just use > Geode's REST API to push those changes directly to the client as JSON? > It seems like if I'm willing to have the JavaScript poll the REST API I > could just hit Geode directly from the web page. Thanks for any > suggestions. > -Andrew > > > > > -- > Cheers > Jinmei > >
