SQLSpaces is an implementation of the TupleSpaces concept that features many new ideas while keeping the API clear and simple. It is based on top of a relational database, which gives the project its name.

The idea of TupleSpaces goes back to the mid-80s, when they were first introduced by Gelernter and Carriero from Yale University together with the Linda coordination language. The idea is to have a client server architecture with a communication solely based on tuples, i.e. ordered lists of primitive data. The clients can write and take tuples from the server and do not need to know anything about other clients. They just communicate over the server without "knowing" any other client's address. The query mechanisms of a TupleSpaces system are mainly associative, i.e. the queries are defined by creating templates tuples with so-called formal fields, that are interpreted as wildcards.

TupleSpaces are an elegant and easy way of creating distributed software systems that are robust and modular since they are loosely coupled. In addition to the original set of operations (in, out, rd) and to some typical features already known by other TupleSpaces implementations, SQLSpaces furthermore introduces some unique features like multi-language support, versioning, reverse structured naming, wildcard fields and now even support for Android.

SQLSpaces were developed by the Collide Research Group at the University of Duisburg-Essen, Germany . It is distributed under the LGPL v3 (client), respectively AGPL v3 (server).

Show me some code!

This example shows how to establish a connection, write a tuple to the space, and take it out.

TupleSpace ts = new TupleSpace();
Tuple t1 = new Tuple("MyFirstTuple", 1);

Tuple templateTuple = new Tuple(String.class, Integer.class);
Tuple returnTuple = ts.take(templateTuple);

More in the Quickstart!

How to get the SQLSpaces?

Basically you only need to download and run the server via the startServer.bat or startServer.sh file:


If you want (and you actually should) use Maven just add the following dependency pom and it will (almost) work.


Visit Download for more information about how to add the dependency to the SQLSpaces libraries and to add the Collide Maven repository. Also check the Quickstart section and the Wiki for more information.

Doing it the old-school way, you need to add the following three jars to your project:




That's basically it. Don't forget to check the Quickstart section and the Wiki for more information.


The SQLSpaces client libraries are licensed under LGPL v3 (which means you can also link it in a closed source project, changes need to be published under the same license!).

The SQLSpaces server is licensed under AGPL v3 (which means you can run the server as you like but if you use the server classes inside your project, your project has to use AGPL v3, changes to the server needs to be published under the same license!).

So what is it all about?

Why and when would I use SQLSpaces?
Can I first have a look at something that uses SQLSpaces?
What do I need to test it by myself?
Hmm, and who else is using SQLSpaces?


YourKit supports the SQLSpaces open source project with its full-featured Java Profiler. YourKit, LLC is the creator of innovative and intelligent tools for profiling Java and .NET applications. Take a look at YourKit's leading software products: YourKit Java Profiler and YourKit .NET Profiler


Issue tracking

View all issues

Latest news

Yet another intermediate SQLSpaces version released
Added by Adam Giemza almost 8 years ago

Intermediate SQLSpaces version released
SQLSpaces Version 4.0.0-beta2 released
Added by Adam Giemza over 8 years ago

SQLSpaces Version 4 release is near
The critical issues with SQLSpaces have been fixed, however, some issues more are still open.
Added by Adam Giemza over 8 years ago

SQLSpaces sources moved to SVN
Added by Adam Giemza over 8 years ago

View all news