<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Scaling live-indexing-mediation in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/scaling-live-indexing-mediation/m-p/496142#M40752</link>
    <description>&lt;P class=""&gt;Hi Angelborroy,&lt;/P&gt;&lt;P class=""&gt;Thank you again for your time.&lt;/P&gt;&lt;P class=""&gt;Regarding parallel processing inside the mediator, I don't believe I have access to the underlying code since it's a paid service.&lt;/P&gt;&lt;P class=""&gt;However, using virtual destinations does seem like a promising approach.&lt;/P&gt;&lt;P class=""&gt;This will allow the mediator to consume from a queue and therefore add multiple consumers.&lt;/P&gt;&lt;P class=""&gt;I’ll explore that option further. Thanks a lot for your help!&lt;/P&gt;</description>
    <pubDate>Tue, 03 Feb 2026 16:43:45 GMT</pubDate>
    <dc:creator>agermain</dc:creator>
    <dc:date>2026-02-03T16:43:45Z</dc:date>
    <item>
      <title>Scaling live-indexing-mediation</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/scaling-live-indexing-mediation/m-p/496059#M40742</link>
      <description>&lt;DIV&gt;&lt;P&gt;&lt;STRONG&gt;Hi everyone,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I’m looking for some insights on how others handle this situation. We are using Alfresco 23.x with Alfresco Search Enterprise and have been experiencing issues during periods of high document ingestion. When the ingestion rate increases, we observe a significant delay in the replication between our OpenSearch indexes and the Alfresco database.&lt;/P&gt;&lt;P&gt;After further analysis, we found that once our Alfresco instances finish publishing events to the alfresco.repo.event2 topic, a large number of messages remain marked as &lt;EM&gt;“inFlight”&lt;/EM&gt;. In other words, many messages are waiting to be ACKed by the &lt;STRONG&gt;live-indexing-mediation&lt;/STRONG&gt; service.&lt;/P&gt;&lt;P&gt;Our OpenSearch cluster is barely doing any work during these peaks, and the &lt;STRONG&gt;live-indexing-metadata&lt;/STRONG&gt; service is essentially waiting for &lt;STRONG&gt;live-indexing-mediation&lt;/STRONG&gt; to process events. For context, we only index metadata, no content or path indexing.&lt;/P&gt;&lt;P&gt;Since &lt;STRONG&gt;live-indexing-mediation&lt;/STRONG&gt; is a singleton service, how can we improve its throughput or overall performance? Has anyone faced a similar bottleneck, and how did you approach or resolve the situation?&lt;/P&gt;&lt;P&gt;Thanks in advance for any advice or shared experience!&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 30 Jan 2026 15:58:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/scaling-live-indexing-mediation/m-p/496059#M40742</guid>
      <dc:creator>agermain</dc:creator>
      <dc:date>2026-01-30T15:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Scaling live-indexing-mediation</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/scaling-live-indexing-mediation/m-p/496101#M40744</link>
      <description>&lt;P&gt;This may seem naive, but have you tried increasing the number of concurrent consumers on the mediation inbound channel (&lt;CODE&gt;in.alfresco.event.channel&lt;/CODE&gt;)?&lt;/P&gt;
