Connecting an "agent" app to a main one?

I want to have small, agent like apps on hosts to be able to remotely access their Docker sockets and deploy containers on them. I was thinking of having the main Phoenix app have a Websocket server open and the agents connecting to it (once configured with the right URL and join secret), advertising their presence, pinging, reporting metrics,etc. and the main app can send commands to deploy Docker payloads.

Are there WS client/server libs that facilitate this? Can an existing Phoenix facility be extended to achieve this goal?

Thanks for any pointers!

Hello there! You might want to check out Slipstream. It’s a good WS client that you can use to connect your “agent” apps to a Phoenix Channel in the main one.

3 Likes

Thanks, will check it out!

1 Like