BatchingHttpPubsubProducer

class Object
trait Matchable
class Any

Value members

Concrete methods

def resource[F[_] : Logger, A : MessageEncoder](projectId: ProjectId, topic: Topic, googleServiceAccountPath: Option[String], config: PubsubHttpProducerConfig[F], batchingConfig: BatchingHttpProducerConfig, httpClient: Client[F]): Resource[F, AsyncPubsubProducer[F, A]]

Create an HTTP PubSub producer which produces in batches.

Create an HTTP PubSub producer which produces in batches.

Value parameters:
googleServiceAccountPath

path to the Google Service account file (json), if not specified then the GCP metadata endpoint is used to retrieve the default service account access token See the following for documentation on GCP metadata endpoint and service accounts:

projectId

google cloud project id

topic

the topic to produce to

Source:
BatchingHttpPubsubProducer.scala