Lab 5
This was a breeze lab, after lab4. I found some really good tutorials on manipulating images with PHP’s gd libary. This lab didn’t take very long at all. One thing I would like to do (which is very simple) is to delete the images from my hard drive whenver I’m done storing them into the S3.
One problem I ran into with this lab is testing. Someone had left their image processing deamon running and I was never able to test mine live on the cloud. That issue replicated into another app server deamon, where messages were taken out of the /imageresults queue to the /approvalprocess queue. It turns out that the image description, submituser, and submitdate, were being put as arrays into the /approvalprocess sqs. It took me about a half hour to find out that before encoding the message into json, I had to enclose the description, submituser, and submitdate variables into double quotes so only the value got stored.
So, when creating the array instead of doing
$msg = array(…, ‘description’ => $description, …)
I had to do,
$msg = array(…, ‘description’ => “$description”, …)
Entry filed under: Distributed Systems, Uncategorized. Tags: .
Trackback this post