Reputation: 867
I'm designing an application where one or more devices can control an other one device. In the middle there is a Desktop Server.
In few word:
Which is the best Pattern, or Architecture, that can i use?
Upvotes: 0
Views: 970
Reputation: 5971
It's mainly Observer pattern,but you don't need to build the architecture, google has already built it for you, using Google Cloud Messsaging (GCM).
Your client register/unregister to gcm and then sends data to your backend/server which in turn manipultes and sends data to gcm which in turn sends push notification to registered devices, then you device must has a receiver to send the data back to your application.
Here have a look GCM
And here is a sample diagram that represents the gsm architecture, note that you can use any server instead of app engine
Upvotes: 2