Web Component
The Web component is a Fastify HTTP server that serves as the entry point for all message generation requests. It receives campaign data, validates it, and publishes messages to the appropriate Pub/Sub topics.
Endpoints
Public (no authentication)
| Method | Path | Description |
|---|---|---|
GET |
|
Returns |
GET |
|
Prometheus metrics (includes Launcher BullMQ queue gauge) |
Escher / mTLS Authenticated
| Method | Path | Description |
|---|---|---|
POST |
|
RTI (Real-Time Interaction) push triggers. Converts to aggregator |
POST |
|
Unified trigger endpoint. Routes to TX ( |
POST |
|
UI test message sending. Converts to aggregator |
POST |
|
Direct push-to-InApp. Generates a delivery message and sends via DeliveryClient or FCM. |
GET |
|
Fetches device clients for a specific tenant/contact. Accepts |
For a complete API specification see the REST API documentation.
Pub/Sub Topics
The Web component publishes to:
-
sending-tx-<dg>— for transactional messages (RTI push, test messages, TX triggers) -
sending-batch-<dg>— for batch campaign triggers
The distribution group is determined by the customer’s routing configuration.
Dependencies
-
Pub/Sub: Publishes messages to TX and batch topics
-
me-push: Campaign information
-
Escher: Request authentication (scope and keypool configured via environment variables)
Environment Variables
-
IP,PORT— Server bind address -
FASTIFY_LOGGING— Logging configuration -
MG_ESCHER_SCOPE,MG_ESCHER_KEYPOOL— Escher authentication settings -
LOG_LEVEL— Log verbosity