Your options are multiple servers, like you described below, and clientside polling. The latter would consist of the client calling a server method to check if there are any messages waiting. It wouldn't be true bidirectional, but it might be close enough for your application.
On Thu, May 19, 2011 at 9:47 AM, Matias Hernandez Arellano < [email protected]> wrote: > (sorry for my english).. > > I'm in doubt on how can i implement this.. > > I have a application and i need to send a message from this application > (C++) to a web application (Django) .. so i think i thrift .. but i need too > the Web app send a message to C++ app .. i mean bidirectional > communication.. > > > The main idea is.. The c++ app is running, at the same time the web app is > running, some event is trigger in the c++ app and this need to be notified > in the web app. In the web app the user see this notification (maybe a alert > dialog in javascript for example) and interact with this, clicking a button > to dismiss the notification.. When the user dismiss the notification the web > app need to notify to the c++ app that this event happens so the c++ app can > disable the effect of the triggered event. > > > Can i do this with thrift?? > > I thought in implement two Server on in the C++ app and another in the > webapp, and make the communication using this two channels.. but i don't > know if this is the better option.. > > > Thanks in advance. > > > MatÃas Hernandez Arellano > Ingeniero de Software/Proyectos en VisionLabs S.A > CDA Archlinux-CL > www.msdark.archlinux.cl > > > > >
