Skip to content

redb.Route 4.8.0

Latest

Choose a tag to compare

@reliktbk reliktbk released this 01 Dec 21:24

Breaking

  • A consumer that failed to start with its context is started again. A broker or server not up yet used to leave
    the route Errored until a manual start; the context now retries in the background (2 s doubling to 1 min, no limit,
    RouteEngineOptions.ConsumerStartRetry) and the route becomes Started once its consumer starts. The start-up log names the
    Errored routes instead of reporting every endpoint operational. Packages: redb.Route. Upgrade: UPGRADING.md.
  • An OnCompletion block runs in the caller, which waits for it, as in Apache Camel; .ParallelProcessing() or
    .ExecutorService("name") runs it on a bounded pool of its own instead. Before, every block after the consumer started
    as unbounded background work. Packages: redb.Route. Upgrade: UPGRADING.md.
  • A Wire Tap runs on a bounded pool built from a thread pool profile, as in Apache Camel: 20 copies at a time and
    1000 waiting by default, and the route's own thread runs a copy that finds both full. A slow tap target used to pile
    up background work without limit. Profiles: RouteEngineOptions.DefaultThreadPoolProfile, named ones picked with
    .WireTap(uri, executorService: "name"). Packages: redb.Route. Upgrade: UPGRADING.md.
  • An idempotent claim carries an id, so a node whose claim was taken over no longer settles the new holder's claim.
    The SQL repository adds a claim_id column by itself. With CreateTable = false, add the column before starting
    4.8.0 nodes; the ALTER statement for each database is in UPGRADING. Packages: redb.Route, redb.Route.Core, redb.Route.Sql, redb.Route.As2, redb.Route.As4. Upgrade: UPGRADING.md.
  • InterceptSendToEndpoint publishes the target in the exchange property CamelToEndpoint, as in Apache Camel; the
    headers redb.toEndpoint and CamelToEndpoint are gone. Read ${property.CamelToEndpoint} instead. Packages: redb.Route. Upgrade: UPGRADING.md.
  • Split metadata are exchange properties, and an IMessage part keeps its own headers, as in Apache Camel.
    CamelSplitIndex, CamelSplitSize and CamelSplitComplete move from headers to properties (${property.CamelSplitIndex});
    a part that is an IMessage becomes the part's message, a copy without the parent's headers.
    A streaming split reads one part ahead, as Camel's does: a source that waits for its next element holds the current
    part back until it arrives. Packages: redb.Route. Upgrade: UPGRADING.md.
  • A copy that goes on as an exchange of its own has a new id, as in Apache Camel: seda:, vm:, Multicast,
    RecipientList, ScatterGather, Enrich and OnCompletion copies get a new ExchangeId and CamelCorrelationId
    set to the original's id; WireTap and PollEnrich copies a new id without it. Each copy is its own in-flight entry,
    in its own route; join hops on CamelCorrelationId, not ExchangeId. Packages: redb.Route. Upgrade: UPGRADING.md.
  • A parallel ScatterGather or RecipientList inside a transaction runs each branch under a dependent clone of it,
    as a parallel Split and Multicast do, instead of on the route's transaction from several threads at once. A failed
    branch now rolls the whole block back, best-effort mode included; before, the other branches committed and sent. Packages: redb.Route. Upgrade: UPGRADING.md.
  • The AMQP fluent entry point is AmqpDsl, as TimerDsl, GrpcDsl, TcpDsl and LdapDsl. The class was named
    Amqp, which the root namespace of AMQPNetLite shadows, so Amqp.Address(...) never compiled in a consumer's file;
    code that wrote the full name redb.Route.Amqp.Amqp.Address(...) now writes AmqpDsl.Address(...). Packages: redb.Route.Amqp. Upgrade: UPGRADING.md.
  • An AS2 receiver is bounded by default: 32 requests at once and 32 waiting (maxConcurrentRequests=32,
    requestQueueLimit=32), where it admitted every request; a burst past that is refused and resent by the partner.
    maxConcurrentRequests=0 keeps unlimited admission. Packages: redb.Route.As2. Upgrade: UPGRADING.md.
  • An AS2 receiver answers a refused request with 503 and Retry-After: 30 (was 429 and 1), and bounds its
    asynchronous MDNs
    : a message asking for one when all asyncMdnPoolSize (20) slots are taken is refused before any
    work, and a receipt the partner does not take is posted again up to asyncMdnAttempts (3) times instead of once. Packages: redb.Route.As2. Upgrade: UPGRADING.md.
  • An encrypted unsigned AS2 message has its MIC over the decrypted part with its MIME headers (RFC 4130 §7.3.1), on
    send and on receive, as OpenAS2 computes it; such a message to a conforming partner was reported as a MIC mismatch. An
    old and a new redb paired on such an agreement report mismatch until both are upgraded. Packages: redb.Route.As2. Upgrade: UPGRADING.md.
  • Service Bus enableBatch and batchMaxMessages are gone. Any list body is sent as one Service Bus batch, one
    message per element, as in Apache Camel: a list of IMessage with each element's own body and properties, any other
    list with each value under the exchange's headers. A list used to be one message unless enableBatch=true. Packages: redb.Route.AzureServiceBus. Upgrade: UPGRADING.md.
  • IBM MQ batch mode: batching=true reads a batch under syncpoint and commits it once, a List<IMessage> per batch;
    the option batchSize, which did nothing, is gone. A request in a batch goes to backoutQueue unless
    disableReplyTo=true, which also stops a single consumer from replying. Packages: redb.Route.IbmMq. Upgrade: UPGRADING.md.
  • Kafka batch mode is batching=true, sized by maxBatchMessages, as every broker's batch: maxPollRecords is gone,
    pollTimeoutMs is the idle timeout of a batch and batchingIntervalMs its hard limit, and the redbKafka.BatchSize
    header is gone (the size is body.Count). Replace maxPollRecords=N with batching=true&maxBatchMessages=N. Packages: redb.Route.Kafka. Upgrade: UPGRADING.md.
  • Kafka headers take Apache Camel's names and types (CamelKafkaTopic, CamelKafkaPartition, CamelKafkaOffset,
    CamelKafkaTimestamp, CamelKafkaKey, and CamelKafkaRecordMeta for the four Sent.* headers); the old names are not
    read. A record's partition is partitionKey, else the new CamelKafkaPartitionKey header, else the key; the key is
    kept with an explicit partition. keyFromHeader is gone, and a producer refuses partitionNumber. The producer reads
    CamelKafkaOverrideTopic and CamelKafkaOverrideTimestamp per message, as Camel does, and removes them before the send. Packages: redb.Route.Kafka. Upgrade: UPGRADING.md.
  • An LLM store called without an exchange inside ExecuteAtomicAsync or BeginTransaction on the context's shared
    IRedbService is no longer part of that transaction.
    It commits on its own and stays when the transaction rolls
    back. Pass the exchange, or use a TransactionScope, which the call still joins. Packages: redb.Route.Llm. Upgrade: UPGRADING.md.
  • The reservation of a tool's idempotency key is kept next to the tool's output, in the agent's redb: the ?redb=
    instance, else the AddRedbLlmStorage("name") one, else the context's default. AddRedbLlmStorage() alone is enough;
    a host's IIdempotentRepository in DI is no longer used for it, and RedbToolIdempotencyStore(context, name) lost its
    repository parameter. Let agent runs finish before the upgrade: a run in flight may run a tool once more. Packages: redb.Route.Llm. Upgrade: UPGRADING.md.
  • The IMAP and POP3 consumers take Apache Camel's searchTerm: searchTerm.subject, .from, .to, .body,
    .subjectOrBody, .unseen and the sent and received date bounds (now-24h or yyyy-MM-dd HH:mm:ss), or
    searchTerm=#name for a MailKit search query from the registry. searchQuery, which was never applied, is gone: a URI
    that names it fails to start. Packages: redb.Route.Mail. Upgrade: UPGRADING.md.
  • An MQTT message the route fails on is settled by one rule in serial and concurrent mode, Apache Camel's
    paho-mqtt5 rule as corrected by CAMEL-25793 (not yet in a Camel release): on a session the broker keeps
    (cleanSession=false, sessionExpiryInterval above 0) it stays unacknowledged and the consumer reconnects after a
    backoff, so the broker sends it again; otherwise it is acknowledged and logged as an error. Serial mode used to
    acknowledge a failure; concurrent mode left it unacknowledged until the consumer stalled. Packages: redb.Route.MqttNet. Upgrade: UPGRADING.md.
  • A RabbitMQ send fails when the broker does not confirm it within confirmTimeout (5000 ms by default, as in
    Apache Camel) with RabbitMQPublishTimeoutException, a TimeoutException. A broker that blocks its publishers under a
    memory or disk alarm used to hold every send, and its thread, for as long as the alarm lasted. Packages: redb.Route.RabbitMQ. Upgrade: UPGRADING.md.
  • An ordinary send no longer carries a sender's reply-to on, as in Apache Camel's JMS: a message consumed with a
    reply-to and forwarded to RabbitMQ, IBM MQ or AMQP goes out without it. Set preserveMessageQos=true on the endpoint to
    keep it; the correlation id is carried as before. Packages: redb.Route.RabbitMQ, redb.Route.IbmMq, redb.Route.Amqp. Upgrade: UPGRADING.md.
  • A RabbitMQ delivery the route fails on is tried 5 times, 1 s apart, then rejected without requeue, as in Apache
    Camel (maximumRetryAttempts, retryDelay, rejectAndDontRequeue); it used to be requeued forever. Give the queue a
    dead letter exchange, or the broker drops such a message. Packages: redb.Route.RabbitMQ. Upgrade: UPGRADING.md.
  • The S3 and Firebase Storage consumers keep an object whose exchange the route marked rollback-only
    (.RollbackAll()), as they keep one that failed: no delete, no move, offered again on the next poll; Firebase's
    moveFailed takes it. It used to be deleted or moved as if it had succeeded. Packages: redb.Route.S3, redb.Route.Firebase. Upgrade: UPGRADING.md.
  • SQS enableBatch and batchMaxMessages are gone. A list of IMessage goes out one SQS message per element by
    SendMessageBatch, each with its own body and attributes; refused entries are counted in headers, not thrown. Any other
    list is one message, its JSON. Packages: redb.Route.Sqs. Upgrade: UPGRADING.md.
  • The redb.Route packages target .NET 10 and .NET 11; .NET 8 and .NET 9 are no longer targets. Both reached end of
    support on 10 November 2026. An application on .NET 8 or 9 stays on 4.7.x or moves to .NET 10. The redb-route-xml
    tool and the project redb-route-xml new creates now need .NET 10. Upgrade: UPGRADING.md.

