Skip to content

Commit 20cfe58

Browse files
Ingestion & lambda best practices (#125)
Co-authored-by: Mano Toth <[email protected]> Co-authored-by: Mano Toth <[email protected]>
1 parent cb896c7 commit 20cfe58

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

send-data/ingest.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,3 +292,10 @@ All events stored in Axiom must have a `_time` timestamp field. If the data you
292292
</Note>
293293

294294
If you include the `_time` field in the ingested data, ensure the `_time` field contains timestamps in a valid time format. Axiom accepts many date strings and timestamps without knowing the format in advance, including Unix Epoch, RFC3339, or ISO 8601.
295+
296+
## Best practices for sending data to Axiom
297+
298+
When sending data into Axiom, follow these best practices to optimize performance and reliability:
299+
- **Batch events:** Use a log forwarder, [collector](#data-shippers), or [Axiom‘s official SDKs](#client-libraries) to group multiple events into a single request before sending them to Axiom. This reduces the number of API calls and improves overall throughput. Avoid implementing batching within your app itself as this introduces additional complexity and requires careful management of buffers and error handling.
300+
- **Use compression:** Enable gzip, zstd compression for your requests to reduce bandwidth usage and potentially improve response time.
301+
- **Handle rate limiting and errors:** Use [Axiom‘s official libraries and SDKs](#client-libraries) which automatically implement best practices for handling rate limiting and errors. For advanced use cases or custom implementations, consider adding a fallback mechanism to store events locally or in cold storage if ingestion consistently fails after retries.

0 commit comments

Comments
 (0)