Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database #44

Open
forki opened this issue Dec 3, 2015 · 4 comments
Open

Database #44

forki opened this issue Dec 3, 2015 · 4 comments

Comments

@forki
Copy link
Contributor

forki commented Dec 3, 2015

What is the database story?

Currently we need to download a zip to get started. How is this working in production?

@tpetricek
Copy link
Member

In production, it is currently using Azure blob storage - what is in the local data directory is basically mirrored in blob storage. The code for this is in the azure.fs file. The site picks Azure or Local file system here depending on an environment variable (set on Azure).

I went with blob storage/file system because it is the most basic thing that would work (we would have to store the metadata index in a database if we had multiple machines hosting this, but given the site load, that seems overkill :))

@forki
Copy link
Contributor Author

forki commented Dec 3, 2015

Thx. Just for fun I will investigate if I can come up with a docker
solution.
On Dec 3, 2015 22:53, "Tomas Petricek" notifications@github.com wrote:

In production, it is currently using Azure blob storage - what is in the
local data directory is basically mirrored in blob storage. The code for
this is in the azure.fs file
https://github.com/tpetricek/FsSnip.Website/blob/master/code/common/storage/azure.fs.
The site picks Azure or Local file system here
https://github.com/tpetricek/FsSnip.Website/blob/master/code/common/data.fs#L19
depending on an environment variable (set on Azure).

I went with blob storage/file system because it is the most basic thing
that would work (we would have to store the metadata index in a database if
we had multiple machines hosting this, but given the site load, that seems
overkill :))


Reply to this email directly or view it on GitHub
#44 (comment)
.

@tpetricek
Copy link
Member

If there is something similar that we could use on Amazon, that would be pretty epic. Would love to be able to host this for cheap on AWS :-)

Perhaps @Adron would know something?

@kunjee17
Copy link
Contributor

@tpetricek @forki AWS is having RDS. I don't know the price but they do have many database options.

Just for curiosity why not using file based database. Store locally on cheap EC2 or Digital ocean server.

Or may be localjson store. @robconery worked on something long back.

##Update1##
I was talking about something like biggy. have a look may be it will solve Database problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants