Note that there are some explanatory texts on larger screens.

plurals
  1. POJS Frontend <-> C++ backend communication (different servers)
    primarykey
    data
    text
    <p>I am working on a project which consists of a web fontend and a background service. The web frontend is accessible by users and should communicate with the background service, which is written in C++ and runs on a (probably multiple ones in the future) different machine.</p> <p>FYI: the background server (called 'backend' in the future) acts like a http server and listens to incoming requests on a specific port.</p> <p>So far, the frontend sends commands to the backend with simple http requests containing data in xml or json format.</p> <p>Well, now here is my problem: Since the user inputs data in the frontend, the frontend expects some data from the backend to display it to the user or use it internally in our databases.</p> <p>Can you recommend any ways to handle the data sending from the backend to the frontend? </p> <p>My current idea: The backend gets a link on startup, sort of a pingback url, which it can call if there is any data to return to the frontend. The called file inputs the incoming data somewhere to store, e.g. memcache or a mem-only database. I am planning to write the frontend in javascript, maybe using a framework like Ember.js or Angular.js, which can handle such data updates automatically internally. Either way, it should update the frontend as realtime as possible with using as little resources as possible.</p> <p>Is my current approach working or is it purely stupid?</p> <p>So in general: Can you give me tips how to improve the above scheme or suggest any other approches how to achieve this?</p> <p>I already googled this, but all i found was <a href="https://stackoverflow.com/questions/6314320/designing-javascript-frontend-c-backend-communication">Designing Javascript frontend &lt;-&gt; C++ backend communication</a>, but he just wanted his backend on the same machine, i have different ones.</p> <p>Edit: I forgot the most important detail (or so i'm thinking): there is currently only one backend instance which handles a lot of clients. Every user on the frontend has at least one client associated with the client manager (the backend). So there may be a lot of data returning from the manager.</p> <p>The real problem here (or at least I think it is the biggest) is how i should distribute the returned data to each single client.</p> <p>Padmak</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload