《Distributed Programming With Ruby》读书笔记五 RingyDingy (Part2 chapter3)

Part II Third-Party Frameworks and Libraries
     The first part of this book takes a deep dive into two main libraries: DRb and Rinda
  • Chapter3: RingyDingy
    • Including 6 parts:
      • Installation
      • Getting Started with RingyDingy
      • "Hello World" the RingDingy Way
      • Building a Distributed Logger with RingyDingy
      • Letting RingyDingy Shine
      • Conclusion
    • Installation
      • command:     gem install RingyDingy
      • show:   Successfully installed RingyDingy-1.6
    • Getting Started with RingyDingy
      • a quick look at what options are available on ring_server
      • start our RingyDingy RingServer with command
      • ring_server --v
      • we get:
    • "Hello World" the RingyDingy Way
      • Our server code for the Rinda “Hello World” application remains largely unchanged to use with RingyDingy
      • server:
      • we will see output similar to the following for our RingyDingy RingServer:
      • client:
      • output:
    • Binding a Distributed Logger with RingyDingy
      • RingyDingy allows us to DRY up our server code a bit. We no longer have to remember a whole lot of messy Rinda API calls. Instead, we can wrap it up with a line or two of RingyDingy code. Let’s look at our “Distributed Logger” application to see how we can make it more DRY.
      • server
      • client
      • ring_server output
      • server output
      • client output
    • Letting RingyDingy Shine
      • One of the better features that the RingyDingy ring_server binary gives you for free is the ability to list available services.
      • We can also gain access to this same information programmatically.An example: page85
    • Conclusion

posted on 2016-12-18 22:16  Liz-  阅读(132)  评论(0编辑  收藏  举报