Executes transactions for users. Stores the user account information. It's got a lot more going on, too.
git clone https://github.com/DistributedDesigns/worker.git
cd worker
.scripts/install
# Assumes there's a RMQ and Redis instance running in docker
# Run with one of
$GOPATH/bin/worker -n 1
go run *.go -n 1Runtime flags of interest
- -l, --log-levelSets the... log level.
- -n, --worker-numMandatory ID for the worker. Yes, each worker should have a unique ID.
- -a, --no-auditDon't send messages to the audit server.
cat workload.txt | grep QUOTE | head -n 10 | xargs -d '\n' redis-cli -h localhost -p 44431 RPUSH worker:1:pendingtx- MacOS (BSD) xargsdoesn't have-doption. Installfindutilsfrom Homebrew then substitutegxargs