Hi developer community.
We have in our team developed a custom serverless app to synchronize data between Mobile Iron and Freshservice.
What the app does, is to get all mobile devices in Mobile Iron, and then import or update assets in Freshservice. This is set to run one time each day, using the scheduling system.
The challenge we faced was that the application works fine when run from localhost, but failed when run as an installed app in freshservice.
This is due to the time limit of max 20 seconds for a response to be returned.
Our data sync takes about an hour to finish, therefore it will never work with this 20 second time limit.
Before we continue to develop a solution to this limitation, I wanted to hear if anyone here in the community have experience in running big data imports / synchronization from one system to freshservice. Here I’m thinking of a solution that needs to be run on a separate server and not as an installed app in freshservice.
I would also appreciate feedback on my idea on how we should develop this solution which is:
- Create a node.js app with the logic from the custom serverless app.
- Use a schedule system for node to run the import on specific times, reoccurring each day.
- Host the application on a server that can run node.js applications.
- Create an interface controller “custom app installed in freshservice” that can send and receive information from the application.
Do you see any trouble in building the solution like this.
Do you have any experience in similar or any dos and don’ts?
Best regards Jonathan