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

Hello fast_jsonapi

Hello fast_jsonapi

usecase fast_jsonapi

4edb44c4292fa5bd1cbe463d0e80ecbd?s=128

Kaoru Hotate

June 06, 2019
Tweet

Transcript

  1. )FMMPGBTU@KTPOBQJ  อཱ ֜ ,BPSV )PUBUF !QVSVOLBPSV

  2. ࣗݾ঺հ  อཱ ֜ ,BPSV)PUBUF !QVSVOLBPSV .FE1FFSͷ೥ੜʂ 3BJMTϝΠϯͰ ͨ·ʹ4XJGUΛॻ͍ͯ·͢

  3. ࠓ೔࿩͢͜ͱ  IUUQTHJUIVCDPN/FUGMJYGBTU@KTPOBQJ ձࣾͷϓϩμΫτͰɺGBTU@KTPOBQJΛ࢖ͬͯ։ൃͯ͠ΔͷͰɺ ͦ͜Ͱಘͨ஌ݟΛڞ༗͠·͢ GBTU@KTPOBQJ͸ɺ"1*ͷϨεϙϯεΛKTPOܗࣜͰ ฦ͢ࡍʹɺ"DUJWF3FDPSEϥΠΫʹࢦఆͰ͖ΔHFNͰ͢

  4. GBTU@KTPOBQJ ͷಛ௃  ಛ௃GBTU serialization time is at least 25

    times faster than Active Model Serializers on up to current benchmark of 1000 records.
  5. )PXEPFTGBTU@KTPOBQJ HFUTPGBTU  IUUQTHJUIVCDPN/FUGMJYGBTU@KTPOBQJJTTVFT  $BDIJOH UIFBUUSJCVUFEFGJOJUJPOT SFMBUJPOTIJQEFGJOJUJPOT  LFZUSBOTGPSNTFUD

    NBLFTTFSJBMJ[JOHIPNPHFOFPVTMJTUT GBTUFS  8FEPOUDSFBUFPCKFDUTXIFOFWFSXFDBOBWPJEPCKFDU DSFBUJPO  )BWJOHQFSGPSNBODFUFTUTGSPNUIFCFHJOOJOHIFMQFEVT VOEFSTUBOEUIFQFSGPSNBODFJNQBDUPGGFBUVSFTXFCVJMU
  6. GBTU@KTPOBQJ ͱ͸  ಛ௃KTPOBQJܗࣜͷKTPOʹڧ੍͞ΕΔ IUUQTKTPOBQJPSH

  7.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