Questions tagged [chronicle-queue]

Chronicle Queue is a persisted low-latency messaging framework for high performance and critical applications.

Resources

  1. SourceCode
  2. Stackoverflow Questions and Answers
  3. Getting started
  4. Java Docs
172 questions
1
vote
1 answer

How to do replication in ChronicleQueue 5

I am migrating from jdk8 to jdk11 and hence trying to use chronicle-queue v5. In ChroincleQueue version 3 we had dedicated methods for creating SourceQueue and SinkQueue. But I am finding it little difficult to implement the same with ChronicleQueue…
1
vote
1 answer

Spring Boot and dynamic compilation in Chronicle Wire

Referring to the title above. To get Chronicle wire dynamic compilation to work with springboot, it requires you to unpack chronicle jars unto a temp directory so that the platform compiler can see classes from the fat JAR. Referring to the docs…
1
vote
0 answers

Use Chroicle Queue to cache Http Response object

I have a use case where we need to persist Http Response (https://square.github.io/okhttp/4.x/okhttp/okhttp3/-response/) into a Chronicle Queue. Since this response object is coming from OkHttp module, I can't make it Marshallable so that I can…
1
vote
1 answer

Queue depth monitoring

Is there a recommended performant way to monitor the depth of a chronicle-queue (the number of messages yet to be read) I am thinking I can compare index() at current location with the index after moving to end, but this may be too costly in terms…
Rook
  • 25
  • 3
1
vote
1 answer

Chronicle Queue rolltime

I am considering configuring a non-default rollTime for chronicle-queue. The rollTime() method allows the ability for the queue rolltime to take account user specified timezone/time. This method can be called by both producers of the queue and…
Rook
  • 25
  • 3
1
vote
1 answer

How to rebuild open source version of chronicle-engine

After spending an entire weekend trying to build the open source version of Chronicle-Engine from the "old-master" branch, I have to admit that it is very non-obvious how that can actually be done. Is anyone in the community aware of any…
Paul
  • 53
  • 1
  • 7
1
vote
1 answer

Iterator over Chronicle Queue implementation

I'm looking to implement an Iterator<> on a ChronicleQueue methodReader (or tailer if this cant be done with a methodReader). Is there a way to see if a queue has more data ( can I use lastReadIndex() < ??? ) (so I can implement the hasNext() of the…
user2591854
  • 182
  • 3
  • 15
1
vote
1 answer

Handling chronicle-queue warning : "reading control code as text"

I am reading a provided Chronicle Queue file via a tailer. Upon creating the tailer I get the warning message: "reading control code as text" There seems to be a certain section(s) of the file that causes this warning to be logged. The other records…
1
vote
1 answer

Not using Java modules, but getting module related exception

I have the following codes which I got from here. import net.openhft.chronicle.core.OS; import net.openhft.chronicle.queue.ChronicleQueue; import net.openhft.chronicle.queue.ExcerptAppender; import net.openhft.chronicle.queue.ExcerptTailer; public…
user3573403
  • 1,780
  • 5
  • 38
  • 64
1
vote
1 answer

chronicle with corretto jdk17 java.lang.NoSuchMethodError: 'sun.misc.Cleaner sun.nio.ch.DirectBuffer.cleaner()'

Trying to follow the guide on the chronicle blog. Have upgraded jars and added the following jvm options…
NimChimpsky
  • 46,453
  • 60
  • 198
  • 311
1
vote
1 answer

Reading from multiple queues vs chronicle event loop

What is the recommended approach to using chronicle event loop with chronicle queues, e.g. if I want to read from 2 queues - can it be done using event loop? (preferrably with each reader running on it's own thread/core)
heniek
  • 13
  • 2
1
vote
2 answers

Can I parse the chronicle queue file

Write data to Chronicle queue. This creates/updates the chronicle queue file and is written in 20220525F.cq4 Query :- Is it possible to parse the file 20220525F.cq4 , what is the data format used to write the file ?
1
vote
2 answers

Chronicle-queue replication error: Received a handler for host ID: 1, my host ID is: 2 this is probably a configuration error

I am currently testing and learning chronicle-queue enterprise replication using the documentation…
1
vote
1 answer

Chronicle-Queue: Why does busy-waiting tailer generate garbage when spinning (nothing to be read)?

I have a busy-waiting loop in which a tailer is constantly trying to read from a queue: final Bytes bbb = Bytes.elasticByteBuffer(MAX_SIZE, MAX_SIZE); // Busy wait loop. while (true) { tailer.readDocument(wire -> { …
1
vote
1 answer

Chronicle Queue: Is recordHistory() not available anymore?

I'd like to benchmark the queue performance using the method demonstrated in github README. However, when I tried on the latest version (chronicle-queue: 5.23ea5, chronicle-wire: 2.23ea5), recordHistory(bool recordHistory) doesn't seem to be…
ccnlui
  • 91
  • 5