H
H
hellohelpme2020-11-02 20:50:02
go
hellohelpme, 2020-11-02 20:50:02

Is it difficult to connect a server with golang sockets?

There is a monolith, which is slightly fragmented into 3 servers, base, sockets and front + back.
The service is growing, a lot falls on the sockets because constant communication, the average online is 4-5k, only 30k people and it is growing.
After reading habra, there was a desire to build a socket server on golang.
In one of the articles on Habré, the issue of the census was raised, the most productive socket server was on the elixir, the second place was golong, kept online at 30k on a weak machine (core i5), there was a test on a home laptop.

Actually, the question is, now everything is connected with the laravel pusher, how difficult will it be to remove the pusher and connect the golang sockets? How much code will need to be shoveled and where to start where to look? There is no experience in golang, as well as a similar code rewrite.

On the old server, when testing the maximum load, our server gave out 7k online, which is 3 times less than the socket server on elixir / golang. Therefore, we asked this question.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alfss, 2020-11-02
@alfss

There are no complaints and no problems, sit down and write.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question