# IMQServiceOptions interface · @imqueue/rpc

Source: https://imqueue.org/api/rpc/latest/rpc.imqserviceoptions/
Published: 2026-08-04
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/rpc 3.5.3 — generated reference, not hand-written

Options accepted by an IMQ service.

**Signature:**

```typescript
export interface IMQServiceOptions extends IMQOptions 
```
**Extends:** IMQOptions

## Remarks

Extends the core queue options, so all transport settings — `host`, `port`, `prefix`, `safeDelivery`, `useGzip`, `cluster`, `logger` and the rest — are accepted and forwarded to the queue factory.

## Properties


| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [afterCall?](https://imqueue.org/api/rpc/latest/rpc.imqserviceoptions.aftercall/) |  | [IMQAfterCall](https://imqueue.org/api/rpc/latest/rpc.imqaftercall/)<[IMQService](https://imqueue.org/api/rpc/latest/rpc.imqservice/)> | _(Optional)_ Post-response hook. See [IMQAfterCall](https://imqueue.org/api/rpc/latest/rpc.imqaftercall/). |
| [beforeCall?](https://imqueue.org/api/rpc/latest/rpc.imqserviceoptions.beforecall/) |  | [IMQBeforeCall](https://imqueue.org/api/rpc/latest/rpc.imqbeforecall/)<[IMQService](https://imqueue.org/api/rpc/latest/rpc.imqservice/)> | _(Optional)_ Pre-dispatch hook. See [IMQBeforeCall](https://imqueue.org/api/rpc/latest/rpc.imqbeforecall/). |
| [childrenPerCore](https://imqueue.org/api/rpc/latest/rpc.imqserviceoptions.childrenpercore/) |  | number | Workers to fork per CPU core. Ignored unless [IMQServiceOptions.multiProcess](https://imqueue.org/api/rpc/latest/rpc.imqserviceoptions.multiprocess/) is true. |
| [metricsServer?](https://imqueue.org/api/rpc/latest/rpc.imqserviceoptions.metricsserver/) |  | [IMQMetricsServerOptions](https://imqueue.org/api/rpc/latest/rpc.imqmetricsserveroptions/) | _(Optional)_ Built-in metrics HTTP listener settings. |
| [multiProcess](https://imqueue.org/api/rpc/latest/rpc.imqserviceoptions.multiprocess/) |  | boolean | Fork one cluster worker per CPU core, multiplied by [IMQServiceOptions.childrenPerCore](https://imqueue.org/api/rpc/latest/rpc.imqserviceoptions.childrenpercore/). |
| [wrapCall?](https://imqueue.org/api/rpc/latest/rpc.imqserviceoptions.wrapcall/) |  | [IMQWrapCall](https://imqueue.org/api/rpc/latest/rpc.imqwrapcall/)<[IMQService](https://imqueue.org/api/rpc/latest/rpc.imqservice/)> | _(Optional)_ Around hook wrapping the method invocation. See [IMQWrapCall](https://imqueue.org/api/rpc/latest/rpc.imqwrapcall/). |

