Report this

What is the reason for this report?

How to start Symfony messenger consume on App Platform

Posted on April 21, 2022

Hello, I deployed a Symfony application on App Platform and I would like to use the messenger system for sending mail asynchronously. To do this, I have to launch a command inside the “server” and that it restarts during a crash. Has anyone done this before? Thanks in advance. Julien



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @contactSnorkler,

I haven’t worked with Symfony messages, but I think Messenger: Sync & Queued Message Handling section helps you to know limit consuming, async/queued and dispatching messages, as well as minimum requirements.

To learn more about it, you could read the Messenger component docs.

I hope this information helps you,

Sergio Turpín

Hello,

What you could do is use a Worker component:

https://docs.digitalocean.com/products/app-platform/how-to/manage-workers/

This allows you to run background processes and you can just specify your command in there.

Let me know how it goes!

Best,

Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Dark mode is coming soon.