Could you please point some good design options?
Also, will it work if I try to make it without threads using non-blocking socket call?
so if I try to connect to a port and it is not up then instead of blocking I just skip to next port without any delay. Is this something that makes more sense than previous approach?
Re^4: Socket Handle not sending data ?
Replies are listed 'Best First'.
I want to send millions of events across multiple servers. And I don't want to stop or block sending if one of the server goes down. I also don't want to skip any event.
If the server, that's down, comes backup it should be included into my active servers list to which I am sending all my events.
I can't even afford a delay of 0.5 seconds in sending of events.