Skip to content

Comments

Feature/akka typed Actor#22

Merged
negokaz merged 36 commits intomainfrom
feature/akka-typed
Jun 24, 2021
Merged

Feature/akka typed Actor#22
negokaz merged 36 commits intomainfrom
feature/akka-typed

Conversation

@tksugimoto
Copy link
Contributor

@tksugimoto tksugimoto commented Jun 3, 2021

PaymentActorの typed 対応

TODO

  • typed Actor 化
  • マルチテナント対応
    • 部品
    • ヘルスチェック
    • ドキュメント更新
  • Actor の native typed 化 (現状classicに似せて作ってあり分かりづらい)
  • test の typed 化
  • typed cluster sharding 適応 (entity id を command に含める必要がなくなった)

⚠️ 注意

レビューする際の注意

  • commit ごとに差分を見るほうがレビューしやすいと思います
  • マルチテナント対応のドキュメント修正が2 commit に分離しています
    • docs/projects/application/マルチテナント化されたClusterShardingの実装ガイド.md
  • 以下の2つが大きめの修正です
    • refactor: typed Actor 化 (Behavior)
    • refactor: typed Actor 化 (マルチテナント対応)
  • 一部 typed 化に関係ない refactoring も含めています

@tksugimoto tksugimoto force-pushed the feature/akka-typed branch from 928fb4b to 0ab8832 Compare June 3, 2021 10:26
@tksugimoto tksugimoto force-pushed the refactor/actor/failure-processing branch 2 times, most recently from 69696c6 to 65de78e Compare June 4, 2021 03:05
@tksugimoto tksugimoto force-pushed the feature/akka-typed branch 2 times, most recently from 7c51318 to 86f6953 Compare June 4, 2021 05:56
Base automatically changed from refactor/actor/failure-processing to main June 4, 2021 06:12
@tksugimoto tksugimoto force-pushed the feature/akka-typed branch from 86f6953 to 20a63ff Compare June 4, 2021 06:38
@tksugimoto tksugimoto force-pushed the feature/akka-typed branch 4 times, most recently from 94ad97e to 8675a19 Compare June 8, 2021 09:32
@tksugimoto tksugimoto changed the base branch from main to chore/update-lerna-app-library/scala-test June 8, 2021 09:37
Base automatically changed from chore/update-lerna-app-library/scala-test to main June 9, 2021 00:30
@tksugimoto tksugimoto force-pushed the feature/akka-typed branch 2 times, most recently from f3fb178 to 0c5f609 Compare June 16, 2021 03:11
@tksugimoto tksugimoto marked this pull request as ready for review June 16, 2021 03:12
@tksugimoto tksugimoto force-pushed the feature/akka-typed branch from 0c5f609 to 56e5f78 Compare June 16, 2021 06:17
typed Actor の標準に合わせるため
Event の 抜け漏れ を compile 時に検知できるようにするため
@tksugimoto tksugimoto force-pushed the feature/akka-typed branch from d859836 to f392388 Compare June 22, 2021 04:01
- デフォルトの HashCodeMessageExtractor を指定していた
- number-of-shards は typed Cluster Sharding ならば conf から取得可能
- test コードが冗長だった
- Actor class 削除の準備
`def apply()` に移動
@tksugimoto tksugimoto mentioned this pull request Jun 23, 2021
8 tasks
…るようにする

Reply忘れがあるとcompileエラーになる
※ Replyが不要な場合は明示すればOK
@negokaz
Copy link
Contributor

negokaz commented Jun 24, 2021

@tksugimoto

マルチテナント化以外のドキュメント更新もしたほうが良いと思います。

例えば、次のドキュメントに AppTypedActorLogging を使う方法が書かれていませんでした。

lerna-sample-payment-app/ログ実装ガイド.md at feature/akka-typed · lerna-stack/lerna-sample-payment-app

ライブラリ側にドキュメントがあるなら、重複する部分を消してリンクする形でも良いと思います。

@tksugimoto
Copy link
Contributor Author

@negokaz

マルチテナント化以外のドキュメント更新もしたほうが良いと思います。

例えば、次のドキュメントに AppTypedActorLogging を使う方法が書かれていませんでした。

とりあえず、ログガイドだけ更新しました。

12e6eb6 docs: ログ実装ガイド更新(typd Actor対応)

他は数が多いので、Issueにして別PRにします。(このPRを mergeしてしまいたい)

#31 ガイドのActor 部分を classic -> typed 化 · Issue #31 · lerna-stack/lerna-sample-payment-app

classic Actor 用のコメントとなっていた
@negokaz
Copy link
Contributor

negokaz commented Jun 24, 2021

@tksugimoto ActorSystem の Typed 化は別 PR で対応する予定でしょうか?

  private val system: ActorSystem = ActorSystem("GatewaySystem", config)

lerna-sample-payment-app/Main.scala at feature/akka-typed · lerna-stack/lerna-sample-payment-app

@tksugimoto
Copy link
Contributor Author

全体の typed ActorSystem は別PRです。

#30 Feature/akka typed actor system by tksugimoto · Pull Request #30 · lerna-stack/lerna-sample-payment-app

Copy link
Contributor

@negokaz negokaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🎉

@negokaz negokaz merged commit d9a8e0a into main Jun 24, 2021
@negokaz negokaz deleted the feature/akka-typed branch June 24, 2021 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants