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

2016/05/16 adtech x scala meetup のLT

2016/05/16 adtech x scala meetup のLT

Tomohisa Omagari

July 03, 2016
Tweet

More Decks by Tomohisa Omagari

Other Decks in Programming

Transcript

  1. ΍ͬͨ͜ͱ Play + akka scheduler ManagerActor
 
 ɾҾ਺Λݩʹ࣮ߦ͍ͨ͠childActorΛࢦఆ͢Δ
 ɾchildActor͕ఀࢭ͍ͯΔ͔Ͳ͏͔ͷ
 ɹεςʔλεΛ͍࣋ͬͯΔ


    ɹ(isAliveChildActorͷ෦෼)
 ɾManagerActorͷఀࢭΛड͚ͨΒɺ
 ɹ࣮ߦ͍ͯ͠ΔchildActorΛstop͢Δ
 ɹTerminatedͨ͠৔߹ɺεςʔλεΛ
 ɹfalseʹ͢Δ
  2. ΍ͬͨ͜ͱ Play + akka scheduler ▸ ىಈ࣌ͷίϚϯυ
 test1ͷॲཧΛ࣮ߦ͍ͨ͠৔߹ɿ
 activator run

    -Ddaemon-process=test1
 
 test2ͷॲཧΛ࣮ߦ͍ͨ͠৔߹ɿ
 activator run -Ddaemon-process=test2
  3. ݁Ռ Play + akka scheduler ▸ σʔϞϯԽָ͕
 (σʔϞϯͰ໘౗ͳ෦෼ΛPlay͕΍ͬͯ͘ΕΔʣ ▸ Ҿ਺͝ͱʹ࣮ߦ͍ͨ͠ActorΛબ୒Ͱ͖Δ

    ▸ JVMͷOld Memory͕ཷ·Γଓ͚͍ͯΔͷͰɺ
 ̍೔Ұճ࠶ىಈ͍ͯ͠·͢ɻ
 ʢ͍͔ͭ௚͍ͨ͠ʣ