<artifactId>chronicle-bom</artifactId>
<version>1.13.12</version>
We create JSON-strings and store those in Chronicle Queue. One object/message is sometimes quite large resulting in huge JSON-strings. (Most of the time they're not huge.)
appender.writeDocument(writer -> writer.getValueOut().text(tmpValue));
tailer.readDocument(reader -> reader.getValueIn().textTo(tmpStringBuilder));
In our code (temporarily for debugging purposes) we parse the JSON-strings back to Objects before submitting them to Chronicle - this always works.
Apart from the JVM crashes we've seen several cases where the returned strings (reading back from Chronicle Queue) are not valid/usable JSON-strings. They appear to be truncated and/or missing parts in the middle.
How large "things" can you safely write to a queue?
Looking at the source code for SingleChronicleQueue and AbstractChronicleQueueBuilder I see there are attributes "blockSize" and "bufferCapacity" but I see no comments or documentation on what these actually mean (and I'm not able to deduce this from reading the code).
What's the correct way to configure the queues to be able handle larger messages/strings?
By default, you should be able to store strings of up to 16 MB without a problem. Larger strings are possible but we don't have tests for such large strings.
Would it be possible to create a unit test which demostrates your problem?
Peter.
--
You received this message because you are subscribed to the Google Groups "Chronicle" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-chronicle+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
The overlap size is the largest you can safely write without bounds checking. We can change the write text to check bounds periodically to lift this restriction. I suggest you reconsider writing such large entries as you can't sustain messages that large and not overload your system.
Would you consider using compression?
Peter.
> To unsubscribe from this group and stop receiving emails from it, send an email to java-chronicle+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to a topic in the Google Groups "Chronicle" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/java-chronicle/2ErOQXd9uFg/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to java-chronicle+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Chronicle" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-chronicle+unsubscribe@googlegroups.com.
Chronicle Wire which queue is based on supports compression. We could add it to queue for entries like this.
Chronicle Wire Enterprise supports delta compression for the serialization of objects and this reduces the size by around 10x without the overhead of compression. It's also up to 3x faster as it writes less data.
> > To unsubscribe from this group and stop receiving emails from it, send an email to java-chronicle+unsubscribe@googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
> >
> > --
> > You received this message because you are subscribed to a topic in the Google Groups "Chronicle" group.
> > To unsubscribe from this topic, visit https://groups.google.com/d/topic/java-chronicle/2ErOQXd9uFg/unsubscribe.
> > To unsubscribe from this group and all its topics, send an email to java-chronicle+unsubscribe@googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups "Chronicle" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to java-chronicle+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to a topic in the Google Groups "Chronicle" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/java-chronicle/2ErOQXd9uFg/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to java-chronicle+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Chronicle" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-chronicle+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Chronicle" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-chronicl...@googlegroups.com.
On 8 Aug 2016, at 13:22, 'Anders Peterson' via Chronicle <java-ch...@googlegroups.com> wrote:
--
You received this message because you are subscribed to the Google Groups "Chronicle" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-chronicle+unsubscribe@googlegroups.com.