Chronicle Map VS H2

Compare Chronicle Map vs H2 and see what are their differences.

Chronicle Map

Replicate your Key Value Store across your network, with consistency, persistance and performance. (by OpenHFT)

H2

H2 is an embeddable RDBMS written in Java. (by h2database)
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
Chronicle Map H2
5 11
2,770 4,183
0.6% 0.6%
8.7 9.0
5 days ago 22 days ago
Java Java
Apache License 2.0 GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

Chronicle Map

Posts with mentions or reviews of Chronicle Map. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-06-18.
  • Indexing All of Wikipedia on a Laptop
    3 projects | dev.to | 18 Jun 2024
    We’re using JVector for the vector index and Chronicle Map for the article data. There are several things I don’t love about Chronicle Map, but nothing else touches it for simple disk-based key/value performance.
  • GC, hands off my data!
    6 projects | dev.to | 27 Oct 2023
    I decided to start with an overview of what open-source options are currently available. When it comes to the implementation of the on-heap cache mechanism, the options are numerous – there is well known: guava, ehcache, caffeine and many other solutions. However, when I began researching cache mechanisms offering the possibility of storing data outside GC control, I found out that there are very few solutions left. Out of the popular ones, only Terracotta is supported. It seems that this is a very niche solution and we do not have many options to choose from. In terms of less-known projects, I came across Chronicle-Map, MapDB and OHC. I chose the last one because it was created as part of the Cassandra project, which I had some experience with and was curious about how this component worked:
  • Off-heap memory in Java
    2 projects | dev.to | 8 Apr 2021
    Chronicle-Map: Chronicle Map is an in-memory, key-value store, designed for low-latency, and/or multi-process applications.
  • Solution for hash-map with >100M values
    7 projects | /r/java | 21 Dec 2020
    I've wrangled data sets in the ~600gb range using nothing but plain old Java and a few beefy boxes. This can all be kept in memory, but you have to go off-heap. You can use Chronicle Map and Chronicle Values to model this data and work with it off-heap in a way that's still very clean and object oriented. 128gb of RAM is cheap these days, whether you're in the cloud or not.

H2

Posts with mentions or reviews of H2. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-18.
  • H2 Database – CVE getting flagged by automated scans
    2 projects | news.ycombinator.com | 18 Jul 2023
    The URL should point to a particular comment, but HN removes fragments: https://github.com/h2database/h2database/issues/3686#issueco...
  • “Our paying customers need X, when will you fix it?”
    5 projects | news.ycombinator.com | 15 Jul 2023
    This sounds very much like the idiocy of "infosec" lunkheads who know nothing about what they're "fixing" but if an automated system tells them a CVE exists, they've absolutely got to have it "patched". They don't look into what the claims of the CVE are, or whether their specific use case is vulnerable. They don't know, they don't care, they're not even programmers. All they know is a box needs ticking.

    A similar thing happened with h2database - a "security researcher" found that if you do something you're told not to do, then bad things happen.. but they demanded and got a CVE allocated anyway. Anyone who looks at it realises it's bullshit, but the mere existence of a CVE is all that matters to these idiots.

    What the h2database developer said about it: https://github.com/h2database/h2database/issues/3686#issueco...

    > I struggle to understand why I should feel the slightest shred of sympathy for "major corporations" that are using a volunteer-developed open-source project. Feel free to get your corporation to pay someone to deal with this, or pay for a similar commercial library.

  • SQLite Internals: How the Most Used Database Works
    4 projects | news.ycombinator.com | 19 Dec 2022
  • Database of Databases
    6 projects | dev.to | 23 Jun 2022
    H2 - Free, Embedded & Open source
  • 🎀 Spring Boot 2.7.0 Released
    7 projects | dev.to | 21 Jun 2022
    H2 2.1
  • How is the market for Kotlin developers where you live?
    10 projects | /r/Kotlin | 2 Mar 2022
    H2 for mocking relational database connections
  • Ask HN: Who wants to be hired? (December 2021)
    7 projects | news.ycombinator.com | 1 Dec 2021
  • Best Database option for a Swing application
    1 project | /r/learnjava | 25 Oct 2021
    It's open-source and written in Java, so you can even create custom procedures and register them straight in your application!
  • Reliable WebSockets-based pub/sub with Spring Boot
    5 projects | dev.to | 9 Apr 2021
    Firstly, let's set up a basic Spring Boot application. We can use the Spring Initializr with Spring Data JPA, H2 Database, Lombok added. H2 Database will provide us with a simple database, and Spring Data JPA will allow us to easily interact with it using Hibernate. Lombok will make it easier to write concise and readable classes.
  • Why are tar.xz files 15x smaller when using Python's tar compared to macOS tar?
    2 projects | news.ycombinator.com | 14 Mar 2021
    Sorting chunks by similarity: commonly used tools don't do that. Most archive tools only sort by file type.

    I wrote a tool that chunks the data (into variable-sized blocks, to re-sync if there are multiple files that have different length prefixes, but that's another story), and then sorts the chunks by LSH (locality sensitive hash). LSH is used by search engines to detect similar text. It can compress directories that contain multiple version of e.g. source code very well (e.g. trunk, branches). https://github.com/h2database/h2database/blob/master/h2/src/...

    I discussed this approach with a researcher in this area in January 2020. AFAIK there is active research in this area, specially to compress DNA sequences. But he also wasn't aware of papers or research in this area for general-purpose data compression.

    So, I think this area is largely uncharted. I would be interested (as a hobby side project) to help, if somebody is interested.

What are some alternatives?

When comparing Chronicle Map and H2 you can also consider the following projects:

MapDB - MapDB provides concurrent Maps, Sets and Queues backed by disk storage or off-heap-memory. It is a fast and easy to use embedded Java database engine.

Redisson - Redisson - Easy Redis Java client and Real-Time Data Platform. Valkey compatible. Sync/Async/RxJava/Reactive API. Over 50 Redis or Valkey based Java objects and services: Set, Multimap, SortedSet, Map, List, Queue, Deque, Semaphore, Lock, AtomicLong, Map Reduce, Bloom filter, Spring, Tomcat, Scheduler, JCache API, Hibernate, RPC, local cache...

MariaDB4j - MariaDB Embedded in Java JAR

JetBrains Xodus - Transactional schema-less embedded database used by JetBrains YouTrack and JetBrains Hub.

HikariCP - 光 HikariCP・A solid, high-performance, JDBC connection pool at last.

Jedis - Redis Java client

Speedment - Speedment is a Stream ORM Java Toolkit and Runtime

Flyway - Flyway by Redgate • Database Migrations Made Easy.

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured

Did you konow that Java is
the 8th most popular programming language
based on number of metions?