javascript 使用meteor.js 的(潜在)缺点是什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16558825/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What are (potential) disadvantages of using meteor.js?
提问by finitud
I have just watched the meteor.js screencastand I'm quite blown away by how easy building a web application with it seems, in terms of live updates and database synchronisation. However, I am not sure of how well it would scale once it's live.
我刚刚观看了meteor.js 的截屏视频,在实时更新和数据库同步方面,使用它构建Web 应用程序看起来如此简单,这让我大吃一惊。但是,我不确定它在上线后的扩展性如何。
What problems (potential or real) could I have if I decide to build and deploy a web application written on meteor.js?
如果我决定构建和部署用meteor.js 编写的Web 应用程序,我会遇到什么问题(潜在的或实际的)?
采纳答案by jamin79
Well, I would advice you have a play about with meteor and make the judgement yourself. It really depends on what you wish to develop
好吧,我建议你玩一下流星并自己做出判断。这真的取决于你想开发什么
Certain constraints I have found are
我发现的某些限制是
Meteor comes bundled with only mongodb. Other database support are planned for later releases
No model/object form binding (in road map)
Package system is not npm (although Meteor is built on node) and is closed to community. All meteor packages are developed by meteor themselves
Meteor 只与 mongodb 捆绑在一起。其他数据库支持计划在以后的版本中使用
没有模型/对象表单绑定(在路线图中)
包系统不是 npm(虽然 Meteor 是建立在 node 上的)并且对社区是封闭的。所有meteor包都是由meteor自己开发的
Regarding performance, I found this articlehelpful
关于性能,我发现这篇文章很有帮助
Here is another linkto meteors roadmap
这是流星路线图的另一个链接
From my experience, I would say the advantages I have found outweigh any disadvantages at the moment
根据我的经验,我会说目前我发现的优势超过了任何劣势
回答by rickyduck
Having built client projects in meteor there is 2 things I immediately found hindering about the system:
在meteor 中构建了客户项目后,我立即发现有两件事阻碍了系统:
1) No native support for MSSQL / MySQL or in fact any other DB than MongoDB (which jamin mentioned). That said, it sort of makes sense as to why this is the case, as a NoSQL solution with an easy to use JS api makes sense over a clunk RDMB database. However there is a plugin called Meteor SQL which supports MySQL at the moment https://github.com/drorm/meteor-sql
1) 没有对 MSSQL/MySQL 或事实上任何其他数据库的本地支持而不是 MongoDB(jamin 提到的)。也就是说,为什么会出现这种情况是有道理的,因为具有易于使用的 JS api 的 NoSQL 解决方案在笨拙的 RDMB 数据库上更有意义。然而,目前有一个名为 Meteor SQL 的插件支持 MySQL https://github.com/drorm/meteor-sql
2) No native support for windows - Meteor is only released on linux & OSX meaning us windows users are out of the loop. There is an unofficial windows build on http://win.meteor.combut it's stuck at 0.5.9.
2) 没有对 windows 的原生支持 - Meteor 仅在 linux 和 OSX 上发布,这意味着我们的 windows 用户无法参与。http://win.meteor.com上有一个非官方的 Windows 版本,但它停留在 0.5.9。
I probably wouldn't recommend building full sites out of Meteor yet as well due to it's various instabilities - https://github.com/meteor/meteor/issueshowever in a controlled environment it's perfect.
我可能也不建议使用 Meteor 构建完整的站点,因为它存在各种不稳定性 - https://github.com/meteor/meteor/issues但是在受控环境中它是完美的。
Also bear in mind Meteor have achieved an $11m funding grant - http://venturebeat.com/2012/07/25/meteor-funding/meaning it will continue to improve and grow.
还要记住 Meteor 已经获得了 1100 万美元的资助 - http://venturebeat.com/2012/07/25/meteor-funding/这意味着它将继续改进和发展。
回答by Peter
A huge problem for Application development are missing things like validation or translation. You have todo everything on your own an include and use many external sources. NPM support is not optimal, for backend usage ok, but in frontend a hack.
应用程序开发的一个大问题是缺少验证或翻译等内容。您必须自己做所有事情,包括并使用许多外部资源。NPM 支持不是最佳的,后端使用可以,但在前端是一个 hack。