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
2
votes
2 answers

Chronicle Queue reading any kind of message with readDocument

In the Chronicle Queue I have two types of messages written. I wanna read this messages using the same tailer and if it is possible with the same method for example using tailer.readDocument(). Anyone now if it is possible, the message types are…
2
votes
1 answer

Chronicle Queue Read/write from queue using zero allocation

I am a new user of chronicle queue and I wanna use a zero allocation strategy to read and write the objects from chronicle queue. I want to use a queue and a marshable implementation of bytes like a pojo class is the that some correct strategy? I…
2
votes
1 answer

How to update a record in chronicle queue?

I want to update a record at specific index. My code did not work. Thank you all appender.writeBytes(Bytes.wrapForRead("1234".getBytes())); long index = tailer.index(); DocumentContext dc = tailer.readingDocument(); Wire wire…
dragun
  • 21
  • 2
2
votes
1 answer

Why does Chronicle Queue hold on to files for a second after close?

I'm trying to run some chronicle queue junit tests using the TempDir annotation, but the test fail because chronicle queue doesn't let go of the files before junit cleans up the temp dir, which causes the test to fail. My temporary solution is to…
Dan
  • 23
  • 2
2
votes
1 answer

chronicle vs chronicle-queue package

I'm just getting started with chronicle queue - however I'm a bit confused on which API to use for reading/writing to the queue. Specifically chronicle-queue-5 vs chronicle-3.5.* I've gone through this link which basically uses chronicle-queue API…
Plaiska
  • 166
  • 2
  • 11
2
votes
1 answer

Chronicle Queue tailer stops when appender is restarted

In the below code, restarting the tailer process is ok. However, restarting the appender process results in the tailer failing to receive any more messages. Is there a way to restart the appender and keep the channel open? Edited: Below is a full…
Chris Mack
  • 21
  • 2
2
votes
1 answer

Reading messages in Chronicle Queue Tailer (v5.16.11) does not auto-move the index to next roll cycle

I use CQ v5.16.11 (with openjdk 11) to save data with daily roll cycles. The process runs non-stop from Sun to Fri so I have 5 cq4 files per week. I ran the process for 1.5 weeks and have 8 files (3 for 1st and 5 for 2nd week). So the files that I…
Sam
  • 61
  • 6
2
votes
1 answer

SAN based storage with chronicle queue

I started using chronicle-queue a few days back, and i was going through its documentation. Chronicle Queue does not support operating off any network file system, be it NFS, AFS, SAN-based storage or anything else. The reason for this is…
Joshnee
  • 241
  • 4
  • 8
2
votes
2 answers

Is there guaranteed order of subscribers in chronicle queue?

I'm looking at Chronicle and I don't understand one thing. An example - I have a queue with one writer - market data provider writes tick data as they appear. Let's say queue has 10 readers - each reader is a different trading strategy that reads…
Mark Fric
  • 21
  • 2
2
votes
1 answer

Mockito ArgumentCaptor with lambda (Chronicle Queue)

I have implemented following Chronicle Queue and for this I want to write unit test case. How do I capture ArgumentCaptor arguments while using lambda. I want to get writeBuffer in test case to verify the data. public class Persister { public…
AmbGup
  • 731
  • 1
  • 9
  • 23
2
votes
2 answers

Chronicle Queue - Read from last read position and delete files if read by all consumers

I am using Chronicle 4.5.27 for writing and reading market data. I have got a single writer but multiple readers. Development OS is Windows followed by Linux for Prod deployment. How to implement following uses cases? How to start reading queues…
AmbGup
  • 731
  • 1
  • 9
  • 23
2
votes
1 answer

Copy data from one Chronicle to another

For the concept of taking back up , i need to copy data from one chronicle queue to another . Would it be safe to do a directly copy the whole Bytes object from wire of one queue into another ? something like…
user3887600
  • 138
  • 1
  • 8
2
votes
1 answer

Linux JNA-based affinity not usable because it failed to load

I have a listener project implemented on java that consumes the data from kafka and pushes into the Vanilla Chronicle queue. I am using the java libraries of jna, jna-platform version 4.4.0 and chronicle queue version 3.6.4. When I run the project…
2
votes
1 answer

Chronicle Queue StoreTailer.next() creating huge amount of garbage

I'm bench-marking Chronicle queue for one of our use cases and noticed that readDocument() API of the ExcerptTailer creates too much garbage! JFR shows that the process spends around 66% of the time in the stack below. What version of Chronicle…
KodeWarrior
  • 3,538
  • 3
  • 26
  • 40
2
votes
2 answers

Chronicle Roll Files Daily

I am trying to implement Chronicle Queue into our system and had a question regarding rolling of files daily but at a specific time as per the local time zone of the process. I read few write-ups regarding how to specify roll cycle but as per…
ATO
  • 574
  • 4
  • 14
1
2
3
11 12