3

Do you know a way to connect Java and the Tarantool key/value storage? On the Tarantool web-site I can see connectors for C, Ruby, PHP, etc., but no connector for Java.

I know that Tarantool supports the Memcached protocol (with a lot of Java clients for it), but I need a native Tarantool protocol connector for Java.

Sergio Tulentsev
  • 226,338
  • 43
  • 373
  • 367

2 Answers2

1

At this point a full-featured driver is ready, check out http://github.com/tarantool/tarantool-java

Kostja
  • 1,607
  • 10
  • 17
  • I'm waiting for something like JPA implementation for Tarantool. For now, I'm using Amazon SimpleDB and Amazon Dynamo DB, but I want to migrate from these services :) Tarantool seems very good alternative – Vladimir Korobkov Feb 28 '12 at 12:44
  • There is a new Java connector library in the open since recently: https://github.com/dgreenru/tarantool-java – Kostja Aug 10 '12 at 08:19
0

The other answer is slightly outdated, so I feel that this topic needs an update about the current situation.

There are two Java drivers present for Tarantool as of 2021:

  • An "old" tarantool-java, marked as deprecated, since it does not support vShard cluster, Cartridge, Tarantool 2.x+ features like new UUID and decimal types, has some problems with API and architecture and is out of maintenance for a long time. However, as of now, it's the one that supports JDBC interface, so you may choose it for connecting to a single Tarantool node via JDBC.
  • A "new" cartridge-java, which is currently actively developed and maintained, and provides a foundation for other necessary connector modules like cartridge-springdata and cartridge-spark. This driver uses Netty for the transport layer, the official MsgPack library for serialization, and provides support for single Tarantool nodes, vShard cluster, Cartridge and new Tarantool 2.x+ features. This driver is compatible with 1.10 Tarantol series too.

So, for all cases except JDBC for a single Tarantool node (currently), I'd recommend using cartridge-java.

akudiyar
  • 370
  • 2
  • 9