@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, andconsumeroptions onstartService() events.kafka,events.consumeFrom, andevents.publishTo- The
onMessageentrypoint acksandtimeoutoptions onpublish()
If you already use Pulse
RemoveconsumeFrom and publishTo from events, keeping events.pulse:
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:
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_recordsandorionjs.jobs_dogs_history) and claim protocol. - Pulse (
@orion-js/pulse) uses the same collections, leases, and delivery states.
4. Optionally adopt the Rust host
Once your app is running on v5, you can put theorionrs 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.