Trait AsyncDirectNominalChannelWriterService

Source
pub trait AsyncDirectNominalChannelWriterService {
    // Required method
    fn write_batches(
        &self,
        auth_: BearerToken,
        request: WriteBatchesRequest,
    ) -> impl Future<Output = Result<(), Error>> + Send;
}
Expand description

Writes data points directly to Nominal’s managed database offering.

Required Methods§

Source

fn write_batches( &self, auth_: BearerToken, request: WriteBatchesRequest, ) -> impl Future<Output = Result<(), Error>> + Send

Synchronously writes batches of records to a Nominal data source. This endpoint bypasses the Channel Writer service entirely, and should only be used if the implications are well understood.

If you call this endpoint, writes will go directly into Nominal DB and will not be placed in Nominal’s durable queue. This results in lower latency, but also consequently lower durability.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§