-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Description
File System Implementation Refactoring
Background
Current file system implementations (S3, GCS, SFTP) contain significant code duplication and inconsistent metrics.
Required Changes
-
Create a unified metrics system
- Move metrics definitions to the main file package
- Add storage_type label to differentiate providers (AWS/GCP/FTP)
-
Separate common code from provider-specific code
- Common file operations → main file package
- Storage/retrieval specifics → provider packages
-
Standardize shared components
- Create a single FileLog implementation in the main package
- Move common constants (SUCCESS, ERROR) to the main package
- Define standard histogram buckets in one place
- Implement a CloudStorageClient interface for S3/GCS
Benefits
- Reduced code duplication
- Consistent metrics across all storage providers
- Simplified implementation of new providers
- Better visibility for application developers
Metadata
Metadata
Assignees
Labels
No labels