Upgrade to Pro — share decks privately, control downloads, hide ads and more …

B2Bクラウドサービスをゼロから立ち上げて、利用社数が1000社を超えるまでの道のり / a ...

Kizashi Nagata
September 28, 2018

B2Bクラウドサービスをゼロから立ち上げて、利用社数が1000社を超えるまでの道のり / a startup started B2B SaaS business from ground zero

2018/9/28 デブサミ関西発表資料

Kizashi Nagata

September 28, 2018
Tweet

More Decks by Kizashi Nagata

Other Decks in Technology

Transcript

  1. !3

  2. !6

  3. 3FMBUJPOػೳʢҰ෦ʣ w ঝೝػೳ w ೋॏૹ৴๷ࢭػೳ w ίϝϯτೖྗʢνʔϜ಺৘ใڞ༗ʣ w ༧໿ૹ৴ w

    ςϯϓϨʔτ w μογϡϘʔυ !7 ͳͲͳͲɺ νʔϜͰར༻͢ΔͨΊͷػೳ ͕ἧ͍ͬͯΔ w ݖݶ؅ཧ w मਖ਼಺༰ൺֱ w ܝࣔ൘ʢνʔϜ಺৘ใڞ༗ʣ
  4. 3FMBUJPOར༻ٕज़ w "84 &OHJOF:BSE  w 3PVUF 4 424 -BNCEB

    w 3VCZ 1FSM /PEF+4 1ZUIPO (P w 3BJMT "OHVMBS+4 w &MBTUJDTFBSDI w 1PTUHSF42- 3FEJT .FNDBDIFE  
  5. !17

  6. !18

  7. ϩʔϯν౰࣌ͷػೳʢϝʔϧجຊʣ !26 w ϝʔϧड৴ʢసૹʣ w ϝʔϧૹ৴ʢςΩετʣ w ϝʔϧૹ৴ʢ)5.-ʣ w ࣗࣾ4.51αʔόʔઃఆ

    w ࣗࣾ101αʔόʔઃఆ w ࣗಈϧʔϧʢϑΟϧλʣ w ςϯϓϨʔτ w ݕࡧ w ҹ࡮ w ϝʔϧιʔεදࣔ w ૹ৴લϓϨϏϡʔ w ૹ৴औΓফ͠
  8. ܦݧͨ͠τϥϒϧʢʣ !34 w ϝʔϧͷҰཡͷදࣔʹ෼Ҏ্͔͔Δ w Α͘ݟΔͱVOJDPSOͷϝϞϦϑοτϓϦϯτ͕(௒͑ Aug 23 10:31:59 ip-172-31-XX-XX

    monit[5690]: 'unicorn_relationapp_worker3' mem amount of 2200536kB matches resource limit [mem amount>358401kB]
  9. ܦݧͨ͠τϥϒϧʢʣ !35 w ݪҼ͸ແବͳ"DUJWF3FDPSEΦϒδΣΫτͷੜ੒ class Mail < ActiveRecord::Base has_many :model_a

    # mail_id ΛؚΉ has_many :model_b # mail_id ΛؚΉ has_many :model_c # mail_id ΛؚΉ Mail.order(:id).eager_load( :model_a, :model_b, :model_c ).where(...)limit(limit).offset(offset) ؔ࿈ςʔϒϧͷ৘ใΛؚΊͯઌߦಡΈࠐΈͰҰؾʹऔಘ
  10. ܦݧͨ͠τϥϒϧʢʣ !36 w ੜ੒͞ΕΔ42-͸-&'5065&3+0*/ͷ࿈࠯ SELECT mails.*, model_a.*, model_b.*, model_c.* FROM

    mails LEFT OUTER JOIN model_a ON mails.id = model_a.mail_id LEFT OUTER JOIN model_b ON mails.id = model_b.mail_id LEFT OUTER JOIN model_c ON mails.id = model_c.mail_id : ࣮ࡍ͸΋ͬͱͨ͘͞Μ+0*/͍ͯͨ͠ ΄͍͠ϝʔϧσʔλ͸݅ͩͬͨͷʹɺ42-Ͱ͍݅ۙ݅਺Λऔಘ Ճ͑ͯɺ֤ϞσϧͷΦϒδΣΫτੜ੒ʹ͕͔͔͍࣌ؒͬͯͨ