CMDx is a Ruby library built around four core concepts: tasks (single-use, isolated execution units with automatic rollbacks), context (explicit data flow between tasks), execution (result-based or exception-based patterns), and chains (automatic tracking of task sequences). Tasks are designed to be single-purpose and freeze after execution, context accumulates data as it flows through pipelines without global state, and the library supports dry-run mode for previewing operations. The framework emphasizes predictable business logic through explicit data contracts and automatic orchestration.

3m read timeFrom drexed.github.io
Post cover image
Table of contents
The Task: Your Unit of Work ¶Context: Your Data Container ¶Execution: Two Flavors, One Result ¶Chains: Your Execution Trail ¶Key Takeaways ¶References ¶
2K Impressions