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

Which Json Serializer should we use in Ruby on Rails6 era

hihats
December 08, 2020

Which Json Serializer should we use in Ruby on Rails6 era

The famous ruby to json serializer ActiveModel Serializer will be deprecated in near future. This talk is about next alternative fo ActiveModel Serializer

hihats

December 08, 2020
Tweet

More Decks by hihats

Other Decks in Programming

Transcript

  1. Which Json
    Serializer should
    we use in Ruby
    on Rails6 era
    October, 2020

    View full-size slide

  2. What is NEXT ActiveModel::Serializer
    Theme

    View full-size slide

  3. FastJson API
    Merit
    ● Have a similar declareration syntax
    with AMS

    View full-size slide

  4. FastJson API
    Merit
    ● Have a similar declareration syntax
    with AMS
    ● Anything fast

    View full-size slide

  5. FastJson API
    Demerit
    ● Json API Schema?

    View full-size slide

  6. FastJson API
    Demerit
    ● Json API Schema
    このままでは(現場によっては)使いづらい

    View full-size slide

  7. What is NEXT ActiveModel::Serializer
    = FastJson API
    Conclusion

    View full-size slide

  8. What is NEXT ActiveModel::Serializer
    = FastJson API
    JsonAPIスキーマ以外でも使える
    Conclusion

    View full-size slide

  9. What is NEXT ActiveModel::Serializer
    = FastJson API
    JsonAPIスキーマ以外でも使える
    Conclusion
    ただし

    View full-size slide

  10. ● SSKD
    ● LSUD
    使い分けるのが大事

    View full-size slide

  11. What is NEXT ActiveModel::Serializer
    = FastJson API
    Conclusion

    View full-size slide

  12. What is NEXT ActiveModel::Serializer
    = FastJson API
    Conclusion

    View full-size slide

  13. What is NEXT ActiveModel::Serializer
    = JSONAPI Serializer
    Conclusion

    View full-size slide

  14. Thanks!
    … and we’re so excited to share with you!

    View full-size slide