Skip to main content
Version: 2.33.1

Getting Started with Aperture

Aperture is available as a managed service, Aperture Cloud, or can be self-hosted within your infrastructure.

1. Sign up to Aperture Cloud

For signing up, head over to Aperture Cloud. For detailed instructions, refer to our step-by-step guide.

2. Pick your Integration

These are two main modes on how to get started with Aperture.

The Serverless mode is the quickest way to start using Aperture.

Aperture Serverless Architecture Aperture Serverless Architecture

3. Get your API key

In Aperture Cloud, authentication for SDK integrations is handled using API keys. These keys can be found in the Aperture Cloud UI. For detailed instructions on locating API Keys, refer to the API Keys section.

4. Install SDK and Define Control Points

Aperture provides SDKs for various languages. You can find the SDKs and installation instructions here.

npm install @fluxninja/aperture-js

Connect to Aperture Cloud by creating an Aperture Client with your organization's address and API Key.


Define a Control Point

Once the SDK is connected to Aperture Cloud, you can create a feature control point anywhere within your code. For example, before executing the business logic of a specific API, you can create a feature control point that can control the execution flow of the API and can reject the request based on the policy defined in Aperture.

Let's create a feature control point in the following code snippet.

The code snippet below shows how to wrap your Control Point within the StartFlow call while also passing labels to Aperture Agents.

  • The function Flow.ShouldRun() checks if the flow allows the request.
  • The Flow.End() function is responsible for sending telemetry.

This is how you can create a feature control point in your code. The complete example is available here.

5. Create Your Policy

Within the Aperture UI, navigate to the policy in tab in the sidebar menu, and click the Create Policy button in the upper-right corner. There you can pick the blueprint that best aligns with your needs. After a few clicks, you'll be directed to a screen where you can input the necessary parameters to generate the policy.

Rate Limiter Blueprint Rate Limiter Blueprint Rate Limiter Dashboard Rate Limiter Dashboard

For more details on how to create a policy, follow our step-by-step guide.