1
0
Fork 0

11 Commits (master)

Author SHA1 Message Date
Mauri de Souza Meneguzzo 69933cbe35 aws: reuse session and S3 manager
The AWS session and s3 manager are concurrent safe, it should be reused
whenever possible:

    Sessions are safe to use concurrently as long as the Session is not
    being modified. Sessions should be cached when possible, because
    creating a new Session will load all configuration values from the
    environment, and config files each time the Session is created.

See https://pkg.go.dev/github.com/aws/aws-sdk-go/aws/session

Currently, an aws session and s3 client/manager are created every time a
call to Upload, CurrentID or Download is made. I changed it so it creates
one session and S3 manager during app startup and reuse it afterwards.
8 months ago
Philip O'Toole 68521d34a2 Fix AWS client and Store Provider 8 months ago
Philip O'Toole 9ad21b8565 S3 unit test update 8 months ago
Philip O'Toole 58fbe3ee81 Initial framework for setting sums 8 months ago
Jason Tackaberry 5dc7ecac65
Fix error messages S3Client String() test cases 9 months ago
Jason Tackaberry 354ce80c35
Adapt tests to S3Client API changes 9 months ago
Philip O'Toole ea23906180 Add support for custom S3 endpoint 1 year ago
Philip O'Toole bf14cefb03 Complete AWS S3 downloader 1 year ago
Philip O'Toole b92d0a41ea Improve S3 upload unit test 1 year ago
Philip O'Toole 2e7c635fff Test S3 client via dependency injection 1 year ago
Philip O'Toole 3125fb5e8a Add initial S3 upload client 1 year ago