Question

How to start Symfony messenger consume on App Platform

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

Subscribe
Share

Submit an 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.

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

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