Skip to content

Latest commit

 

History

History
52 lines (45 loc) · 672 Bytes

README.md

File metadata and controls

52 lines (45 loc) · 672 Bytes

DAG store

Project for fun.

Configuration:

config/services/graph/config.yml

API endpoints:

  • POST /nodes request body:
{
    "nodes": [
        {
            "id": "3",
            "parent": "1"
        }
    ]
}
  • GET /nodes response:
[
    "3",
    "1"
]
  • GET /nodes/{node_id}/trees request /nodes/3/trees
{
    "trees": [
        [
            "1",
            "3"
        ]
    ]
}

Run service

python service.py graph

Default configuration binds to 127.0.0.1:8080

Benchmark jmx

benchmark/benchmark.jmx

Tests

rake dev:test

rake dev:lint