Distributed Storage Stack
Read and write to multiple storage systems through one simple API. All read / writes are streamed so large files are no problem. Currently supports serial and parallel writes to:
- Amazon S3
- Local disk
Installation
npm install distack
Quick Start
var DSS = ; // initvar store = 'tag' : 'local' 'type': 'Disk' 'cfg' : ... 'tag' : 'cloud' 'type': 'S3' 'cfg' : ... ; // writestore; // readtry var readStream = store; catche ...
Storage services
Amazon S3
var store = 'tag' : 'cloud' 'type': 'S3' 'cfg' : 'key' : '<ACCESS_KEY>' 'secret': '<SECRET>' 'region': '<REGION>1' 'bucket': '<BUCKET_NAME>' ;
Local Disk Storage
var store = 'tag' : 'local' 'type': 'Disk' 'cfg' : 'basedir': './uploads' ;