A powerful tool in a subscriber tool kit is the use of backpressure, to control how much data you receive. In this video you will learn more on the use of Demand and backpressure.
- [Narrator] Backpressure is a quite overlooked, … yet powerful control knob in Combine. … We will spend a few minutes going through … what backpressure is, and why you'd want to make use of it. … In Combine, remember publishers only … exist because of subscribers. … As if often called a pull design, not a push design. … Being a Subscriber-centric paradigm the … subscriber tells the publisher it wants a subscription. … It wants to ingest values emitted from the publisher. … And also specify how many to ingest. … Backpressure can be thought of as a tap, … and you set the tap, or demand, of how much … flow to be delivered through the tap … continuously by turning the knob. … Which then increases the demand incrementally, … or vice versally decreases. … As part of controlling down stream values, … you have a few options at your disposal. … Within your normal operators, you can set various … buffering attributes such as with flatMap, … which would constrain upstream publishers to two, … ignoring additional publishers. …
- Functional reactive programming techniques
- Transmitting data with publishers
- Consuming data with subscribers
- Publishing data
- Creating a simple Combine data stream
- Calling REST APIs
- Handling errors
- Using testing
- Managing threads with schedulers
- Throttling publisher data
- Leveraging advanced operators
Skill Level Advanced
1. Introduction to Combine
2. Combine Fundamentals
3. Work with REST APIs
4. Advanced Concepts
Go forth and code1m 31s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.