I have next situation:
1) N workers, all workers do same things
2) Each worker have persistant socket connection to third party service, so one connection should be served by one instance of worker
My question: how to implement workers to pickup one connection, and let others workers instnaces to know that connection to third party sertvice already established?
Currently i implemented this by queue, so another worker(lets say scaling worker) place message into queue, and this messages fetched one by one by workers.
Does there any better solution?
You can implement inter-role communication via WCF and endpoints or the Azure AppFabric messaging bus. Check out a tutorial on how to do this here, http://msdn.microsoft.com/en-us/library/windowsazure/ee706736.aspx.