# Zeromq subscriber limitations

**URL:** <https://discuss.elastic.co/t/zeromq-subscriber-limitations/56841>\
**Category:** Logstash\
**Created:** [July 31, 2016, 9:39pm UTC](https://discuss.elastic.co/t/zeromq-subscriber-limitations/56841 "2016-07-31T21:39:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fikse](https://avatars.discourse-cdn.com/v4/letter/f/c0e974/32.png) [@fikse](https://discuss.elastic.co/u/fikse)\
**Post date:** [July 31, 2016, 9:39pm UTC](https://discuss.elastic.co/t/zeromq-subscriber-limitations/56841/1 "2016-07-31T21:39:15Z")

</div>

I am using the zeromq output plugin for logstash which utilizes the pub/sub topology. I want to listen for events and increment a count in a database, but I'm afraid it would not be accurate if I had more than one subscriber node acting on the same message and updating the database simultaneously. How does zeromq prevent multiple subscribing nodes from acting on the published message?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 2, 2016, 10:12am UTC](https://discuss.elastic.co/t/zeromq-subscriber-limitations/56841/2 "2016-08-02T10:12:54Z")

</div>

You may need to ask that on a 0mq forum, not sure anyone here would know unfortunately.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:45am UTC](https://discuss.elastic.co/t/zeromq-subscriber-limitations/56841/3 "2017-07-06T04:45:26Z")

</div>


