ASYNC WORK
Events & background jobs
RAIQL 1.0 introduces an executable asynchronous-work model built on a PostgreSQL outbox.
Declare an event
EVENT OrderCreated FROM Order;After a generated POST creates an Order, the runtime writes an outbox row in the same application database.
Declare a job
JOB NotifyCustomer ON OrderCreated;The generator emits a typed job handler and wires it to the generated worker.
Run the worker
terminal
npm run workerThe worker polls pending outbox rows, dispatches matching handlers, records attempts and marks successfully processed events.
Current adapter
RAIQL 1.0 implements executable events with a PostgreSQL outbox in the same database as the application. External queue products such as Kafka/SQS are not part of the frozen 1.0 core adapter.
Continue exploring RAIQLOpen the playground →