TomP2P
discontinuedby Thomas Bocek and contributors (University of Zurich) · since 2012 · also known as Tom P2P
Java DHT library: a Kademlia-style peer-to-peer key-value store; archived and unmaintained.
discontinued. GitHub repo archived; last tag 5.0-Beta8.1 (May 2020) and tomp2p.net is offline. No maintained successor.
Overview
TomP2P is a Java library implementing a distributed hash table: every peer keeps a memory- or disk-backed table, and keys are routed to the closest peers with XOR-based iterative routing similar to Kademlia. On top of put/get it adds operations such as putIfAbsent, add, digests, Bloom-filtered gets, replication and signed data, plus NAT traversal via UPnP and NAT-PMP, all exposed through non-blocking futures on Netty. It came out of the University of Zurich and powered research and some P2P applications. The 5.0 line never left beta (last tag 5.0-Beta8.1, May 2020) and the GitHub repository is now archived.
Strengths & trade-offs
Strengths
- +Complete DHT stack in one library: routing, replication, NAT traversal and signed data
- +Non-blocking API built on Netty futures
- +Extended operations (Bloom-filter gets, digests, custom RPCs) beyond plain put/get
Trade-offs
- −Archived; 5.0 never reached a stable release
- −Eventual consistency only, with no transactions or query language
- −Documentation site is gone and examples target old APIs
Great for
- +Studying DHT design in Java
- +Research prototypes of P2P storage
Think twice for
- −Production systems that need support
- −Strongly consistent data
Capabilities
Native or official first-party support · 2 of 25 tracked
Scale & consistency
- Comfortable data size
- Medium · ≤ 10 TB
- Horizontal scaling
- Native
- Multi-region
- Active active
- Transactions
- None
- Consistency
- Eventual
- Schema
- Schemaless
- Architecture
- Distributed, Embedded
- Query languages
- Java API (put/get)
Peers join an overlay network; data is spread and replicated across peers by key distance.
Deployment
Ecosystem
Alternatives to TomP2P
Serverless peer-to-peer database on IPFS and libp2p using Merkle-CRDT logs.
tomp2p vs orbitdb →Decentralised, offline-first graph database that syncs peer-to-peer in JavaScript.
tomp2p vs gun →Erlang-based, Dynamo-style key-value store built to stay up through ugly failures.
tomp2p vs riak-kv →A Java in-memory data grid and stream processor that embeds in your app or runs as a cluster.
tomp2p vs hazelcast →The standard embedded JVM cache, with heap, off-heap and disk tiers and optional Terracotta clustering.
tomp2p vs ehcache →Heavily reworked LMDB descendant: memory-mapped ACID B+tree with auto-growing files.
tomp2p vs libmdbx →TomP2P FAQ
What is TomP2P?
TomP2P is a key-value database by Thomas Bocek and contributors (University of Zurich), first released in 2012. TomP2P is a Java library implementing a distributed hash table: every peer keeps a memory- or disk-backed table, and keys are routed to the closest peers with XOR-based iterative routing similar to Kademlia. On top of put/get it adds operations such as putIfAbsent, add, digests, Bloom-filtered gets, replication and signed data, plus NAT traversal via UPnP and NAT-PMP, all exposed through non-blocking futures on Netty. It came out of the University of Zurich and powered research and some P2P applications. The 5.0 line never left beta (last tag 5.0-Beta8.1, May 2020) and the GitHub repository is now archived.
Is TomP2P open source?
Yes. TomP2P is open source. License: Apache License 2.0.
Does TomP2P support ACID transactions?
No. TomP2P does not provide ACID transactions; its consistency model is eventual.
Does TomP2P scale horizontally?
TomP2P scales horizontally out of the box, with built-in sharding or partitioning. It is comfortable at medium scale (≤ 10 TB). It supports active-active multi-region writes.
How can I run TomP2P?
You can self-host it and embed it in your application.
What is TomP2P best for?
TomP2P is a strong fit for studying DHT design in Java and research prototypes of P2P storage. Think twice for production systems that need support.
What are the best alternatives to TomP2P?
Common alternatives to TomP2P include OrbitDB, GUN, Riak KV, Hazelcast and Ehcache. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.
Is TomP2P still maintained?
TomP2P is discontinued. GitHub repo archived; last tag 5.0-Beta8.1 (May 2020) and tomp2p.net is offline. No maintained successor.
How popular is TomP2P?
TomP2P ranks #600 of 844 databases on the WhichDB Score (0.9/100), and #107 among key-value databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.




