# Guarantee Event Order with RxJS

DevFeed: [Guarantee Event Order with RxJS](<https://devfeed.tech/articles/guarantee-event-order-with-rxjs-21393.md>)

Original publisher: [Read original article](<https://juri.dev/blog/guarantee-event-order-with-rxjs/>)

Published: 2019-01-16T00:00:00Z

Content type: article

Language: en

Sources: [Juri Strumpflohner](<https://devfeed.tech/sources/juri-strumpflohner.md>)

Topics: [switchMap](<https://devfeed.tech/topics/switchmap.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>), [Web app](<https://devfeed.tech/topics/webapp.md>), [Publish-subscribe pattern](<https://devfeed.tech/topics/pubsub.md>), [event driven](<https://devfeed.tech/topics/event-driven.md>)

Tags: [angular](<https://devfeed.tech/tags/angular.md>), [async](<https://devfeed.tech/tags/async.md>), [concatmap](<https://devfeed.tech/tags/concatmap.md>), [mergemap](<https://devfeed.tech/tags/mergemap.md>), [ordering](<https://devfeed.tech/tags/ordering.md>), [rxjs](<https://devfeed.tech/tags/rxjs.md>), [switchmap](<https://devfeed.tech/tags/switchmap.md>), [user-interaction](<https://devfeed.tech/tags/user-interaction.md>), [user-interface](<https://devfeed.tech/tags/user-interface.md>)

## AI overview

In the checkbox example, checking an option starts an asynchronous request to add its value, while unchecking removes it immediately. A quick check-then-uncheck can leave the option unselected but still add its value later when the slower request returns. The excerpt proposes piping selection events through an RxJS subject and processing them one at a time, so an uncheck waits for any earlier request to finish. It mentions mapping values to inner observables and emitting in order, but the operator name and implementation are omitted from the excerpt.

## Source excerpt

Lorem ipsum dolor sit amet