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

external DB #174

Open
phaus opened this issue Jun 9, 2015 · 9 comments
Open

external DB #174

phaus opened this issue Jun 9, 2015 · 9 comments

Comments

@phaus
Copy link
Contributor

phaus commented Jun 9, 2015

Since I do have only limited Knowledge about Clojure, how difficult would it be to use a real DB (like MySQL) as a Backend?

@stilkov
Copy link
Contributor

stilkov commented Jun 10, 2015

It wouldn’t be too hard. But why would we want to do that?

@phaus
Copy link
Contributor Author

phaus commented Jun 10, 2015

If we want to use this software as an example for scaling over instances, having a Database in the Backend and a LB in the Frontend would be nice. Not that important though

@stilkov
Copy link
Contributor

stilkov commented Jun 10, 2015

Very good point, at the moment, scaling it by firing up additional instances would kill it :-)

We can essentially pick any datastore we like. Given that, I suggest we go with one that scales horizontally. A simple key/value store would be sufficient, a doc db would work as well.

The datastore itself needs to be refactored using a protocol (Clojure’s interface idiom), one implementation would use the existing file storage, the other one the DB.

Any suggestions? Riak? Mongo?

@mvitz
Copy link
Contributor

mvitz commented Jun 10, 2015

I would like to do the protocol refactoring as this is on my "things to do in statuses" list. But if anyone else has time feel free to do it ;-)

@pgh
Copy link

pgh commented Jun 10, 2015

Cassandra would be a good fit, wouldn’t it?

@stilkov
Copy link
Contributor

stilkov commented Jun 10, 2015

The last time I played with it, Cassandra was a nightmare to set up. Has this changed?

@pgh
Copy link

pgh commented Jun 10, 2015

docker run …

:-)

@phaus
Copy link
Contributor Author

phaus commented Jun 10, 2015

at least that won't be a problem for that specific use-case, since we can drop Cassandra into Mesos as well: http://mesosphere.github.io/cassandra-mesos I just need a proper application configuration.

@stilkov
Copy link
Contributor

stilkov commented Jun 11, 2015

Those who do the work should be the ones making the decisions, so go ahead.

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

4 participants