English 中文(简体)
收集双元数据的最佳途径是什么?
原标题:What s the best way to cache binary data?

I pre-generate 20+,000,000 gzipped html pages, 将其储存在软盘上,并配备一个网络服务器。 现在我需要多台网络服务器提供这一数据。 合并档案需要太长时间。 NFS似乎需要太长时间。

我曾考虑使用像红斯这样的关键/价值仓库,但红星只把铺设作为价值,我怀疑它会把手头放在手套上。

我目前的想法是使用一个简单的MySQL/Postgres表格,其关键和二元价值是显而易见的。 在我执行这一解决办法之前,我希望看到,任何其他人是否在这方面有经验,并能够提供咨询意见。

问题回答

我对Redis说得好,这就好了。

I ve also heard extremely positive things about memcached. It is suitable for binary data as well.
Take Facebook for example: These guys use memcached, also for the images!
As you know, images are in binary.

因此,要紧凑,需要一个机器来利用它,是PHP的捆绑器,或你为你们的场所使用的任何东西,你们会走! 亲爱!

首先,为什么要抓紧 g子? 网络相对和传输时间比花在压缩文件上的时间要长得多,因此可能是最简单的解决办法。

然而,如果你确实需要,那么我确信,一个中央数据库不会比一个档案份额更快(当然,你应该衡量,不要猜测这些事情!) 。 一种简单的做法可以是,收留小学份额的原始档案,让每个网络服务器齐头并按需求在当地收集。 牵线搭桥(正如Poni建议的那样)也是一种好的替代办法,但增加了一个复杂的层面。





相关问题
Write-though caching of large data sets in WCF?

We ve got a smart client that talks to a SQL Server database via WCF, displaying the entities in the database, and allowing the user to edit those entities. Some of the WCF calls return a large data ...

Clearing RSL in Cache

I have built a flex application which has a "main" project and it is assosciated with a few RSL s which are loaded and cached once i run my "main" application. The problem i am facing is that the ...

how to tell clicking "back" to load cache?

I would like for my site when someone clicks "Back" or "Forward" for the server to tell the browser to load the cache instead of reloading the entire page. I ve tested some headers and done research, ...

java plugin cache and dynamic IP host

I m trying to use Amazon S3 and Amazon Cloudfront CDN to deliver the jar files of my applet application. I m seeing several cache misses of my jars by the java plugin. This is a show-stopper for me, ...

Frequently Used metadata Hashmap

Are there any implementations of a static size hashtable that limits the entries to either the most recently or most frequently used metadata? I would prefer not to keep track of this information ...

PHP - Memcache - HTML Caching

I would like to create a caching system that will bypass some mechanisms in order to improve the performance. I have some examples: 1-) I have a dynamic PHP page that is updated every hour. The page ...

Performance of Sql subqueriesfunctions

I am currently working on a particularly complex use-case. Simplifying below :) First, a client record has a many-to-one relationship with a collection of services, that is, a single client may have ...

热门标签