Memcached的Windows和.NETMemcached、Windows、NET

2023-09-07 01:25:40 作者:我岂敢老去°

有没有人已经实现了的memcached在Windows环境下生产中使用? 因为,我已经看了很多博客,它不是推荐运行memcached在Windows尤其是对生产使用,例如的 memcached的运行在Windows上。

Is there anyone already implement memcached for production use in Windows environment? Because many blogs that I've read, it's not recommended to run memcached in Windows especially for production use, for example running memcached on windows.

还有一件事,它的memcached客户端,是很好的与C#和.NET 3.5使用? 我发现很多备选,如 Memcached的供应商@ codePLEX ,的 Beitmemcached 和 memcached的供应商@ Sourceforge上

And one more thing, which memcached client that is good to use with c# and .net 3.5 ? I've found many alternate such as Memcached Providers @ Codeplex, Beitmemcached, and memcached provider @ Sourceforge

推荐答案

为什么你需要运行memcached在Windows?它在生产环境中昂贵的事情。

Why do you need to run memcached on windows? It’s an expensive affair in a production environment.

如果您的code需要在Windows环境下运行得到一个窗口的memcached客户端和交谈* nix中基于memcached的机器。

If your code needs to run in a Windows environment get a windows memcached client and talk to a *nix based memcached machine.

在生产环境中运行的memcached在Server 2003或2008年将意味着你得到许可,所有这些盒子。 Linux会为您提供所有的开放源码软件的好处。总体拥有成本将直线上升与memcached的Windows上

In a production environment running memcached on Server 2003 or 2008 would mean that you get licenses for all those boxes. Linux will offer you all the OSS benefits. TCO will rise linearly with memcached on Windows

编辑:

它已经大约150年来我写了这个答案,很多事情既然发生了变化。你已经注意到了这一点,特别是当有人像达斯汀的意见。 因此,这里是你如何能得到memcached的运行Windows。 下载的memcached从Couchbase(原Northscale)窗口。 通常情况下,如果你打算运行memcached相同的生产机器上你想要启动它的内存有限,即定义最大内存memcached是允许使用的。

It’s been around 1.5 years since I wrote this answer and lot of things have changed since. You’ve to take notice, especially when someone like Dustin comments. So here’s how you can get memcached on windows running. Download memcached for windows from Couchbase (formerly Northscale). Typically if you plan to run memcached on the same production machine you’d want to start it in limited memory, i.e. define the maximum memory memcached is allowed to use.

C:\ PROGRAM   文件\ memcached的> memcached.exe -m 128。

c:\Program Files\memcached>memcached.exe -m 128.

这里的memcached运行,每次最多128 MB的使用。你不想memcached的占用所有的记忆在你的网络服务器。的

您决定的时刻向外扩展 memcached是你需要考虑一下我说的较早。此外COM preSS中的键值组合你的价值观。 Web服务器通常消耗很少的CPU(2-3%)使用情况以及COM pression带来了很多价值在整个网络相比,CPU使用率。如果你太在意正常的COM pression,尝试LZO

The moment you decided to scale out memcached you’ll need to consider what I said earlier. Additionally compress your values in the key value combinations. Web servers typically consume very little CPU (2-3%) usage and compression brings in a lot of value to network throughout in comparison to the CPU usage. If you are too concerned about normal compression, try LZO

 
精彩推荐
图片推荐