Managing Images on Heroku

9
Hiroyuki Hayashi - Managing Images on Heroku - 2012.09.11 Heroku Meetup #6 @STARTUP Base Camp

description

@Heroku Meetup #6

Transcript of Managing Images on Heroku

Page 1: Managing Images on Heroku

Hiroyuki  Hayashi

- Managing Images on Heroku -

2012.09.11    Heroku  Meetup  #6    @STARTUP  Base  Camp

Page 2: Managing Images on Heroku

Ñ Hiroyuki  Hayashi Ñ @hiroyou1984

Ñ CTO    at  Entertainment-­‐‑Kick  Co.,  Ltd.

Ñ Use  Rails  since  Sep  2011  -­‐‑  3.0.10  Heroku  since  Apr  2012

Who?

2012/09/11

2 hRps://www.findjpn.com

Page 3: Managing Images on Heroku

FindJPN

2012/09/11

3 hRps://www.findjpn.com

is  a  web  service  based  in  Japan  for  travellers  to  book  and  experience  o^eat  activities  hosted  by  locals.  

Since  Aug  2nd  2011   ↓ 153  Activities      as  of  Sep  11th

Page 4: Managing Images on Heroku

Ñ How  should  we  manage  images  on  heroku?

Ó  Currently  we  manage  the  contents,  but  we’d  like  to  open  our  platform  as  a  marketplace.  At  that  time,  we  need  to  allow  users  to  upload  images  by  themselves.

Problem

2012/09/11

4 hRps://www.findjpn.com

Page 5: Managing Images on Heroku

Which  do  you  like?

2012/09/11

5 hRps://www.findjpn.com

Details Shodo  is  a  type  of  traditional  Japanese  art  style  that  uses  brushes  and  ink  to  write  "ʺKanji"ʺ,  or  other  Chinese  characters. In  the  world  of  Shodo  every  single  character  has  its  own  meaning  and  how  you  write  the  character  expresses  your  feeling  or  your  thought  in  what  you  write. In  this  lesson,  you'ʹll  have  the  opportunity  to  create  your  own  unique  Japanese  souvenir  by  writing  your  name  in  Kanji  on  a  T-­‐‑shirt,  a  Japanese  fan,  or  another  item  of  your  choice.

VS.

Page 6: Managing Images on Heroku

ü  Use  images  in  different  sizes ü  Cache  the  images ü  Use  CDN  (if  it’s  cheap)

Ñ Are  there  addons  to  meet  these  requirements?

Requirements

2012/09/11

6 hRps://www.findjpn.com

Page 7: Managing Images on Heroku

Ñ  Does  it  meet  the  requirements? Ó  A  heroku  addon  to  manage  images.

Ñ  What’s  the  benefit  to  use  it  as  addon? Ó  They  also  provide  non-­‐‑addon  plan  which  is  cheaper.

Ñ  What  do  we  have  to  do  by  ourselves? Ó  i.e.  Another  3rd  party  service  ‘chute’  provides  an  uploader  which  cloudinary  doesn’t.

Cloudinary

2012/09/11

7 hRps://www.findjpn.com

Page 8: Managing Images on Heroku

Thank  you.2012/09/11

8 hRps://www.findjpn.com

@hiroyou1984

Page 9: Managing Images on Heroku

Simple  Sequence  Diagram

2012/09/11

9 hRps://www.findjpn.com