Browsing projects by Tag(s)

Select a tag to browse associated projects and drill deeper into the tag cloud.

Showing page 11 of 11

Express connect middleware to provide easy frontend caching for Node.js

5.0
 
  0 reviews  |  0 users  |  609 lines of code  |  8 current contributors  |  Analyzed 6 days ago
 
 

OverviewBigCache is a very simple cache API providing users with an infinite shared cache backed by Amazon S3. No servers required. Here's a quick code sample for how to use it. // put an object into the cache bigcache.put("somekey", myObject, 3600); // Get an object from the ... [More] cache Object o = bigcache.get("somekey");News2008-11-14 Added asynchronous methods getAsync(key) and putAsync(key, object, expires) BackgroundWhile testing out different caching scenarios, I got the idea of using S3 as a simple cache like memcached and decided to run some tests. This is what typical test times look like running on an EC2 server (the memcached was running on a separate server) for retrieving 100 simple strings: Memcached took: 219 S3 took: 2679 SDB took: 2302 ehcache memory took: 1 ehcache 95% disk took: 11 Memcached mod took: 219 S3 mod took: 2203 UPDATE: New AsyncMethods need to be added to this benchmark, big performance gains when using them. The last two mod tests retrieved 100 times, but only 10 different objects to see if S3 did any caching on recently retrieved items. Running this repeatedly revealed very similar results time after time. I realize this isn't exactly the greatest benchmarking test, so no need to let me know otherwise. ;) So what can we gather from this: In Memory is ultra fast (of course) From local disk is also extremely fast (although much slower than in memory, 10x) Memcached is amazingly fast too, especially considering it's over the network, apparently 2 ms per object (although much slower than in memory or local disk, 20x vs disk) S3 and SimpleDB were similar when retreiving directly by key/id, but both were much slower than any other solution at about 25ms per object, 10x vs memcached) So now you might say, "well obviously memcached is the way to go for large scale caching", and I would have to agree fully. BUT what about the extra work required to run a pool of extra servers just for memcached? When you've already got a ready to go infinite cache available in S3. Double Layer CacheNow you could just use S3 if you could live with the slowness, but the following scenario is an alternative that gives you the ultra fast memory/disk combo for your local cache and the slower S3 as the global shared cache. And usually your local disk is pretty much unused anyways so this makes good use of it. It is like a chained cache consisting of in memory and disk caching (ehcache) with S3 as a secondary cache. For example: getObject(key){ object = localCache.get(key); if(object != null) return object; object = s3cache.get(key); if(object != null) { localCache.put(key, object); return object; } object = getFromDatabase(key); if(object != null){ localCache.put(key, object); s3Cache.put(key, object); return object; } return null; }This scenario would fully support stateless/sessionless load balancing although if you had a ton of app servers and your data was pretty user specific (private), then local/disk cache might become useless unless you have sticky sessions enabled on your load balancer. It would really depend on your app. Other Performance ComparisonsGreg Luck, the creator of EhCache, compares ehcache and memcached Kevin Burton retaliates against Greg's comparison [Less]

0
 
  0 reviews  |  0 users  |  966 lines of code  |  0 current contributors  |  Analyzed 3 days ago
 
 

The WAEFER file system is a low bandwidth, peer-to-peer distributed file system that using caching on each end of the connection to reduce the amount of redundant data that is transferred as well as stored. It uses a distributed hash table for storing file location and metadata. A master server may ... [More] be optionally used for authentication and easy backups of data->storage location mappings. The modular system allows for the implementation of many different options including NAT traversal using the STUNT library developed at Cornell University. [Less]

0
 
  0 reviews  |  0 users  |  1,398 lines of code  |  0 current contributors  |  Analyzed about 14 hours ago
 
 

Small Frame Code is another PHP 5 Model/View/Controller web application framework. SFC is... - tiny - simple - logically implemented - written as a learning tool for the author - an excellent starting point for larger projects SFC is not... - done - fully featured - a RoR, CakePHP, CodeIgniter replacement - full of buzzwords

0
 
  0 reviews  |  0 users  |  421 lines of code  |  0 current contributors  |  Analyzed 8 days ago
 
 

