At present the Node.js MVP saves data to the instance filesystem because that was the simplest way of storing data without having to manage any database.
see: hits-nodejs/lib/db_filesystem.js#L26-L68
This worked well for MVP as it streams the contents of the file each time a request is made and counts the lines in the file as the count. Node.js shines at this because fs.createReadStream is non-blocking.
Anyway, with the migration to phoenix, we need to:
Tasks
I estimate that this will take me T4h because I have to:
At present the Node.js MVP saves data to the instance filesystem because that was the simplest way of storing data without having to manage any database.
see: hits-nodejs/lib/db_filesystem.js#L26-L68
This worked well for MVP as it streams the contents of the file each time a request is made and counts the lines in the file as the
count. Node.js shines at this becausefs.createReadStreamis non-blocking.Anyway, with the migration to phoenix, we need to:
Tasks
I estimate that this will take me
T4hbecause I have to:(this is the number of people - GitHub usernames - using the hits badge)
localhost.localhostlocalhosthits_devPostgreSQL onlocalhosthits_devPostgreSQL onlocalhost