Serialized RPC arguments or return values are limited to 1MiB

When trying to move to a Service Binding oriented architecture between workers, I bumped into the following error:

Serialized RPC arguments or return values are limited to 1MiB


This is happening when trying to transmit a large dataset through a service binding to the worker that handles DB operations. The array of data (trimmed as much as possible to an array of arrays) is just over 1 MB in size.

It feels strange that I may need to break this data up into multiple RPC calls to get past this limitation when doing it over HTTP worked just fine.

  1. Is it possible to up this limit for a worker?
  2. Do I have other options?
Thanks!
Was this page helpful?