Skip to main content
Without the optional Rust host, Orionjs v5 runs the same way as v4. Most applications only need to update their @orion-js/* dependencies and make sure Echoes uses Pulse instead of Kafka.
Looking for Orionjs v4 documentation? Select v4 in the version switcher at the top of the docs.

1. Move Echoes off Kafka (breaking change)

Orionjs v5 removes the Kafka transport from @orion-js/echoes. Pulse is now the only event transport. The following Echoes options and entrypoints were removed:
  • Top-level client, producer, and consumer options on startService()
  • events.kafka, events.consumeFrom, and events.publishTo
  • The onMessage entrypoint
  • acks and timeout options on publish()

If you already use Pulse

Remove consumeFrom and publishTo from events, keeping events.pulse:
Remove kafkajs from your package.json if nothing else uses it, and check publish() calls for removed acks or timeout options.

If you still use Kafka

Migrate to Pulse on Orionjs v4 first, where Echoes can consume from Kafka and Pulse at the same time while publishers switch over. Follow the v4 incremental Kafka-to-Pulse migration guide, then upgrade to v5 once Kafka consumption is removed.

2. Upgrade @orion-js/* packages to 5.0.0

All @orion-js/* npm packages are versioned together at 5.0.0. Update every @orion-js/* package in your package.json to ^5.0.0 so packages inside the same process stay aligned:
Run type-checking, build, and tests:

3. Deploy safely alongside v4

Everything other than Kafka is wire- and storage-compatible with v4:
  • Echoes requests (/echoes-services) use the same signature and serialization format, so v4 and v5 services can call each other.
  • Jobs (@orion-js/dogs) use the same MongoDB collections (orionjs.jobs_dogs_records and orionjs.jobs_dogs_history) and claim protocol.
  • Pulse (@orion-js/pulse) uses the same collections, leases, and delivery states.
v4 workers and v5 instances (with or without the Rust host) can share job queues and Pulse consumer groups during a rolling deploy.

4. Optionally adopt the Rust host

Once your app is running on v5, you can put the orionrs Rust host in front of it and move HTTP routes, jobs, and echoes to Rust one at a time. See the Orion v5 guide to get started.