While event-driven programming might revolve around events, in reactive programming, we deal purely with data. In other words, every time we receive a new piece of data, we consider this to be an event. Due to this definition, you could technically call it a branch of event-driven programming. However, due to its popularity and the differences in the way it does things, I couldn't help but put reactive programming in a chapter of its own.
In this chapter, we will dive deeper into one of the most popular libraries available in Python when it comes to reactive programming, RxPY
. We'll cover in depth some of the features of this library and how we can utilize this to create our own asynchronous programs.
We'll come to terms with some of the basics necessary of RxPY
to get us started:
- Dealing with observers and observables
- Lambda functions and how we can use them
- The multitude of operators and how we can chain these to achieve a desired state
- The differences between...