Skip to content

Commit

Permalink
feat: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed Sep 19, 2021
1 parent 2a32936 commit f32e42c
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NATS Streaming/Jetstream Replicator
# NATS Streaming/Jetstream Replicator [SJR]

![GitHub Workflow Status](https://img.shields.io/github/workflow/status/snapp-incubator/stan-js-replicator/ci?label=ci&logo=github&style=flat-square)

Expand All @@ -13,3 +13,32 @@ has new features which we will use.
Right now all of our projects use streaming and
we want to have an smooth migration so with this project we can replicate events
on the jetstream side then remove them from streaming side.

## How it works?

It uses the configuration as below to first creates the stream on jetstream and then binds the given topics to it as subjects.
then it starts subscribing on given topics from nats streaming and publishes them into jetstream.
if you want to bind topics into different streams you need to run different instances of sjr.

```yaml
---
monitoring:
enabled: true
address: ":8080"
nats:
url: "nats://127.0.0.1:4222"
logger:
telemetry:
streaming:
url: "nats://127.0.0.1:4222"
group: "sjr"
clientid: "snapp"
channel: "koochooloo"
topics:
- k.1
- k.2
stream:
maxage: "1h"
storagetype: 1
replicas: 1
```

0 comments on commit f32e42c

Please sign in to comment.