Lock in $30 Savings on PRO—Offer Ends Soon! ⏳

Integrate your Symfony application with your Cl...

Avatar for thib92 thib92
December 17, 2018

Integrate your Symfony application with your Cloud Infrastructure using the Symfony Messenger

More and more companies move to IaaS (Infrastructure as a Service), and move their application to use managed cloud services. There are different techniques to enable services to communicate in the cloud. One of them is message queues.
I will show you through examples how you can use the Symfony Messenger to integrate your Symfony application with message queues, and to interact with cloud services.

Avatar for thib92

thib92

December 17, 2018
Tweet

More Decks by thib92

Other Decks in Programming

Transcript

  1. Integrate your Symfony application with your Cloud Infrastructure using the

    Symfony Messenger Symfony Xmas Meetup - December 2018 1
  2. About me ! • French engineering student • Technical manager

    @ Junior ISEP • Intern Full Stack Software engineer @ Birdie • Passionate about web, mobile and more! Symfony Xmas Meetup - December 2018 2
  3. The challenge • PHP is a synchronous language • It's

    difficult to execute things outside of a request / response context • Slow running processes directly affect user experience Symfony Xmas Meetup - December 2018 3
  4. The challenge • Call to a 3rd party API •

    Big processing after a user interaction • Sending an email or an SMS • ... Symfony Xmas Meetup - December 2018 4
  5. A solution: Asynchronous operations Aka postponing ("I'll just do it

    later ") Symfony Xmas Meetup - December 2018 6
  6. Quick questions • Who has worked with IaaS before? (AWS,

    GCP, Azure, Heroku, ...) • Who has heard of the Symfony Messenger? • Who has worked with the Symfony Messenger? (side project or production) Symfony Xmas Meetup - December 2018 7
  7. Recap • Receive an API call • Send an message

    through the Symfony Messenger to RabbitMQ • Respond now to the client • Handle the message later (either with the console or with another service) Symfony Xmas Meetup - December 2018 10
  8. The benefits • Separate the work between different components /

    services of your application • Multiple languages in your project • Asynchronous operations for heavy duty (or long-running processes) Symfony Xmas Meetup - December 2018 11