In the near future I will need to create a system with a C ++ backend and a web interface (requirements). At the moment, I do not know more about this. I think that Frontend will trigger data delivery, not a backend, so there is no need for comets.
Due to my little experience in this area, I would really appreciate your comments on the design decisions I made.
First of all, I don't like the ability to generate HTML from C ++. Thus, the C ++ backend should interact with the Javascript interface. The simplest option that I see here is Ajax. I think that so far everything is in order.
Ajax communication with C ++ - the backend means that the backend must be able to handle HTTP. It would be nice to split the backend that provides the actual data from the HTTP processing functions.
Here I see a place for Node.js. I got a review, and this is the place where all my doubts lie.
To have an HTTP processing server on Node.js that will have a "database" as the Node.js module? I think this should be fine, but I'm not sure that I really need all this asynchronization, so there may be some simpler options that I don't know about? How would you create such a system?
Thanks in advance.
source share