Hacker News new | ask | show | jobs
by uniontownlabs 4359 days ago
By default it writes metadata about the stream (title, description, etc) using a file based db called nedb, and it appends the actual logged data to CSV files that are split into 500k chunks. When the user requests their logged data, all of the files are stitched back together, converted into the requested format (JSON, CSV, etc), and streamed to the user’s web client.

For the production server, we are currently using MongoDb for metadata storage and the same CSV module for logged data storage.

2 comments

That's a pretty unusual setup :)

I'd be interested in a blog post about how you choose this architecture.

Sounds good. I'll work on one once the traffic stabilizes.
Is this the same Nedb? https://github.com/louischatriot/nedb/

Looks like a pretty nice project.