workers

package
v0.3.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupTransactionWorkers

func SetupTransactionWorkers(
	appserviceDB storage.Database,
	workerStates []types.ApplicationServiceWorkerState,
) error

SetupTransactionWorkers spawns a separate goroutine for each application service. Each of these "workers" handle taking all events intended for their app service, batch them up into a single transaction (up to a max transaction size), then send that off to the AS's /transactions/{txnID} endpoint. It also handles exponentially backing off in case the AS isn't currently available.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL