高性能网站

发布于 2024-08-23 05:31:57 字数 74 浏览 8 评论 0原文

在设计大型社交网站(有大量交易,如 Twitter)时,我应该使用哪些技术?使用开源解决方案 - 数据库 - 网络服务器 - 操作系统

What technologies should I use when designing for a large social website (with a lot of transactions, like twitter)? using open source solutions
- database
- webserver
- os

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

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

发布评论

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

评论(9

孤单情人 2024-08-30 05:31:58

如您所见,您选择什么并不重要;重要的是,您可以 使用 PHP。所有这些网站都有大量流量,但基于截然不同的技术。

As you can see, it doesn't really matter what you choose; all of these sites have lots of traffic, but are based on very different technologies.

女中豪杰 2024-08-30 05:31:58

在社交网站中最重要的是后端,因为大部分瓶颈都来自后端。您可能需要考虑 No-SQL 数据库。

还有一些其他的,例如:

至于编程语言,正如其他人所说,并不那么重要。但如果您确实无法决定,您可能需要考虑非阻塞网络服务器,例如 Tornado

What matters most in a social networking sites is the backend, since most of the bottleneck will be from there. You might want to consider No-SQL databases.

There are a few others like:

As for the programming language, as others have said, it does not matter that much. But if you really can not decide, you might want to consider a non-blocking webserver like Tornado.

落叶缤纷 2024-08-30 05:31:58

无论您选择哪种脚本语言,只要您大量使用 memcached 即可。拥有正确的缓存层次结构是必须的。

Doesn't matter what kind of scripting language you'll choose, as long as you'll heavily utilize memcached. Having the right caching hierarchy is a must.

冷血 2024-08-30 05:31:58

归根结底,这是个人喜好的问题。 Twitter 使用 Ruby on Rails。维基百科在 PHP 上运行。 Reddit 使用一个名为 web.py 的 Python 库,但最初它是用 Lisp 编写的。我想说选择你最熟悉的技术。

At the end of the day, this is a matter of personal preference. Twitter uses Ruby on Rails. Wikipedia runs on PHP. Reddit uses a Python library called web.py, but intitially, it was written in Lisp. I would say pick the technologies you are most familiar with.

孤者何惧 2024-08-30 05:31:58

雅虎工程师关于优化高性能网站的一本好书是 高性能网站:前端工程师的必备知识。它很好,很简短,基本上是一个项目符号指南,介绍了通过优化不太深入探索的前端来使网站更快的步骤。

A good book on optimizing for high performance websites from the Yahoo engineers is High Performance Web Sites: Essential Knowledge for Front-End Engineers. It is nice and short and basically a bulleted guide on the steps to take to make websites faster by optimizing the less well explored front-end.

悍妇囚夫 2024-08-30 05:31:58

正如乔尔所说

世界各地的人们一直在不断地使用 .NET、Java 和 PHP 构建 Web 应用程序。他们都没有因为技术的选择而失败。

选择您最了解的“三大技术”(.Net、Java 或 PHP)中的一个 - 这些技术众所周知是可扩展的,您的网站是否可扩展的真正问题是网站的结构和质量代码 - 使用您最熟悉的框架可以为您提供实现这一目标的最佳机会。

As Joel says

People all over the world are constantly building web applications using .NET, using Java, and using PHP all the time. None of them are failing because of the choice of technology.

Choose whichever of the "big 3" (.Net, Java or PHP) that you know best - these technologies are known to be scalable, the real question of whether or not your site will scale is how the site is structured and the quality of the code - using whichever framework you are most familiar with gives you the best chance of achieving that.

邮友 2024-08-30 05:31:58

任何适合您口味的技术,在您的情况下我认为算法更重要。

Any technologies that suite your taste, In your situation I think algorithms is more important.

时光是把杀猪刀 2024-08-30 05:31:58

技术、技巧、

  • 研究其他规模的网站已经使用和做了什么,以及他们遇到的问题比他成功的要少,iTunes 上有播客,Youtube 上有演讲和采访,
  • 着眼于行业最佳实践,并在一定程度上遵循它们
  • 。相信人们的话,确保你看到问题或成功,而不是关于它的公关浮华,
  • 避免明显的不能垂直或水平扩展的东西,数据库连接,会话-cookies等
  • 将nosql存储视为sql 开销较小但功能较少的替代方案
  • 在查看语言/框架时,请注意 。框架带有很多你不需要的包袱,它们最初会加速你,最终会减慢你的速度,也就是说,你花更多的时间来破解框架而不是构建网站,与语言一样,它做你想做的事,而不是流行、酷编程等

Technologies, techniques ,

  • research what other scaled sites have used and done and what the problems they had were less than he successes, there are podcasts on iTunes, talks and interviews on Youtube
  • look at industry best practices and follow them to a degree
  • don't take peoples word for it, make sure you see the problem or the success as opposed to the pr glitz about it
  • avoid obvious things that do not scale vertically or horizontally, database connectivity, sessions - cookies and the like
  • look at nosql storage as an sql alternative less overhead but less functionality
  • take care when looking at the language/framework. frameworks come with lots of baggage you do not need, they speed you up initially and slow you down eventually, i.e. you spend more time hacking the framework than building the site, same with languages does it do what you want rather than be trendy, cool to programme in etc.
街角卖回忆 2024-08-30 05:31:58

如果您正在构建类似 Facebook 的东西,那么您的选择有点有限,Facebook 制作了自己的 PHP 运行时,请检查 PHP 版 HipHop

If you are building something like Facebook, then your choices are a little limited, Facebook made their own PHP Runtime, check HipHop For PHP

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