Comments (6)
Thank you for your interest in this project and I appreciate your offer to help. I am too learning Elixir. In fact I started this project because of that :) I'll answer to the TODO topic on the other issue.
To your second question. This is a tough topic and from my experience using other frameworks and technologies, this was never a clear path. I won't ask you the reasons why would you need that, especially in a Neo4J universe, where you would like to have your model relationships in the same store/db, or in a cluster managed by Neo4J itself, if they are too many. Regardless, it can be done but I'd like to finish first the rest of the implementation and we'll get back to this, if you don't mind?! Thanks again and I welcome any pull requests if you spot places that can be improved, I am sure they are many. Tests would be a place to start with.
from neo4j_sips.
Ok awesome!
Yeah makes sense. Should totally add it to the TODO list though :)
The reason is that I have a cluster that is load balanced to spread out the reads across all the instances. However the writes need to be sent to the master instance. The way I do this in my other project using Neo4j is that I have "two" graphs. One that points to the master instance. One the points to the load balanced read instances.
from neo4j_sips.
I see. Have you thought, since you have a clear separation between the Reads and the Writes, to use a simple HAProxy and create some very simple routing rules to send the GETs to the instance from where you read and the POSTs/PUTs/DELs/.. to the instance designated for writes/updates? That's how I'd do it, to be honest with you. Then provided you have a Neo4j cluster, the cluster will stay consistent w/o you doing it in programatic mode, from the Elixir app. My 0.2CAD
from neo4j_sips.
I have that on the roadmap, just haven't gotten to it. The library I currently use sends everything to the Neo4j instance as a POST method since that is what it is expecting, making it a bit harder to put the proxy in there. Definitely doable though :)
from neo4j_sips.
Amadou - I added your request to the todo list, but I still need to convince myself that we need it, unless you insist it's a must have :) I'll look into it as soon as I fix the legacy tests related to the Model.
from neo4j_sips.
Sorry about the delayed response, but sounds good!
from neo4j_sips.
Related Issues (14)
- Injection? HOT 6
- tx_commit/1 doesn't appear to work, transactions generally wonky HOT 21
- abstractions for node/relationships HOT 24
- Cannot run anything from Neo4j.Sips HOT 4
- Can't connect to Neo4j after update from 3.0 to 3.1 HOT 15
- TODO List HOT 7
- ** (MatchError) no match of right hand side value: {:error, {:error, :invalid}} HOT 11
- Models: how to create properties on relationships HOT 4
- Basic auth doesn't seem to work properly? HOT 6
- Production? HOT 3
- getting hex dependency conflict HOT 3
- Ecto adapter HOT 6
- Cypher query builder HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neo4j_sips.