---
title: Meter Integration Options
slug: IRke1XEcbdNHdHJ5fWHjK
docTags: 
createdAt: 2024-07-09T15:03:59.326Z
---

A successful usage-based business model with metered billing is built on the foundation of an **accurate usage data collection strategy**.

Amberflo provides multiple easy ways to begin collecting data without the need to re-tool your systems.

## SDK

Using the Amberflo SDK gives you:

- More control
- Immediate feedback via response codes
- Support for batching records
- Flush-on-demand functionality

**Batching Records**
Amberflo SDKs are designed to support **high-throughput environments**.

You can confidently:

- Send **hundreds of meter records per second**
- Deploy the SDK on web servers handling **high volumes of traffic**
- Ensure accuracy and availability **from day one**

**How it works:**

Each call is **queued in memory**, not sent immediately over HTTP. Messages are **batched and flushed in the background**, allowing for much faster performance.

You can configure the **batch size&#x20;**&#x61;nd th&#x65;**&#x20;flush rate.**



**Flush on demand (Blocking call)**
You can **flush the queue manually**—for example, at the end of your program—to ensure no data is left unsent. Just call the flush method:

`metering.flush()`

**Important:**
This is a **blocking call**—it will pause the calling thread until the queue is empty.
We recommend using it only in **cleanup scripts**, not during request processing.

## Non-SDK

We **strongly recommend using our SDK for AWS S3**, as it offers the best of both worlds:

1. Access to **rich SDK features** (see above)
2. Guaranteed **AWS S3 uptime SLA** for meter ingestion

However, we fully support cases where using a third-party SDK isn’t possible or preferred. In such scenarios, Amberflo offers multiple alternatives:

**Amberflo Application**
The Amberflo web application provides a **rich set of real-time dashboards** for visualizing:

- **Usage**
- **Revenue**

Dashboards can be filtered by:

- **Customer**
- **Meter name**
- **Custom dimensions**

**Amberflo API**
Amberflo is an **API-first platform**. Every feature and object can be accessed programmatically via our APIs and SDKs.

**AWS S3**
Amberflo provides access to an **Amazon S3 bucket** with predefined **permissions and controls&#x20;**&#x74;o write meter data directly.

[S3 Ingestion](docId\:bpsQYJmbb-xO1x9uHMB1T)&#x20;

**Logging Systems**
Many companies already use **centralized logging infrastructure** (e.g., **AWS CloudWatch**) for operational insights.

While logging systems aren't built specifically for metering, they can serve as a **"catch-all"** for usage data streams because they’re deeply integrated into your systems.

Amberflo supports this approach by:

- Allowing you to **write meter events to your logging system**
- **Extracting** meter events from it using supported connectors

We currently provide a connector for **AWS CloudWatch** ([see Connector to AWS CloudWatch](docId\:R-qosXvSCtQab16a83uzk) ). We’re continuously adding **new out-of-the-box integrations**—check the **Integrations&#x20;**&#x73;ection for updates.&#x20;

If you have a specific request, please contact us.

See [Log Ingestion](docId\:R-qosXvSCtQab16a83uzk)&#x20;

