Architecture and tools for a remote control application?

I am working on the design of a remote control application. I will send some commands from my iPhone or web browser. Soon my home computer will execute the commands and return the results. I know there are remote desktop applications, but I want something programmable, something simpler and something that I wrote.

My current direction is to use Amazon Simple Queue Service (SQS) as a message bus. IPhone queues some messages. My local Java / JRuby program notices messages in a queue, does work, and sends status back through another queue.

This will be a very small application. At $ 1.00 per million requests (plus several data charges) Amazon SQS looks much more affordable than its own server of any type. And super reliable, it matters to me too.

Are there any better / standard toolkits or architectures for this type of remote control? Cost is not a big problem, but I prefer the tons that I learn by doing it myself.

I am concerned about the security issue, but I doubt it will be a problem. The list of recognized commands will be very short and will be recognized only in certain contexts. No "erase hard drive".

update: I will probably distribute these programs to some other people who want to use the same function but who do not have Amazon SQS accounts. At the moment, they will use anonymous access to my queues with random names of 80 characters.

+3
source share
2 answers

Well, I think this is a smart approach - and, as you said, the cost of your small traffic is not even worth mentioning.

As I mentioned in the commentary, this is a good way to leave your home machine behind your firewall and not have an open port on the Internet.

+1
source

I would suggest using OnlineMQ.com as a start; they have a free package.

0

Source: https://habr.com/ru/post/1731740/


All Articles