R
R
Roman Rakzin2016-06-04 22:07:50
go
Roman Rakzin, 2016-06-04 22:07:50

How to organize communication between golang applications on the same machine?

There are two applications.
It is necessary that one periodically checks whether the other is running (well, it also transmits some data).
As an option, I thought the web server and communicate through it, but it's cumbersome just for the sake of it.
Heard about signals. How to organize communication through signal?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladimir Grabko, 2016-06-04
@VGrabko

unix socket
But if you use Windows, then only through tcp.
Here is my communication implementation https://github.com/v-grabko/Core/wiki/TcpClientServer

S
Stanislav Makarov, 2016-06-04
@Nipheris

https://golang.org/pkg/net/rpc/

V
Vaavaan, 2016-06-05
@Vaavaan

через сигналы можно, если одно приложение запустило другое. тогда тому предку, кто запустил, известнен pid запущенного потомка.
но это только сигналы управления.
не передача данных.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question