Symfony Messenger plus RabbitMQ
HTML-код
- Опубликовано: 6 окт 2020
- ℹ In this recording I demonstrate how to set up an asynchronous queue messaging system using Symfony and RabbitMQ.
🆓 Join garyclarke.tech for course DISCOUNTS and a FREE Docker + PHP course (worth $49)
www.garyclarke.tech
👇Follow me on Social Media:
Twitter: / garyclarketech
Linkedin: / garyclarketech
💕Show support:
www.paypal.com/donate/?hosted... Наука
Sir I really want to thank you for the effort. Your channel really has some videos that are well done and informative. And you way of explaining and doing things is easy to follow. Kudos
Thank you...I appreciate it!
Thanks, this was exactly what I was looking for! In just 11 minutes! ☺
Thanks. Learned something new :) So far the database queue with the jms/job-queue-bundle been serving us well :) Might not be the latest and fanciest tech but gets the job done.
This tutorial went straight into my head...Thanks a lot 👍
Welcome Vrushal...appreciated 👍
Thank you! Great work.
Helpful video, thanks Gary!
Welcome..thanks for watching!
Good lesson
Thank you very-very much!
You're welcome!
Big thanks for tutorial!
No problem!
that's very useful!
Glad it was helpful!
Thank you !
You're welcome! Thanks for watching
Firstly, thank you for sharing your knowledge. I would like to know how symfony identifies Rabbit if we do not configure the RABBITMQ_DSN variable in .env file,
Great video ^-^
Thank you, Serge
Good job
Thanks Adrián... I appreciate it.
Hi, Bro excellent.. What was the extension you are using to create PHP Class?
I don't use any extensions or plugins to create classes...it's just part of PHPStorm cmd+N on mac ctrl+N on windows / linux
Hi Gary!
Thank you very much for your effort, really useful video. I have 1 question though, how Symfony understands where to get RABBITMQ_DSN env variable? we did not define it in .env file
Thanks Ilyas..I appreciate it. When you use the local Symfony server, you get Docker integration. You can read about how the environment variables map to supported services here:
symfony.com/doc/current/setup/symfony_server.html#docker-integration
I got it now, thanks
Hello Gary
Thank you for the video super helpful as usual. I am trying to use docker-compose for this but it is failing with ---> You cannot use the "Symfony\Component\Messenger\Bridge\Amqp\Transport\Connection" as the "amqp" extension is not installed.
Yes you will need to have the amqp php extension installed.
@@GaryClarkeTech struggling to install in Docker for some reason is not happy with it
Is posible see the list_queues inside symfony ¿?
How to see .env file with rabbitmq connection? I get Could not connect to the AMQP server. Please verify the provided DSN
Do you have a video, where uses async tasks, but you can see response? (in your example : "email sent" ). Thank you.
Not atm..this is the only async video I've recorded so far...maybe in the future.
@@GaryClarkeTech Thank you.
tried out mac, not working, seen error --> You cannot use the "Symfony\Component\Messenger\Bridge\Amqp\Transport\Connection" as the "amqp" extension is not installed.
question 1 is how you configure the .env file to connect with rabbitmq container?
You need to install the amqp php extension. Here's a link to how you can do it on mac using homebrew, which is how I did it:
stackoverflow.com/questions/51818515/installing-amqp-on-mac-with-brew
It think this counts as cheating, but you can also use the --ignore-platform-reqs flag, it is not recommended tho', but there are use cases when it can be usefull, like when you develop on a container, but want your IDE to index the library or install dependencies in multistage Docker builds.
@@shikamaru676 Nice tip...thanks!
Make a video how to integrate keyCloak on symfony.
I'll check it out