Skip to main content

Basics of RxSwift & Reactive programming


RxSwift is a popular third-party library for the Swift programming language, written by Krunoslav Zaher. It enables reactive programming, providing a way to work asynchronous and event-driven code. It helps developers write a clean, easier to manage code, allowing to work with async data streams more effectivly.

Reactive programming

Reactive programming uses so called declarative paradigm, focused on handling asynchronous data streams and event driven programming.
This paradigm allows developers to write in style as to how should application react to state changes dynamically.

Key concepts

  • Streams and Observables: Data flows continuously while app reacts to events in real time
  • Event-driven architecture: Instead of polling for updates, reacts to them
  • Backpressure handling: Option to implement various techniques to ensure that the system don't get overwhelmed by excessive data
  • Publisher/Subscriber pattern: Components communicate efficiently without blocking execution
Reactive programming is used widely for Web Development, microservices and UI Frameworks to create responsive and scalable applications.

Comments