nats-io / nats-server

High-Performance server for NATS.io, the cloud and edge native messaging system.
https://nats.io
Apache License 2.0
15.98k stars 1.41k forks source link

config equivalents in JS #2511

Open biskit opened 3 years ago

biskit commented 3 years ago

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

ripienaar commented 3 years ago

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

bruth commented 8 months ago

@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.