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

Dozens of small messages lead to 1 GB chronicle queue file

I write utf8 strings to chronicle queue with daily rolling. The default queue file size is 81920 KB. After I write dozens of messages (1 KB each), the file becomes over 1 GB quickly. How can I control the file size?
Hui Li
  • 51
  • 2
1
vote
2 answers

I have created a single queue with daily rolling

I have created a single queue with daily rolling. On the next day, I can't read the latest appended message. I found that the tailer index doesn't move to the latest cycle automatically after reading all messages in the previous cycle. By the way…
Hui Li
  • 51
  • 2
1
vote
1 answer

Java chronicle throwing IllegalStateExecption at high number of messages

When the number of messages to write are high, getting IllegalStateException after some time. Here is the code: chronicle = ChronicleQueueBuilder.indexed(basePrefix).build(); loop begin { appender = chronicle.createAppender(); …
chappalprasad
  • 775
  • 4
  • 15
  • 26
1
vote
1 answer

How can I use chronicle queue for non-persisted IPC?

I don't need any persistence for local IPC. Can I somehow use chronicle queue with the memory of a fixed size or fixed-size file as buffer in order not to have to store processed messages? Or that you can advise me to such a situation?
Tolsi
  • 656
  • 9
  • 20
1
vote
1 answer

How to use PersistentQueue in Reactor?

I'm trying to configure Reactor to use Chronicle based persistence, and I cannot find by information about this in documentation. I see two ways: Create my own dispatcher supporting PersistentQueue Use EventBatcher with such queue to wrap my…
Jakub Kubrynski
  • 13,724
  • 6
  • 60
  • 85
0
votes
0 answers

Chronicle Queue MethodReader stops reading

Chronicle Queue MethodReader suddenly stops reading without any error, the busy loop keeps going but readOne is false beyond that point.The only option is to recreate methodReader, then it works normally. The occurrence is rare and random, and hard…
cravi
  • 1
  • 1
0
votes
1 answer

How can I put chunks of data from a REST endpoint into a Chronicle queue as separate messages?

Sorry for the newbie question in advance. I have a REST endpoint that returns the required data in scrollable manner by chunk per every call I made in a loop. And I want to put each of these chunks into the Chronicle queue as a separate…
0
votes
1 answer

Chronicle Queue exception - 'Unsigned Int 31-bit 3544677295290987316 out of range'

using Chronicle-Queue 5.16.16 and see following exception: 2023-05-17 16:02:38 [Thread-12] WARN - Unsigned Int 31-bit 3544677295290987316 out of range java.lang.IllegalArgumentException: Unsigned Int 31-bit 3544677295290987316 out of range at…
0
votes
0 answers

Reading and writing to byteBuffer in Chronicle Queue

Given that chronicle queue provides b.write(b.writePosition(), toWrite, toWrite.position(), toWrite.limit()); for writing from a ByteBuffer to Chronicle, what is used to read it? I currently use the following in Java 8: private final…
chunkynuggy
  • 147
  • 8
0
votes
2 answers

What is the file name that chronicle queue writes to disk and how do we handle the growth of the file as it keeps growing?

Can we configure the file that the queue writes as rolling and split it? Tried to run it with high load
0
votes
1 answer

First excerpt of every next roll cycle file is being read as part of previous cycle

This is related to the previous question I have posted. I think that while it is related, it might be different enough to warrant its own question. The code used is: public static void main(String[] args){ ChronicleQueue QUEUE =…
0
votes
2 answers

ChronicleQueue how to remove object from queue or how to update object

Hi i want simple persistent queue for single process. It will record (add to queue) if any sql fails then when sql server awake , it will send all remaining objects from queue back to sql server. If any record from queue will fail again while…
Kadir BASOL
  • 729
  • 2
  • 10
  • 20
0
votes
2 answers

Can ChronicleQueue tailers for two different queues be interleaved?

I have two separate ChronicleQueues that were created by independent threads that monitor web socket streams in a Java application. When I read each queue independently in a separate single-thread program, I can traverse each entire queue as…
Jack Copper
  • 33
  • 1
  • 9
0
votes
1 answer

Does a ChronicleQueue block on reads after a tailer has retrieved the most recently written excerpt?

I too am beginning to look at ChronicleQueue. From the documentation: Reading the queue follows the same pattern as writing, except there is a possibility there is not a message when you attempt to read it I am trying to understand what happens…
Jack Copper
  • 33
  • 1
  • 9
0
votes
2 answers

How to read from Chronicle Queue while using writingDocument?

this is the version of Chronicle Queue: net.openhft chronicle-queue 5.21.93 this is how I write using appender: String basePath = OS.userDir() + "\\start"; …