This repository contains the source code for this tutorial: Create a serverless architecture that manage large messages, with Scaleway Messaging and Queuing NATS, Serverless Functions and Object Storage.
This example assumes that you are familiar with:
- how messaging and queuing works. You can find out more in the Scaleway official documentation
- how serverless functions work. If needed, you can check this page.
- how S3 object storage works, and especially how to create a bucket and upload files within a bucket. Please refer to Scaleway's documentation here.
This example shows how to handle large messages using NATS, Object Storage and Serverless Functions.
Once you have cloned this repository you can run:
terraform init
terraform plan
terraform apply
To run the example, you can execute:
./upload_img.sh path/to/your/image
Once the script has finished, you should see your image and a pdf with the same name in the bucket you've created.