Moleculer v0.14.0 Release Notes

Release Date: 2020-02-12 // about 4 years ago
  • ๐ŸŽ‰ First 0.14 stable version. Full changelog: https://github.com/moleculerjs/moleculer/blob/master/CHANGELOG.md#0140-2020-02-12

    ๐Ÿ“„ Migration guide: https://github.com/moleculerjs/moleculer/blob/master/docs/MIGRATION_GUIDE_0.14.md

    ๐Ÿ”„ Changes since 0.14.0-rc2

    AMQP 1.0 transporter

    Thanks for @vladir95, AMQP 1.0 transporter is available.

    Please note, it is an experimental transporter. Do not use it in production yet!

    // moleculer.config.jsmodule.exports = { transporter: "amqp10://activemq-server:5672"};
    

    To use this transporter install the rhea-promise module with npm install rhea-promise --save command.

    Transporter options

    Options can be passed to rhea.connection.open() method, the topics, the queues, and the messages themselves.

    Connect to 'amqp10://guest:guest@localhost:5672'

    // moleculer.config.jsmodule.exports = { transporter: "AMQP10"};
    

    Connect to a remote server

    // moleculer.config.jsmodule.exports = { transporter: "amqp10://activemq-server:5672"};
    

    Connect to a remote server with options & credentials

    // moleculer.config.jsmodule.exports = { transporter: { url: "amqp10://user:pass@activemq-server:5672", eventTimeToLive: 5000, heartbeatTimeToLive: 5000, connectionOptions: { // rhea connection options https://github.com/amqp/rhea#connectoptions, example: ca: "", // (if using tls) servername: "", // (if using tls) key: "", // (if using tls with client auth) cert: "" // (if using tls with client auth) }, queueOptions: {}, // rhea queue options https://github.com/amqp/rhea#open\_receiveraddressoptions topicOptions: {}, // rhea queue options https://github.com/amqp/rhea#open\_receiveraddressoptions messageOptions: {}, // rhea message specific options https://github.com/amqp/rhea#message topicPrefix: "topic://", // RabbitMq uses '/topic/' instead, 'topic://' is more common prefetch: 1 } };
    

    Redis Cluster feature in Redis transporter

    Thanks for AAfraitane, use can connect to a Redis Cluster with the Redis transporter.

    Connect to Redis cluster

    // moleculer.config.jsmodule.exports = { transporter: { type: "Redis", options: { cluster: { nodes: [{ host: "localhost", port: 6379 }, { host: "localhost", port: 6378 }] } } } };