Questions tagged [chronicle]

Chronicle is a low latency data fabric for logging, IPC, sharing and processing data.

Chronicle uses memory mapped files and access to direct memory to give sub micro second persistence and IPC. This is available as a Queue or Map. It is a high performance solution which is designed for low level Java programmers in mind. This means you will have to worry about many things Java developers generally can ignore, but if you need maximum performance, Chronicle can log or send messages between processes at rates in the tens of millions per second.

The latency between processes can be sub-micro-second including serialization and deserialization, making it an ultra low latency solution. It can also be used in a lockless and GC-free manner.

For more details http://chronicle.software


Chronicle product runs on Java 8 on these platforms

  • 64-bit JVMs on Windows 8 & 10.
  • Linux 2.6 or later
  • Max OSX

It will also run on 32-bit JVMs on Windows, but this has two resource limitations

A 32-bit process has a small virtual address space which can cause performance issues. To accommodate the lack of address space the format of a chronicle on 32-bit bit JVMs is different to a 64-bit system meaning you can get errors trying to swap one for the other.

Note: running a 32-bit JVM on 64-bits Windows will still have these issues as it is the Win XP emulator which emulates the limitations.

238 questions
3
votes
1 answer

Chronicle queue events listener

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…
Andrei Pozolotin
  • 897
  • 3
  • 14
  • 21
3
votes
1 answer

Observer Pattern for operations performed on Chronicle Map

I am looking forward to use Chronicle Map as a datastore/data cache and intend to share it with other JVM processes running on the same box to reduce memory footprint of each of the other JVM processes else each JVM process will load the same data.…
chauhraj
  • 469
  • 4
  • 19
3
votes
1 answer

java chronicle messages are not removed after reading

I am trying to use Java Chronicle 1.9.2 to write/read messages. I know newer versions are available but have few questions before i invest more time in it. I need to have the message removed once i read the Excerpt from the Chronicle. So if my…
chappalprasad
  • 775
  • 4
  • 15
  • 26
3
votes
1 answer

Chronicle Bytes from InputStream

I'm trying to use saxophone for parsing json to protobuf message on the fly, and want to avoid creating string instances for each response. For that i need to create Bytes instance from InputStream (that is provided from apache http entity). I'm…
vach
  • 10,571
  • 12
  • 68
  • 106
3
votes
1 answer

how does OpenHFT chronicle map works

Need some info on how chronicle map works, is it like it keeps some key-value pairs in memory and when it overflows a particular threshold of how may value it stores then it overflows the data to disk or it is dependant on memory size, if the size…
Ambuj Jauhari
  • 1,187
  • 4
  • 26
  • 46
3
votes
1 answer

Which is a production-ready version of ChronicleMap?

I want to play a bit with ChronicleMap and a bit confused which version should I use in production. 1.* looks like 'released' one, 2.* looks like in alpha stage. I would use release version but from my understanding current documentation refers…
2
votes
1 answer

Is DistributedUniqueTimeProvider from net.openhft.chronicle.bytes thread-safe?

Following the article https://chronicle.software/unique-timestamp-identifiers/, I have checked the implementation of DistributedUniqueTimeProvider.currentTimeNanos method. long time = provider.currentTimeNanos(); long time0 =…
2
votes
1 answer

Chronicle Queue: Client id file not present

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…
ccnlui
  • 91
  • 5
2
votes
1 answer

Chronicle Queue: How to read excepts/documents with different WireKey?

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")); //…
ccnlui
  • 91
  • 5
2
votes
1 answer

Can you read/write a Chronicle Queue from C#?

Is there any reasonable way to read or write to a Chronicle Queue from a C# application? It runs on Mono on Linux if that matters.
Andrew
  • 1,031
  • 10
  • 24
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

Where exactly does ChronicleMap create the memory mapped file for a persisted map?

I understand ChronicleMap creates a mmap file under the hood but I'm looking through the code and getting a bit lost. Could someone kindly show me where in the code it creates the memory mapped file? I was expecting to see something using a…
trafalgar
  • 63
  • 4
2
votes
1 answer

How does the number of entries defined on the builder to a persisted ChronicleMap impact it's ability to scale?

Each example of Chronicle map needs to be given an "entries" size in the builder but I don't understand the impact this value has on a persisted map: ChronicleMap .of(Long.class, Point.class) .averageValueSize(8) …
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

Using chronicle network library,

Hello I am trying to send http request using low level library chronicle wire. I was able to get this working with use of java sockets but I am curious about the diff with use of this lib. Bellow the calling code: private static void call() throws…
filemonczyk
  • 1,613
  • 5
  • 26
  • 47
1
2
3
15 16