我应该使用哪种语言来进行[大量读取,少量写入数据库]和[许多并发连接]?
您建议在有许多用户连接的动态网页上使用哪种语言。我没有使用 Flash 或类似的东西,交互性都是 Javascript/HTML。
我的两个基本限制是:
- 与 mySQL 配合良好,或者如果您对数据库有其他具体建议,我会洗耳恭听。
- 它必须能够跟上大量的并发连接,这些连接都在读取所有内容的小子集(因此非常可缓存),并且偶尔发布纯文本(不是很频繁,但数量很大——说
我真的对学习很感兴趣)一种新语言作为个人程序员扩展我的视野的倡议,所以我不想使用 java 服务器后端,因为这是我非常熟悉的东西(而且我真的需要具有更好线程的东西我正在编写熟练的(但不流利的)Javascript,并且除了其他所有内容之外,
我还愿意接受 JS 选项,并且认为它们可能是相关的,但我不确定如何:
Node.js
感谢您的输入!
我还标记了这个“Web 应用程序设计”,我觉得许多程序员都忽略了提前弄清楚程序的基本结构以及方法和对象如何互操作是很重要的。绝对 100% 属于设计阶段。
Which language would you recommend for use on a dynamic web-page with many users connected. I am not using flash or anything like that, interactivity is all Javascript/HTML.
My basic two restrictions are:
- plays nicely with mySQL or if you have other specific recommendations for db I am all-ears.
- It has to be able to keep up with tons of concurrent connections that are all reading small subsets of all the content (so very cache-able) and occasionally posting plaintext (not very frequently, but voluminous -- say
I am really interested in learning a new language as a personal-programmer-expand-my-horizons initiative, so I don't want to use a java server back-end, because that's something I'm very familiar with (and I would really need something with better thread management than apache). I'm coding proficient (but not fluent) Javascript, and would be open to JS options in addition to everything else.
Things I have looked into and figure they might be relevant, but I'm not sure how:
Node.js
Thanks for your input!
I also tagged this "web-application-design" and I feel that many programmers neglect to notice that figuring out the basic structure of your program and how the methods and objects will interoperate beforehand is absolutely 100% part of the design phase.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
除了 PHP 可能是主要语言的最佳选择之外,您还应该考虑(如果您对服务器有足够的控制权)使用 MEMCACHE,并且您的读取次数远多于写入次数。这将有效地允许您将数据缓存在内存中,并且访问速度比数据库查找快得多。
In addition to PHP probably being the best choice for primary language, you should also consider (If you have enough control over the server) using MEMCACHE and if you are doing very considerably more reads than writes. That would effectively allow you to cache your data in memory and that access is blazingly faster than Db lookups.
PHP,尽管语言的选择不如数据库和该数据库中使用的存储引擎重要。如今任何主要语言都支持 MySQL。
PHP, although the choice of language is less important than the database and the storage engine used in that database. MySQL is supported by any major language nowadays.