This repository contains basic MariaDB, Maxwell and AWS SQS localstack configuration.
To run this example Docker installation is required.
More detailed documentation of the Maxwell daemon can be found here.
Use Makefile
to run all the examples. To list all available options run make
.
Use the following environment variable located in the Makefile
to control number of threads and events.
PRODUCER_THREADS
CONSUMER_THREADS
PRODUCER_WAIT
CONSUMER_WAIT
TOTAL
- Run
make up-base
to start everything up (this will also start consumers and producers). - Run
make mariadb
to access database shell, run the below example SQL queries to create records. - Run
make mariadb-insert-primary
,make mariadb-insert-secondary
ormake mariadb-insert-tertiary
to insert database records manually. - Run e.g.
make aws-sqs-receive-message-maxwell-primary
to consume primary queue (runmake
to see more options). - Run
make up-consumers
andmake up-producers
aftermake up-base
to run producers and consumers.