My C++ project with 300 VCL screens is moving new modules to JSF. Can a generic approach bridge HTML/JSF components with the current C++ system?
i tried a websocket bridge once, worked pretty well for linking js events with c++ callbacks. might need some tweaking for race condtions but its a neat genric solution for mixing new and old modules.
A solution that worked well in my previous projects involved implementing an API gateway to serve as a communication bridge between the JSF front-end and the C++ back-end. This approach relies on a set of well-defined endpoints that transmit JSON-based messages, thereby allowing asynchronous communication which helps to minimize race conditions. By encapsulating the integration in a dedicated layer, I was able to manage the lifecycle of both event handling and data synchronization efficiently. It is crucial to maintain strict interface contracts to ensure a reliable and scalable system.