{"id":201,"date":"2026-11-23T08:00:00","date_gmt":"2026-11-23T07:00:00","guid":{"rendered":"https:\/\/hoja.in\/blog\/?p=201"},"modified":"2026-11-18T12:59:29","modified_gmt":"2026-11-18T11:59:29","slug":"background-jobs-in-typo3-with-the-message-bus","status":"publish","type":"post","link":"https:\/\/hoja.in\/blog\/background-jobs-in-typo3-with-the-message-bus\/","title":{"rendered":"Background jobs in TYPO3 with the message bus"},"content":{"rendered":"<p>I&#8217;d a requirement in one of my projects: when a visitor submits a contact form, the data has to go into an external CRM as well. Simple enough. The CRM&#8217;s API, though, sometimes needs several seconds to answer, and sometimes doesn&#8217;t answer at all.<\/p>\n<p>So the visitor was sitting in front of a spinning button, waiting for a system they had never heard of. That&#8217;s not nice. The work had to move out of the request.<\/p>\n<h2>What I tried first<\/h2>\n<p>My first idea was the classic one I have used since TYPO3 6.2 days: write the job into a custom table with a status field, and let a Scheduler task pick up open rows every few minutes. It works. I have built it more than once. But every time I end up writing the same things again: locking so two runs don&#8217;t take the same row, a retry counter, cleanup of old rows, logging.<\/p>\n<p>Then I remembered that TYPO3 has shipped a message bus since v12, built on Symfony Messenger. I had read the changelog back then and never used it. This was the first time, and honestly, I should have tried it earlier.<\/p>\n<h2>How it fits together<\/h2>\n<p>Messenger has three parts. A <strong>message<\/strong> is a small object that says what should happen. A <strong>handler<\/strong> does the work. A <strong>transport<\/strong> decides when and where: right now in the same process, or later from a queue.<\/p>\n<p>In TYPO3 the default routing sends every message to the <code>default<\/code> transport, which is synchronous. So out of the box, your handler simply runs immediately. That surprised me at first, because I dispatched a message and the request was exactly as slow as before. The fix is one line of routing, see Step 4.<\/p>\n<h2>Solution<\/h2>\n<p>The examples are for TYPO3 13.4 and 14.3 in Composer mode. I checked the classes against the v14 core installed in my project.<\/p>\n<h3>Step 1: Create the message<\/h3>\n<p>Keep it small and only put scalar values in it. Messages are serialized into the database, so an Extbase model or a request object inside it is asking for trouble.<\/p>\n<pre><code class=\"language-php\">&lt;?php\n\ndeclare(strict_types=1);\n\nnamespace HojaContactsMessage;\n\nfinal readonly class SyncContactToCrm\n{\n    public function __construct(\n        public int $contactUid,\n    ) {}\n}<\/code><\/pre>\n<h3>Step 2: Write the handler<\/h3>\n<p>Our hero here is the <code>#[AsMessageHandler]<\/code> attribute from Symfony. TYPO3 picks it up through autoconfiguration, so with the usual <code>Services.yaml<\/code> (autowire and autoconfigure on) there is nothing else to register. The type of the <code>__invoke()<\/code> parameter tells Messenger which message this handler is for.<\/p>\n<pre><code class=\"language-php\">&lt;?php\n\ndeclare(strict_types=1);\n\nnamespace HojaContactsMessageHandler;\n\nuse HojaContactsDomainRepositoryContactRepository;\nuse HojaContactsMessageSyncContactToCrm;\nuse HojaContactsServiceCrmClient;\nuse PsrLogLoggerInterface;\nuse SymfonyComponentMessengerAttributeAsMessageHandler;\n\n#[AsMessageHandler]\nfinal readonly class SyncContactToCrmHandler\n{\n    public function __construct(\n        private ContactRepository $contactRepository,\n        private CrmClient $crmClient,\n        private LoggerInterface $logger,\n    ) {}\n\n    public function __invoke(SyncContactToCrm $message): void\n    {\n        $contact = $this-&gt;contactRepository-&gt;findByUid($message-&gt;contactUid);\n        if ($contact === null) {\n            \/\/ Deleted in the meantime: nothing to do, and no reason to fail\n            $this-&gt;logger-&gt;info('Contact {uid} is gone, skipping CRM sync', ['uid' =&gt; $message-&gt;contactUid]);\n            return;\n        }\n        $this-&gt;crmClient-&gt;upsert($contact);\n    }\n}<\/code><\/pre>\n<p>Notice the early return. When the worker gets to the message, the world may have changed. A handler should cope with that quietly instead of throwing an exception and getting retried for nothing.<\/p>\n<h3>Step 3: Dispatch from the controller<\/h3>\n<p>Inject <code>MessageBusInterface<\/code> and call <code>dispatch()<\/code>. TYPO3 aliases it to its default bus.<\/p>\n<pre><code class=\"language-php\">&lt;?php\n\ndeclare(strict_types=1);\n\nnamespace HojaContactsController;\n\nuse HojaContactsDomainModelContact;\nuse HojaContactsDomainRepositoryContactRepository;\nuse HojaContactsMessageSyncContactToCrm;\nuse PsrHttpMessageResponseInterface;\nuse SymfonyComponentMessengerMessageBusInterface;\nuse TYPO3CMSExtbaseMvcControllerActionController;\nuse TYPO3CMSExtbasePersistenceGenericPersistenceManager;\n\nfinal class ContactController extends ActionController\n{\n    public function __construct(\n        private readonly ContactRepository $contactRepository,\n        private readonly PersistenceManager $persistenceManager,\n        private readonly MessageBusInterface $bus,\n    ) {}\n\n    public function createAction(Contact $contact): ResponseInterface\n    {\n        $this-&gt;contactRepository-&gt;add($contact);\n        \/\/ Persist first, otherwise the new record has no uid yet\n        $this-&gt;persistenceManager-&gt;persistAll();\n        $this-&gt;bus-&gt;dispatch(new SyncContactToCrm($contact-&gt;getUid()));\n\n        return $this-&gt;redirect('thanks');\n    }\n}<\/code><\/pre>\n<h3>Step 4: Route the message to the Doctrine transport<\/h3>\n<p>This is the line that makes it asynchronous. TYPO3 ships a preconfigured Doctrine transport that stores messages in the table <code>sys_messenger_messages<\/code> of the default connection. Run the database schema update once so the table exists.<\/p>\n<pre><code class=\"language-php\">&lt;?php\n\n\/\/ config\/system\/additional.php\nuse HojaContactsMessageSyncContactToCrm;\n\n$GLOBALS['TYPO3_CONF_VARS']['SYS']['messenger']['routing'][SyncContactToCrm::class] = 'doctrine';<\/code><\/pre>\n<p>You could also route everything with <code>'*'<\/code>, but I prefer naming each message. Then the core and other extensions keep their own behaviour.<\/p>\n<h3>Step 5: Run a worker<\/h3>\n<p>Now the messages wait in the table until somebody consumes them. Locally you can do it by hand:<\/p>\n<pre><code class=\"language-bash\">ddev exec vendor\/bin\/typo3 messenger:consume doctrine -vv<\/code><\/pre>\n<p>That gets boring after the second time, so in DDEV I let the web container run it as an extra daemon. DDEV keeps it running, and <code>--time-limit<\/code> makes the worker exit every hour so it picks up code changes when it is started again.<\/p>\n<pre><code class=\"language-yaml\"># .ddev\/config.yaml\nweb_extra_daemons:\n  - name: \"messenger\"\n    command: \"\/var\/www\/html\/vendor\/bin\/typo3 messenger:consume doctrine --time-limit=3600 -vv\"\n    directory: \/var\/www\/html<\/code><\/pre>\n<p>On a server with systemd, the TYPO3 documentation recommends a service unit with a restart policy. The worker exits cleanly when it hits a limit, and systemd starts a fresh one.<\/p>\n<pre><code class=\"language-ini\"># \/etc\/systemd\/system\/typo3-messenger.service\n[Unit]\nDescription=TYPO3 message consumer\n\n[Service]\nUser=www-data\nWorkingDirectory=\/var\/www\/site\/current\nExecStart=\/usr\/bin\/php vendor\/bin\/typo3 messenger:consume doctrine --time-limit=3600 --memory-limit=128M\nRestart=always\nRestartSec=1\n\n[Install]\nWantedBy=multi-user.target<\/code><\/pre>\n<p>On shared hosting without a service manager, you can run <code>messenger:consume<\/code> from the Scheduler instead. Then keep <code>--time-limit<\/code> below the cron interval, for example 240 seconds for a five-minute cron, so two workers never overlap.<\/p>\n<h2>Things I learned on the way<\/h2>\n<ul>\n<li>Persist before you dispatch. A new Extbase object has no uid until the persistence manager has written it, and a message with uid 0 is useless.<\/li>\n<li>Handlers run on the CLI. There is no frontend request, no site and no language from the request. If the handler needs them, put the identifiers into the message and build what you need from them.<\/li>\n<li>Long-running PHP processes keep their memory. Use <code>--memory-limit<\/code> and <code>--time-limit<\/code>, and don&#8217;t keep big caches in static properties.<\/li>\n<li>The worker runs the code it started with. After a deployment, restart it, otherwise it happily runs the old version.<\/li>\n<li>Worker limit options changed in 14.2. If you come from v13, read the changelog before copying an old service file.<\/li>\n<\/ul>\n<h2>Was it worth it?<\/h2>\n<p>For this kind of job, yes. The form answers right away, the CRM call happens a few seconds later in the background, and I didn&#8217;t write a single line of locking code. One thing to know: as far as I can see in the v14 core code, TYPO3 doesn&#8217;t wire up Symfony&#8217;s automatic retry strategy. If the CRM is down and the handler throws, the message is not tried again by itself. So wrap the <code>upsert()<\/code> call in a try\/catch, log the failure, and let a small command re-send failed contacts later. Not perfect, but honest.<\/p>\n<p>I&#8217;m not saying every Scheduler task should become a message. A nightly import that runs once at 3 am is still a fine Scheduler task. But for &#8220;do this soon, not now&#8221; work, the message bus is now my first choice.<\/p>\n<p>If this post helped you, I will be really happy. And if you run workers on a managed host in some clever way, please comment, I&#8217;d love to learn how.<\/p>\n<h2>Further reading<\/h2>\n<ul>\n<li><a href=\"https:\/\/docs.typo3.org\/m\/typo3\/reference-coreapi\/main\/en-us\/ApiOverview\/MessageBus\/Index.html\">Message bus<\/a> in the TYPO3 Core API reference<\/li>\n<li><a href=\"https:\/\/symfony.com\/doc\/current\/messenger.html\">Messenger: sync and queued message handling<\/a> (Symfony documentation)<\/li>\n<li><a href=\"https:\/\/ddev.readthedocs.io\/en\/stable\/users\/extend\/customization-extendibility\/\">DDEV customization and web_extra_daemons<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Slow API calls don&#8217;t belong in a frontend request. How I moved them into a queue with TYPO3&#8217;s Symfony Messenger integration, a Doctrine transport and one worker.<\/p>\n","protected":false},"author":1,"featured_media":202,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[27,30,39,5,24],"class_list":["post-201","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-typo3","tag-ddev","tag-extension-development","tag-performance","tag-typo3","tag-typo3-v14"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>TYPO3 message bus: background jobs with Messenger<\/title>\n<meta name=\"description\" content=\"Use the TYPO3 v13\/v14 message bus for background jobs: message, handler with #[AsMessageHandler], Doctrine routing and a messenger:consume worker in DDEV.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hoja.in\/blog\/background-jobs-in-typo3-with-the-message-bus\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"TYPO3 message bus: background jobs with Messenger\" \/>\n<meta property=\"og:description\" content=\"Use the TYPO3 v13\/v14 message bus for background jobs: message, handler with #[AsMessageHandler], Doctrine routing and a messenger:consume worker in DDEV.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hoja.in\/blog\/background-jobs-in-typo3-with-the-message-bus\/\" \/>\n<meta property=\"og:site_name\" content=\"Hoja Mustaffa Abdul Latheef \u00e2\u20ac\u201c Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hojaonline7\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-23T07:00:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hoja.in\/blog\/wp-content\/uploads\/2026\/11\/background-jobs-in-typo3-with-the-message-bus-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Hoja Mustaffa Abdul Latheef\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hojaonline\" \/>\n<meta name=\"twitter:site\" content=\"@hojaonline\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hoja Mustaffa Abdul Latheef\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/background-jobs-in-typo3-with-the-message-bus\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/background-jobs-in-typo3-with-the-message-bus\\\/\"},\"author\":{\"name\":\"Hoja Mustaffa Abdul Latheef\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/#\\\/schema\\\/person\\\/e6fbd54c2061674d8ea3e7861d858c7b\"},\"headline\":\"Background jobs in TYPO3 with the message bus\",\"datePublished\":\"2026-11-23T07:00:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/background-jobs-in-typo3-with-the-message-bus\\\/\"},\"wordCount\":962,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/background-jobs-in-typo3-with-the-message-bus\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/hoja.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/background-jobs-in-typo3-with-the-message-bus-1.jpg\",\"keywords\":[\"DDEV\",\"Extension development\",\"Performance\",\"TYPO3\",\"TYPO3 v14\"],\"articleSection\":[\"TYPO3\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/hoja.in\\\/blog\\\/background-jobs-in-typo3-with-the-message-bus\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/background-jobs-in-typo3-with-the-message-bus\\\/\",\"url\":\"https:\\\/\\\/hoja.in\\\/blog\\\/background-jobs-in-typo3-with-the-message-bus\\\/\",\"name\":\"TYPO3 message bus: background jobs with Messenger\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/background-jobs-in-typo3-with-the-message-bus\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/background-jobs-in-typo3-with-the-message-bus\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/hoja.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/background-jobs-in-typo3-with-the-message-bus-1.jpg\",\"datePublished\":\"2026-11-23T07:00:00+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/#\\\/schema\\\/person\\\/e6fbd54c2061674d8ea3e7861d858c7b\"},\"description\":\"Use the TYPO3 v13\\\/v14 message bus for background jobs: message, handler with #[AsMessageHandler], Doctrine routing and a messenger:consume worker in DDEV.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/background-jobs-in-typo3-with-the-message-bus\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/hoja.in\\\/blog\\\/background-jobs-in-typo3-with-the-message-bus\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/background-jobs-in-typo3-with-the-message-bus\\\/#primaryimage\",\"url\":\"https:\\\/\\\/hoja.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/background-jobs-in-typo3-with-the-message-bus-1.jpg\",\"contentUrl\":\"https:\\\/\\\/hoja.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/background-jobs-in-typo3-with-the-message-bus-1.jpg\",\"width\":1200,\"height\":630,\"caption\":\"Queue it, don't wait\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/background-jobs-in-typo3-with-the-message-bus\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/hoja.in\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Background jobs in TYPO3 with the message bus\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/hoja.in\\\/blog\\\/\",\"name\":\"Hoja Mustaffa Abdul Latheef \u00e2\u20ac\u201c Blog\",\"description\":\"Notes from daily work with TYPO3, PHP and AI-assisted engineering\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/hoja.in\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/#\\\/schema\\\/person\\\/e6fbd54c2061674d8ea3e7861d858c7b\",\"name\":\"Hoja Mustaffa Abdul Latheef\",\"description\":\"Senior TYPO3 Developer at jweiland.net, TYPO3 CMS Certified Developer. I write about TYPO3 upgrades, extension development, PHP and AI-assisted engineering with Claude Code.\",\"sameAs\":[\"https:\\\/\\\/hoja.in\\\/\"],\"url\":\"https:\\\/\\\/hoja.in\\\/blog\\\/author\\\/hoja\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"TYPO3 message bus: background jobs with Messenger","description":"Use the TYPO3 v13\/v14 message bus for background jobs: message, handler with #[AsMessageHandler], Doctrine routing and a messenger:consume worker in DDEV.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/hoja.in\/blog\/background-jobs-in-typo3-with-the-message-bus\/","og_locale":"en_US","og_type":"article","og_title":"TYPO3 message bus: background jobs with Messenger","og_description":"Use the TYPO3 v13\/v14 message bus for background jobs: message, handler with #[AsMessageHandler], Doctrine routing and a messenger:consume worker in DDEV.","og_url":"https:\/\/hoja.in\/blog\/background-jobs-in-typo3-with-the-message-bus\/","og_site_name":"Hoja Mustaffa Abdul Latheef \u00e2\u20ac\u201c Blog","article_publisher":"https:\/\/www.facebook.com\/hojaonline7","article_published_time":"2026-11-23T07:00:00+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/hoja.in\/blog\/wp-content\/uploads\/2026\/11\/background-jobs-in-typo3-with-the-message-bus-1.jpg","type":"image\/jpeg"}],"author":"Hoja Mustaffa Abdul Latheef","twitter_card":"summary_large_image","twitter_creator":"@hojaonline","twitter_site":"@hojaonline","twitter_misc":{"Written by":"Hoja Mustaffa Abdul Latheef","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hoja.in\/blog\/background-jobs-in-typo3-with-the-message-bus\/#article","isPartOf":{"@id":"https:\/\/hoja.in\/blog\/background-jobs-in-typo3-with-the-message-bus\/"},"author":{"name":"Hoja Mustaffa Abdul Latheef","@id":"https:\/\/hoja.in\/blog\/#\/schema\/person\/e6fbd54c2061674d8ea3e7861d858c7b"},"headline":"Background jobs in TYPO3 with the message bus","datePublished":"2026-11-23T07:00:00+00:00","mainEntityOfPage":{"@id":"https:\/\/hoja.in\/blog\/background-jobs-in-typo3-with-the-message-bus\/"},"wordCount":962,"commentCount":0,"image":{"@id":"https:\/\/hoja.in\/blog\/background-jobs-in-typo3-with-the-message-bus\/#primaryimage"},"thumbnailUrl":"https:\/\/hoja.in\/blog\/wp-content\/uploads\/2026\/11\/background-jobs-in-typo3-with-the-message-bus-1.jpg","keywords":["DDEV","Extension development","Performance","TYPO3","TYPO3 v14"],"articleSection":["TYPO3"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/hoja.in\/blog\/background-jobs-in-typo3-with-the-message-bus\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/hoja.in\/blog\/background-jobs-in-typo3-with-the-message-bus\/","url":"https:\/\/hoja.in\/blog\/background-jobs-in-typo3-with-the-message-bus\/","name":"TYPO3 message bus: background jobs with Messenger","isPartOf":{"@id":"https:\/\/hoja.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hoja.in\/blog\/background-jobs-in-typo3-with-the-message-bus\/#primaryimage"},"image":{"@id":"https:\/\/hoja.in\/blog\/background-jobs-in-typo3-with-the-message-bus\/#primaryimage"},"thumbnailUrl":"https:\/\/hoja.in\/blog\/wp-content\/uploads\/2026\/11\/background-jobs-in-typo3-with-the-message-bus-1.jpg","datePublished":"2026-11-23T07:00:00+00:00","author":{"@id":"https:\/\/hoja.in\/blog\/#\/schema\/person\/e6fbd54c2061674d8ea3e7861d858c7b"},"description":"Use the TYPO3 v13\/v14 message bus for background jobs: message, handler with #[AsMessageHandler], Doctrine routing and a messenger:consume worker in DDEV.","breadcrumb":{"@id":"https:\/\/hoja.in\/blog\/background-jobs-in-typo3-with-the-message-bus\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hoja.in\/blog\/background-jobs-in-typo3-with-the-message-bus\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hoja.in\/blog\/background-jobs-in-typo3-with-the-message-bus\/#primaryimage","url":"https:\/\/hoja.in\/blog\/wp-content\/uploads\/2026\/11\/background-jobs-in-typo3-with-the-message-bus-1.jpg","contentUrl":"https:\/\/hoja.in\/blog\/wp-content\/uploads\/2026\/11\/background-jobs-in-typo3-with-the-message-bus-1.jpg","width":1200,"height":630,"caption":"Queue it, don't wait"},{"@type":"BreadcrumbList","@id":"https:\/\/hoja.in\/blog\/background-jobs-in-typo3-with-the-message-bus\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hoja.in\/blog\/"},{"@type":"ListItem","position":2,"name":"Background jobs in TYPO3 with the message bus"}]},{"@type":"WebSite","@id":"https:\/\/hoja.in\/blog\/#website","url":"https:\/\/hoja.in\/blog\/","name":"Hoja Mustaffa Abdul Latheef \u00e2\u20ac\u201c Blog","description":"Notes from daily work with TYPO3, PHP and AI-assisted engineering","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hoja.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/hoja.in\/blog\/#\/schema\/person\/e6fbd54c2061674d8ea3e7861d858c7b","name":"Hoja Mustaffa Abdul Latheef","description":"Senior TYPO3 Developer at jweiland.net, TYPO3 CMS Certified Developer. I write about TYPO3 upgrades, extension development, PHP and AI-assisted engineering with Claude Code.","sameAs":["https:\/\/hoja.in\/"],"url":"https:\/\/hoja.in\/blog\/author\/hoja\/"}]}},"_links":{"self":[{"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/posts\/201","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/comments?post=201"}],"version-history":[{"count":1,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/posts\/201\/revisions"}],"predecessor-version":[{"id":249,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/posts\/201\/revisions\/249"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/media\/202"}],"wp:attachment":[{"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/media?parent=201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/categories?post=201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/tags?post=201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}