dgraph icon indicating copy to clipboard operation
dgraph copied to clipboard

Product Roadmap

Open manishrjain opened this issue 11 years ago • 70 comments

  • [x] Low Latency
  • [x] High Throughput
  • [x] RDF Parsing
  • [x] ~Rocks DB~ Badger DB for persistence
  • [x] ~Commit Logs~ (Replaced by RAFT logs)
  • [x] Query Language - GraphQL-like
    • [x] Query
    • [x] Root Arguments
    • [x] Fields
    • [x] Response in JSON
    • [x] Field Arguments
    • [x] Field Alias
    • [x] Mutations #23 [v0.2]
    • [x] Fragments #8
    • [x] Variables
    • [x] Type System
      • [x] Scalar Types
      • [x] ~Object Types~
    • [x] Mutation validation for scalar types
    • [x] String matching / Name search
    • [x] Sort by attribute
    • [x] Limit number of results #9
    • [x] Filter
      • [x] anyof
      • [x] allof
      • [x] eq (equal)
      • [x] inequality (>=, <=, >, <)
    • [x] Aggregate Functions
      • [x] count
      • [x] sum
      • [x] max
      • [x] min
    • [x] Geospatial Queries
      • [x] Nearby
      • [x] Within
      • [x] Contains
      • [x] Intersects
  • [x] Official Clients
    • [x] Javascript
    • [x] Go [v0.3]
    • [x] Java
  • [x] Distributed Transactions
  • [x] Distributed #14 [v0.2]
    • [x] Distributed Loader [v0.2]
    • [x] Distributed Server [v0.2]
  • [x] Clustering
    • [x] Node discovery and membership via Dgraph Zero
  • [x] High Availability
    • [x] Raft
    • [x] Automatic Data Replication
    • [x] Automatic Failover for reads
    • [x] Read linearizability
  • [x] Resilience
    • [x] Shard moves to handle server failure
  • [x] Export
  • [ ] Backup

After v1.0 / Proprietary Plugins

  • [ ] Multi-homing support
  • [ ] Cypher Support
  • [ ] Access Control Lists
  • [ ] Query Graphical User Interface
  • [ ] User authentication
  • [ ] Cluster Management
  • [ ] SPARQL [maybe]
  • [ ] Tinkerpop Support [maybe]
  • [x] Distributed transactions [maybe]

manishrjain avatar Nov 30 '15 04:11 manishrjain

It'd be cool if the DB could serve GraphiQL. This would be perfect for demos + internal spelunking through data.

KyleAMathews avatar Dec 03 '15 06:12 KyleAMathews

I'm running a DGraph server holding Freebase Film data, which you can query like so: curl dgraph.xyz/query -XPOST -d '{}'. An example of the query is in the README.

manishrjain avatar Dec 03 '15 07:12 manishrjain

Support tinkerpop? https://tinkerpop.apache.org

PhilAndrew avatar Apr 06 '16 04:04 PhilAndrew

Tinkerpop would happen with Gremlin support. We'll do that after v1.0 gets released. This roadmap is largely focused on v1.0.

manishrjain avatar Apr 06 '16 04:04 manishrjain

For gossip discovery, I've found hashicorp/memberlist to work quite well.

F21 avatar Oct 19 '16 22:10 F21

@F21: Instead of using Gossip protocol, we used the already implemented RAFT protocol for keeping track of membership. In terms of discovery, our cluster requires knowing at least one node in the cluster; any healthy node would do.

manishrjain avatar Nov 07 '16 13:11 manishrjain

I suggest also support cypher for queries, to avoid the queries migration from neo4j users.

julsdelatierra avatar Dec 04 '16 20:12 julsdelatierra

@jcebXD -- Yeah, Cypher is something we'll fully support.

manishrjain avatar Dec 05 '16 00:12 manishrjain

