Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
client: Expose future based submissions
Currently all the KCIDB submission APIs are synchronous, meaning we have network latency in the call which isn't ideal for large numbers of small submissions. The underlying BigQuery PubSub APIs offer an API based on futures which should hopefully allow us to do better here, allowing the client to submit data and then later check that it has actually been sent so that the PubSub library can batch I/O or do it asynchronously. This is already wired up at the publisher level so just add a top level client method which exposes the future based API. We may want to also expose something of the flow control parameters via the PublishFlowControl passed when creating the client, though the current defaults (1000 messages and 10Mb in flight) look reasonable. Signed-off-by: Mark Brown <broonie@kernel.org>
- Loading branch information