ElixirConf 2015 - OTP Has Done It by Nick DeMonner

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ก.ย. 2024
  • As a young community, we have to resist the urge to reinvent the wheel for foundational libraries and instead look to the battle-tested awesomeness that is OTP. When designing complex systems with many moving parts in Elixir, we should ask ourselves the following question: has OTP done this? In order to answer that question in this talk, we'll first look at the gen_fsm, gen_event, and gen_server libraries. We'll see some examples illustrating how, where, and why they should be used for building robust, fault-tolerant, and distributed systems. A broad discussion of some of the built-in database options like ETS and Mnesia will follow. We'll examine the pros and cons of each system, and take a look at some examples. Lastly, attendees will get a brief overview of OTP-style releases and how they can fit into modern deployment infrastructure.

ความคิดเห็น • 7

  • @BillGathen
    @BillGathen 8 ปีที่แล้ว +8

    I liked how Nick took a moment to say "this is the one we use almost all the time" in several spots (one-for-one restart strategy, gen_server): in most docs, they feel obliged to give equal treatments to all options, which makes it feel like they're equal in importance/utility. Saying "stick with this until it doesn't fit" is a great focusing tool when learning a new system, allowing me to defer learning the also-rans until later.

    • @Gaemz-ip7vl
      @Gaemz-ip7vl 7 ปีที่แล้ว

      completely agree, "What to choose" is pretty hard question for every newcomer

  • @yelgabs
    @yelgabs 8 ปีที่แล้ว +5

    Would've loved to hear the questions as well.
    Going through these conf videos is frustrating when the questions at the end are being cut off.

  • @hhaavvvvii
    @hhaavvvvii 9 ปีที่แล้ว +2

    This was incredibly helpful, both in general and in my specific goal of writing an OTP doc page for Elixir's API reference docs. Thanks!

  • @LarsBahner
    @LarsBahner ปีที่แล้ว

    Thank you. Finally an alchymist the speaks human. Just Thank our💚

  • @BillGathen
    @BillGathen 8 ปีที่แล้ว +4

    A slightly cleaner link for the Erlang doc referenced at 3:30 is erlang.org/doc/design_principles/des_princ.html
    Exciting stuff!

    • @RsZ789
      @RsZ789 4 ปีที่แล้ว

      Thank you for this link Bill.