Over a million developers have joined DZone.

Novel Uses of the Cloud - Using AWS to Transform and Relay Email to GMail

· Cloud Zone

Build fast, scale big with MongoDB Atlas, a hosted service for the leading NoSQL database on AWS. Try it now! Brought to you in partnership with MongoDB.

One of the more empowering features of cloud-based solutions is that a single developer can now solve problems that would traditionally require the acquisition of a data center or the resources/skillset of an operations team to solve and, most importantly, easily share that solution for the rest of the world to use if they so desire.   These solutions are not necessarily confined  just to the realms of application deployment, horizontal scalability of applications, and big data processing.

Consider the problem faced by Eric Hammond
, who wished to use different delimiters for tag strings in GMail addresses other than "+".  Instead of hacking up a solution on infrastructure he owns, he took advantage of the capabilities of AWS and crafted a solution that is completely automated for him and also available for any of us to quickly use provided we are willing to use Google Apps for Business for email and Route53 for DNS.

The solution is an AWS Cloud Formation template  that lets you fill in the blanks to specify the domain you own and a few other operational customizing parameters.  The result is a ready-made infrastructure sitting on AWS that takes advantage of Route53 for programmatically creating an MX record and bootstrapping a scaling group of instances on EC2.  These instances host a postfix server configured to act as an email relay that will transform email addresses containing "-" in the local part of the address to the GMail supported "+" characters and ultimately relay to GMail.

The automation and hosted nature of cloud-based providers allows such problems to be solved and shared in a very general way, as Eric has done.  This particular example also demonstrates why you should be thinking about cloud-based solutions to solve problems even if you aren't interested in running your applications and data processing on cloud and IaaS providers.

Now it's easier than ever to get started with MongoDB, the database that allows startups and enterprises alike to rapidly build planet-scale apps. Introducing MongoDB Atlas, the official hosted service for the database on AWS. Try it now! Brought to you in partnership with MongoDB.


The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}