Back to directory
cr-org avatar

neutron

:stars: Purely functional Apache Pulsar client for Scala built on top of Fs2. Read more below about its uses, features, and usage.

Clone repository

git clone https://github.com/cr-org/neutron.git

71

Stars

11

Forks

8

Watchers

Apache-2.0

License

neutron

CI Status MergifyStatus Maven Central Scala Steward badge Cats friendly

A pulsar is a celestial object, thought to be a rapidly rotating neutron star, that emits regular pulses of radio waves and other electromagnetic radiation at rates of up to one thousand pulses per second.

pulsar

Disclaimer

Chatroulette uses this library in production as the base of the whole platform. However, this library is in active development so if you want to use it, do it at your own risk.

Documentation

Check out the microsite.

Pulsar version

At the moment, we target Apache Pulsar 2.10.x.

Development

If you have sbt installed, you don't have to worry about anything. Simply run sbt +test command in the project root to run the tests.

If you are a nix user, make sure you enter a Nix Shell by running nix-shell at the project's root.

sbt +test

Remember to first start Pulsar and initialize it with docker-compose

./docker-compose up -d

Schemas

Working with schemas when using our Pulsar docker-compose configuration.

Get schema compatibility strategy:

$ docker-compose exec pulsar bin/pulsar-admin namespaces get-schema-compatibility-strategy public/default
FULL

Set schema compatibility strategy:

$ docker-compose exec pulsar bin/pulsar-admin namespaces set-schema-compatibility-strategy -c BACKWARD public/default

Releases

๐Ÿš€ Changes

Update sbt to 1.8.0 (#356) @psisoyev Update cats-core to 2.9.0 (#357) @psisoyev Update sbt-header to 5.9.0 (#359) @psisoyev Update sbt-scalafmt to 2.5.0 (#360) @psisoyev Update fs2-core to...

Apr 21, 2022

Download .zip

๐Ÿš€ Changes

Update sbt-tpolecat to 0.2.3 (#309) @psisoyev Update mdoc, sbt-mdoc to 2.3.2 (#298) @psisoyev Update avro4s-core to 4.0.12 (#293) @psisoyev Update sbt-header to 5.6.5 (#295) @psisoyev Upda...

Jul 19, 2021

Download .zip

From now on, only Cats Effect 3 and its related ecosystem is supported. Version 0.0.7 was the last release supporting CE2. ๐Ÿš€ Changes

Upgrade to CE3 (#229) @psisoyev Reader: Implement messageAvailabl...

May 26, 2021

Download .zip

๐Ÿš€ Changes

Downgrade to Scala 2.13.5 (#220) @gvolpe Add DeadLetterPolicy option to consumers (#204) @gvolpe JsonSchema derivation via avro4s (#191) @gvolpe Generate Pulsar schema via avro4s (#189) @g...

Mar 30, 2021

Download .zip

๐Ÿš€ Changes

Simplify constructors (#179) @gvolpe Pulsar Schema support (#149) @gvolpe

๐Ÿค– Dependency Updates

Update sbt-ci-release to 1.5.7 (#176) @scala-steward Update cats-core to 2.4.2 (#161) @sca...