Added

  • Base64Text reads base64 the same way on .NET 10 and .NET 11. .NET 11 refuses a value whose last character has
    non-zero unused bits, .NET 10 ignores them. Decode accepts such a value on both runtimes, TryDecodeCanonical
    refuses it on both. The Base64 data format and the AS2 MIC comparison accept it, as before. Packages: redb.Route, redb.Route.As2.
  • IIdempotentRepository.Claim tells a key in flight from a confirmed one and takes over an abandoned claim. The redb,
    SQL and in-memory repositories implement it from the state they keep; the in-memory one now keeps a confirmed flag.
    A repository of your own keeps its behaviour (every held key is confirmed) until it overrides Claim; the AS2 receiver
    uses it to answer a resend in flight with 503 instead of a duplicate MDN. The SQL repository ages a claim by the
    database's clock; with the redb repository keep the timeout far above the clock skew between nodes. Packages: redb.Route, redb.Route.Core, redb.Route.Sql.
  • One batch contract for broker consumers in redb.Route.Batching: BatchOptions (batching, maxBatchMessages,
    pollTimeoutMs as an idle timeout, batchingIntervalMs as a hard limit), BatchCollector, BatchDispatcher (body a
    List<IMessage>, one route run, one settlement) and IBatchSettlement for a connector of your own. Packages: redb.Route.
  • EIPs publish Apache Camel's exchange properties, named in ExchangePropertyKeys: CamelLoopIndex and CamelLoopSize,
    CamelMulticastIndex and CamelMulticastComplete, CamelAggregatedSize, CamelAggregatedCompletedBy and
    CamelAggregatedCorrelationKey, CamelRecipientListEndpoint, and CamelCorrelationId on Split and Multicast copies,
    which the route span now reads as its redb.correlation.id tag.
    An aggregate's completion predicate is now evaluated on the arrival that reaches completionSize too. Packages: redb.Route.
  • Option groups: an endpoint option marked [OptionGroup] is written group.member=value on the URI and as
    attributes of the same names in route XML, as Camel's prefixed options; an unknown member fails at start naming the
    group's members, and [Sensitive] members are masked. EndpointOptions.BindableOptions lists the options as the URI
    writes them. Packages: redb.Route.
  • The nested-lambda Choice branch, OnWhen and RetryWhile take an IPredicate. .Choice(c => c.When(Header("type").isEqualTo("order"), r => r.To(...))) now compiles, as the one-argument .When(IPredicate) already did; an exception handler's OnWhen(...) and RetryWhile(...) take the same predicate form next to the lambda and the string. Packages: redb.Route.
  • ConsumerStartRetry.UnhealthyOnRestarting and UnhealthyOnExhausted, Apache Camel's switches of the same names
    with Camel's defaults (true): an Errored route waiting for a start retry, or one no retry waits for any more, is
    Unhealthy; false reports that phase Degraded, so a broker that is down does not take the node out of readiness.
    RouteContext.IsErroredRouteUnhealthy tells a health check of its own the same. Packages: redb.Route.
  • AMQP 1.0 batch mode: batching=true with maxBatchMessages (at most credit), pollTimeoutMs and
    batchingIntervalMs hands the route a List<IMessage>, accepted after the route and released on failure. A delivery
    with a reply-to is rejected from a batch; disableReplyTo=true (Apache Camel's name, single mode too) takes it
    without a reply. Packages: redb.Route.Amqp.
  • Service Bus batch mode: batching=true with maxBatchMessages, pollTimeoutMs and batchingIntervalMs hands the
    route a List<IMessage> received with ReceiveMessagesAsync, completed after the route, abandoned (or dead-lettered with
    autoDeadLetter) on failure, its locks renewed while the route runs. Not with enableSessions. Packages: redb.Route.AzureServiceBus.
  • IBM MQ temporaryModel names the model queue of the dynamic reply queue of request-reply (IBM MQ's TEMPMODEL),
    on IbmMqConnectionFactory and inline on the endpoint; the default stays SYSTEM.DEFAULT.MODEL.QUEUE. The IBM MQ
    developer image grants its app user DEV.APP.MODEL.QUEUE. Packages: redb.Route.IbmMq.
  • An agent run inside a transaction warns when it uses the in-memory conversation or tool idempotency store. These
    stores do not roll back with the route, so a redelivered message may not call the tool again; the warning, logged
    once per route and connection factory, names both fixes: AddRedbLlmStorage(), or llm: outside .Transacted(). Packages: redb.Route.Llm.
  • MQTT sessionExpiryInterval and maxReconnectDelay, as in Apache Camel's paho-mqtt5: how long the broker keeps the
    session after a disconnect (seconds, default 0: it ends with the connection, MQTT 5), and the longest pause before the
    consumer reconnects after a failed message (milliseconds, default 128000). Packages: redb.Route.MqttNet.
  • RabbitMQ batch consumer: batching=true with maxBatchMessages, pollTimeoutMs and batchingIntervalMs hands the
    route a List<IMessage> per batch, settled once after the route, on concurrentConsumers workers. A delivery with a
    reply-to is rejected from a batch unless disableReplyTo=true, which also stops a single consumer from replying. Packages: redb.Route.RabbitMQ.
  • Redis stream batch mode: batching=true on an XREAD or XGROUP consumer with maxBatchMessages (default
    streamReadCount), pollTimeoutMs and batchingIntervalMs hands the route a List<IMessage>; with a group it is
    acknowledged in one XACK after the route and stays pending on failure, for streamClaimMinIdleMs to claim again. Packages: redb.Route.Redis.
  • SQS batch consumer: batching=true with maxBatchMessages, pollTimeoutMs and batchingIntervalMs hands the
    route a List<IMessage> per batch, collected over receives of up to 10 and deleted once after the route; a failed
    batch comes back by the visibility timeout and reaches the dead letter queue through the redrive policy. Packages: redb.Route.Sqs.

Changed

  • RouteHealthCheck also reports the endpoints the routes send to. One that knows it cannot send (a RabbitMQ
    endpoint whose broker blocks it under a memory or disk alarm, any endpoint at a high error rate) makes the result
    Degraded, never Unhealthy, and is listed under endpoints with its masked URI and reason. A readiness probe that
    fails on Degraded takes the node out of readiness while it lasts. Packages: redb.Route, redb.Route.RabbitMQ.
  • The "Compiled route" and "Endpoint started" log lines show a long endpoint URI in a short form. A URI longer than
    120 characters (a SQL statement, a long query string) is cut at a parameter boundary, never inside a masked secret,
    and ends with ... [+N chars #hash], a hash of the whole masked URI that tells endpoints apart. With Debug on, the same
    lines carry the whole masked URI. EndpointUri.ForLog gives the same form for your own logs. Packages: redb.Route.
  • AddComponents registers a component whose constructor has only optional parameters (such as HttpComponent),
    as the XML catalog already lists it: one rule for both. A scanned component it cannot create, for want of such a
    constructor or because the constructor throws, is now named in a warning instead of left out in silence. Packages: redb.Route.
  • Connector start and stop lines use the short URI form too, as the "Compiled route" and "Endpoint started" lines
    already do: a URI longer than 120 characters is cut with ... [+N chars #hash], and the whole masked URI is on the
    same line when Debug is on. EndpointUri.ForLog(uri, logger) gives that choice to custom components. Packages: redb.Route, redb.Route.Amqp, redb.Route.Elasticsearch, redb.Route.GenericFile, redb.Route.IbmMq, redb.Route.Ldap, redb.Route.RabbitMQ, redb.Route.Redis, redb.Route.S3, redb.Route.Sqs.
  • log: level= takes Apache Camel's names and refuses any other. INFO, WARN and OFF now mean Information,
    Warning and None, so level=WARN logs at Warning and level=OFF logs nothing (both logged at Information before);
    the .NET names work as before, in any case. An unknown name used to log at Information without a word; now it stops
    the route at start with a message listing the accepted names. Packages: redb.Route. Upgrade: UPGRADING.md.
  • An AS2 endpoint refuses to start with an As2From or As2To that is not an AS2 identifier. Each must be 1 to 128
    printable ASCII characters (RFC 4130 §6.2); a non-ASCII or longer identifier is now a configuration error naming the
    setting, instead of reaching the partner as a header it cannot accept. Packages: redb.Route.As2.
  • An AS2 receiver answers a required receipt option it cannot honour with a failed MDN and does not process the
    message.
    A signed-receipt-protocol other than pkcs7-signature, or signed-receipt-micalg with no algorithm
    usable here, marked required, now gets failed/Failure: unsupported format or unsupported MIC-algorithms
    (RFC 4130 §7.5.3). It used to be processed with the agreement's algorithm; optional still is. Packages: redb.Route.As2.
  • An AS2 receiver without a certificate of its own answers a required signed receipt with a failed MDN. It used to
    process the message and send an unsigned receipt; it now answers failed/Failure: unsupported format and does not
    process it (RFC 4130 §7.5.3). An optional signed receipt is still processed with an unsigned MDN. Packages: redb.Route.As2.
  • The AS4 receiver refuses a security value in non-canonical base64 on every runtime. A DigestValue, SignatureValue,
    CipherValue, BinarySecurityToken or KeyIdentifier whose last character has non-zero unused bits (YR== instead of
    YQ==) was accepted on .NET 10 and is refused on .NET 11; it is now refused on both, as XML Schema base64Binary
    requires, with the error code of any other malformed value there. Senders such as Domibus never write that form. Packages: redb.Route.As4.
  • An AS4 resend that arrives while the first copy is still in the route is answered 503, not with a receipt. A
    receipt then would tell the sender the message arrived although the first copy could still fail. The sender gets the
    rejectStatusCode with Retry-After and no ebMS signal and resends on its retry schedule (Domibus does); a resend
    after the first copy succeeded still gets its very receipt. A claim never confirmed is taken over after the new
    inFlightClaimTimeout (10 minutes). Packages: redb.Route.As4.
  • Base64 credentials and WS-Security values must be canonical on every runtime. A value whose last character has
    non-zero unused bits now gets 401 as an inbound HTTP Basic credential. In a SOAP signature it sets
    redbSoap.signatureValid to false. In an encrypted SOAP request it gets the Security check failed fault. .NET 10
    used to accept such a value; .NET 11 refuses it. Packages: redb.Route.Http, redb.Route.Soap.
  • IBM MQ consumer pauses after a backout: in poll and batch modes the consumer waits backoutDelay milliseconds
    (default 1000) before it reads again, so a failed message no longer comes straight back; backoutDelay=0 keeps the
    old behaviour. This option is redb's addition, not part of Apache Camel; listener mode is not affected. Packages: redb.Route.IbmMq.
  • AddRedbRouteLlm() registers an in-memory tool idempotency store. Without AddRedbLlmStorage() a repeated tool
    call with the same key (conversation and tool-use id) now returns the stored output instead of running the tool
    again, within the process and for 24 hours after the first call completed; AddRedbLlmStorage() or a store of
    your own (InMemoryToolIdempotencyStore takes a ttl) still replaces it, in either call order. Packages: redb.Route.Llm. Upgrade: UPGRADING.md.
  • Telegram spans no longer carry the chat id. The consumer span dropped messaging.telegram.chat.id; the send span
    dropped it and messaging.destination.name, which held the same value. A route that needs the chat id in its traces
    adds it with .SpanTag("messaging.telegram.chat.id", Header(TelegramHeaders.ChatId), SpanTarget.Inbound). Packages: redb.Route.Telegram.
  • The redb-route* templates create a net10.0 project and no longer take --framework. A module runs in the Tsak
    worker, which targets .NET 10, and a module built for a newer framework does not load there. Drop --framework from
    scripts that create these templates. Packages: redb.Templates. Upgrade: UPGRADING.md.
  • Microsoft dependencies move to the 10.0.15 servicing line. Microsoft.Extensions.*, Microsoft.Data.Sqlite, System.Security.Cryptography.Xml / Pkcs and the ASP.NET Core packages are referenced at 10.0.15 (was 10.0.13). On .NET 11 System.Security.Cryptography.Xml / Pkcs are taken from the 11.0 line. An
    application that pins one of them lower raises its pin.
  • VS Code extension 0.2.31: completion and validation follow the 4.8.0 endpoint options. The editor offers the
    new options (batch mode, reply-to, mail searchTerm, the AS2, AS4, RabbitMQ and MQTT additions) and marks the
    removed ones (enableBatch, maxPollRecords, searchQuery and the others in UPGRADING.md) as errors.
  • Route 4.8.0 is built on redb 4.8.0. A route context that keeps state in redb (idempotent repository, aggregation,
    LLM storage) takes the redb 4.8.0 database upgrade at its first start; every node of one database moves to 4.8.0
    together, as the redb 4.8.0 upgrade notes describe.

Fixed

  • A list body no longer goes out as its type name. Kafka, RabbitMQ and IBM MQ producers send a list of IMessage
    element by element, each with its own body and headers (IBM MQ in one unit of work); Kafka also a plain list, as
    camel-kafka. RabbitMQ, IBM MQ and AMQP refuse a plain list, a request-reply producer refuses a list, and AMQP asks to Split. Packages: redb.Route, redb.Route.Kafka, redb.Route.RabbitMQ, redb.Route.IbmMq, redb.Route.Amqp.
  • An AS2 resend that arrives while the first copy is still in the route is no longer answered as a duplicate. With
    an idempotentRepository, the partner now receives 503 with Retry-After and no MDN for such a copy, and resends it;
    the processed/warning: duplicate-document MDN goes only to a copy of a message whose processing was confirmed. Before,
    the copy got that MDN, and when the first copy then failed the document was lost. A claim left unconfirmed by a stopped
    node for longer than the new inFlightClaimTimeout (10 minutes) is taken over, so the resend is processed. Packages: redb.Route.As2.
  • Every redb store of AddRedbLlmStorage() called without an exchange opens a redb scope of its own per call: the
    tool idempotency, eval run, approval, batch, conversation, knowledge, prompt template and tool result cache stores, as
    the cost budget store and the audit observer already did. They used the context's single IRedbService, so concurrent
    calls without an exchange (the eval runner saves without one; a host calling a store directly) shared one connection
    and the second was refused as concurrent use. Packages: redb.Route.Llm.

Earlier versions

Earlier releases are archived by line in changelog/: 4.7.x, 4.6.x, 4.5.x, 4.4.x, 4.3.x, 4.2.x, 4.1.x, 4.0.x, 3.x, 2.x, 1.x.