When writing to Chronicle Queue, the default write doesn't flush to disk, so I believe anything that is in the linux kernel dirty page cache is lost. What's the best approach to get guaranteed recovery in the event of power failure? Would a…
I am planning to use chronicle 4 (SingleChronicleQueue) for IPC .
I was using chronicle 3 previous (IndexedQueue ) and it was not thread safe and I used to create multiple queues per thread but i was told by some one by using SingleChronicleQueue i…
We have been building a bunch of micro services using Apache Kafka as a messaging bus to communicate between them. Some micro services also interact with a database or a JMS message broker (IBMM MQ) or both.
We had lots of problems caused by the…
I am evaluating option of using chronicle-queues for storing the audit events and relaying events.
Application should have functionality to replay data from any random point with in a given file, and read relevant data and close he trailer…
We're building a Java based application that makes use of a journal/write-ahead-log (WAL). The idea is that every message that enters the system is first written into the journal before any processing. The journal acts as a single source of truth…
I am trying to use chronicle queue to determine the last index of the current cycle.
I will use the start index and the last index to do a final check before deleting the single cq4 for the cycle.
I would like to be able to find the last index of a…
If we need to limit total size of chronicle queue to let say 1GB or 10GB. What would be the best way to do it ?
We store buffers as bytes so I was trying to calculate total size just by summing buffer sizes but looks like there is no easy way to…
I am trying to write a byte array that I know the size of to the array however I am not able to parse the resultant data.
I am using the following code:
okAppender.writeBytes(b -> b.write(byteData));
and
byte[] byteData = new…
I've found chronicle-queue version on maven central is quite old: 4.5.27, while 4.6.23 is most recent released on github. Does it mean 4.5.27 is a kind of "prod-ready", while all 4.5.27+ are experimental? Or you use other repositories for…
I am using Chronicle Queue 4.5.15 in one of my apps running on several Linux hosts. Each instance of the app had its own chronicle queue which usually stores several million strings.
Recently i have noticed queue files on each instance vanishing.…
The ChronicleQueueBuilder interface (4.5) allows parameterisation of the queue file characteristics. By default I get 80mb files for daily rollover.
Is there any guidance how one should use these values?
What are the trade-offs? Can I optimize it…
1) In chronicle queue v4 most test patterns show some form of DocumentContext.isPresent() busy state checking, when ExcerptTailer is positioned at the end of the queue and code is waiting for new entries to arrive from ExcerptAppender.
2) Is there a…
I'm experimenting with running chronicle queue inside docker containers. Why do I get the following error only when running in a container, and not when running directly on host?
What is this .chronicle.analytics.client.id file used for?
Client id…
Assume a chronicle queue, and a producer that writes 2 types of messages into the queue.
Each type of message is written with a different "WireKey".
// Writes: {key1: TestMessage}
appender.writeDocument(w -> w.write("key1").text("TestMessage"));
//…