News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Gonzalo Ayuso's Blog:
Using CouchDb as filesystem with PHP
September 01, 2010 @ 13:41:12

In a new post to his blog Gonzalo Ayuso shows an interesting use for the CouchDB tool - using it as a filesystem for cross-server handling of things like images or other binary resources.

One of the problems I need to solve in my clustered PHP applications is where to store files. When I say files I'm not speaking about source code. I'm speaking about additional data files, such as download-able pdfs, logs, etc. Those files must be on every node of the cluster. [...] CouchDb has two great features to meet or requirements with this problem. It allows us to store files as attachments and it also allows to perform a great and very easy multi-master replica system.

He shows how use two libraries he's created to connect to the CouchDB instance and, based on this structure, be able to insert the content - a text file in this case - pull it back out, get the meta data about it and even move it to another location in the structure.

1 comment voice your opinion now!
couchdb filesystem tutorial binary file


blog comments powered by Disqus

Similar Posts

Perplexed Labs Blog: PHP Forking to Concurrency with pcntl_fork()

DZone.com: How to Set up Wordpress on EC2 Using Puppet and Git

David Coallier's Blog: Installing PHP6 (For beginners)

KillerPHP.com: Advanced PHP Video Tutorial - Passing Parameters Around an MVC Application

IBM developerWorks: Build seven good object-oriented habits in PHP


Community Events





Don't see your event here?
Let us know!


api symfony opinion framework podcast voicesoftheelephpant conference laravel list version language configure unittest composer introduction release interview community series threedevsandamaybe

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework