Documentation
¶
Overview ¶
Package main demonstrates using s3db with the in-memory blob store — useful for local development, unit tests, and exploring the library without AWS credentials.
The in-memory store has the same concurrency semantics as real S3 (atomic PUT, strong consistency, ETag CAS), so correctness properties verified against it hold against S3 too.
This example spawns several concurrent "writers" that all increment a counter, then verifies the final value is exactly right — demonstrating that the CAS loop prevents lost updates under contention.
Run it:
go run ./examples/inmemory
Click to show internal directories.
Click to hide internal directories.