nats-server icon indicating copy to clipboard operation
nats-server copied to clipboard

config equivalents in JS

Open biskit opened this issue 4 years ago • 2 comments
trafficstars

Hi, I could do the following in nats-streaming-server

streaming: {
    cluster_id: "xxx-cluster"
    store: "file"
    dir: "/home/xxx/data"

    store_limits: {
       max_age: "24h"
       max_channels: 10000
       channels : {
           testing.>: {
                 max_inactivity: "5m"
           }
   ...

what's the JetStream equivalent for these?

thx b

biskit avatar Sep 11 '21 17:09 biskit

We do not currently have an equivelant, but want to add something to allow inactive streams to auto delete

ripienaar avatar Sep 11 '21 18:09 ripienaar

@biskit In case this is still relevant? My understanding is that the desired behavior is to auto-delete a stream if there is no interest in the stream? This may be able to be modeled with JetStream streams and consumers depending on what you want to achieve. Auto-deleting streams does not need like a good idea in general, but expiration of messages or auto-deletion of messages can be achieved in a variety of ways.

bruth avatar Mar 16 '24 18:03 bruth