Comments (5)
by @krasserm:
"I think keyspace and table creation should be done by a singleton that journal actors delegate to during initialization, so that these things can be executed sequentially. Journals would need to support asynchronous initialization then."
from akka-persistence-cassandra.
@krasserm How do you do that in an akka cluster? I can think of a situation where two nodes are spawning actors with different configs causing the same concurrent schema creation problem. Or is this unrealistic? Then we need to think of a cluster singleton, right?
I think it is still valid (though some kind of dirty) to do the schema/table creation task in a try/catch block and retry it because we have everywhere the 'if exists' statements. That hopefully should ship around the problem (also in an akka cluster) and would also fit to the proposed singleton extraction.
from akka-persistence-cassandra.
+1 for retrying (a few times)
from akka-persistence-cassandra.
Right, I was just considering the case where we have n journal instances in the same ActorSystem
. In a cluster setup, retrying is a much simpler solution. Here's my +1.
from akka-persistence-cassandra.
Continued here: akka/akka-persistence-cassandra#4
from akka-persistence-cassandra.
Related Issues (20)
- Very slow replay message request seems to prevent message write to complete HOT 4
- Using different tables of Cassandra for sharding coordinator HOT 7
- Config constructor parameter HOT 7
- Add support for Cassandra 3.0 HOT 2
- SSLOptions for Cassandra 3.x? HOT 1
- Can't connect to Cassandra 3.0 HOT 2
- Rename artifact for Cassandra 3 from ...dra3 to ...dra_3 HOT 2
- Deleting message generates batches of single delete HOT 4
- Update to Akka 2.4.1 HOT 1
- avoid blocking Cassandra API calls HOT 1
- avoid throwing exception when plugin actors are started HOT 1
- cold_reads_to_omit parameter is not C* 2.2.x compatible HOT 2
- Potential race on keyspace initialization HOT 2
- CassandraReadJournal doesn't create metadata table HOT 4
- Using eventsByTag gives Exception HOT 6
- I think the persistence query streams should work even if schema doesn't exist HOT 2
- Is there any documentation or examples how do i use this lib HOT 1
- Install multi DC cassandra on two separate Openshift Origin clusters to get HA and DR
- Writing tags has failed ... Batch too large.
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-persistence-cassandra.