# Message queue integration

**URL:** https://forum.heroiclabs.com/t/message-queue-integration/2215
**Category:** Local Setup
**Created:** [December 27, 2021, 3:02pm UTC](https://forum.heroiclabs.com/t/message-queue-integration/2215 "2021-12-27T15:02:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![tunglt1810](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/tunglt1810/32/924_2.png) [@tunglt1810](https://forum.heroiclabs.com/u/tunglt1810)
#### Post date: [December 27, 2021, 3:02pm UTC](https://forum.heroiclabs.com/t/message-queue-integration/2215/1 "2021-12-27T15:02:38Z")

</div>

Hi guys,

I’m a newbie with Nakama and looking into Event concept at [Events - Heroic Labs Documentation](https://heroiclabs.com/docs/nakama/concepts/events/)

If i want to integrate Nakama with an asynchronous process through a message queue, what should i do?  
In my imagine, i can write an aditional module which can:

- Connect to the message broker and listen a topic
- Use Nakama API to do something when handle the event

Please correct me if i wrong and guide me.

Thank you

---

<div class="post-metadata">

### Author: ![mofirouz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/mofirouz/32/1523_2.png) [@mofirouz](https://forum.heroiclabs.com/u/mofirouz)
#### Post date: [December 27, 2021, 5:20pm UTC](https://forum.heroiclabs.com/t/message-queue-integration/2215/2 "2021-12-27T17:20:01Z")

</div>

The Events system in Nakama is a two-parter;

#1. Publishing events from within Nakama to the Event queue (Only for events that are generated by Nakama and your custom runtime code.)

#2. Processing events in the queue out of band of where the publishing has happened.

Where #2 happens is where you can hook up your own messaging brokering system (forward msgs onwards).
