← Graph

Do Rails adopters write handlers instead of controller actions?

question 2 connections

Audience asks whether Rails adopters end up writing command handlers instead of controller actions. Ladd: one of their first decisions is whether the controller action writes a command message to a stream or handles the command in the request/response cycle. If you're planning a transition to microservices, prefer writing the command — the implementation then becomes fully portable out of Rails or Hanami.

answer_summary
Have the controller write a command message to a stream rather than handle it inline; that keeps the implementation portable across frameworks.
question Do Rails adopters write handlers instead of controller actions?
about
Command Message concept
Answer recommends having controllers write command messages to streams for portability.
question Do Rails adopters write handlers instead of controller actions?
asked_at
Q&A after the talk.

Provenance

Read by
5 extractions