Skip to content

Instantly share code, notes, and snippets.

@mostlygeek
Last active November 27, 2018 19:59
Show Gist options
  • Save mostlygeek/ddc3036518d98ef47a1b to your computer and use it in GitHub Desktop.
Save mostlygeek/ddc3036518d98ef47a1b to your computer and use it in GitHub Desktop.
Interview Question - Build a Thumbnail Generator
Describe how you would build this thumbnail web service:
- Accept a JPEG via an anonymous HTTP request from the client
- Create a scaled down, 25% thumbnail of it
- Return a text/plain response, with URLs to the original and thumbnail, i.e:
https://i.mozilla.org/abc123.original.jpeg
https://i.mozilla.org/abc123.thumb.jpeg
- Images (original + thumbnails) automatically deleted after 7 days
- Hosted in AWS or GCP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment