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

technology x business

technology x business

db tech showcase Tokyo 2015

yujiosaka

June 10, 2015
Tweet

More Decks by yujiosaka

Other Decks in Technology

Transcript

  1. Depth of Functionality Scalability & Performance NFNDBDIFE 3%#.4 LFZWBMVFTUPSF .POHP%#

    MongoDBͷཱͪҐஔ Relational Databases Fight NoSQL Gravity https://www.mongodb.com/blog/post/relational-databases-nosql-gravity
  2. ߏ଄Խσʔλ db.events.insert({
 event: “touch”,
 touches: [
 {pageX: 150, pageY: 100,

    …},
 {pageX: 47, pageY: 171, …}
 ],
 touchCount: 2 }); db.events.createIndex({
 event: 1
 }); ߦྻʹറΒΕͳ͍
 σʔλߏ଄ΛදݱͰ͖Δ ݕࡧ͍ͨ͠ϑΟʔϧυʹ
 ࣗ༝ʹΠϯσοΫε͕
 షΕΔ͜ͱ͕େ͖ͳڧΈ
  3. εΩʔϚϨε db.events.insert({
 event: “touch”,
 touches: [
 {pageX: 150, pageY: 100,

    …},
 {pageX: 47, pageY: 171, …}
 ],
 // delete
 touchCount: 2,
 // new
 orientation: -90,
 touchStart: new Date(),
 … }); औಘ͍ͨ͠σʔλ͸
 ೔ʑมԽ͍͖ͯ͠·͢ RDBͷڧΈͰ͋Δ͸ͣͷ
 εΩʔϚ͕ɺϏδωεͷ
 ଍͔ͤʹͳͬͯ͠·͏
  4. ϨϓϦΧηοτˍγϟʔσΟϯά replica set shard mongos replica set shard replica set

    shard delayed replica delayed replica delayed replica mongoc
  5. Customer Count Total Costs 0QUJNJ[BUJPO .PSF
 IBSEXBSF $PTUTUPP
 IJHIPQUJNJ[F Changing

    the Growth Formula https://www.compose.io/articles/changing-the-growth-formula/ -PXUPUBM
 DPTUT
  6. Low total costs
 ίετɾύϑΥʔϚϯεͷ໰୊΋ͳ͘αʔϏεΛఏڙͰ͖͍ͯΔ More hardware
 Ϗδωεͷ੒௕Λࢧ͑ΔͨΊʹ౤ࢿΛ͢Δ࣌ظ Costs too high!

    optimize
 ίετ΁ͷܯࠂ্͕͕ΓɺΞʔΩςΫνϟͷݟ௚͕͠ٻΊΒΕΔ Optimization
 ΞʔΩςΫνϟ͕ܦࡁతʹ΋ύϑΥʔϚϯεతʹ΋࠷దԽ͞ΕΔ ϑΣʔζ Changing the Growth Formula https://www.compose.io/articles/changing-the-growth-formula/
  7. Customer Count Total Costs 0QUJNJ[BUJPO .PSF
 IBSEXBSF $PTUTUPP
 IJHIPQUJNJ[F Changing

    the Growth Formula https://www.compose.io/articles/changing-the-growth-formula/ -PXUPUBM
 DPTUT
  8. MMS