O'Reilly logo

Clojure Reactive Programming by Leonardo Borges

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

Building a stock market monitoring application

Our stock market program will consist of three main ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required