# Aerospike Async configuration

**URL:** <https://discuss.aerospike.com/t/aerospike-async-configuration/7672>\
**Category:** Java Client\
**Tags:** java\
**Created:** [July 21, 2020, 4:01pm UTC](https://discuss.aerospike.com/t/aerospike-async-configuration/7672 "2020-07-21T16:01:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joe36](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/joe36/32/1470_2.png) [@Joe36](https://discuss.aerospike.com/u/Joe36)\
**Post date:** [July 21, 2020, 4:01pm UTC](https://discuss.aerospike.com/t/aerospike-async-configuration/7672/1 "2020-07-21T16:01:36Z")

</div>

Hey, I’m using Aerospike as a KV storage in my app. I have few questions related to Aerospike Async configuration.

1.EventLoop configuration. There is a best practice guidance on how to configure the client? for example: maxCommandsInProcess, How should I know what is the right number to set?

1. My application is written in Vert.x Java. Aerospike use Netty and for that we need to use eventloop. Since Vertx already handle the event loops within the framework what is the best option to implement it?

Thanks

---

<div class="post-metadata">

**Author:** ![Brian](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/brian/32/2211_2.png) [@Brian](https://discuss.aerospike.com/u/Brian)\
**Post date:** [July 22, 2020, 12:29am UTC](https://discuss.aerospike.com/t/aerospike-async-configuration/7672/2 "2020-07-22T00:29:26Z")

</div>

1. If you plan to provide your own throttle for the event loops, then leave maxCommandsInProcess at 0. If you want the client to throttle commands for you, set maxCommandsInProcess to 40. Then, slowly adjust maxCommandsInProcess up/down and measure performance changes. Optimal maxCommandsInProcess will differ depending machine configuration. Same goes for the number of event loops.

2. Netty event loops can be shared with AerospikeClient, but I don’t know enough about Vert.x to determine if Vert.x allows this as well.

---

<div class="post-metadata">

**Author:** ![Deepak\_Chougule](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/deepak_chougule/32/1711_2.png) [@Deepak\_Chougule](https://discuss.aerospike.com/u/Deepak_Chougule)\
**Post date:** [August 5, 2021, 6:21am UTC](https://discuss.aerospike.com/t/aerospike-async-configuration/7672/3 "2021-08-05T06:21:54Z")

</div>

Recently we have created an open-source aerospike reactive client for vertx, This is also listed in the aerospike [launchpad](https://aerospike.com/community/launchpad/). It provides reactive nonblocking functions out of the box, here is gihub [link](https://github.com/dream11/vertx-aerospike-client).

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/system/32/2274_2.png) [@system](https://discuss.aerospike.com/u/system)\
**Post date:** [October 28, 2021, 6:22am UTC](https://discuss.aerospike.com/t/aerospike-async-configuration/7672/4 "2021-10-28T06:22:23Z")

</div>

This topic was automatically closed 84 days after the last reply. New replies are no longer allowed.
