# Pub/Sub based on FoundationDB

**URL:** <https://forums.foundationdb.org/t/pub-sub-based-on-foundationdb/1074>\
**Category:** FoundationDB Layers\
**Created:** [January 27, 2019, 7:33pm UTC](https://forums.foundationdb.org/t/pub-sub-based-on-foundationdb/1074 "2019-01-27T19:33:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pwliwanow](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/pwliwanow/32/771_2.png) [@pwliwanow](https://forums.foundationdb.org/u/pwliwanow)\
**Post date:** [January 27, 2019, 7:33pm UTC](https://forums.foundationdb.org/t/pub-sub-based-on-foundationdb/1074/1 "2019-01-27T19:33:31Z")

</div>

Lately, as a personal project, I’ve been working on a Pub/Sub based on FoundationDB. I think it turned out pretty interesting (given the stage of development), so I decided to open source it: [https://github.com/pwliwanow/fdb-pubsub](https://github.com/pwliwanow/fdb-pubsub).

It’s inspired by Kafka and currently it’s exposed as a library. It provides Java and Scala API. Library is built on top of Akka Streams.

Most important features:

- Support for publishing events within FoundationDB transaction
- Easily scalable and fault tolerant storage (thanks to FoundationDB)
- Easy integration with Apache Cassandra, Apache Kafka, Elasticsearch and more (thanks to Akka Streams and Alpakka)
- Exposed as a library, so if you already operate FoundationDB there is no new stateful component to maintain
- Ability to compose custom transactional logic with commit transaction

More details, current limitations and description how to use it are present in [README](https://github.com/pwliwanow/fdb-pubsub).

Please keep in mind that this library was just released, should be considered unstable and still some functionalities are missing (like deleting old records) 🙂

I would love to hear your suggestions for improvements and what you think about it!
