# Is dry-operation replacing dry-transaction?

**URL:** <https://discourse.dry-rb.org/t/is-dry-operation-replacing-dry-transaction/1742>\
**Category:** Uncategorized\
**Created:** [October 23, 2023, 7:30pm UTC](https://discourse.dry-rb.org/t/is-dry-operation-replacing-dry-transaction/1742 "2023-10-23T19:30:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpf](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@jpf](https://discourse.dry-rb.org/u/jpf)\
**Post date:** [October 23, 2023, 7:30pm UTC](https://discourse.dry-rb.org/t/is-dry-operation-replacing-dry-transaction/1742/1 "2023-10-23T19:30:56Z")

</div>

I was looking into using dry-transaction and came across dry-operation, which is new and seems to be solving the same problem. Am I wrong about that or is dry-transaction going to be deprecated?

---

<div class="post-metadata">

**Author:** ![timriley](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dry-rb.org/timriley/32/25_2.png) [@timriley](https://discourse.dry-rb.org/u/timriley)\
**Post date:** [October 24, 2023, 10:50am UTC](https://discourse.dry-rb.org/t/is-dry-operation-replacing-dry-transaction/1742/2 "2023-10-24T10:50:28Z")

</div>

Hi @jpf, this is an astute observation! And yes, you’re right: dry-operation is intended to become the _successor_ to dry-transaction.

While it won’t provide an _exactly_ compatible API (this is because dry-transaction’s API turned out to have a range of limitations that are very hard to work around), it will implement all of dry-transaction’s core concepts, and our aim is to provide a straightforward upgrade path.

dry-transaction won’t go way overnight, though. If it’s useful to you, you can feel free to continue using it, but dry-operation is our focus for the future.

The benefit of providing a successor via an alternative gem is that if you choose to migrate, you can do so progressively: one class at a time, as opposed to having to do a single big-bang migration that would be necessary if we provided a new version of dry-transaction that included a bunch of major breaking API changes.

I’m really excited about what we’ll be providing with dry-operation. It’s early days for the project, so it’ll still be a few months before we’re ready to share everything, but when we do, I expect that people will _want_ to migrate because of the advantages that dry-operation provides.

---

<div class="post-metadata">

**Author:** ![jpf](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@jpf](https://discourse.dry-rb.org/u/jpf)\
**Post date:** [October 24, 2023, 5:01pm UTC](https://discourse.dry-rb.org/t/is-dry-operation-replacing-dry-transaction/1742/3 "2023-10-24T17:01:21Z")

</div>

Thanks so much @timriley ! That is exciting. I will start playing around with dry-operation 😃

---

<div class="post-metadata">

**Author:** ![timriley](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dry-rb.org/timriley/32/25_2.png) [@timriley](https://discourse.dry-rb.org/u/timriley)\
**Post date:** [October 24, 2023, 10:51pm UTC](https://discourse.dry-rb.org/t/is-dry-operation-replacing-dry-transaction/1742/4 "2023-10-24T22:51:04Z")

</div>

Glad to hear this is exciting to you!

Be warned though, it’s _very_ early days for dry-operation right now and we are _not_ recommending it for real usage. Feel free to follow along, but just keep this in mind 🙂

---

<div class="post-metadata">

**Author:** ![fddayan](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dry-rb.org/fddayan/32/1022_2.png) [@fddayan](https://discourse.dry-rb.org/u/fddayan)\
**Post date:** [February 28, 2025, 3:27pm UTC](https://discourse.dry-rb.org/t/is-dry-operation-replacing-dry-transaction/1742/5 "2025-02-28T15:27:51Z")

</div>

@timriley I’m curious about what were the limitation in dry-translations. can you name a few ? I really liked that approach

---

<div class="post-metadata">

**Author:** ![timriley](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dry-rb.org/timriley/32/25_2.png) [@timriley](https://discourse.dry-rb.org/u/timriley)\
**Post date:** [March 3, 2025, 3:19am UTC](https://discourse.dry-rb.org/t/is-dry-operation-replacing-dry-transaction/1742/6 "2025-03-03T03:19:09Z")

</div>

@fddayan The limits were mostly around having steps defined at the class-level, and the inflexibility that followed.

[I wrote about it all here](https://discourse.dry-rb.org/t/why-was-dry-transaction-deprecated/1822/4). I’d encourage you to give that a read, and let me know if you have any further questions! 😄
