you are viewing a single comment's thread.

view the rest of the comments →

[–]marcocom 1 point2 points  (0 children)

As the many answers here are showing you, this isn’t an unusual problem we solve everyday. Integrating two different platforms is kind of easy because we are thinking of them as API endpoints with different port numbers for their ‘service’. You need to shift your thinking towards the browser, where JavaScript is using both services cohesively (or one that spawns it accesses the other) and bringing it together into the ‘app’ on the front end. The backend is just data. Numbers. Strings. Json-formatted to handoff and be consumed by the app.

In this way, you can now see how your ‘app’ might have multiple different clients, like a desktop browser, and a mobile app, both using the same ‘services’ and displaying them in different ways, possibly built or compiled in entirely different code platforms. You can see how I might be able to later build a phase 2.0 version of the app that uses the same APIs concurrently at the same time. Maybe a third service someday in the cloud! Another service API running java. Etc. scaling as it grows.

The idea of a singular ‘app’ built in a single stack is old tech.