安卓网络服务器
因此,对于我的 Android 应用程序,我需要一个集中式服务器,以便多部手机可以使用它。该服务器仅保存文本。每个请求只需坐标和一个字符串。
我研究了 Amazon S3 和 Google Storage。它们通过 RESTful API 存储信息“桶”。所以基本上,我无法像在数据库中那样将信息放入/获取信息。我必须发送/接收文本文件,对吗?
购买自己的网络服务器这样我就可以创建一个 MySQL 数据库或其他东西并以这种方式进行操作,这是否更有意义(无论是经济上还是技术上),或者桶仍然是最好的方式(云存储) 。
谢谢!
So for my Android app I need a centralized server so multiple phones can use it. This server is only going to hold text. Just coordinates and a string per request.
I looked into Amazon S3 and Google Storage. These store "buckets" of info through a RESTful API. So basically, I can't put/get info into these things as I would into a database. I'm going to have to send/receive a text file correct?
Would it make more sense (both financially and technically), to buy my own web server so I can just create a MySQL DB or something and do it this way, or would the bucket thing still be the best way to go (cloud storage).
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当数据的读取/服务次数比写入/存储次数多很多倍时,存储服务往往最有意义。您描述的情况听起来像是托管服务器选项之一(EC2、Rackspace 等)的一个很好的用例,但您可能还想研究一下 Google App Engine,因为它在您产生任何费用之前为您提供一些免费服务。这将使您无需任何投资即可开发应用程序,特别是因为您还不知道应用程序的未来使用率是多少。
在任何这些环境中,您都可以创建一个 Web 服务,允许客户端通过 http/REST 连接来存储信息。
The storage services tend to make the most sense when the data is read/served many multiples of times more then it is written/stored. The situation you describes sounds like a good use case for one of the hosted server options (EC2, Rackspace, etc.) but you may also want to look into Google App Engine since it provides you some free service before you incur any cost. That will let you develop an app without requiring any investment, especially since you don't yet know what the future usage rate of your app will be.
In any of these environments you could create a web service that allows clients to connect via http / REST to store information.