It is clear that most (if not all) large enterprise services, applications, and so on. (not only the web) are written using more than one programming language. And these components, written in different languages, somehow interact with each other (front, business logic, something else).
I have no experience in developing such systems, so I can’t quite imagine how this happens. I suspect that the interaction goes through language-independent means. For example, something written in one language sends a TCP-IP packet that is caught and processed by something written in another language. Or through HTTP requests. Or through record / reading from a DB. Or through file exchange, XML for example.
I would like knowledgeable people to give a couple of examples, as it usually happens. Not just in a nutshell, they say "the front is on javascript, back on Java", but with technical nuances. Thank you in advance.