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


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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