I am trying to create APIs using terraform for cloud(azure/aws/google/others) communication. Let me elaborate it bit more with an example.
I want to create a VM on azure and VM name to be input by user at runtime(like: from POSTMAN) from my API. Once user input the name of VM then it should call terraform behind the scene and create VM.
I am looking to create above workflow . Kindly suggest.
[MessagePackMember(1)] public Dictionary<string, string> FilterTags; [MessagePackMember(2)] public bool RequestAck; [MessagePackMember(3)] public ulong Timeout; [MessagePackMember(4)] public string Name; [MessagePackMember(5)] public byte Payload;
@the-maldridge as far as I understood while I was reading the Serf code it's intent is just to establish and keep the state of the cluster. On top of that you need to create you're own communication protocol, on my case each node started a HTTP server and this is how they communicate with each other. If you need coordination, then raft can come in.
Maybe with Memberlist, that is a dependency from Serf, should be able to send message to other nodes: https://godoc.org/github.com/hashicorp/memberlist#Memberlist.SendReliable
Unfortunately I was not able to make it work.
Serf is amazing, but it's really lacking examples.
serfdaemon on one node sit there for 100+ msec before getting forwarded to the others. reaction on the issue I opened either. hashicorp/serf#581