Php rabbitmq callback

problem description

if you need to change the business logic in a callback that has written a consumer logic, you must rerun the consumer in order to execute the changed business logic correctly. Is there any way to execute the modified business logic without rerunning the consumer?

May.04,2021

you can run your consumer script as part of a shell script every second or less, rather than blocking it

-sharp!/bin/bash 

while [ true ]; do
    result=`/usr/local/bin/php /home/rabbitmq.php`
    sleep 1
done
Menu