nats-io / jsm.go

JetStream Management Library for Golang
Apache License 2.0
151 stars 26 forks source link

Feature: Add support for Snapshot and Restore in memory without a file on disk. #538

Closed christopher-wong closed 2 months ago

christopher-wong commented 3 months ago

Instead of requiring snapshots be written out to a file on disk, support writing them to an io.Writer. Instead of requiring snapshots be read in from to a file on disk, support reading them to an io.Reader.

This allows more flexibility in writing snapshots to alternative destinations such as S3.