# Dealing with the limited messagebus backlog

**URL:** <https://meta.discourse.org/t/dealing-with-the-limited-messagebus-backlog/61436>\
**Category:** Development\
**Created:** [April 22, 2017, 10:43am UTC](https://meta.discourse.org/t/dealing-with-the-limited-messagebus-backlog/61436 "2017-04-22T10:43:06Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [April 22, 2017, 10:43am UTC](https://meta.discourse.org/t/dealing-with-the-limited-messagebus-backlog/61436/1 "2017-04-22T10:43:06Z")

</div>

Continuing the discussion from [Who's Online Plugin](https://meta.discourse.org/t/whos-online-plugin/52345/62):

My plugin relies on receiving every message on a messagebus channel, in order, with no gaps.

As I understand it, if the client loses connection, it should receive all the messages it missed when connection is regained.

However… it seems the server only stores the last 100 messages, and so if the client misses more than 100 messages, it all goes horribly wrong.

One way I can think of dealing with this is for each client to check the `message_id` of each message and check it is 1 greater than the previous message it received. If not, get the missing information by some other method.

Is this problem faced in Discourse itself anywhere, and is there a more elegant solution?

---

_[View the full topic](https://meta.discourse.org/t/dealing-with-the-limited-messagebus-backlog/61436)._
