I'm using Iron.io push queues. Please explain what happens with attachments if I use code like this:
Mail::queue( 'email', array('body' => 'msg body here'), function($message) {
$message
->to('email@gmail.com')
->subject('Subject')
->attach(storage_path() . '/file.mp4' );
});
If the file is small ( < 100 KB ) then request to such a page seems to be really quick. If the file is 5MB or so, then the request takes a couple of seconds. Therefore it looks like Laravel serializes attachments, sends them to Iron server, then Iron sends it back to my server and then email is finally sent. Is that true?
That's not what I expect from queues. I expect immediate response to user. I'm totally sure that sync driver is off and app uses iron, since I see messages in iron.io dashboard.
By the way, I'm using ngrok tunelling to work with queues on local dev machine. Maybe thats the cause?