# AlbaへのActiveModelSerializersからの移行に関する提案

**URL:** <https://meta.discourse.org/t/suggestion-migrating-from-activemodelserializers-to-alba/233266>\
**Category:** Development\
**Created:** [2022 年 7 月 19 日午前 8:21 UTC](https://meta.discourse.org/t/suggestion-migrating-from-activemodelserializers-to-alba/233266 "2022-07-19T08:21:06Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![okuramasafumi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/okuramasafumi/32/267513_2.png) [@okuramasafumi](https://meta.discourse.org/u/okuramasafumi)\
**Post date:** [2022 年 7 月 19 日午前 8:21 UTC](https://meta.discourse.org/t/suggestion-migrating-from-activemodelserializers-to-alba/233266/1 "2022-07-19T08:21:06Z")

</div>

こんにちは。Discourse が ActiveModelSerializer の古いバージョンを使用していることに気づきました。  
5年前にリリースされたもので、良いとは思えません。

> <https://github.com/discourse/discourse/blob/main/Gemfile#L58-L62>

AMS をフォークする計画があるようですが、より良い解決策があります。  
私の提案は、AMS から私が作成・保守している JSON シリアライザーである [Alba](https://github.com/okuramasafumi/alba) に移行することです。Alba は AMS と 100% 互換性があるわけではありませんが、提供する API は AMS に似ており、最新の AMS よりも約 10 倍高速です。

メンテナーが移行に同意すれば、PR を送信します。

---

_[View the full topic](https://meta.discourse.org/t/suggestion-migrating-from-activemodelserializers-to-alba/233266)._
