- Use the cloud providerβs SDK, CLI, or REST API directly.
- Mount the bucket with a FUSE-based filesystem so applications can access objects through file paths.
FUSE-based object storage mounts introduce significant I/O performance overhead due to network latency and protocol translation layers. Applications with stringent performance requirements should avoid this approach. Furthermore, FUSE filesystem operations lack atomicity guarantees inherent to native object storage APIs, creating potential race conditions where local filesystem operations may succeed while corresponding remote operations fail, resulting in data inconsistency. This mounting approach is optimal for read-heavy workloads with infrequent write operations and relaxed performance constraints. For performance-critical applications or frequent write patterns, direct integration using cloud provider SDKs or native REST APIs is strongly recommended.
Amazon S3
Amazon S3 buckets can be mounted as POSIX-compliant filesystems using s3fs-fuse, a FUSE-based filesystem implementation that provides S3 bucket access through standard file operations. The s3fs-fuse package can be integrated during sandbox template creation by incorporating installation commands in thenovita.Dockerfile, or installed dynamically within active sandbox instances for ad-hoc requirements.
The following novita.Dockerfile demonstrates the integration of s3fs-fuse during template building:
novita.Dockerfile