Question

Is it possible to execute server side code (something like Parse "Cloud Code") with Apigee, as backend for a mobile app as client?

I'd want to use the out of the box "App Services" functionality, but perform some extra stuff (like updating data) from the server side,

The only (naive?) way I can think of is this:

  • Have my own server running.
  • The mobile app uses standard "App Services" API on Apigee
  • If necessary, the client calls
    • some custom API on my server,
    • which lets my server call Apigee via REST to fetch data, calculate some results, and post the updated data Apigee
    • and then returns the result to the client

Sounds a bit complicated (especially in terms of handling authentication) - are there any best practices to achieve something like I described?

Thanks!

Was it helpful?

Solution

Consider App Services as your database in the cloud to which you can talk using APIs. Therefore, you really don't need that server in the between unless you are doing some heavy lifting in it. You could make that API call directly from the app.

Even if you want to have a back end server for your app, you can leverage the node.js functionality that Apigee Edge provides and have a server up and running in the cloud in quick time. More info can be found here

OTHER TIPS

If you want to do server side validation, you should use a Node.js proxy that incorporates Usergrid. This will allow you to perform a query on the database and do processing of the results. Check out this presentation: https://speakerdeck.com/timanglade/coders-workshop-at-i-apis. In particular, see Section 7, which discusses using Usergrid and Node.js.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top