Chronicle-Queue | Micro second messaging that stores everything to disk

 by   OpenHFT Java Version: chronicle-queue-5.20.6 License: Apache-2.0

kandi X-RAY | Chronicle-Queue Summary

kandi X-RAY | Chronicle-Queue Summary

Chronicle-Queue is a Java library. Chronicle-Queue has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has medium support. You can download it from GitHub, Maven.

Micro second messaging that stores everything to disk
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              Chronicle-Queue has a medium active ecosystem.
              It has 2111 star(s) with 397 fork(s). There are 189 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 12 open issues and 424 have been closed. On average issues are closed in 4 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of Chronicle-Queue is chronicle-queue-5.20.6

            kandi-Quality Quality

              Chronicle-Queue has no bugs reported.

            kandi-Security Security

              Chronicle-Queue has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              Chronicle-Queue is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              Chronicle-Queue releases are available to install and integrate.
              Deployable package is available in Maven.
              Build file is available. You can build the component from source.

            Top functions reviewed by kandi - BETA

            kandi has reviewed Chronicle-Queue and discovered the below as its top functions. This is intended to give you an instant insight into Chronicle-Queue implemented functionality, and help decide if they suit your requirements.
            • Writes bytes to the stream
            • Adds a position to the stream
            • Writes bytes to the queue
            • Sets the position for a given sequence
            • Write the given marshallable to the Writer
            • Adds a position to the stream
            • Writes bytes to the queue
            • Sets the position for a given sequence
            • Writes the bytes at the given index
            • Adds a position to the stream
            • Writes bytes to the queue
            • Sets the position for a given sequence
            • Increment the index
            • Moves the scan to the given index
            • Acquires a long value for the given key
            • Runs the tailer thread
            • Overrides this instance with the specified metadata
            • Load the write position value
            • Iterate over all entries in the table
            • Runs the task
            • Refreshes the cycle queue
            • Parses a file into a long
            • Closes the store
            • Get a value from the cache
            • Moves the iterator to the beginning of the stream
            • Parses a queue offset specification
            • Refresh the file store
            • Initialise the mappings for deprecated test cycles
            • Cleans the store files without data
            • Process a message history
            • Move backward to the tail of the document
            • Release resources
            Get all kandi verified functions for this library.

            Chronicle-Queue Key Features

            No Key Features are available at this moment for Chronicle-Queue.

            Chronicle-Queue Examples and Code Snippets

            No Code Snippets are available at this moment for Chronicle-Queue.

            Community Discussions

            QUESTION

            How to read from Chronicle Queue while using writingDocument?
            Asked 2021-Nov-18 at 09:02

            this is the version of Chronicle Queue:

            ...

            ANSWER

            Answered 2021-Nov-18 at 08:28

            try the following: you can find the documentation in https://github.com/OpenHFT/Chronicle-Queue

            Source https://stackoverflow.com/questions/70001829

            QUESTION

            Cassandra with spark : java.io.IOException: Failed to open native connection to Cassandra at {127.0.0.1:9042} ::
            Asked 2021-May-25 at 23:23

            I have an application using Boot Strap running with cassandra 4.0, Cassandra java drive 4.11.1, spark 3.1.1 into ubuntu 20.4 with jdk 8_292 and python 3.6.

            When I run a function that it call CQL by spark, the tomcat gave me the error bellow.

            Stack trace:

            ...

            ANSWER

            Answered 2021-May-25 at 23:23

            QUESTION

            Chronicle queue POC returned unexpected latency
            Asked 2021-Apr-20 at 01:55

            One of our system has a micro service architecture using Apache Kafka as a service bus. Low latency is a very important factor but reliability and consistency (exactly once) are even more important.

            When we perform some load tests we noticed signifiant performance degradation and all investigations pointed to big increases in Kafka topics producer and consumer latencies. No matter how much configuration we changed or more resources we added we could not get rid of the symptoms.

            At the moment our needs are processing 10 transactions per second (TPS) and the load test is exercising 20 TPS but as the system is evolving and adding more functionality we know we'll reach a stage when the need will be 500TPS so we started being worried if we can achieve this with Kafka.

            As a proof of concept I tried to switch to one of our micro services to use a chronicle-queue instead of a Kafka topic. It was easy to migrate following the avro example as from Chronicle-Queue-Demo git hub repo

            ...

            ANSWER

            Answered 2021-Apr-20 at 01:55

            Hand building the Avro object each time seems a bit of a code smell to me.

            Can you create a predefined message -> avro serializer and use that to feed the queue?

            Or, just for testing, create one avro object outside the loop and feed that one object into the queue many times. That way you can see if it is the building or the queuing which is the bottleneck.

            More general advice:

            Maybe attach a profiler and see if you are making an excessive amount of object allocations. Which is particularly bad if they are getting promoted to higher generations.

            See if they are your objects or Chronicle Queue ones.

            Is your code maxing out your ram or cpu (or network)?

            Source https://stackoverflow.com/questions/67133050

            QUESTION

            StreamCorruptedException on chronicle queue making the queue unusable
            Asked 2020-Nov-19 at 15:23

            We had a StreamCorruptedException from chroniclequeue(chronicle-queue-5.20.106, Red Hat Linux release 6.10) and we have pasted the stacktrace below. During that time, there was a very high IO/disk operation by completely different process which we believe caused the chroniclequeue to pause for more than 15seconds and caused this corruption.

            Even after restart as the queue was corrupted and it couldn't come up. Only way is to delete and start fresh, meaning loosing millions of data

            Please help with solution or any work around. Thanks

            STACKTRACE

            ...

            ANSWER

            Answered 2020-Nov-19 at 15:23

            If there's a possibility for your application to be stalled for 15 seconds there's no solution possible on the Chronicle Queue side - you should reconsider the way your software works as Chronicle's tools are developed with ultra-low-latency in mind and we cater for microsecond latencies, not seconds.

            If the lock is forcibly unlocked which is the case here the data WILL be corrupted irreversibly.

            A workaround however could be to increase the timeout - default is 15000ms but when creating a queue you can increase it by using builder#timeoutMS() to specify something that works in your environment.

            Source https://stackoverflow.com/questions/64899699

            QUESTION

            duplicate class definition for name: "net/openhft/chronicle/queue/JDBCResultBinarylightMethodWriter"
            Asked 2020-Jul-27 at 23:16

            ANSWER

            Answered 2020-Jul-27 at 23:16

            QUESTION

            What is Chronicle-Queue MT visibility guarantee in a single process?
            Asked 2020-Mar-13 at 10:39

            I mean when I write to java.util.concurrent.LinkedBlockingQueue I have a visibility guarantee happens-before. Single object put to the queue happens-before pull of the same object from the queue. So I can assume in the reading thread, that any other state of variable is not older then the time at which the object was put to the LBQueue.

            Do we have the same visibility guarantee in Chronicle-Queue ?

            Do we have the same visibility guarantee in any of the usage style ( methodReader/writer vs wire().read().object() ) ?

            ...

            ANSWER

            Answered 2020-Mar-13 at 10:39

            Indeed you have the same (in fact, slightly stronger) guarantee. Each write to Chronicle Queue (in any style) results in a sequence of volatile write/reads to the memory-mapped file, hence provides memory barriers.

            Additionally, each write is guarded by a write lock, which is implemented as a CAS-driven update to a value stored in a memory-mapped file.

            Source https://stackoverflow.com/questions/59879509

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install Chronicle-Queue

            You can download it from GitHub, Maven.
            You can use Chronicle-Queue like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the Chronicle-Queue component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Java Libraries

            CS-Notes

            by CyC2018

            JavaGuide

            by Snailclimb

            LeetCodeAnimation

            by MisterBooo

            spring-boot

            by spring-projects

            Try Top Libraries by OpenHFT

            Chronicle-Map

            by OpenHFTJava

            Java-Thread-Affinity

            by OpenHFTJava

            OpenHFT

            by OpenHFTShell

            Java-Runtime-Compiler

            by OpenHFTJava