Skip to content
This repository has been archived by the owner. It is now read-only.

centralized DB support? #51

Closed
pocketmax opened this issue Sep 29, 2015 · 13 comments
Closed

centralized DB support? #51

pocketmax opened this issue Sep 29, 2015 · 13 comments
Labels

Comments

@pocketmax
Copy link

pocketmax commented Sep 29, 2015

If I have an app thats deployed in IPFS with a central DB via a REST api...does IPFS mess with the REST communication of my app?

Also, does IPFS have a solution to centralize large databases? Maybe split records across multiple nodes or is that outside the scope of IPFS?

@jbenet
Copy link
Contributor

jbenet commented Sep 29, 2015

What do you mean by "a central DB via a REST api"? can you be much more specific?

Also, does IPFS have a solution to centralize large databases? Maybe split records across multiple nodes or is that outside the scope of IPFS?

out of scope of ipfs-core, but certainly in scope of protocols on top of IPFS that we're designing.

imagine ipfs-cluster + an IPFS-KV or IPFS-SQL implementation.

@pocketmax
Copy link
Author

pocketmax commented Sep 29, 2015

when I say "a central DB via a REST api". I mean something like a mysql db behind a PHP/APACHE web server. The public side of the server exposes a REST api via port 80 while the internal side connects to a mysql db. So in order for my app to make changes to my DB, it would make rest calls to this php/apache server. I was just curious if IPFS would mess with that traffic in any way. But I'm guessing it wouldn't since I would use the IP of that web server in my app.

@jbenet
Copy link
Contributor

jbenet commented Sep 29, 2015

correct

@jbshirk
Copy link

jbshirk commented Oct 29, 2015

@pocketmax

Does IPFS have a solution to centralize large databases? Maybe split records across multiple nodes or is that outside the scope of IPFS?

I'm no expert but years ago I dabbled with a particular column-oriented database called KDB (now: KDB+) which was, and still is, way ahead of its time. In 2000 the concept was relatively unknown to traditional RDBMS people, but not so today.

I know that with column-oriented databases in general (and specifically KDB) index files are not used and column data, stored in separate text files, can be, and is, split over many volumes. I just have a hunch that this kind of data structure would lend well to IPFS, and eventually updates and inserts could be automagically handled with version diffs.

I suppose that files like Microsoft SQL Server uses would probably be a nightmare on IPFS.

Just a thought...

@jbenet
Copy link
Contributor

jbenet commented Nov 1, 2015

there are clean layerings of SQL (or restricted subsets) on top of these kinds of systems.

@pocketmax
Copy link
Author

pocketmax commented Nov 2, 2015

jbenet. Can you send some links or give some names of the technology that use these "restricted subsets"? I've never heard of it. I did some googling and can't find any links to any tech like that. It sounds interesting.

@jbenet
Copy link
Contributor

jbenet commented Nov 2, 2015

one example GQL is a restricted subset of SQL for bigtable/"appengine datastore". layered over a multiversion distributed kv-store. look for those. all the "no sql but relational" dbs usually have a SQL restricted subset layered over a distributed kv store, even if they dont call it that. this includes mongodb.

@jbshirk
Copy link

jbshirk commented Nov 4, 2015

name isn't pretty, but possibly a good candidate to adapt to ipfs: https://github.com/cockroachdb/cockroach
I'll look more into it later.

@jbshirk
Copy link

jbshirk commented Nov 4, 2015

@jbshirk
Copy link

jbshirk commented Nov 4, 2015

A couple of interesting graph-oriented databases found on wikipedia. My criteria were basic: distributed, open source, NOT written in java.

@pocketmax
Copy link
Author

pocketmax commented Nov 4, 2015

lol "NOT written in java." so true... so true.

 On Wednesday, November 4, 2015 4:37 PM, Joe <notifications@github.com> wrote:

A couple of interesting graph-oriented databases found on wikipedia. My criteria were basic: distributed, open source, NOT written in java.

@jbshirk
Copy link

jbshirk commented Nov 6, 2015

An important concept that ought to work well with distributed hash tables
Handling ridiculous amounts of data with probabilistic data structures

@flyingzumwalt
Copy link
Contributor

flyingzumwalt commented May 23, 2017

This issue was moved to https://discuss.ipfs.io/t/centralized-db-support/370

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

No branches or pull requests

5 participants