html5 - Communication between a WEB UI front-end and a C++ back-end? -


i'm creating application consists of web-based front-end , c++ back-end , has following requirements: 1) there should not installation of web server apache or similar software 2) front-end ui should able trigger back-end perform specific measurements 3) back-end after computation of measurements should return value front-end in order depicted on web ui.

i'm quite new in network programming made research , found absence of installed web server can replaced http server implemented in c++ relevant library boost or poco. confused me lot way/ways front-end , back-end can communicate each other. i'm aware c++ able create not simple web socket. i'd ask whether aforementioned functionality simple socket job or need use web socket? if simple socket enough transfer data front-end in way html front-end can communicate c++ back-end? in opinion stable , efficient way?

communication web browser requires use of whatever features web browser happens support. "simple socket" not exists in browsers.

the majority of web applications use simple http requests (so-called "ajax") "rest" interface interactions, , websockets require ability "subscribe" live changes or bandwidth-efficiency more important resilience against disconnections.

remember browser (generally) supports javascript, , communication between front-end , back-end transactional default (that is, request-response opposed message handling.)


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -