Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

proposal: Integrate mediaapi with go-storage to allow store files on various storage service #1857

Closed
Xuanwo opened this issue May 9, 2021 · 1 comment

Comments

@Xuanwo
Copy link

Xuanwo commented May 9, 2021

Background

go-storage is an application-oriented unified storage layer for Golang which allows the user to connect various storage services with the same interface. For now, go-storage supports s3, gcs, azblob, oss, cos, and more supports are on the way: beyondstorage/go-storage#536.

mediaapi only supports the local path and makes it hard to scale.

Proposal

So I propose to integrate mediaapi with go-storage to allow store files on various storage service.

NOTE: we still need a local cache as we need to calculate the sha256 hash of file.

Implementations

  • Replace mediaapi fileutil with go-storage.
  • Add storage connection string like we did on database.
@kegsay
Copy link
Member

kegsay commented Jul 9, 2021

We have no plans to do this at present. We might extend the mediaapi to support something like https://github.com/turt2live/matrix-media-repo/ but ultimately there are plenty of options here. Dendrite needs to be able to work in embedded environments so a filesysytem backed storage will always be a requirement.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants