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

JSON serializers and Alba

JSON serializers and Alba

Rubyにおける各種JSONシリアライザの2020年版比較と自作のgemであるAlbaのご紹介です。

Masafumi Okura

July 22, 2020
Tweet

More Decks by Masafumi Okura

Other Decks in Programming

Transcript

  1. ࣗݾ঺հʢଓ͖ʣ • Kaigi on RailsͷνʔϑΦʔΨφΠβʔΛ͍ͯ͠·͢ • CFP͸ࠓ݄຤·ͰͳͷͰ࿩͢ωλ͕͋Δํ͸ͥͻʂ • ʰϚελϦϯάVimʱͷ຋༁Λ͠·ͨ͠ •

    Grow.rbͱEntaku.rbͱ͍͏ίϛϡχςΟΛιϩͰӡӦ͍ͯ͠·͢ • Shibuya.rbͱTama.rbͷڞಉΦʔΨφΠβʔͰ΋͋Γ·͢
  2. AMS • ݹࢀͷJSONγϦΞϥΠβ • Pros • ྺ࢙͕௕͘ɺWebʹهࣄ͕๛෋ʹ͋Δ • ͲΜͳJSONεΩʔϚʹ΋ରԠՄೳ •

    Cons • ΄΅ϝϯς͞Ε͍ͯͳ͍༷ࢠ • ଎౓ʹ೉͕͋Δʢಛʹfast_jsonapiͱͷൺֱͰʣ
  3. fast_jsonapi • Netflix͕ग़ͨ͠JSON:APIಛԽܕͷJSONγϦΞϥΠβ • Pros • ඇৗʹߴ଎ • Cons •

    JSON:APIʹ४ڌͨ͠APIʹͨ͠࢖͑ͳ͍ • Netflix͕ϝϯςΛ൒͹์غ͠ɺ༗ࢤͷϑΥʔΫ͕ଘࡏ͢Δ͕gemͷ໊લ͕ มΘ͍ͬͯͨΓͯࠞ͠ಱͱ͍ͯ͠Δ