-
Notifications
You must be signed in to change notification settings - Fork 24
Understanding Volos.js
Volos.js is a set of Connect-compatible services that make it possible for developers to easily add common API design patterns like security and traffic management to their code.
Volos.js includes Node.js modules for adding these features to an API:
-
Caching: Response caching that can be configured by URI or custom function.
-
Analytics: Analytics that can published to Apigee Edge Analytics.
-
OAuth 2.0: Full OAuth 2.0 Server or OAuth 2.0 proxy to Apigee Edge.
-
Quota: Quota on a per-API, per-resource, per-header or per-parameter basis, or with a customized function.
Developers can choose to configure Volos.js to run in several different modes:
-
Deployed on Apigee Edge: When Volos applications are deployed to the Apigee platform, they will take advantage of local optimizations so that they run with the best possible availability and performance. They can also add optimizations such as detailed API analytics.
-
Deployed anywhere: Volos.js can run in any environment that supports Node.js and communicate with Apigee Edge using APIs, so that the full power of Apigee can be used to manage and configure developers, apps, and APIs.
-
Standalone mode: Volos.js supports a standalone mode that relies entirely on open-source components.
Note: If you run Volos.js on Apigee Edge or in conjunction with Apigee Edge, you must have an Apigee account and deploy a special proxy to Edge. The deployment steps are simple, and are covered here. (TBD -- add link)
You can deploy and run the entire API implementation on the Apigee Edge platform.
- An app makes an API call to Apigee Edge.
- Volos leverages direct access to Apigee Edge Services.
- The API call is processed using the normal Apigee Edge flow.
Running locally or deployed to any Node.js environment of your choice, your API make calls to Apigee Edge to handle activities like caching, quota management, and OAuth. Volos provides the glue that binds together your API implementation and Apigee Edge.
- The app makes an API call and the endpoint is the Apigee agent (Volos.js).
- Volos.js calls Apigee Edge to perform OAuth, Quota, or Caching. Volos.js only sends metadata to Edge, not the API payload.
- Edge returns a response indicating whether to allow the API call.
- If allowed, the API call is proxied to the Node.js API implementation.
- The API response is returned from the API implementation.
- (Optional) Metadata is sent to Edge for centralized analytics and monitoring.
You can also run your API locally, with caching and quota information either stored in-memory or in a Redis key/value store. A simple configuration lets you chose between the two.
- Volos.js on GitHub
- Examples link
- Getting started training sample
Having Trouble? Try posting your question to the Apigee Community. Or, for more links and resources, check out our Help Page
Need help? Visit the Apigee Community ! |
---|
-
Getting started
-
Add policies to your API
-
Add security policies
-
Deploy your projects
-
Programmatic hooks
-
Good to know about
-
Deep dives
-
Reference topics
-
Troubleshooting and getting help
-
Related resources