# RxSwift: Share, ShareReplay, replayAll

**URL:** <https://forums.kodeco.com/t/rxswift-share-sharereplay-replayall/42369>\
**Category:** RxSwift\
**Created:** [May 8, 2018, 8:43am UTC](https://forums.kodeco.com/t/rxswift-share-sharereplay-replayall/42369 "2018-05-08T08:43:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thuchau](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@thuchau](https://forums.kodeco.com/u/thuchau)\
**Post date:** [May 8, 2018, 8:43am UTC](https://forums.kodeco.com/t/rxswift-share-sharereplay-replayall/42369/1 "2018-05-08T08:43:11Z")

</div>

I’m new bie in Rxswift, I don’t know the different between:

publish()  
replayAll()  
replay(bufferSize)  
share()  
shareReplay(bufferSize)  
shareReplayLatestWhileConnectred()

Anybody help to give me some example about them?

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [May 31, 2018, 4:56pm UTC](https://forums.kodeco.com/t/rxswift-share-sharereplay-replayall/42369/2 "2018-05-31T16:56:20Z")

</div>

@thuchau Please check out our Reactive Programming with Swift book when you get a chance:

[https://store.raywenderlich.com/products/rxswift](https://store.raywenderlich.com/products/rxswift)

I hope it helps. Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [October 22, 2018, 12:43am UTC](https://forums.kodeco.com/t/rxswift-share-sharereplay-replayall/42369/3 "2018-10-22T00:43:41Z")

</div>

Closed on October 22, 2018, 12:43am UTC

This topic was automatically closed after 166 days. New replies are no longer allowed.
