Skip to content

Kotlinx RPC

The kotlinx.rpc library allows you to implement Remote Procedure Calls (RPC) more easily by generating boilerplate code behind the scenes for you.

To enable kotlinx.rpc support, add the following to the module.yaml file of each client or server module, and each module declaring @Rpc services:

settings:
  kotlin:
    rpc: enabled

This will automatically:

  • enable code generation for your @Rpc services via the kotlinx.rpc compiler plugin
  • apply the kotlinx.rpc BOM (Bill of Materials) to align the versions of the RPC-related artifacts
  • add some useful library catalog entries starting with $kotlin.rpc.