1. 3

    You may want to avoid the “big ball of mud” enum error antipattern if the different errors need to be handled in different ways. This post goes into a lot more detail, but the main point is that you give up the benefits of exhaustive pattern matching and increase the chances of mishandling errors when mixed concerns go into a single enum. This doesn’t matter so much for CLI tools where you always want to bail if anything goes wrong (just unwrap and panic is often fine in those cases) but for stateful systems that expect to encounter a variety of errors over a normal process lifetime, this starts to matter a lot more.

    1. 2

      Awesome thanks for the feedback. I’ll read that article. I’ve also got your simulation blog post on my read list.

      1. 2

        Welcome to the Rust DB eng world :)

        Simulation is one of those things that becomes about 10x more expensive to pull off if you start a project without targeting it from the beginning - which for distributed systems more or less guarantees that the time to discover bugs goes up significantly, as well as the effort to reproduce them. Folks like FoundationDB & Basho really improved the quality of their systems significantly by using this technique, and it’s always surprising to me how it still seems to be so rarely applied in the distributed systems community.

    1. 5

      Hey, I’m Garren, the speaker in this talk and on the CouchDB PMC. I hope you found the talk interesting. If you have any questions or are interested in getting involved leave a comment below or sign up to the couchdb mailing list - https://couchdb.apache.org/

      1. 1

        Haven’t watched the talk yet but I’m a CouchDB fan (used it pretty extensively a few years ago) and was also very intrigued with FoundationDB before it was bought by Apple so what can I say - interesting times ahead! I’ll be keeping a close eye on the project.

        1. 1

          Awesome. That is great to hear. I’ve been really impressed with FDB. It does have a bit of a learning curve initially since it is in some sense quite low level. But once I understood how the transactions work, it has been great to work with.