Forge remote invokation limits

Hi,

I’m exploring Forge remote and it is unclear to me if the invocation limits in the Forge Platform quotas and limits apply to it. Specifically, if I use invokeRemote 5 times in a Forge FaaS to communicate with my own servers, does it count as 5 invocations plus 1 Forge FaaS invocation, a total of 6 invokations? Do these invocations affect the 500 invocations per 25 seconds sliding window limit?

Here’s a code snippet for the example above:

const resolver = new Resolver();

resolver.define("call-remote-api", async (req) => {
	const respones = Promise.all(
		[...Array(5).keys()].map(async () => {
			const res = await invokeRemote("remote-resolver-key", {
				path: "/frc-backend",
				method: "POST",
				headers: {
					"Content-Type": "application/json",
				},
				body: JSON.stringify({
					context: req.context,
				}),
			});
			// rest of code
		}),
	);
});

export const handler = resolver.getDefinitions();

Hi Erik

If you perform a single call to the call-remote-api resolver which in turn makes 5 calls to your remote backend it will be counted as a single Forge FaaS invocation and 5 egress Network requests.

Apologies that this isn’t clearer in the Forge Docs I will work with our team to improve this.

2 Likes