Aptana 哪个更适合 Java 开发托管? 谷歌应用程序引擎? 切片主机?
我对开发 Java(非商业)网络应用程序和部署到 Aptana 或 Google 云之类的东西,或者只是使用 Slice Host 帐户的好处有分歧。 Tomcat 或 Jetty 和 MySQL 确实是我唯一的大需求。 Aptana 和 Google App Engine 附带了一些很酷的 Eclipse 部署选项,但是如果应用程序没有庞大的用户群,可扩展性真的很重要吗?
另外,Aptana 和 Google App Engine 似乎都处于婴儿阶段,所以我想知道是否会有太多限制,即使对于小型开发也是如此。 有人有这些方面的经验吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我无法与 Aptana 交谈,但 Google App Engine 提供的开发体验与 Slicehost 之类的开发体验截然不同。 它的扩展方式不同(即您有可能处理更大的负载),但它也与运行您自己的 Web 应用程序服务器(例如 Glassfish、Tomcat、JBoss 等)和使用“标准”Java 工具进行编码完全不同。
使用 Slicehost 或任何托管解决方案,可以轻松在本地设置您自己的开发环境,该环境完全模仿您将在服务器上运行的环境。 相同的软件、相同的虚拟机,甚至可能是相同版本的 Linux。 您甚至可以移动到不同的主机,但仍然能够设置相同的环境。
使用 Google App Engine,您会发现自己是在模拟器上构建的(您并没有真正在本地运行 BigTable),因此您的环境与服务器上的环境之间不存在一对一的对应关系。 也没有其他地方可以移动并仍然在相同的环境中运行。 此外,您可能用于 Web 应用程序开发的一些流行 Java 框架要么根本不起作用(例如),要么无法开箱即用(请参阅此处了解更多详情)。
我并不喜欢 App Engine,事实上,我认为它真的很酷。 如果您的应用程序的需求相对较低,因此您不需要巨大的扩展要求,但您的流量并没有那么低,以至于您可以轻松地适应 Google 的免费限额,那么我可能会倾向于托管解决方案,例如相反,切片主机。
I can't speak to Aptana but Google App Engine is a radically different development experience from what you'll get with something like Slicehost. It scales differently (i.e. you've got the possibility of handling much larger loads) but it's also totally different than running your own web app server (e.g. Glassfish, Tomcat, JBoss, etc.) and coding using "standard" Java tools.
With Slicehost or any hosted solution it's easy to setup your own development environment locally which exactly mimics what you'll be running on the server. Same software, same VM, maybe even the same version of Linux. You could even move to a different host and still be able to setup that same environment.
With Google App Engine you'll find yourself building on an emulator (you don't really run BigTable locally) so there's not a one to one correspondence between your environment and that on the server. There's no alternative place to move to and still be running in the same environment either. Also, some perhaps many of the popular Java frameworks you might use for a web app development will either not work at all (e.g. ) or will not work out-of-the-box (see here for more details).
I'm not down on the App Engine, in fact, I think it's really cool. If the demand for your apps is relatively low and therefore you're not in need of the huge scaling requirements, but your traffic is not so low that you fit comfortably within the free allowance at Google then I would probably lean towards a hosted solution like Slicehost instead.
我使用 slicehost,到目前为止我对结果很满意。 升级切片很容易(我已经做过一次),并且回滚到切片的备份也很容易(我也曾经做过一次)。 我托管 Tomcat 和 MySQL。
I use slicehost and I am happy with the result so far. Its easy to upgrade your slice (I had to do it once already) and its easy to rollback to a backup of the slice (I had to do that once too). I am hosting Tomcat and MySQL.
请记住,Google App Engine 不会为您提供完整的 JRE。 例如,您不能直接生成线程。 另外,我发现 GAE 数据存储性能太慢——我经常遇到超时异常。 总之,它不是真正的应用程序托管解决方案。 您必须大量定制您的应用程序才能使其在 GAE 上运行。
Bear in mind, Google App Engine does not give you a full JRE. You cannot spawn threads directly, for example. Also, I have found that the GAE datastore performance is too slow -- I run into timeout exceptions constantly. In sum, it is not a true application hosting solution. You have to heavily tailor your application to make it run on GAE.
我建议使用亚马逊网络服务。 与 App Engine 不同,您可以获得云的强大功能,而对您的应用程序没有任何限制。
I'd suggest using Amazon Web Services. You get the power of the cloud with no limitations to your app, unlike App Engine.