We build the user interface (Swift) and algorithm (C++, which is going to create a mathematical problem and solve it) separately. We think that's because users are not necessary to download the computation part, so we want to do it in separated way. And now we are using Firebase as database. We can send, edit, delete data, all those sorts of things using Swift codes to interact with Firebase. And I know I can get JSON formatted information from Firebase. But after I get the information, how do I use those things to generate the solutions by C++ codes and send them back to the Firebase, so that the users can get the results?
I'm using a C++ mathematical API to do the computation. What should I do to interact with Firebase? Should I create an Objective-C++ environment and then talk to the Firebase directly? Or use Node.js to do the receiving data works from Firebase and transfer to either C++ or Objective-C++ and then send those things back to Firebase?
What I know so far is more like one-side communication. Like, users -> Firebase -> users. But what I need is, users -> Firebase -> mathematical computation -> Firebase -> users.
Am I thinking it in a right way?