I wanted to build an atomic counter to keep metrics of site visits and actions. Originally I started storing all the log messages and I was going to write some queries to summarise it. However, I decided that I didn’t need all the underlying data, at least not in this format, it’s stored elsewhere, so I wanted something which would just store the daily totals. DynamoDB is great place to store this information.
So, you’re using AWS S3 to store your images. That makes sense. It also makes sense to use a Lambda function to create thumbnails of them on the fly. If you’re not doing this yet then you should be. It’s one of the classic use cases for AWS Lambda and there are loads of examples around for it including this one from AWS themselves. But, if you also use Cloud Front to serve the images how do you get it to trigger the image thumbnails?
In this post I describe how to use the Amazon Command Line Interface (CLI) to update Route 53 Hosted Zone entries. When you shutdown and start up an AWS instance it will be assigned a new IP address. Of course this is only when you actually shutdown the instance, just doing a restart will maintain the existing address. Unfortunately assigning a new IP address will mean that your Route 53 Hosted Zone will be pointing to an old address.
Can you use Drupal as a document repository? There’s no reason why not and in fact it has many benefits. I was lucky enough to be invited to give a talk at the Drupal Show and Tell in London last week where I described a recent project we’ve delivered. This was for a Local Authority in the UK who were replacing a legacy Content Management system. The existing system was used to store a huge number and variety of documents from proofs of identification to reports and copies of invoices and correspondence.
For a long time web designers and content authors have been able to change what’s displayed on a page depending on who’s viewing it. However this is normally restricted to adverts and sidebars. Soon we could see that actual page contents adapting to suit the reader as well. When you visit a webpage does it look the same each time you view it? Does it look the same as when your friend views it?