Giter Site home page Giter Site logo

Is littles3 use possible about pageflow HOT 7 CLOSED

codevise avatar codevise commented on June 11, 2024
Is littles3 use possible

from pageflow.

Comments (7)

tf avatar tf commented on June 11, 2024

There are two components to consider:

  • Pageflow uses Paperclip to store its files. Any storage backend supported by Paperclip should theoretically work with Pageflow. There would not even be a need to use a fake aws endpoint. Simply using the filesystem adapter could do it.
  • And there is Zencoder, which needs to get its files somewhere and put them somewhere. While Zencoder seems to allow other inputs than s3, Pageflow at the moment is not capable of submitting Zencoder jobs with files coming from other locations than s3. To use littles3, there would have to be a way to tell zencoder about the alternative aws API endpoint (s3:// urls start with the bucket name). Looking at the zencoder docs, I do not see such an option though.

from pageflow.

digitalkram avatar digitalkram commented on June 11, 2024

Hi,

thanks for your reply. I was already suspecting that the Zencoder part would be the dealbreaker when I wrote the question.

Are there any plans to make pageflow support (any) other protocol with is offered by Zencoder, like SFTP for example? That would enable people to use storage that only charges for storage but not for traffic (unless hosted on your own) which makes the cost much more predictable as you never know how popular a story will become. Especially if you are not doing that for business purpose.

Is there maybe another possibility? Something like:

  1. Create story on a "staging" environment/instance making use of the normal s3 feature
  2. Replicate output-bucket content to a "local" storage.
  3. Reconfigure that instance to use the locally stored files when serving the story?
    or
  4. Replicate the story into a "production" environment and switch the stories file locations to the local storage during replication?

This way the S3 would be involved only during the story creation but not while serving the stories to hundreds of viewers. That would also be quite nice and worth the effort (that could potentially be scripted) if it is possible at all.

Thanks for your inputs.

Cheers,

from pageflow.

tf avatar tf commented on June 11, 2024

As it stands Pageflow supports Zencoder SFTP outputs in addition to S3. Still, we had some bad experiences with Zencoder's SFTP adapter failing to copy files while reporting success via the API. I'll try to get around to editing the Zencoder Options wiki page, though. That would deal with video/audio.

Full replication of stories can surely be implemented somehow. But I'd suspect that to be quite complex and definitely out of scope for us. Maybe a custom content delivery setup proxying S3 would be easier to get working.

from pageflow.

digitalkram avatar digitalkram commented on June 11, 2024

the wiki update to use SFTP (just to tinker a bit aroud with it to see if we face the same problems with it as you did) would be very appreicated! thanks a lot in advance!

from pageflow.

tf avatar tf commented on June 11, 2024

Here's the wiki page on using SFTP. If you also experience the Zencoder hickups we ran into, we might want to add a warning note to the wiki page.

from pageflow.

digitalkram avatar digitalkram commented on June 11, 2024

hi tf,

thanks for the wiki update. I configured my playground instance accordingly. Will report back here in case I face similar hiccups as you did. What works now (tested only with a small/fast file) is that the files are put via SFTP to my server and I serve the encoded contens myself instead of pointing to the output bucket. It is just fine for me that S3 is used also additionally as this is only a one time thing but not used for every page visitor.

So that covers the Audio/Video part. For the images / paperclip part: Is it possible to use paperclip-sftp to use the same to server the other bucket as well myself?

Thanks and Cheers,

from pageflow.

tf avatar tf commented on June 11, 2024

FYI, in #54 I've opened a separate feature issue beginning to outline the steps necessary to allow non S3 storage for ImageFiles.

Cheers

from pageflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.