This is an PoC project to set up async job with Graphile Worker
Ref:
- https://ryanchenkie.com/blog/how-to-use-queues-with-redwoodjs
- https://community.redwoodjs.com/t/how-do-i-run-background-or-cron-jobs/2971/11
docker-compose up -d
yarn install
yarn rw prisma migrate dev
yarn rw exec asyncJobWorker
yarn rw dev
The reason I chose Graphile Worker as a async job worker is that it is independent from Redis or MongoDB like other node.js async job workers. I think it is good to use PostgreSQL as a single source of truth for the application because in most cases I use PostgreSQL as a database.