My team is currently working on a way to quickly mock up a large number of APIs (>50) for use in proof of concept type applications. We want to be able to build these using only a JSON file containing data in the correct structure as input. We are planning to use json-server (https://github.com/typicode/json-server) and push a simple server out to Edge. After we will use a script we wrote to generate the documentation.
As these APIs would begin being hit we are curious whether there will be any load issues with a potentially large number of node servers being spun up all at once. Could this approach be taken to production?
Can anyone validate this approach or if it won't work suggest another one?
Answer by srinandans@google · Jun 27, 2016 at 05:30 PM
Why don't you use BaaS?
I'm still somewhat new to the platform so it was more I already know node and it took me no time to have json-server up and running locally.
Part of the goal of these mock APIs will be to get other developers used to accessing a dev portal to 'shop' for APIs to use in their apps. Can I still do that in BaaS?
Answer by Dino
·
Jun 27, 2016 at 11:44 PM
Are you modelling the APIs? If you write an OpenAPI spec, then you can get mocking for free.
See apistudio.io
ok to have single api proxy with both node.js and regular target endpoints? 1 Answer
Sporadic/Intermittent issues with node js 1 Answer
node script error during high load conditions 1 Answer
How to get the return value of one node.js method in another nodejs script in Apigee? 3 Answers
Hosted targets Apigee - How to retrieve query params in index.js 1 Answer