syndesisio / syndesis-project

Placeholder repository for project management
https://syndesis.io/
Apache License 2.0
6 stars 12 forks source link

Storage of Tech Extension artefact #140

Closed rhuss closed 6 years ago

nicolaferraro commented 6 years ago

We have discussed 2 options so far:

I think a good approach can be to create a filestore at application level (similar to the jsonstore already created for application data) that can store binary data in any backend storage.

For now, a easy (and not so bad) implementation can be to store the files in a DB table (a second table in the same syndesis db). Three fields:

The storage pattern would be:

Main access patterns: GET/POST/DELETE

Tooling may issue a single multipart request to upload the extension or two separate requests (first upload the file, then use the id in the schema).

This will allows us to move e.g. file storage to a external s3-like system. That can be useful in case of remotely synchronized environments. Opinions?

lburgazzoli commented 6 years ago

+1 to have a file store with a pluggable backend.

However, I'd like to keep the gav as primary identifier in metadata & integration definition.