《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
时间: 2024-11-08 22:30:07

《Distributed Programming With Ruby》读书笔记五 RingyDingy (Part2 chapter3)的相关文章

《Distributed Programming With Ruby》读书笔记一Drb:Hellowold and Pass by Reference

<Distributed Programming With Ruby>Mark Bates Preface: The author was using Java and RMI(remote method invocation) as distributed interface in 2001. To solve performence problems, he found DRb. "I was already impressed with Ruby for being a ter

《Programming Hive》读书笔记(一)Hadoop和hive环境搭建

<Programming Hive>读书笔记(一)Hadoop和Hive环境搭建 先把基本的技术和工具学好,才能更高效地思考和工作. Chapter 1.Introduction 简介 Chapter 2.Getting Started 环境配置 Hadoop版本会更新,以官方安装教程为准 http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/SingleCluster.html#Standalone_O

Distributed Programming With Ruby》读书笔记六 Starfish, Distribunaut and Politics (Part2 chapter4-6)

Chapter4: Starfish (海星?)这样的例子有时间换linux的环境试一下吧 Starfish1 bills itself as "a utility to make distributed programming ridiculously easy." I think that is a bit of an overstatement, but Starfish certainly can make distributed programming easier. Thi

《算法导论》读书笔记(五)

摘要: 本章介绍了二叉查找树的概念及操作.主要内容包括二叉查找树的性质,如何在二叉查找树中查找最大值.最小值和给定的值,如何找出某一个元素的前驱和后继,如何在二叉查找树中进行插入和删除操作.在二叉查找树上执行这些基本操作的时间与树的高度成正比,一棵随机构造的二叉查找树的期望高度为O(lgn),从而基本动态集合的操作平均时间为θ(lgn). 1.二叉查找树 二叉查找树是按照二叉树结构来组织的,因此可以用二叉链表结构表示.二叉查找树中的关键字的存储方式满足的特征是:设x为二叉查找树中的一个结点.如果

《Distributed Programming With Ruby》读书笔记三 Hello World Rinda and TupleSpace (Part1.2-1)

Chapter2: Rinda Including 7 parts: "Hello World" the Rinda Way Understanding Tuples and TupleSpaces Callbacks and Observers Security with Rinda Renewing Rinda Services Conclusion Endnotes When reviewing all of our DRb applications, you will noti

Distributed Programming With Ruby》读书笔记七 Starling and AMQP/RabbitMQ (Part3 chapter7-8)

Part III Distributed Message Queues Part III breaks from this "traditional" approach of distributed computing and looks at distributed message queues. Chapter7 Starling:  Including 9 parts: What Is a Distributed Message Queue? Installation Getti

《Distributed Programming With Ruby》读书笔记二 Security and ID Conversion (Part1.1-2)

Security Although DRb provide some security, they fall short of a full, comprehensive solution. This can make DRb less than desirable in a lot of real world situations. However, in situations where security is a lesser concern,such as prototyping and

悟道—位IT高管20年的职场心经(读书笔记五)

悟道--一位IT高管20年的职场心经 第五章 搞定老板 "老板就是老板" 这一点,你可能会忘了,他一定不会忘: "老板不会总是老板" 这一点,他可能会忘,你最好别忘. 1.1  谁是老板 老板手上有的权力,你应该尊重.权力,意味着资源. 1.2  三招搞定老板 尊重老板由于他毕竟是你的老板: 把老板当客户,善用老板的资源! 老板的资源:权力.能力.经验.信息. 1.3  请示的学问:该不该请示 和自己的老板沟通,理解老板的性格特点,然后做事. 1.4  请示的学问:

Android驱动开发读书笔记五

第五章 本章介绍了S3C6410开发板的功能,开发板的不同主要是在烧录嵌入式系统的方式不同,以及如何在此开发板上安装Android. 1.安装串口调试工具minicom 首先需要一根USB转串口线,由于安装的是Ubuntu Linux所以需要按照以下步骤.配置和测试minicom (1).检测当前系统是否支持USB转串口 命令lsmod  | grep usbserial (2)安装minnicom apt-get install minicom (3)配置minicom minicom -s,