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

Go at fluct

Kenta Suzuki
November 18, 2020
3.8k

Go at fluct

Nature Bath vol.6での発表資料です

Kenta Suzuki

November 18, 2020
Tweet

Transcript

  1. ࣄྫ1: PHP -> Go ݩʑ: ޿ࠂ഑৴ϩάΛग़ྗ͢Δαʔό Apache + PHP ໾ׂ:

    ഑৴ύϥϝʔλͷ෮߸ɺϩάग़ྗʢ੥ٻ & ؂ࢹ༻ʣ // PHP -> Apache (custom log module) -> log apache_setenv(F_ENV_NAME_STATUS, $status); Testability௿͍, Apacheͳ͍ͱखݩͰࢼͤͳ͍ -> ϦϓϨʔε
  2. ࣄྫ2: Open Bidding΁ͷ઀ଓ Google Ad Managerʹbidderͱͯ͠઀ଓ @tomita τϛʔϧ͞Μ͕։ൃ Open Biddingͱ͸

    ͻͱ͜ͱͰ: Google͔Β޿ࠂϦΫΤετΛड෇͚ɺͦΕΛDSPsʹϦΞϧλΠϜʹΦʔΫγϣϯ͠ɺ޿ࠂΛฦ ͢࢓૊Έʢ͢΂ͯαʔόؒ௨৴ʣ ϝσΟΞ <- Google <-> bidder (fluct) <-> DSPs GoͰ࣮૷ʢRTBαʔϏε͸Erlang࣮૷Λར༻ʣ 30ԯʙ req. / day ϚϧνΫϥ΢υʢAWS, GCPʣɺϚϧνϦʔδϣϯ എܠ: ଟ༷ͳϦΫΤετɺεϧʔϓοτॏࢹɺطଘαʔϏεΛ͏·͘࢖͍ճ͢
  3. ࣄྫ3: romdb (cont.) @yowcow ͕GoͰϦϓϨʔε https://github.com/yowcow/goromdb storage૚ͷࠩ͠ସ͕͑Մೳ: Berkeley DB, BoltDB,

    JSON etc. ಛఆσΟϨΫτϦʹ͓͘ͱstorageΛࠩ͠ସ͑ΒΕΔ (memcachedbͱಉ༷ʣ ϓϩτίϧ΋ෳ਺ରԠՄೳʢmemcached, etc.ʣ ຊ൪؀ڥͰ͸BoltDBͱBerkeley DBΛซ༻