T
T
thethanosdaddy2021-05-01 14:25:11
Backend
thethanosdaddy, 2021-05-01 14:25:11

What protocol should be used to transfer data between "microservices"?

It is necessary to design (schematically) a service for the following task:
There are N-computers. Each has a client application that collects text data and sends it to the servers. The servers process/extract the text, which will then be full-text searched.

The service must be easily scalable.

I decided to take microservice architecture as a basis. In my case, the client will not receive / process any responses. Similarly, the subsequent links in the chain. My version of the diagram in the picture 608d39f1c6961022367956.png.

In summary, the question is how best to organize data transfer between clients and servers? Would regular HTTP be fine for this, or is it even overkill? PS Don't kick me too hard, I'm in the backend -1

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-05-01
@vabka

Would plain HTTP be fine for this, or is it even overkill?

> One of the simplest protocols, which is perfectly implemented in most languages.
> redundant
Okay.
Here are a few options:
HTTP+json
HTTP+msgpack
gRPC
Where HTTP is written any version can be used, but I advise you to use the highest possible one that the technologies used allow (for example HTTP/3 aka QUIC)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question