多网络服务器配置的缓存解决方案?

发布于 2024-07-16 01:55:40 字数 274 浏览 16 评论 0原文

我正在研究用于多网络服务器配置的缓存解决方案。 memcached 被认为很便宜(免费),并且多年来得到了证明。 微软还在为网络场开发一个缓存解决方案,名为 Velocity,但是这仍然在 CTP2 中。

I am looking into caching solutions, for a multi webserver configuration. Thought of memcached as being cheap (free) and proven over the years. Microsoft is also developing a caching solution for webfarms, called Velocity, but this is still in CTP2.

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

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

发布评论

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

评论(3

南薇 2024-07-23 01:55:40

配置服务中使用了分布式缓存模型,该模型是 .NET 的一部分Stocktrader 示例应用程序。 这是一个允许您运行多个节点并具有集中配置管理、负载平衡和分布式缓存的框架。 您可以按原样实现配置服务,也可以查看代码并获取适合您的内容。 值得一看。

There is a distributed caching model used in the configuration service that is part of the .NET Stocktrader sample application. This is a framework that allows you to run multiple nodes with centralised configuration management, load balancing and distributed caching. You can implement the configuration service as is or look through the code and grab what suits you. Worth a look.

那伤。 2024-07-23 01:55:40

当我听 Scott Hanselman 对 StackOverflow 团队的播客采访时,我留下的印象是: 他们确实使用了某种缓存,b. 他们对自己在这方面所做的事情几乎一无所知,只是摆弄了一些选项,然后写了一两篇博客文章。

他们目前似乎半心半意地使用客户端缓存(例如,图像的过期时间很短),而且我认为他们使用了大量 ASP.NET 用户模式缓存,而且我无法判断他们是否使用 IIS内核模式缓存。 (他们似乎也无法告诉斯科特这一点。)

然而,播客已经有一段时间了,而且我当时正在开车,所以我的记忆可能是错误的和/或过时的。

When I listened to Scott Hanselman's podcast interview with the StackOverflow team, I was left with the impressions that a. they did use some kind of caching and b. they knew almost nothing about what they were doing in this respect and had fiddled with a few options and then written a blog post or two.

They currently seem to use client-side caching rather half-heartedly (short expiry times on images, for example), and I think they use a lot of ASP.NET user-mode caching, and I can't tell if they use IIS kernel-mode caching. (They didn't seem to be able to tell Scott that, either.)

However, the podcast was a while back, and I was driving at the time, so my memory might be wrong and/or out of date.

忆梦 2024-07-23 01:55:40

在引入像 memcached 这样的东西之前你应该认真思考。

  • 缓存可以向您隐藏性能问题(“查询运行速度很慢?只需缓存它,不用担心修复它!”)
  • 使陈旧数据失效是一场噩梦。
  • 您可能会花费数天的时间来追踪清除缓存时清除的错误,这会污染您的代码库。

我并不是说不要这样做,但在做之前要三思而后行。

如果你可以通过添加几个*额外的机器(我认为 stackoverflow 可以)来获得足够的性能,那么就这样做并且不用担心缓存。 从长远来看,它会便宜得多。

*注意我不是说 100 台机器。

You should think HARD before bringing in something like memcached.

  • Caching can hide performance issues from you ("got a slow running query? just cache it and dont worry about fixing it!")
  • Invalidating stale data out is a nightmare.
  • You may spend days chasing bugs that get cleared up when you clear the cache, and it pollutes your code base.

I'm not saying don't do it, but think HARD before you do.

If you can get enough performance by adding a couple* of extra machines (which I think stackoverflow can) then do that and don't worry about caching. It'll be much cheaper in the long run.

*note I don't say 100 machines.

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