workers

package
v0.0.0-...-9835270 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: AGPL-3.0, 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 model.AppServiceDatabase,
	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