I am using key value mapping for retrieving some details needed for my application. But the number of keys will be increased in few months. So I am planning to use Baas for storing these values. Is it possible to retrieve data from api Baas in my api proxy? If so, how can I do that?
I want those values in my Proxy endpoint preflow. Based on that value that I retrieve from api Baas I will do some operations such as setting header values and setting up quota limits.
For this you will have to point your API to a node app . In the node app make a connection to the baas and retrieve the data entities from it.
Here are some of references with examples on how to retrieve collections/entities from baas
Refer :
https://docs.apigee.com/app-services/content/querying-your-data
https://docs.apigee.com/app-services/content/retrieving-collections
Hope it helps
How many keys are expected?
From performance and maintainability perspective, I would suggest to continue use of KVM. FYI - KVM can have data up to MBs and are really good solution for configuration data.
Now I have made a POC which doesn't require much keys. For the real application (sass) the number of keys will be around 100K and in a year it will double.
User | Count |
---|---|
5 | |
2 | |
2 | |
1 | |
1 |