Jones Zachariah Noel - Nov DEV Community is a community of , amazing developers We're a place where coders share, stay up-to-date and grow their careers.
Create account Log in. Twitter Facebook Github Instagram Twitch. Upload image. Submit Preview Dismiss. Collapse Expand Giridharan Giridharan Giridharan. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Who owns this outage? Building intelligent escalation chains for modern SRE.
Podcast Who is building clouds for the independent developer? Featured on Meta. Now live: A fully responsive profile. Reducing the weight of our footer. Related Hot Network Questions. Question feed. It'll be super interesting to see, but the nice part is that as long as you store metadata for all the files in your database, you can get a quick detail of the average file size, largest file, and so on to help you analyze which will be the best approach.
So I think I may be in the realm of best being the enemy of good enough. With that in mind, I'll likely stick with option 1 for now, and then proceed to monitor performance and make adjustments as needed. One thing that surprised me somewhat when doing research is that there isn't a whole lot out there on this topic, so perhaps its not really a big deal. Looking forward to hearing about your solution and how it goes once you get it implemented.
There really isn't much information on this out there and definitely should be more! Just to close the loop on this, I'm using the zipline gem to stream dynamically generated zip files to the user.
Files uploaded directly to s3 via shrine. The downloads controller either spits out a zip if a project has multiple attachments, or serves up a single file otherwise. Seems to be working well so far. Are you primarily working with small file sizes? I would imagine this could get problematic if someone tried to zip a gigabyte or something, but hopefully that's not an issue you have to worry about yet.
Yes, mostly small files at the moment. At some point it probably make sense to have a background job create a zipped version and store that on S3, but that extra bit of complexity is on the back burner for now. We care about the protection of your data. Read our Privacy Policy. Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus. Icons by Icons8. All rights reserved.
Lessons See the full list of screencasts to learn from. Guides Tutorials to help you setup Rails on your development and deploy to production. New to Ruby on Rails? New Start learning Ruby on Rails from scratch with our free Beginner tutorial. Refactoring Rails Expert advice on keeping Rails apps organized and fast. Apps Hatchbox.
Sign up Log in. Topics Lessons Guides Forum. Log in Sign up.
0コメント