DEV Community

Cover image for Building Serverless Google Analytics from Scratch

Building Serverless Google Analytics from Scratch

Pavel Tiunov on December 20, 2018

From an engineering standpoint, the technology behind Google Analytics was pretty sophisticated when it was created. Custom, tailored-made algorith...
Collapse
 
pavonz profile image
Andrea Pavoni

Very nice! Can I ask you what's the average monthly cost for an architecture like this? I mean, I know that it's hard to answer, and that many of the services you used are billed by usage, but I'm very curious about the average bill based on hypothetical number of visitors (eg: how much with 1k visitors/month? 100k? 1M?).

Collapse
 
paveltiunov profile image
Pavel Tiunov

Hi Andrea!
Thanks for the question! Our estimate is about $4 per 1M of events. Most expensive are API Gateway service which is $3.50 per 1M of requests and AWS Lambda which is $0.20 per 1M requests.