# How to process messages strictly in the order they arrive?

**URL:** <https://discuss.elastic.co/t/how-to-process-messages-strictly-in-the-order-they-arrive/56790>\
**Category:** Logstash\
**Created:** [July 30, 2016, 11:12am UTC](https://discuss.elastic.co/t/how-to-process-messages-strictly-in-the-order-they-arrive/56790 "2016-07-30T11:12:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 30, 2016, 12:02pm UTC](https://discuss.elastic.co/t/how-to-process-messages-strictly-in-the-order-they-arrive/56790/2 "2016-07-30T12:02:13Z")

</div>

This is likely caused by a race between the pipeline workers. Start Logstash with `-w 1` to run a single pipeline worker and the problem should disappear.

---

_[View the full topic](https://discuss.elastic.co/t/how-to-process-messages-strictly-in-the-order-they-arrive/56790)._
