Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

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

DZone's Guide to

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

· Cloud Zone ·
Free Resource

See why enterprise app developers love Cloud Foundry. Download the 2018 User Survey for a snapshot of Cloud Foundry users’ deployments and productivity.

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.



Cloud Foundry saves app developers $100K and 10 weeks on average per development cycle. Download the 2018 User Survey for a snapshot of Cloud Foundry users’ deployments and productivity. Find out what people love about the industry standard cloud application platform.

Topics:

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}