Back in 2014,I was given an opportunity to re-architect SmartZip Analytics platform,and flagship product: SmartTargeting.This is a SaaS software helping real estate professionals keeping up with their prospects and leads in a given neighborhood/territory,finding out (thanks to predictive analytics) who's the most likely to list/sell their home,and running cross-channel marketing automation against them: direct mail,online ads,email...The company also does provide Data APIs to Enterprise customers.
I had inherited years and years of technical debt and I knew things had to change radically.The first enabler to this was to make use of the cloud and go with AWS,so we would stop re-inventing the wheel,and build around managed/scalable services.
SaaS产品,we kept on working withRailsas this was what my team had the most knowledge in.We've however broken up the monolith and decoupled the front-end application from the backend thanks to the use ofRails APIso we'd get independently scalable micro-services from now on.
Our various applications could now be deployed usingAWS Elastic Beanstalkso we wouldn't waste any more efforts writing time-consumingCapistranodeployment scripts for instance.Combined withDockerso our application would run within its own container,independently from the underlying host configuration.
Storage-wise,we went withAmazon S3and ditched any pre-existing local or network storage people used to deal with in our legacy systems.On the database side:Amazon RDS/MySQLinitially.Ultimately migrated toAmazon RDS for Aurora/MySQLwhen it got released.Once again,here you need a managed service your cloud provider handles for you.
Future improvements / technology decisions included:
Caching:Amazon ElastiCache/MemcachedCDN:Amazon CloudFrontSystems Integration:Segment/ZapierData-warehousing:亚马逊红移BI:Amazon Quicksight/SupersetSearch:Elasticsearch/Amazon Elasticsearch Service/AlgoliaMonitoring:New Relic
As our usage grows,patterns changed,and/or our business needs evolved,my role as Engineering Manager then Director of Engineering was also to ensure my team kept on learning and innovating,while delivering on business value.
One of these innovations was to get ourselves into Serverless : AdoptingAWS Lambdawas a big step forward.At the time,only available forNode.js(NotRuby) but a great way to handle cost efficiency,unpredictable traffic,sudden bursts of traffic...Ultimately you want the whole chain of services involved in a call to be serverless,and that's when we've started leveragingAmazon DynamoDBon these projects so they'd be fully scalable.