servers, and are sync'ed by PostgreSQL. I would normally write or read from
a primary server (S1). However, if the connection fails to S1, I'd like to
be able to retry the operation on S2, and if necessary S3, S4...
What would be a good way to handle this in Go? Create connections (at
startup) to all the servers and try them in order IF there's a failure? Or
just open a new connection (lather, rinse, repeat, ...) starting with S2,
then S3... and try it when S1 fails? If there's a nice Go-ish way to handle
this I'd love to know about it.
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firstname.lastname@example.org.
For more options, visit https://groups.google.com/d/optout.