&lt;P&gt;Even though &lt;CODE&gt;live-indexing-mediation&lt;/CODE&gt; runs as a singleton, it can process multiple events in parallel. By default, the mediation inbound channel is quite conservative, and under high ingestion rates it easily becomes the bottleneck you describe.&lt;/P&gt;
&lt;P&gt;In practice, adding &lt;CODE&gt;concurrentConsumers&lt;/CODE&gt; to the mediation channel often unlocks a lot of throughput, for example:&amp;nbsp;&lt;CODE&gt;&amp;amp;concurrentConsumers=8&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 31 Jan 2026 07:01:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/scaling-live-indexing-mediation/m-p/496101#M40744</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2026-01-31T07:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Scaling live-indexing-mediation</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/scaling-live-indexing-mediation/m-p/496102#M40745</link>
      <description>&lt;DIV&gt;&lt;P&gt;Hi Angelborroy,&lt;/P&gt;&lt;P&gt;This is not naïve at all. I also used to assume that having multiple concurrent consumers on a topic would simply duplicate each event once per consumer.&lt;/P&gt;&lt;P&gt;A few days ago, I tested it with 20 concurrent consumers and initially thought that each event was being multiplied by 20 — meaning that for every single event in the topic, I saw 20 processed messages in the org.alfresco.search.medata.event. I may have jumped to conclusions, though, so I’ll run the test again on Monday morning and update this post with accurate results.&lt;/P&gt;&lt;P&gt;For reference, here is the configuration I used:&lt;/P&gt;&lt;PRE&gt;-Dalfresco.event.topic=activemq:topic:alfresco.repo.event2?concurrentConsumers=20&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Sat, 31 Jan 2026 16:48:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/scaling-live-indexing-mediation/m-p/496102#M40745</guid>
      <dc:creator>agermain</dc:creator>
      <dc:date>2026-01-31T16:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Scaling live-indexing-mediation</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/scaling-live-indexing-mediation/m-p/496123#M40748</link>
      <description>&lt;DIV&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I’ve tried several approaches, but unfortunately none of them worked.&lt;/P&gt;&lt;P&gt;I was originally using version &lt;STRONG&gt;4.1&lt;/STRONG&gt; of search-service-enterprise, so it seems that the property in.alfresco.event.channel did not exist at that time. I upgraded to &lt;STRONG&gt;5.2&lt;/STRONG&gt; to run new tests.&lt;/P&gt;&lt;P&gt;I attempted to override in.alfresco.event.channel with the following value:&lt;/P&gt;&lt;PRE&gt;-Din.alfresco.event.channel=consumer-sjms:topic:alfresco.repo.event2?durableSubscriptionName=LiveIndexingSubscription&amp;amp;clientId=LiveIndexing&amp;amp;concurrentConsumers=10&lt;/PRE&gt;&lt;P&gt;However, I consistently get an error whenever concurrentConsumers is greater than &lt;STRONG&gt;1&lt;/STRONG&gt;:&lt;/P&gt;&lt;PRE&gt;Caused by: jakarta.jms.JMSException: Durable consumer is in use for client: LiveIndexing and subscriptionName: LiveIndexingSubscription&lt;/PRE&gt;&lt;P&gt;It looks like it’s not possible to have multiple consumers on the same clientId (which makes sense for durable subscriptions).&lt;BR /&gt;Is there another way to achieve concurrency in this setup?&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 02 Feb 2026 18:50:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/scaling-live-indexing-mediation/m-p/496123#M40748</guid>
      <dc:creator>agermain</dc:creator>
      <dc:date>2026-02-02T18:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Scaling live-indexing-mediation</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/scaling-live-indexing-mediation/m-p/496135#M40750</link>
      <description>&lt;P data-start="361" data-end="458"&gt;I was reviewing the implementation and I have to say that this behaviour is actually intentional.&lt;/P&gt;
&lt;P data-start="460" data-end="941"&gt;The &lt;CODE data-start="464" data-end="489"&gt;live-indexing-mediation&lt;/CODE&gt; service consumes repository events using a durable topic subscription on &lt;CODE data-start="567" data-end="589"&gt;alfresco.repo.event2&lt;/CODE&gt;.&amp;nbsp;Because of that, the broker explicitly forbids multiple concurrent consumers on the same durable identity, which is why &lt;CODE data-start="861" data-end="886"&gt;concurrentConsumers &amp;gt; 1&lt;/CODE&gt; fails with the “durable consumer is in use” exception.&lt;/P&gt;
&lt;P data-start="943" data-end="1044"&gt;The original choice of a durable topic subscription was made to guarantee&amp;nbsp;no loss of repository events across restarts or outages,&amp;nbsp;deterministic order processing of events and exactly one logical consumer performing indexing side effects&lt;/P&gt;
&lt;P data-start="1221" data-end="1356"&gt;From a repository consistency point of view, this is the safest possible default: losing or reordering events is worse than being slow.&lt;/P&gt;
&lt;P data-start="1358" data-end="1595"&gt;That said, this design also means that classic JMS 1.1 durable subscriptions do not scale horizontally. Increasing &lt;CODE data-start="1477" data-end="1498"&gt;concurrentConsumers&lt;/CODE&gt; on the same durable subscription is fundamentally incompatible with how JMS durable topics work.&lt;/P&gt;
&lt;P data-start="1358" data-end="1595"&gt;To increase throughput, you may&amp;nbsp;move concurrency after message consumption (parallel processing inside the mediator) or&amp;nbsp;switch to a broker-level fan-out pattern (for example queues / virtual destinations).&lt;/P&gt;</description>
      <pubDate>Tue, 03 Feb 2026 07:17:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/scaling-live-indexing-mediation/m-p/496135#M40750</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2026-02-03T07:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Scaling live-indexing-mediation</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/scaling-live-indexing-mediation/m-p/496142#M40752</link>
      <description>&lt;P class=""&gt;Hi Angelborroy,&lt;/P&gt;&lt;P class=""&gt;Thank you again for your time.&lt;/P&gt;&lt;P class=""&gt;Regarding parallel processing inside the mediator, I don't believe I have access to the underlying code since it's a paid service.&lt;/P&gt;&lt;P class=""&gt;However, using virtual destinations does seem like a promising approach.&lt;/P&gt;&lt;P class=""&gt;This will allow the mediator to consume from a queue and therefore add multiple consumers.&lt;/P&gt;&lt;P class=""&gt;I’ll explore that option further. Thanks a lot for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Feb 2026 16:43:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/scaling-live-indexing-mediation/m-p/496142#M40752</guid>
      <dc:creator>agermain</dc:creator>
      <dc:date>2026-02-03T16:43:45Z</dc:date>
    </item>
  </channel>
</rss>

