rabbit-lsd/README.md

46 lines
1.5 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Lucee UI for Rabbit CRUD
UI publishes CRUD actions to RabbitMQ and reads results from Postgres.
Коротко: интерфейс пишет в RabbitMQ, а фактическое состояние берет из Postgres, чтобы показать разницу между "поставлено в очередь" и "исполнено".
## Behavior
- Insert/Update/Delete actions are queued via RabbitMQ.
- A status banner shows when the action was queued and when it appears in Postgres.
- The UI reads the latest rows from the table defined by `PG_TABLE`.
## Environment variables
Lucee datasource (required):
- `testds_connectionString`
- `testds_username`
- `testds_password`
- `testds_class` (org.postgresql.Driver)
- `testds_bundleName` (org.postgresql.jdbc)
- `testds_bundleVersion` (42.6.0)
- `testds_connectionLimit` (5)
- `testds_liveTimeout` (15)
- `testds_validate` (false)
RabbitMQ (required):
- `RABBIT_HOST`
- `RABBIT_PORT` (default 5672)
- `RABBIT_USER`
- `RABBIT_PASSWORD`
- `RABBIT_VHOST` (default `/`)
- `RABBIT_QUEUES` (default `crud_queue`)
- `RABBIT_DURABLE` (default `true`)
Optional:
- `PG_TABLE` (default `rabbit_messages`)
Optional:
- `UI_LOG_TABLE` (default `rabbit_ui_log`) — таблица лога для статуса запросов UI.
## Notes
This app uses RabbitMQ Java client JARs located in `lib/`.
Комментарий: JAR-ы подключены через `this.javaSettings.loadPaths`, поэтому важно держать `lib/` рядом с приложением.