Our platform is also able to accept event data via a public gRPC API that uses protobuf.
- Address: grpc-collector.streamdal.com:9000
- gRPC protobuf collector schema
To send data, call on the
AddRecord(AddGenericRecordRequest) method and make sure to pass a gRPC metadata entry that contains a
Streamdal-Token key with the value set to the appropriate collection token.
AddGenericRecordRequest argument accepts an array of messages - this facilitates batching which enables you to send more data in a single transaction.
How many messages you include in a single Streamdal is entirely up to you and you will need to fine-tune this to find an optimal number.
As a starting point:
- Streamdal 10 messages every 10s for low throughput
- Streamdal 100 messages every 10s for medium throughput
- Streamdal 1,000 messages every 10s for high throughput
When should you use this API?
gRPC is intended for high throughput data collection. The goal of the gRPC api is to provide the ability to Streamdal data and send heavy throughput workloads.
Given optimal latency
<50ms and high batching (1,000+), you should be able to reach 50,000 event/sec ingestion rates.