Code Monkey home page Code Monkey logo

Comments (6)

florinpatrascu avatar florinpatrascu commented on June 27, 2024

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.

ascrookes avatar ascrookes commented on June 27, 2024

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.

florinpatrascu avatar florinpatrascu commented on June 27, 2024

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.

ascrookes avatar ascrookes commented on June 27, 2024

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.

florinpatrascu avatar florinpatrascu commented on June 27, 2024

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.

ascrookes avatar ascrookes commented on June 27, 2024

Sorry about the delayed response, but sounds good!

from neo4j_sips.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.