Symfony 8.2 Messenger Concurrency: What Breaks in Multi-Tenant Applications

From Programming Tech Brief By HackerNoon · 12:02

Show by HackerNoon

This story was originally published on HackerNoon at: https://hackernoon.com/symfony-82-messenger-concurrency-what-breaks-in-multi-tenant-applications. With a database per tenant, Symfony 8.2 --concurrency lost the tenant in handlers, held tenants 21 s behind one probe and flushed a batch into the wrong DB. Check more stories related to programming at: https://hackernoon.com/c/programming. You can also check exclusive content about #symfony, #php, #messenger, #multitenancy, #concurrency, #postgresql, #software-engineering, #tutorial, and more. This story was written by: @mattleads. Learn more about this writer by checking @mattleads's about page, and for more stories, please visit hackernoon.com. Symfony 8.2 runs messenger:consume handlers in child processes, so a tenant set by a worker listener in the parent never reaches them. The article moves the tenant into a stamp that a bus middleware reads in the child, measures a 21-second hold when one tenant's slow first message is the probe, and fixes a batch handler that wrote three tenants' note ids into one tenant's database.

More episodes of Programming Tech Brief By HackerNoon

More episodes

PodSearch is a free, independent podcast search engine. Read about PodSearch, the privacy policy or contact us.