Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Latest commit

 

History

History
27 lines (18 loc) · 1008 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 1008 Bytes

Image Cache

Problem Summary

This problem involves writing some Ruby code to implement a filesystem base image cache.

Expected time

45 minutes.

Environment

  • IDE and Ruby 3 environment. VSCode, IntelliJ or RubyMine free community versions work fine.
  • VSCode
  • IntelliJ
  • RubyMine

Background knowledge

Kaleido/Canva is a very visual product, there are lots of images involved. Many of our backend services need to download these images and do something with them. For example, when downloading a design, one of our backend services will download the image and store it on the filesystem while processing the download. We’d like to avoid downloading the same image again and again, one approach to this is to cache them.

Through the course of the interview, we'd like you to write some Ruby code that caches images on the filesystem. The images are uniquely identified by urls.