-
Notifications
You must be signed in to change notification settings - Fork 308
Conversation
Includes #3749. |
My thought was that we could store and serve from Postgres, and put a MaxCDN pull zone in front using the main site as an origin server, as we do with assets. |
88d24e5
to
a44fd0a
Compare
a44fd0a
to
1f684e9
Compare
|
It's not unlikely that we'll need an Aspen upgrade in order to work with uploaded files. |
Should we use the new FormData functionality to post files via ajax? Doesn't work in IE9. |
I'm close to a commit on this. I need to teach the test suite how |
Alright, debugged with @dmk246. The Aspen test client isn't smart enough to set |
Serving the images out of Postgres is even slower than I expected. It's taking 2 seconds to serve a 44 kB image locally. O.o |
Should we use a push zone instead? |
I mean, S3 is standard for this. I was looking to use MaxCDN since we already have an account there. |
Okay! It's looking like large objects are sufficiently performant, over against |
Needed wrk >= 3.0.3 to pick up wg/wrk#53 (current is 4.0.0). Benchmarks forthcoming ... |
filesystem (control)
|
|
Conclusion: large objects are plenty fast enough to support my original strategy of using the main web app as an origin server, with a MaxCDN pull zone in front of it in production (a la assets). |
Processing images introduces complex dependencies. I'm thinking of writing a separate service to do this for us, parking it at |
Or we can pay someone else to do it: https://www.google.com/search?q=image+processing+as+a+service. |
I'm working offline and needed this in order to be able to create teams offline.
This simplifies the /team/image endpoint to not use indirect content negotiation (via the file extension hack), and, in fact, not to negotiate at all: we just serve the image we have.
I looked into WebPs, but they're only supported in Chrome, and SVGs, but they are tough to secure ("SVGs are not just images but mini-applications")
Who knows what sizes we'll want in the future?
9415694
to
28b8b1e
Compare
Rebased on master (old HEAD 9415694). |
Looks like we can purge individual files from the pull zone cache: |
I want to get this out tonight. I think I'm going to focus on backfilling images, and reticket the CDN. |
Okay! I have images for all approved and under review Teams. I don't think I'm going to bother with images for rejected Teams: I don't like the idea of choosing an image for them since we're not giving them a chance to edit it themselves. Better to just leave them as-is, I think. |
I'm bumping on the CDN. |
Now that I have all these images, I want to not have any more Teams created without images, so I don't have to go chase them down anymore. :) |
Closes #3701.