Hey Andrew, One way you could do this would be create a function that makes a http POST to your web service, or even push data onto a rabbitmq queue that your web service is consuming. Basically when you execute a function you can do whatever you want since you will have access to the full dataset from within the function.
On Thursday, September 29, 2016, Andrew Munn <[email protected]> wrote: > 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] > <javascript:;>> 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 > > > > -- *Matthew Ross | Data Engineer | Pivotal* *625 Avenue of the Americas NY, NY 10011* *516-941-7535 <516-941-7535> | [email protected] <[email protected]> *
