Hi,
i have a small application which recieves messages from multiple remote clients, parses these messages and store them into cassandra using pelops.
I create every single message with mutator.writeColumn followed by mutator.execute.
This is kinda slow and generate a moderate pressure to the cassandra servers.
My first idea was to start a seperate Thread which periodically (every second) runs mutator.execute. The creation still uses mutator.writeColumn but not followed by a execute.
When i try this, it always leads to a
org.scale7.cassandra.pelops.exceptions.PelopsException: java.util.ConcurrentModificationException
during the mutator.execute call.
So my Question is how can i avoid to flush my writes to cassandra on every single message received ?
Greetings
Stefan Majer