Getting Started
Amberflo SDKs
1 min
using the amberflo sdks gives you greater control over meter event submission and provides immediate feedback through response codes the sdks also support batching and flushing, which are designed for high performance environments batching records amberflo sdks are optimized for high throughput use cases , allowing you to safely submit hundreds of meter records per second for example, you can deploy the sdk on a web server handling a high volume of requests without impacting performance each meter event is not sent individually instead, events are queued in memory and batched in the background these batches are then flushed periodically, enabling much faster and more efficient operation both the batch size and flush interval can be configured to suit your needs flush on demand (blocking call) in some cases, you may want to flush all queued records manually—for example, at the end of a script or service to do this, simply call metering flush() important this is a blocking call it will pause the calling thread until all queued messages have been successfully flushed for this reason, it should only be used during shutdown or cleanup operations, not as part of your normal request handling logic