Sticky placeholder to keep track of things we need to update in the docs:
[ ] communication protocol changed (3 -> 4)
[x] handling conflict nodeIDs
[x] Breaking: validation broker options is removed. Use validator instead. If validator is defined or true, the validation is enabled. Otherwise, it is disabled.
INFO - Before all hook
INFO - Before hook
INFO - Before action hook
INFO - Action handler
INFO - After action hook
INFO - After hook
INFO - After all hook
[x] broker metadata option. It's transfered to other nodes.
Sticky placeholder to keep track of things we need to update in the docs:
[ ] communication protocol changed (
3
->4
)[x] handling conflict nodeIDs
[x] Breaking:
validation
broker options is removed. Usevalidator
instead. Ifvalidator
is defined ortrue
, the validation is enabled. Otherwise, it is disabled.[ ]
ctx
access in Strategiesnext
method.[x] Shard strategy is added.
[x] The
broker.use
deprecated method is removed. Usemiddlewares: []
in the broker options instead.[x] hooks inside action definitions, as well.
Output
[x] broker
metadata
option. It's transfered to other nodes.[x] new middleware hooks (
registerLocalService
,serviceCreating
,transitPublish
,transitSubscribe
,transitMessageHandler
,transporterSend
,transporterReceive
) #436[x] enhanced hot-reload middleware #408
[x] new Middlewares:
Transmit.Encryption
Transmit.Compression
Debugging.TransitLogger
Debugging.ActionLogger
[x] Kafka transporter upgrade to support kafka-node@4
[x] rename
ctx.metrics
->ctx.tracing
[x] new built-in tracing solution with exporters (Zipkin, Jaeger, Datadog)
[x] new built-in metrics solution with reporters (Prometheus, Datadog, StatD)
[x] extend internal services (
$node
)[x] load middlewares by names
Please note: middleware must be
Object
. IfFunction
it will be called withbroker
. Previous backward compatibility is dropped.[x] global errorHandler in ServiceBroker
errorHandler(err, info) {}
info
can be reachable actual service or context or action or event...[x]
broker.hotReloadService
has been removed.