Book Image

Clojure Reactive Programming

Book Image

Clojure Reactive Programming

Overview of this book

Table of Contents (19 chapters)
Clojure Reactive Programming
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Bibliography
Index

Chapter 3. Asynchronous Programming and Networking

Several business applications need to react to external stimuli—such as network traffic—asynchronously. An example of such software might be a desktop application that allows us to track a company's share prices in the stock market.

We will build this application first using a more traditional approach. In doing so, we will:

  • Be able to identify and understand the drawbacks of the first design

  • Learn how to use RxClojure to deal with stateful computations such as rolling averages

  • Rewrite the example in a declarative fashion using observable sequences, thus reducing the complexity found in our first approach