Cypher support will be great indeed for the application layer. I also see that Tinkerpop support is on the Roadmap after 1.0, but I would have prefered to see SPARQL instead. Since the data model for Dgraph is already Triple/Nquad based, it would be logic and convenient to expose a SPARQL 1.1 endpoint out of the box, in addition to the GraphQL endpoint. SPARQL support is very important to fully interact with the semantic web, without the need to take a full Dgraph (triples) backup which then again needs to be imported in a separate TripleStore such as BlazeGraph to be able to run SPARQL queries against the Dgraph data.

pmualaba avatar Dec 12 '16 07:12 pmualaba

Is there any interest in supporting mobile ? Running a dgrpah DB on mobiles using gomobile is possible. Even with the CGO aspect of rocksdb. I currently run boltDB on the servers and the clients with golang. It is nice to have that reuse.

For example i build apps for mobile, desktop using golang with this: https://github.com/therecipe/qt It uses CGO heavily, and works well.

ghost avatar Dec 30 '16 13:12 ghost

@gedw99 -- We're not currently thinking about mobile. All our efforts are focused on production for large scale deployments.

manishrjain avatar Jan 02 '17 02:01 manishrjain

Aggregations are not on the roadmap for 1.0, and neither after 1.0 ? The ability to perform aggregations (COUNT, SUM, AVG, MIN, MAX, GROUP BY, DISTINCT,...) is clearly one of the main reasons you store data in a database in the first place and all acient and modern databases and database languages (SQL, CYPHER, SPARQL,...) support it. Why are they missing from the roadmap for DGraph?

Also for a new product anno 2017 it also make sense to have built in support for subscriptions (changefeeds ala RethinkDB). since many of the applications we built today needs support for real-time and push features...

DGraph is a great and promising database project, but without these features one would still be forced to move to other open-source alternatives such as ArangoDB which at this moment is the only serious open-source "competitor" for DGraph.

pmualaba avatar Jan 30 '17 08:01 pmualaba

@pmualaba: We're working on aggregate functions already! #532 It was missing on the roadmap. Thanks for pointing it out. We've added it now.

ashwin95r avatar Jan 30 '17 08:01 ashwin95r

You guys are lightning fast ;-) Great to hear that you're already working on this.

pmualaba avatar Jan 30 '17 08:01 pmualaba

While playing with DGraph, there is one thing that doesn't feel quite right to me : DGraph returns JSON format (which is great!), GraphQL queries also uses JSON format (without values) which is also great! But GraphQL mutations only supports NQuad format? I would like to see mutations also to be consistent in using JSON. As a matter of fact, there is already a W3C compliant RDF serialization format called JSON-LD: http://json-ld.org/

Accepting valid JSON-LD in mutations will also greatly improve developer experience using DGraph, since application logic these days all generate or serialize into JSON before persisting to a database. Manual JSON to NQuad conversion can then be eliminated from the application layer and moved to the database layer.

I would not suggest to remove support for NQuad mutations enterily (sometimes it can come in handy), But to add additional support for JSON-LD. I believe NQuad is still the way to go for massive batch imports, but JSON-LD is preferable for use in mutation queries, i guess.

pmualaba avatar Feb 20 '17 22:02 pmualaba

Thanks for the feedback, @pmualaba. JSON-LD seems like a nice format for mutations. We have @ashishnegi working on it.

manishrjain avatar Feb 21 '17 06:02 manishrjain

@manishrjain Are the proprietry plugins going to be closed source. Sorry to aks this, but ACL's for example not being part of the open source offering ? Its pretty harsh.

joeblew99 avatar Mar 09 '17 09:03 joeblew99

Hey @joeblew99 , others,

It is very important for us to figure out a revenue model, if we want to continue working on Dgraph three years down the lane. That's the only way we can keep supporting the salaries of people who are dedicated their lives on Dgraph. Without money, Dgraph would stop spinning (think RethinkDB).

Keeping that in mind, we have divided the project into what we consider open core and what we consider commercial. Anything that a startup needs to run their services and scale is part of the open core. This includes all of the current functionality and running Dgraph distributedly (which is not for e.g., allowed by Neo4j).

