-
Notifications
You must be signed in to change notification settings - Fork 24
Understanding Volos.js
Volos.js is a set of Connect-compatible services written in Node.js 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 services 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.
-
Spike arrest: Protects against traffic spikes.
Developers can choose to configure Volos.js to run in several different modes:
-
Standalone mode: Volos.js supports a standalone mode that relies entirely on open-source components.
-
Deploy anywhere, use Apigee Remote Services: 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.
-
Deployed on Apigee Edge: When Volos.js 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.
Note: If you run Volos.js on Apigee Edge or in conjunction with Apigee Edge, you must have an Apigee account and deploy a the Apigee Remote Proxy to Edge. If you use Apigee-127 this is handled for you when you create an account configuration with Apigee as the provider.
You can run your API anywhere and never have a dependency on Apigee Edge. Volos.js has libraries that enable you to use either memory or Redis for Caching, tracking Quotas and managing OAuth 2.0 Tokens. A simple configuration lets you chose between the two.
Volos.js is an open source project that uses a Service Provider Interface model to abstract Services such as Caching and Quota from Providers such as Apigee, in-memory and Redis. If you want to use a different provider you can fork the repository and give it a try yourself or open an Issue for us to take a look at.
Running locally or deployed to any Node.js environment of your choice, your API make calls to Apigee Edge to consume Services like quota management, OAuth and Analytics. Volos provides the glue that binds together your API implementation and Apigee Edge.
- Apps make API calls to the Node.js endpoint which uses Volos.js libraries.
- Volos.js calls the Apigee Remote Proxy in your Organization on Apigee Edge to consume the configured services such as OAuth or Quota and to send Analytics data. Volos.js only sends metadata to Edge, not API payloads, so you can feel comfortable with the security of your API payloads never leaving your network.
- For Quota and/or OAuth Edge returns a response indicating whether to allow the API call - either due to Quota or OAuth token validation.
- 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 deploy and run the entire API implementation on the Apigee Edge platform and take advantage of the full suite of API Management features on Edge. The Apigee Access module enables your Node.js API to consume Apigee services directly for Caching, Quota and OAuth with no code changes (really)!
- 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.
- 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