Does Apigee Edge Support node modules like level which stores data on disk ?

I am trying to deploy & run node app which store some data in file based key / values pairs. Node APP is built using Apigee-127 and deployed to Apigee Edge.

It doesn't work on Apigee Edge but works fine on local. Does Apigee Edge allows Node Process to create files on disk in cloud environment ?

Solved Solved
0 3 436
1 ACCEPTED SOLUTION

Not applicable

Hi @Anil Sagar,

Disk write is restricted at cloud environment as it can have severe impact on the operations. For the same reason, MessageLogging policy can't write to local disk in the cloud environment. This should work fine for Private cloud.

Cheers, Rajesh Doda

View solution in original post

3 REPLIES 3

Not applicable

Hi @Anil Sagar,

Disk write is restricted at cloud environment as it can have severe impact on the operations. For the same reason, MessageLogging policy can't write to local disk in the cloud environment. This should work fine for Private cloud.

Cheers, Rajesh Doda

Thank you @rdoda, that was super quick !!

Not applicable
Old question I know but you have two issues here. First, Node modules that rely on native code aren't supported in Edge. So if "level" is the module you're using, and it's based on Google's "LevelDB" C++ library, then it won't work at all. Second, while each Node app deployed to Edge can read and write to its own part of the disk, there are multiple copies of your app running at all times (always at least two). API calls will be load balanced between them. So in practice, using the local disk to store data only makes sense as a cache, if it's OK with you that different API calls will talk to different databases.