Lift 这样的 Statebase 框架是否可扩展?

发布于 2024-11-29 16:30:15 字数 171 浏览 1 评论 0原文

我看过来自 Foursquare 的 Harry Heymann 做了关于 Lift to BASE 用户组的演讲。他在视频中提到了 Lift 作为国家基础无法很好地扩展的问题。

这是真的吗?如果是这样,那是为什么呢?注:我对国家基地知之甚少。

google 好像找不到,稍后再找找。先感谢您。

I've watch Harry Heymann, from Foursquare, gave a presentation on Lift to BASE usergroup. He mention something about how Lift being statebase isn't going to scale well in that video.

Is that true? If so why is that? Note: I know very little about state base.

I can't seem to find the google, I'll look for it later. Thank you in advance.

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

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

发布评论

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

评论(3

淡莣 2024-12-06 16:30:15

当Lift邮件列表中出现这个问题时,框架的作者通常会回复他前段时间写的一篇博文,其中解释了为什么Lift是有状态的,但同时你可以

这是链接

When this questions comes up on the Lift Mailing list, what the author of the framework usually replies with is a blog post he wrote some time ago, which explains why Lift is Stateful, but at the same time how you can use Lift as a stateless framework.

This is the link

梦纸 2024-12-06 16:30:15

David Pollack 对此有一个很好的答案 这个 Quora 帖子,在对 Jackson Davis 的回答的评论中:

实际上,扩展 Lift 站点比扩展 LAMP 站点容易得多。为什么?嗯,国家存在于某个地方。如果它存在于 JVM 中,您将获得很多性能优势和稳定性,对于 Lift 来说,还可以获得很多安全性。与 memcached 中的会话进行对比。 “哎呀,memcached 宕机了,一堆会话消失了。” “哎呀,我们有了新的 memcached 哈希算法,所有会话都结束了。” “哎呀,Google 刚刚抓取了我们创建的 200,000 个新会话,将除活动会话之外的所有会话都从缓存中推送出去。” “哎呀,Ruby 运行时变得疯狂,吃掉了我们其中一台机器上的所有虚拟机,memcached 宕机了……”因此,您尝试将会话存储在某种古怪的 MySQL 共享版本中。该解决方案需要大量的硬件和一个确保共享代码正确的团队等。与使用 Nginx、Jetty 和会话亲和力进行对比。大约需要 4 个小时的设置时间,然后就可以正常工作了。请参阅http://blog.harryh.org/post/7550...所以,请与一位 Facebook 工程师讲述了他们在管理前端、memcached、MySQL 等之间的状态时遇到的挑战。将其与 Twitter 和著名的失败鲸进行比较。与在 WebObject(高度有状态)上编写的 Apple 商店和 iTunes 商店相比。大规模运行的 Lift 应用程序通常需要 LAMP 应用程序前端资源的 7%。大规模运行的 Lift 应用程序(Foursquare 和 Novell Pulse 是其中两个)不存在与具有类似流量模式的 LAMP 站点相关的扩展问题。使用 Lift 进行扩展既不棘手,也没有风险。这很简单。它被称为。事实证明。使用 LAMP 进行扩展就像用状态打地鼠一样,这只会在扩展时成为问题。 -David Pollak • 2010 年 7 月 20 日

David Pollack has a good answer to this at this this Quora thread, in a comment to Jackson Davis's answer:

In practice, scaling a Lift site is much much easier than scaling a LAMP site. Why? Well, state exists someplace. If it exists in the JVM, you get a lot of performance benefits and stability as well as, in Lift's case, lots of security. Contrast that with sessions in memcached. "Whoop, memcached went down, there go a pile of sessions." "Whoops, we've got a new memcached hashing algorithm, there go all the session." "Whoops, Google just crawled us creating 200,000 new sessions pushing all the but the active sessions out of cache." "Whoops, the Ruby runtime just went wild, ate all the VM on one of our boxes, memcached went down..." So, you try storing sessions in some wacky shared version of MySQL. This solution requires tons of hardware and a team of make sure that the sharing code is correct, etc. Contrast that to using Nginx, Jetty and session affinity. It's about 4 hours of setup time and it just works. See http://blog.harryh.org/post/7550... So, talk to a Facebook engineer about the challenges they go through to manage state between the front end, memcached, MySQL, etc. Compare that to Twitter with the famous fail whale. Compare that to Apple's store and the iTunes store which are written on WebObject (which is highly stateful.) Lift apps running at scale typically require 7% of the front end resources of LAMP app. The Lift apps that are running at scale (Foursquare and Novell pulse are two) do not have the kind of scaling issues associated with LAMP sites that have similar traffic patterns. Scaling with Lift is neither tricky, nor risky. It's simple. It's known. It's proven. Scaling with LAMP is playing whack-a-mole with state and that only becomes a problem at scale. -David Pollak • Jul 20, 2010

梦纸 2024-12-06 16:30:15

我认为很明显,Lift 应用程序的扩展性非常好。 Foursquare 和英国卫报都在使用 Lift。这两个站点的流量都非常大,并且都没有发生过与 Lift 相关的重大中断。另请参阅迭戈发布的链接。它深入讨论了如何扩展 Lift 驱动的站点。

I think it's pretty clear that Lift apps scale very well. Foursquare and the UK Guardian are both using Lift. Both sites are very highly trafficked and neither has had a material Lift-related outage. Please also see the link that Diego posted. It provides an in-depth discussion of scaling Lift-powered sites.

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