Skip to content

File System Implementation Refactoring #2433

@Umang01-hash

Description

@Umang01-hash

File System Implementation Refactoring

Background

Current file system implementations (S3, GCS, SFTP) contain significant code duplication and inconsistent metrics.

Required Changes

  1. Create a unified metrics system

    • Move metrics definitions to the main file package
    • Add storage_type label to differentiate providers (AWS/GCP/FTP)
  2. Separate common code from provider-specific code

    • Common file operations → main file package
    • Storage/retrieval specifics → provider packages
  3. 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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions