The main limits are more to do with the environment and stack you’re using. The REST APIs are a thin layer above the Java API (so not much hit there, unless your network/authentication impacts it), then the Java API for querying process instances is mostly limited by the DB performance.