{"id":28468,"date":"2018-04-08T11:08:11","date_gmt":"2018-04-08T09:08:11","guid":{"rendered":"https:\/\/mamchenkov.net\/wordpress\/?p=28468"},"modified":"2019-02-25T11:52:06","modified_gmt":"2019-02-25T09:52:06","slug":"handling-amazon-sns-messages-with-php-lumen-and-cloudwatch","status":"publish","type":"post","link":"https:\/\/mamchenkov.net\/wordpress\/2018\/04\/08\/handling-amazon-sns-messages-with-php-lumen-and-cloudwatch\/","title":{"rendered":"Handling Amazon SNS messages with PHP, Lumen and CloudWatch"},"content":{"rendered":"<!-- google_ad_section_start -->\n<p>Gonzalo Ayuso throws a few snippets of code in the blog posts title &#8220;<a href=\"https:\/\/gonzalo123.com\/2018\/01\/22\/handling-amazon-sns-messages-with-php-lumen-and-cloudwatch\/\">Handling Amazon SNS messages with PHP, Lumen and CloudWatch<\/a>&#8220;, which shows how to work with <a href=\"https:\/\/aws.amazon.com\/sns\/\">Amazon SNS<\/a>&nbsp;(Simple Notifications Service) and <a href=\"https:\/\/aws.amazon.com\/cloudwatch\/\">Amazon CloudWatch<\/a>&nbsp;(cloud and network monitoring solution) from PHP.&nbsp; The examples are based on the <a href=\"https:\/\/lumen.laravel.com\/\">Lumen<\/a> micro-framework, which is basically a stripped down <a href=\"https:\/\/laravel.com\/\">Laravel<\/a>.<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"excerpt":{"rendered":"<!-- google_ad_section_start -->\n<p>Gonzalo Ayuso throws a few snippets of code in the blog posts title &#8220;Handling Amazon SNS messages with PHP, Lumen and CloudWatch&#8220;, which shows how to work with Amazon SNS&nbsp;(Simple Notifications Service) and Amazon CloudWatch&nbsp;(cloud and network monitoring solution) from PHP.&nbsp; The examples are based on the Lumen micro-framework, which is basically a stripped down &hellip; <a href=\"https:\/\/mamchenkov.net\/wordpress\/2018\/04\/08\/handling-amazon-sns-messages-with-php-lumen-and-cloudwatch\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Handling Amazon SNS messages with PHP, Lumen and CloudWatch<\/span><\/a><\/p>\n<!-- google_ad_section_end -->\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Handling Amazon SNS messages with PHP, Lumen and CloudWatch #WebDev #PHP #Amazon #AWS #frameworks #cloud","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_links_to":"","_links_to_target":""},"categories":[1,18,133,62,1334],"tags":[3270,3578,3577,2366,3063,3549,3576,127,38,1330,2289],"keyring_services":[],"class_list":["post-28468","post","type-post","status-publish","format-standard","hentry","category-general","category-programming","category-sysadmin","category-technology","category-web-work","tag-amazon-aws","tag-amazon-cloudwatch","tag-amazon-sns","tag-cloud-computing","tag-frameworks","tag-laravel","tag-lumen","tag-monitoring","tag-php","tag-web-development","tag-web-hosting"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":28553,"url":"https:\/\/mamchenkov.net\/wordpress\/2018\/05\/07\/php-application-logging-with-amazon-cloudwatch-logs-and-monolog\/","url_meta":{"origin":28468,"position":0},"title":"PHP application logging with Amazon CloudWatch Logs and Monolog","author":"Leonid Mamchenkov","date":"May 7, 2018","format":false,"excerpt":"AWS Developer Blog ran this post a while back - \"PHP application logging with Amazon CloudWatch Logs and Monolog\", in which they show how to use Monolog and Amazon CloudWatch together in any PHP application.\u00a0 It goes beyond a basic configuration of connecting the two, all the way into setting\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2018\/05\/php-aws-500x254.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":28586,"url":"https:\/\/mamchenkov.net\/wordpress\/2018\/05\/18\/vue-cloudwatch-dashboard\/","url_meta":{"origin":28468,"position":1},"title":"Vue CloudWatch Dashboard","author":"Leonid Mamchenkov","date":"May 18, 2018","format":false,"excerpt":"Vue CloudWatch Dashboard - a simple live dashboard for Amazon CloudWatch metrics.","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2018\/05\/Vue-CloudWatch-Dashboard-500x313.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":36094,"url":"https:\/\/mamchenkov.net\/wordpress\/2019\/02\/25\/how-to-build-a-serverless-ci-cd-pipeline-on-aws\/","url_meta":{"origin":28468,"position":2},"title":"How To Build a Serverless CI\/CD Pipeline On AWS","author":"Leonid Mamchenkov","date":"February 25, 2019","format":false,"excerpt":"\"How To Build a Serverless CI\/CD Pipeline On AWS\" is a nice guide to some of the newer Amazon AWS services, targeted at developers and DevOps. It shows how to tie together the following: Amazon EC2 (server instances)Docker (containers)Amazon ECR (Elastic Container Registry)Amazon S3 (storage)Amazon IAM (Identity and Access Management)Amazon\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2019\/02\/aws.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2019\/02\/aws.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2019\/02\/aws.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2019\/02\/aws.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2019\/02\/aws.png?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2019\/02\/aws.png?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":29051,"url":"https:\/\/mamchenkov.net\/wordpress\/2018\/12\/07\/12-best-api-monitoring-tools-for-your-business\/","url_meta":{"origin":28468,"position":3},"title":"12 Best API Monitoring Tools for Your Business","author":"Leonid Mamchenkov","date":"December 7, 2018","format":false,"excerpt":"\"12 Best API Monitoring Tools for Your Business\" lists a bunch of services that are useful for the monitoring of your API.\u00a0 Read the whole thing for more details.\u00a0 Here's the list of the services covered: Amazon CloudWatchRigorUptrendsAssertibleBlazeMeterAppDynamicsNew RelicAPI FortressTraceviewRapidSpikeAgilityWorksAPI Science","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2018\/12\/api.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2018\/12\/api.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2018\/12\/api.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":25090,"url":"https:\/\/mamchenkov.net\/wordpress\/2015\/12\/28\/5-aws-mistakes-you-should-avoid\/","url_meta":{"origin":28468,"position":4},"title":"5 AWS mistakes you should avoid","author":"Leonid Mamchenkov","date":"December 28, 2015","format":false,"excerpt":"\"5 AWS mistakes you should avoid\" is a rather opinionated piece on what you should and shouldn't do with your infrastructure, especially, when using AWS. \u00a0Here's an example: A typical web application consists of at least: load balancer scalable web backend database and looks like the following figure. This pattern\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"typical-web-application","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2015\/12\/typical-web-application-500x298.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":29173,"url":"https:\/\/mamchenkov.net\/wordpress\/2019\/01\/04\/serverless-php-on-aws-lambda\/","url_meta":{"origin":28468,"position":5},"title":"Serverless PHP on AWS Lambda","author":"Leonid Mamchenkov","date":"January 4, 2019","format":false,"excerpt":"For all those of you who want to try out Amazon Lambda with PHP, here's a quick and simple guide as to how to set it up: Serverless PHP on AWS Lambda. This is some pretty exciting stuff!","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2019\/01\/2019sls-deploy.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2019\/01\/2019sls-deploy.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2019\/01\/2019sls-deploy.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2019\/01\/2019sls-deploy.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2019\/01\/2019sls-deploy.png?resize=1050%2C600&ssl=1 3x"},"classes":[]}],"jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/28468","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/comments?post=28468"}],"version-history":[{"count":0,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/28468\/revisions"}],"wp:attachment":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/media?parent=28468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/categories?post=28468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/tags?post=28468"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/keyring_services?post=28468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}