Dolphin is opened under GPLv2. News2008/4/8 Dolphin 1.0 has released. If you have some toubles for using, please contact me. Thanks very much for trying. The response from cnbeta.com, my software page is here http://www.cnbeta.com/article.php?sid=52956. I feel very satisfied. 2008/4/7 I have ... [More] finished dolphin1.0, but now I need some time to release it. And I hope more and more people can help dolphin improvement. Plan of DevelopmentDolphin-1.0-U1 Plan2008/4/08 Add support for ini configure. Support coredump. Convient for debuging program. More... Dolphin-1.0 plan2008/3/21 Multiple threads designment (done) support epoll、poll、select (done) support sendfile (done) support mmap (done) support If-Modified-Since GET request(done) support SIGTERM/SIGINT shutdown service. support POST request (done) support X-FORWARD-FOR support HTTP/1.1 caching (done) 2008/3/25 support setrlimit to set max open fds. support run in background. ContributorsESX(Internet ID), A System Architect from SINA, who give many good advices for Dolphin. For example, configure language and mempool. [Less]

0
 
  0 reviews  |  0 users  |  16,689 lines of code  |  0 current contributors  |  Analyzed 8 days ago
 
 

Classes Name Description Download Youtube Api Class a php class for the youtube API source Objectbase Class a php class for the simple object caching source Hostip Class A class for geolocating an IP using the hostip database source Geocode Class A php class to geocode lat,ln to ... [More] addresses source Noaa Weather Class A php class to get weather from the NOAA source Reverse Geocode Class A php class to do reverse geocode lookups - LAT,LNG -> address source Voxbone DID Class A php class to provision and manage DIDs from voxbone.com source AboutMy name is Harper Reed. I am a software engineer and php dork. I write a lot of code and thought it would be nice to give it back to the people i learned from. check out my blog or check out my homepage I am pretty awesome Email Harper@nata2.org [Less]

0
 
  0 reviews  |  0 users  |  585 lines of code  |  0 current contributors  |  Analyzed about 14 hours ago
 
 

Keepitclose is a simple HTTP caching web service written in PHP to avoid accessing external resources (such as feeds) often, without having to change the application making the request (other than changing the URL). The current alpha version supports caching to shared memory through APC and caching ... [More] to one or more memcache servers. The project is currently in alpha and should not be used in any production environment without being fully aware of the risks. To get started: Check out the current trunk Add a VirtualHost to your Apache configuration to point to the www/ directory as the root directory in the VirtualHost. THIS IS IMPORTANT. The service has been written to not expose any unneeded files through the web server. The current version uses .htaccess to add a autoPrepend file, but there's a simple constant check and require_once in index.php to work anyways. Should work under httpd's that does not support .htaccess and php_value. '''config.php''' in config/ contains a simple example of configuration directives. APC and Memcache are supported as backends in the first alpha version. APC lives in the current HTTPD memory space, Memcache supports distributed clients connecting to a central memory based server. Use your HTTPD to limit access to the caching service. The project includes rudimentary access control support, see the 'allowedHosts' key in '''config.php''' (which is a regular expression to match the host against). Access the resource through http:///?url=http://www.example.com/resource.xml [Less]

0
 
  0 reviews  |  0 users  |  356 lines of code  |  0 current contributors  |  Analyzed 8 days ago
 
 

IntroductionIf you have a source web site (A), you can create another one website (B) that all pages are same as site (A) except domain name. This project was created by using PHP language. First, you can setup .htaccess file to rewrite all HTTP request into one main.php, then this program will ... [More] automatically download web page from another website and caching it. Please told me if you using this class. Thank you. FeaturesSupport caching: All data are static HTML. You can setup the expired time. Locking rule: Only one request to source web site when multiple requests happened. These sites was hosting by using bloghost: http://software.sopili.net/ http://official.sopili.net/ [Less]

0
 
  0 reviews  |  0 users  |  0 current contributors  |  Analyzed about 6 hours ago
 
 

cf_JohnnyCache allows for caching of functionality within ColdFusion Components and the rendering of the view that is affected by the cached CFC code.

0
 
  0 reviews  |  0 users  |  0 current contributors  |  Analyzed 7 days ago
 
 

PHP Cache is a PHP caching framework.

0
 
  0 reviews  |  0 users  |  0 current contributors
 
 
 
 

Creative Commons License Copyright © 2013 Black Duck Software, Inc. and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a Creative Commons Attribution 3.0 Unported License . Ohloh ® and the Ohloh logo are trademarks of Black Duck Software, Inc. in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.