0

Symfony 2.8

Using https://github.com/j-guyon/CommandSchedulerBundle to manage periodic Command executions.

Each of these Command executions invokes an specific Service based on the Command arguments.

Being in the Services (all of them implementing the same Interface and extending an Abstract class), the plan is to create and execute sub-processes (asynchronously if possible)

Based in your experience, which will be the best way to deal with that sub-processes?

Cheers!

NorthmaN
  • 105
  • 2
  • 11
  • 1
    Running subprocesses in PHP is not best idea to go. I think using a queue with separated consumers is the best option. It's also will decouple your code. Look at https://symfony.com/doc/current/components/messenger.html – Leprechaun Jul 16 '20 at 15:17
  • Thanks for your answer. I will check out some option that fits our symfony 2.8. Cheers! – NorthmaN Jul 27 '20 at 07:49

0 Answers0