How to use more than one programming language in the backend?

2

I would like a detailed (or simple, if easy to understand) explanation of how companies use more than one programming language on the backend. How is communication between languages established?

For example: We have several articles on the internet talking about Twitter using Python, Go, etc., but how is communication between frontend languages made?

    
asked by anonymous 09.01.2017 / 13:18

1 answer

4

There are several ways to communicate different services written in different languages, I will list some that I have thought now:

  • Queue (AMQP protocol, servers like RabbitMQ, one queue and one listen)
  • HTTP (JSON, XML, form data, x-www-form-urlencoded, etc.)
  • Database (less recommended way, one service writes in one bank and another reads).

Generally the frontend communicates via HTTP with the backend, and nowadays, with the growth of the SPAs, REST via JSON has been the preferred way of communicating frontend with backend.

    
09.01.2017 / 13:22