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

そして物語は何度目かのアプリ内通知再実装を迎える / Reimplement in app n...

moznion
August 21, 2016

そして物語は何度目かのアプリ内通知再実装を迎える / Reimplement in app notification

京都なんか #2 の資料です

moznion

August 21, 2016
Tweet

More Decks by moznion

Other Decks in Technology

Transcript

  1. σʔλϞσϧͷτϨʔυΦϑ - ྫ) ௨஌͕1rowͰsubscriber৘ใ͕ͿΒԼ͕Δ - Write͕؆୯ (গͳ͍) - 1௨஌1writeͰࡁΉ -

    Read͕೉͘͠ͳΔ - ಡΜͰ͘Δͱ͖ʹෳࡶͳΫΤϦ͕ཁΓ͕ͪ - JOIN஍ࠈ (΋͘͠͸ఱࠃ)
  2. Ͳͷσʔλߏ଄Λ࠾༻͢Δ͔ - ZSET - ιʔτࡁΈηοτ - Α͘ϥϯΩϯάͷ࣮૷ͱ͔ʹ࢖ΘΕΔ΍ͭ - TimestampΛscoreʹͯ͠ɼͦΕΛ ZREVRANGE

    ͱ͔ͰҾ͍ͯ͘Δͱ࠷৽ॱͰऔͬͯ͜ΕΔ - ॱҐ΍είΞϕʔεͰ੾Γ٧Ί΋Ͱ͖ΔͷͰศར
  3. i. Enqueue a job to deliver notification ii. Pickup a

    job iii. Deliver notification Redis (JobQueue) Redis Cluster Worker Business Domain
  4. i. Enqueue a job to deliver notification ii. Pickup a

    job iii. Deliver notification Redis (JobQueue) Redis Cluster Worker Business Domain
  5. i. Enqueue a job to deliver notification ii. Pickup a

    job iii. Deliver notification Redis (JobQueue) Redis Cluster Worker Business Domain
  6. i. Enqueue a job to deliver notification ii. Pickup a

    job iii. Deliver notification Redis (JobQueue) Redis Cluster Worker Business Domain
  7. o. Get Redis (JobQueue) Redis Cluster Worker Business Domain i.

    Retrieve notification ii. Construct notification messages iii. Return
  8. o. Get Redis (JobQueue) Redis Cluster Worker Business Domain i.

    Retrieve notification ii. Construct notification messages iii. Return
  9. o. Get Redis (JobQueue) Redis Cluster Worker Business Domain i.

    Retrieve notification ii. Construct notification messages iii. Return