Comments (7)
The scope of akka-data-replication is in-memory only, replicating to other nodes in the cluster. It does not have integration with akka-persistence or any other durable data store.
I think Riak 2.0 CRDTs looks promising if you need a full data store.
from akka-data-replication.
@rbraley does that answer your question? May I close the issue?
from akka-data-replication.
Yes. Thank you :) Although I am kind of confused as I thougtht that akka-persistence was orthogonal to akka-data-replication. Since all it would do is journal and persist messages isn't integration unnecessary to use the two together?
—
Sent from Mailbox
On Mon, Sep 29, 2014 at 1:14 AM, Patrik Nordwall [email protected]
wrote:
@rbraley does that answer your question? May I close the issue?
Reply to this email directly or view it on GitHub:
#37 (comment)
from akka-data-replication.
You are right, it is possible to use them together without tight integration. For some reason I thought you were looking for making akka-data-replication automatically durable.
One way to use them together is to make the updates to akka-data-replication from within the persist block, i.e. after the event has been stored by akka-persistence. It must also be done when replaying events during recovery. Then the replicated data will eventually be replicated to other nodes for fast retrieval (like a cache).
from akka-data-replication.
Yeah. That’s the magic I want!
Makes me curious the pros and cons of using a database vs using akka to store and replicate data. It seems like it would make polyglot persistence very easy, but perhaps make data modeling and querying a little tricky. For data per user, it would seem pretty effective for example with akka-sharding. When a user logs in that actor will wake up on some machine and start feeding what it remembered about that user’s settings. CRDTs could be used similarly for shared data. This may sound crazy, but maybe it’s not. For example, FoundationDB essentially decided to build their own akka in C++ just to build their DB; I suppose there’s also Mnesia as another case of an actor model backed datastore. Carl Hewitt’s ideas seem to be a sound foundation for all of computation, including databases, but I am curious if it will be practical and easy to reason about as well.
Ryan Braley | Founder
http://traintracks.io/
US: +1 (206) 866 5661
CN: +86 185 1129 5661
Coding the future. Decoding the game.
On September 29, 2014 at 1:43:01 PM, Patrik Nordwall ([email protected]) wrote:
You are right, it is possible to use them together without tight integration. For some reason I thought you were looking for making akka-data-replication automatically durable.
One way to use them together is to make the updates to akka-data-replication from within the persist block, i.e. after the event has been stored by akka-persistence. It must also be done when replaying events during recovery. Then the replicated data will eventually be replicated to other nodes for fast retrieval (like a cache).
—
Reply to this email directly or view it on GitHub.
from akka-data-replication.
One con of combining akka-persistence + akka-data-replication as I described is that akka-persistence is using single-writer model, while CRDTs themselves are designed for concurrent updates.
from akka-data-replication.
thanks for raising an interesting question
from akka-data-replication.
Related Issues (20)
- Rename private method isOtherOutdated to isOtherDifferent HOT 3
- Retrieve current state when starting subscription
- Switch to sbt/sbt-protobuf plugin HOT 1
- ORSet's merge use VectorClock HOT 2
- Quorum should work for 2 nodes (and all even numbers) HOT 3
- Add another convenience constructor for Update HOT 1
- sbt cannot download from dl.bintray.com/patriknw/maven HOT 5
- Remove defaults for ReadConsistency and WriteConsistency HOT 1
- Clarify that UpdateFailure doesn't mean that the update failed
- Point out the risk of WriteOne HOT 1
- Abort Update if specified readConsistency fails
- ModifyException should carry the original exception
- Guidelines HOT 3
- State partitioning HOT 3
- Strange merge after ORMap[ORSet] put
- Add ORMultiMap HOT 1
- Rename the replicated data types HOT 9
- Message to flush changes immediately HOT 8
- don't work with akka 2.4-m1 HOT 10
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 akka-data-replication.