https://github.com/cr-org/neutron
:stars: Purely functional Apache Pulsar client for Scala built on top of Fs2
https://github.com/cr-org/neutron
apache cats-effect dhall fp fs2 nix pulsar scala typelevel
Last synced: 3 months ago
JSON representation
:stars: Purely functional Apache Pulsar client for Scala built on top of Fs2
- Host: GitHub
- URL: https://github.com/cr-org/neutron
- Owner: cr-org
- License: apache-2.0
- Created: 2020-05-07T10:59:09.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2025-03-25T00:07:11.000Z (4 months ago)
- Last Synced: 2025-03-31T06:06:29.624Z (4 months ago)
- Topics: apache, cats-effect, dhall, fp, fs2, nix, pulsar, scala, typelevel
- Language: Scala
- Homepage: https://cr-org.github.io/neutron/
- Size: 1.11 MB
- Stars: 71
- Watchers: 8
- Forks: 11
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# neutron
[](https://github.com/cr-org/neutron/actions)
[](https://mergify.io)
[](https://search.maven.org/search?q=com.chatroulette.neutron)
[](https://scala-steward.org)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.
[](https://www.jpl.nasa.gov/spaceimages/?search=pulsar&category=#submit)
### 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](https://cr-org.github.io/neutron/).
### 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](https://pulsar.apache.org/docs/en/schema-evolution-compatibility/#schema-compatibility-check-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
```