Using Azure Function to call functions instead of inside the Forge

Hi,
I am trying to make a function that utilizes Storage API to set up a database. Idea is that it goes through spaces in the confluence and creates a certain data inside the storage. This function would run periodically.

The problem arises from the fact that forge has a time limit of 25 seconds on the functions and 55(I think?) if I use consumer module. But the problem is that there are many spaces and it will eventually take up more than 55 seconds.

I decided to run this function through Azure function with time trigger hoping that it would go around the forgeā€™s limitation. The question is that: 1. Is it even possible to bypass forgeā€™s limit if I was to run it through azure function. 2.If so, is it even possible to use Storage API from Azure Function? 3. How do I call REST API for confluence in Azure Function without requestConfluence?

Thanks

Welcome to the Atlassian developer community @JunheokCheon,

The general concept of running ā€œoff Forgeā€ is called Forge Remote. While this is intended for arbitrary computing needs, there are still limits that would affect your app, like the storage quotas. But I think this meets many of your needs.

Forge Remotes are not subject to invocation time limits by Forge itself.

Yes. You can access Forge Storage from a Remote.

Your Azure Function would need to implement a specific auth flow and then it can call product APIs.

1 Like

Thank you!
I will have thorough look over this documentation.
I think this answers my questions.

1 Like