You are previewing The Live Web: Building Event-Based Connections in the Cloud.
O'Reilly logo
The Live Web: Building Event-Based Connections in the Cloud

Book Description

Imagine a world in which your phone automatically mutes the ringer when you start watching a movie. Imagine a world in which your alarm clock sets itself based on your schedule and other information like the weather, the traffic, and your past behavior. Imagine a world in which the mundane parts of business travel or scheduling an appointment with a new doctor are automatically taken care of according to your preferences. That world is the Live Web. THE LIVE WEB: BUILDING EVENT-BASED CONNECTIONS IN THE CLOUD is a book about specific concepts, architectures, and technologies you can use to build these types of Live Web experiences. You'll discover specific techniques for building Live Web applications using the Kinetic Rules Language (KRL), designed from the ground up with the Live Web in mind, and the Kinetic Rules Engine. The premise of this book is simple, but profound: The Web of the future--the Live Web--will link our lives in ways we can hardly imagine... and you can start building that Web today.

Table of Contents

  1. Title Page
  2. Copyright Page
  3. Dedication
  4. Foreword
  5. Acknowledgments
  6. About the Author
  7. Contents
  8. Introduction
  9. Chapter 1 The Live Web
    1. Bad News from Your Radiologist
    2. The Live Web
    3. The Evolution of the Web
    4. The Cloud and Programmatic Access to Data
    5. The Real-Time Web
    6. Turning the Web Inside Out
    7. Events
    8. This Is Getting Personal
    9. Building the Live Web
    10. Endnotes
  10. Chapter 2 Events on the Live Web
    1. Events
    2. Event Processing
    3. Events on the Live Web
    4. Live Web Applications
    5. Endnotes
  11. Chapter 3 Event Expressions: Filtering the Event Stream
    1. Patterns and Filtering
    2. A Pattern Language for Events
    3. Finding Individual Events
    4. Event Scenarios
    5. Compound Events
    6. Eventex Examples
    7. Matching Scenarios
    8. Endnotes
  12. Chapter 4 Telling Stories on the Live Web
    1. Me and My Data
    2. Purpose and Intent
    3. Context and Correlation
    4. Impromptu Theater
    5. Endnotes
  13. Chapter 5 Architecting the Live Web
    1. Requirements of the Live Web
    2. The Kinetic Event Architecture
    3. Endpoints
    4. Processing Events
    5. Building an Endpoint
    6. Small Pieces Loosely Joined
    7. Endnotes
  14. Chapter 6 Live Web Rules
    1. Rules for Events
    2. The Kinetic Rule Language
    3. Your First Rule
    4. Rules Are Simply Conditional Actions
    5. What Happens When an Event Is Raised?
    6. Taking Action
    7. Compound Actions
    8. Expressions
    9. Declarations
    10. Functions
    11. Persistent Variables
    12. Programming in KRL
    13. Why Use the Kinetic Rule Language?
    14. Endnotes
  15. Chapter 7 Creating Contextual Web Experiences
    1. Context and Browsing
    2. Contextual Web Experiences
    3. KRL and the Web
    4. The Web Endpoint
    5. Web Events
    6. Actions in the Web Domain
    7. Examples of KRL in Action on the Web
    8. Context Enables the Live Web
    9. Endnotes
  16. Chapter 8 Using the Cloud
    1. dataset and datasource Declarations
    2. APIs and Built-In Libraries
    3. JSONPath Expressions
    4. Don’t Buy That Book!
    5. Key Management
    6. Example: Showing Tweets on My Blog
    7. Looping in KRL
    8. Seeing Your Friend’s Tweets
    9. Abstracting Cloud Services in KRL
    10. Using the Cloud
    11. Endnotes
  17. Chapter 9 Events Around the Web
    1. Endpoints
    2. Using Web Hooks and PubSubHubbub
    3. Building Endpoints
    4. Email
    5. Node.js and the Live Web
    6. An Evented World
    7. An Arduino-Powered Sprinkler Controller
    8. Building the Live Web
    9. Endnotes
  18. Chapter 10 Mobile and the Live Web
    1. A PBX in the Cloud
    2. Extending the TA Rule Set
    3. Using SMS
    4. An Interactive Voice Response System
    5. Beyond Voice: Mobile Live Web Applications
    6. Using KRL in Mobile Apps
    7. Going Mobile
    8. Endnotes
  19. Chapter 11 Building Event Networks
    1. Understanding Event Types
    2. Raising Explicit Events in the Postlude
    3. Automatically Raising Events
    4. The Explicit Event Action
    5. Explicit Events as Rule Abstractions
    6. Events and Loose Coupling
    7. Explicit Events for Error Handling
    8. Event Intermediaries
    9. Event Intermediary Patterns
    10. Complex Event Scenarios
    11. Explicit Events
  20. Chapter 12 Advanced KRL Programming
    1. A Blog in KRL
    2. Event Hierarchies
    3. Design Considerations
    4. Making the Back Button Work
    5. An Experiment in Loose Coupling
    6. Lessons Learned
    7. Changing the Event Hierarchy Again
    8. Building Loosely Coupled Applications
  21. Chapter 13 Business on the Live Web
    1. Ignoring the Attention Economy
    2. Privacy Matters
    3. Turning the Tables
    4. Business on the Live Web
    5. Creating Personal RFQs
    6. Anonymous eCommerce: Building a Real Fourth-Party Offer Application
    7. A Working Fourth-Party eCommerce System
    8. Endnotes
  22. Chapter 14 Designing Event Systems
    1. Life Events as Interaction Scripts
    2. Introducing Scott Phillips
    3. Personal Events
    4. The Timeline
    5. Understanding the Components
    6. Events
    7. Set Up an Appointment
    8. Understanding the Neck-Pain Scenario
    9. Limitations of the Neck-Pain Scenario
    10. Loosely Coupled Rule Sets
    11. Endnotes
  23. Chapter 15 Building the Live Web
    1. Why the Live Web?
    2. Why Now?
    3. Why KRL and KRE?
    4. Conclusion
    5. Endnotes
  24. Appendix A Lexicon
  25. Appendix B Resources
  26. Appendix C Getting Started with KRL
  27. Appendix D Event Semantics
  28. Appendix E The KRL Expression Language
  29. Appendix F The Evented API Specification
  30. Index