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

Asked

Viewed 226 times

2

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

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

  • Related: http://answall.com/questions/175893/por-que-utilizar-duas-linguagens-server-side-no-mesmo-sistema/175901?noredirect=1#comment362876_175901. Welcome to SOPT, http://answall.com/tour

  • 4

    It depends a lot, it is done in the way that is most suitable for the problem. There are cases that can simply be compiled together.

1 answer

5


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

  • Queue (AMQP protocol, servers like Rabbitmq, one publishes in the queue and another listens)
  • HTTP (JSON, XML, form data, x-www-form-urlencoded, etc.)
  • Database (less recommended form, one service writes to a database 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.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.