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

Perl + Go実運用の話

mackee
December 16, 2015

Perl + Go実運用の話

Gotanda.pm #7 vs Yokohama.pm #13

mackee

December 16, 2015
Tweet

More Decks by mackee

Other Decks in Programming

Transcript

  1. IDLͷ࿩ • IDL = Interface Definition Language • ྫ: JSON

    Schema, Swagger, Protobuf • RPCͳͲͷΠϯλʔϑΣΠεΛઐ༻ݴޠͰఆٛ ͯͦ͠ΕΛར༻ͯ͠ίʔυΛੜ੒ͨ͠Γ͢Δ
  2. ࣮ࡍͷBaalͷྫ ϑϨϯυਃ੥ namespace Data.Request { entity FriendRequestRequest { /# ਃ੥͢ΔϢʔβ

    #/ UserId: !long; /# ਃ੥͞ΕΔϢʔβ #/ TargetUserId: !long; } } namespace Data.Response { entity FriendRequestResponse { /# 1: ਃ੥த 2: ਃ੥͞Εத 3: ϑϨϯυొ࿥ࡁΈ #/ Status: !integer; } }
  3. ࣮ࡍͷBaalͷྫ ϑϨϯυਃ੥ namespace Service { service FriendService { /# <short>༑ͩͪਃ੥</short>

    <url>/api/friend/request</url> <request_method>POST</request_method> #/ Request: <= !Data.Request.FriendRequestRequest => !Data.Response.FriendRequestResponse; } }