Use Minio to notify of changes through NATS and sync changes between two clouds (or a laptop and a cloud).
Overview
Minio makes it easy to manage an object store with an S3 interface across multiple different platforms,
from your local desktop to other clouds beyond AWS.
This demonstration will show you how to run a Minio object store on a local laptop,
configure a local NATS message bus and finally replicate objects to other clouds.
Upload a File to your Minio Browser. Watch it automatically get added to your S3 browser
Delete a File from your Minio Browser. Watch it automatically get removed from your S3 Browser
Usage
Usage of demo-minio-nats:
-bucket string
bucket to test with (default "minio-nats-example")
-local string
local S3 URL in format s3://accessKeyId:accessSecretKey@host:port
-nats string
NATS URL in format nats://user:password@host:port (default "nats://localhost:4222")
-region string
region to create and maintain bucket (default "us-east-1")
-remote string
remote S3 URL in format s3://accessKeyId:accessSecretKey@host:port
-tmpDir string
temporary directory for copying files (default "/tmp/")
Minio NATS Demo
Use Minio to notify of changes through NATS and sync changes between two clouds (or a laptop and a cloud).
Overview
Minio makes it easy to manage an object store with an S3 interface across multiple different platforms, from your local desktop to other clouds beyond AWS.
This demonstration will show you how to run a Minio object store on a local laptop, configure a local NATS message bus and finally replicate objects to other clouds.
Tutorial
Install and run gnatsd
Install minio
Configure minio for local NATS event subscription
edit
~/.minio/config.jsonset
"nats"."1"."enable": trueRun minio
Set ~/minio-tmp/ to any directory you want to store your objects in.
Run minioNATS
Open Browsers to your test bucket Minio Browser and an S3 Browser
Upload a File to your Minio Browser. Watch it automatically get added to your S3 browser
Delete a File from your Minio Browser. Watch it automatically get removed from your S3 Browser
Usage
Additional Reading
Publish Minio Events via NATS
NATS Blog