远程控制应用程序的架构和工具?

发布于 2024-08-20 16:58:55 字数 575 浏览 3 评论 0原文

我正在研究远程控制应用程序的设计。我将通过 iPhone 或网络浏览器发送一些命令。很快我的家用计算机将执行命令并发送回结果。我知道有远程桌面应用程序,但我想要一些可编程的、更简单的东西,以及我编写的东西。

我当前的方向是使用 Amazon Simple Queue Service (SQS) 作为消息总线。 iPhone 将一些消息放入队列中。我的本地 Java/JRuby 程序注意到队列上的消息,执行工作并通过不同的队列发回状态。

这将是一个非常低容量的应用程序。 Amazon SQS 的价格为一百万个请求 1.00 美元(加上少量数据传输费用),看起来比拥有自己的任何类型的服务器都便宜得多。而且超级可靠,这对我来说也很重要。

对于这种远程控制,是否有更好/标准的工具包或架构?成本不是一个大问题,但我更喜欢通过自己做来学到很多东西。

我对安全性有一定的担心,但怀疑这会成为一个问题。识别的命令列表将非常短,并且仅在特定上下文中识别。没有“擦除硬盘驱动器”的东西。

更新:我可能会将这些程序分发给其他一些想要相同功能但没有 Amazon SQS 账户的人。目前,他们将使用随机 80 个字符的队列名称对我的队列进行匿名访问。

I'm working on the design of a remote control application. From my iPhone or a web browser, I'll send a few commands. Soon my home computer will perform the commands and send back results. I know there are remote desktop apps, but I want something programmable, something simpler, and something that I wrote.

My current direction is to use Amazon Simple Queue Service (SQS) as the message bus. The iPhone places some messages in a queue. My local Java/JRuby program notices the messages on the queue, performs the work and sends back status via a different queue.

This will be a very low-volume application. At $1.00 for a million requests (plus a handful of data transfer charges), Amazon SQS looks a lot more affordable than having my own server of any type. And super reliable, that's important for me too.

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

I'm moderately concerned about security, but doubt it will be a problem. The list of commands recognized will be very short, and only recognized in specific contexts. No "erase hard drive" stuff.

update: I'll probably distribute these programs to some other people who want the same function, but who don't have Amazon SQS accounts. For now, they'll use anonymous access to my queues, with random 80-character queue names.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

|煩躁 2024-08-27 16:58:55

嗯,我认为这是一个聪明的方法 - 正如你所说,你的小流量的成本甚至不值得一提。

正如我在评论中提到的,这是将您的家庭计算机留在防火墙后面并且在互联网上没有开放端口的好方法。

Well, I think it's a clever approach -- and as you said, the costs for your little traffic aren't even worth mentioning.

As I mentioned in the comment, it's a good way to leave your home machine behind your firewall and not have an open port on the internet.

纸短情长 2024-08-27 16:58:55

我建议使用 OnlineMQ.com 作为开始;他们有一个免费的套餐。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文