Anything that's an advanced feature would then be put into the commercial, closed-source version of Dgraph. This means: ACLs, cluster management, multi-tenancy, auto-scaling on Amazon, Google, etc.

This is a delicate balance between giving startups the same (I know it's better but I want to stay humble) level of technology built within the walls of big companies, like Google, Facebook, etc.; while also finding a way to monetization to make the company profitable and keep hiring the top engineers we can find.

Note that for small companies, which are pre-revenue, we would most likely make the enterprise version free of cost (free, but not open). But, if a company is making revenue and benefitting from Dgraph, we do expect them to pay. That's what is going to allow us to keep our engineers working for Dgraph, in a very competitive market where giants can pay up a huge sum to entice engineers. So, their salaries have to be competitive and they must feel that this company is not going to vaporize, and is going to be around 10 years from now.

manishrjain avatar Mar 14 '17 01:03 manishrjain

@manishrjain,

I appreciate your thought behind this. But can't dgraph have model similar to Firefox or let's many of the Apache foundation projects with some big enterprises supporting it financially. And dgraph as company can work as consultant as well as developer of product. Like something that comes quickly to my mind is the way 'typesafe' works.

This will give dgraph complete freedom to focus on building technically better graph DB than neo4j or any other competitors.

On Tue, Mar 14, 2017, 6:59 AM Manish R Jain [email protected] wrote:

Hey @joeblew99 https://github.com/joeblew99 , others,

It is very important for us to figure out a revenue model, if we want to continue working on Dgraph 3 years down the lane. That's the only way we can keep supporting the salaries of people who are dedicated their lives on Dgraph. Without money, Dgraph would stop spinning.

Keeping that in mind, we have divided the project into what we consider open core and what we consider commercial. Anything that a startup needs to run their services and scale is part of the open core. This includes all of the current functionality and running Dgraph distributedly (which is not for e.g., allowed by Neo4j).

Anything that's an advanced feature would then be put into the commercial, closed-source version of Dgraph. This means: ACLs, cluster management, multi-tenancy, auto-scaling on Amazon, Google, etc.

This is a delicate balance between giving startups the same (I know it's better but I want to stay humble) level of technology built within the walls of big companies, like Google, Facebook, etc.; while also finding a way to monetization to make the company profitable and keep hiring the top engineers we can find.

Note that for small companies, which are pre-revenue, we would most likely make the enterprise version free of cost (free, but not open). But, if a company is making revenue and benefitting from Dgraph, we do expect them to pay. That's what is going to allow us to keep our engineers working for Dgraph, in a very competitive market where giants can pay up a huge sum to entice engineers. So, their salaries have to be competitive.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dgraph-io/dgraph/issues/1#issuecomment-286294593, or mute the thread https://github.com/notifications/unsubscribe-auth/AB-j0Rapd8OnXghVfs4PC-kxRhVbFaXmks5rle13gaJpZM4GrLa6 .

foobatman avatar Mar 14 '17 01:03 foobatman

One thing that's clear to me: Dgraph can only survive if we are 10x better than Neo4j and others. If we genuinely didn't believe that, we'd be instead working for some big company, 9-5 and getting a nice fat check at the end of the year. So, making Dgraph the best graph database out there is the top priority. And for that, we need to hire and retain the best engineers.

I think Firefox is a bad example. They were thriving when Google was paying (donating?) them a big sum of money; until Google decided to stop that and focus on Chrome. Since then, Firefox revenue has steadily declined, while Chrome has taken over the world. At this point, Firefox can't afford to get the top talent working for them -- while Google (/Chrome) continues to recruit the best and brightest, which in turn makes Chrome even better. http://howdoesitmakemoney.com/how-does-mozilla-firefox-make-money/

Consultancy is great, and we intend to do that, but consultancy alone is not going to make a company significantly profitable (more consultancy requires more human power). All top companies today are profitable due to selling software (Google, Microsoft, Facebook, etc.).

P.S. I don't intend this to become a thread of its own; so feel free to email me if anyone has concerns: manish, dgraph.io.

manishrjain avatar Mar 14 '17 03:03 manishrjain