Multiple Workers¶
Increase throughput by running one or more consumers for the same target schema.
How It Works¶
1. Run a single producer process:
2. Run one or more consumer processes (each in a separate process or machine):
This setup allows multiple consumers to work in parallel, improving overall throughput.
Increasing Worker Threads¶
You can also increase the number of workers used for handling requests:
Info
The -n argument does not apply in producer-only mode (pgsync -c schema.json --producer).