Skip to content
Weik.io
Book a demoTry Weik.io

Events

When one integration publishes an event to a channel, any number of others can react to it. Readers join without a change to the publisher and get what they missed when they start again after a stop. An event a reader keeps failing goes to the dead letters, where you resend it. Every stored event carries its CloudEvents 1.0 attributes. A channel can also deliver its events to systems such as Slack, S3 or Kafka. Events come in from queues, webhooks and folders through event sources, and from PostgreSQL, SQL Server and other databases through change tracking.

Terminal
$ weikio events list finance/invoice-created --env production --since 1h
SEQ     STREAM   TIME                      FAMILY   SOURCE                       AGENT         BYTES   RESEND OF
48211   events   2026-09-16 13:02:11 UTC   ev       finance/erp-invoice-export   agent-fi-02   1204    -
48212   events   2026-09-16 13:03:11 UTC   ev       finance/erp-invoice-export   agent-fi-02   1187    -
48213   events   2026-09-16 13:04:40 UTC   ev       finance/invoice-files        agent-fi-02   2310    -

Publish and react

In this example, finance/erp-invoice-export publishes each invoice the ERP has accepted to the channel invoice-created in its last step. The integration finance/invoice-notify starts from that channel. The two integrations refer only to the channel and never to each other.

finance/channels/invoice-created.yaml
apiVersion: weik.io/v1
kind: event-channel
metadata: { name: invoice-created, project: finance }
spec:
  description: One event per invoice created in the ERP, JSON body
finance/erp-invoice-export/routes/export-invoices.camel.yaml
- route:
    id: export-invoices
    from:
      uri: "file:{{invoice-folder}}"
      parameters:
        antInclude: "*.json"
        move: .done
      steps:
        - to:
            uri: "{{erp-url}}/api/invoices"
            parameters:
              httpMethod: POST
        - to: micrometer:counter:invoices_processed
        - to: "kamelet:weikio-event-sink?channel=invoice-created"
finance/invoice-notify/routes/notify.camel.yaml
- route:
    id: invoice-notify
    from:
      uri: "kamelet:weikio-event-source?channel=invoice-created"
      steps:
        - log: "Invoice event received: ${body}"
        - to: "{{notify-url}}/api/messages"
Terminal
$ weikio deadletters list --env production
SEQ   TIME                      READER                   FROM                              DELIVERIES   REASON
812   2026-09-16 13:05:02 UTC   finance/invoice-notify   channel finance/invoice-created   3            HttpHostConnectException: Connect to https://notify.example.internal failed: Connection refused
/events
The Events page of production with its events budget, filtered to channel events. Its invoice-created events from erp-invoice-export each have an invoice number and supplier.The Events page of production with its events budget, filtered to channel events. Its invoice-created events from erp-invoice-export each have an invoice number and supplier.The Events page of production with its events budget, filtered to channel events. Its invoice-created events from erp-invoice-export each have an invoice number and supplier.The Events page of production with its events budget, filtered to channel events. Its invoice-created events from erp-invoice-export each have an invoice number and supplier.
In Events, you see each channel's newest events with their attributes. You also see the environment's events budget.

Sources, channels and subscriptions

An event source brings events into a channel named after it, from a queue, a bucket, a webhook, a folder or anything else a Camel source kamelet can consume. A subscription routes them on to another channel and can filter them and change them with steps on the way. A channel that delivers to another system (Slack, S3 or Kafka, for example) sends them out. Your integrations read and publish in between.

An event source brings events in from an external system with a Camel source kamelet, such as a queue, a bucket, a webhook or a folder. A subscription binds the source to a channel and can filter or transform the events on the way. The channel invoice-created carries every event with its CloudEvents 1.0 attributes to its readers, the integrations invoice-notify and invoice-archiver. A channel with a type also delivers its events to Slack, S3, SFTP, Kafka, JMS or any HTTP endpoint.

How events are delivered

Delivery and retries

Publishing waits until Weik.io has stored the event. Each reader gets every event published from its first deploy on and acknowledges it when its route has finished it. A failed event comes back after the delays the reader sets.

Docs: Delivery and CloudEvents

Idempotent consumer

An event keeps its ID when it's delivered again or resent. Camel's idempotent consumer with #weikioIdempotent handles each event once across every copy of the integration.

Docs: Delivery and CloudEvents

Dead letters and resend

An event that a reader still fails after its last attempt goes to the dead letters, where you resend or discard it. You can also rewind a reader or resend any stored event to every reader or to one. When you skip a reader to now, it gets only the events published from then on.

Docs: Dead letters

CloudEvents 1.0

Every stored event carries its CloudEvents 1.0 attributes as ce- headers. A channel delivers in binary mode with those headers, or in structured mode as one application/cloudevents+json document.

Docs: Delivery and CloudEvents

Event headers

An event keeps the body your route published without changes. Beside it Weik.io stores the event's ID, the integration that published it, the agent that sent it and the trace context. A reader's trace continues the publisher's trace through that context.

Docs: Delivery and CloudEvents

Change tracking

Changes in PostgreSQL, MySQL, SQL Server, Oracle, MongoDB, Db2 and every other database with a Debezium connector arrive in a channel as events. The offsets stay in a table in the source database.

Docs: Change tracking

The entity store

Integrations keep a record of what they have processed in the entity store. Weik.io publishes every change to a record as an event and keeps each record's earlier revisions for you to read back.

Docs: The entity store

Machines and devices

Machines publish their readings to an MQTT broker. An event source brings the messages into your channels with CloudEvents attributes.

Docs: Event sources
/events/dead-letters
The Dead letters page of devtest with invoice-created events that invoice-approvals failed on because the approval service couldn't be reachedThe Dead letters page of devtest with invoice-created events that invoice-approvals failed on because the approval service couldn't be reachedOne dead letter of finance/invoice-approvals from the channel finance/invoice-created. It had three deliveries. The reason is an HTTP 503 from the approval service.One dead letter of finance/invoice-approvals from the channel finance/invoice-created. It had three deliveries. The reason is an HTTP 503 from the approval service.
In Dead letters, you see the events a reader couldn't handle after its last attempt and the reason for each.

Questions

Does a reader miss events while it's stopped?

No, it gets them when it starts again, as long as the environment still keeps them. Weik.io raises a problem when a waiting event gets close to the age at which it's deleted.

How long are events kept?

Weik.io keeps events for 30 days within each environment's events budget. By default the budget is 2 GiB on a single server and 8 GiB on a cluster. When the budget is full, Weik.io deletes the oldest events first. A channel can also pass its events through without storing them.

What happens to an event a reader keeps failing?

After the last attempt the event goes to the dead letters, where you resend it to that reader or discard it.

Which databases does change tracking support?

Change tracking works with every database that has a Debezium connector. PostgreSQL, MySQL, SQL Server, Oracle, MongoDB and Db2 are among them.

Is Weik.io open source?

Yes, Weik.io is open source under the Apache License 2.0 and runs on your own servers, in your cloud or in Weik.io Cloud.

Read the event docs

In the channel guide you declare invoice-created, publish into it from one integration and receive its events in another.

Sign in to the live demo

Sign in with the shared viewer account. It can open every screen of the example projects but can't change anything.

E-mail
viewer@demo.weik.io
Password
try-weikio-live-demo
Open the live demo