Show HN: Serverless Analytics Built from Scratch
11–20 of 50 posts
Re: Show HN: Serverless Analytics Built from Scratch
#12Interesting. I once built a ga clone using appengine, cloud dataflow, and big query. I guess that would count as serverless? Benchmarked it against the official dumps to big quey too and it was pretty spot on for every metric we could lookup!
Bigquery takes minimum 2-3 seconds for every query. Google Analytics is much faster, responds in a few hundreads milliseconds. What did you use dataflow for? How did you get data from end points and insert them into bigquery? Using streaming inserts?
Are you referring to their reporting API, or their collection endpoint? The collection endpoint is certainly fast to respond, but the actual reporting API can be quite slow depending on what you're trying to get from it.
> What did you use dataflow for? How did you get data from end points and insert them into bigquery? Using streaming inserts?
I'm not the parent, but I've created setups like what was mentioned. It sounds like they hosted the collection endpoint on AppEngine, then used DataFlow for streaming the data into BigQuery. Potentially using a Pub/Sub topic to queue up for DataFlow, since that has native integrations with DataFlow and even has a template available to support it[1].
[1] https://cloud.google.com/dataflow/docs/guides/templates/prov...
Re: Show HN: Serverless Analytics Built from Scratch
#13Earlier quoted context omitted.
I’ve seen folks put their pixel endpoint behind Fastly and process the access log delivered in S3. A Fastly VCL can handle the same transform that this Lambda is doing.
Is fastly free? Why would they use fastly and not s3?
API Gateway by itself is $3.50/million requests, which is 2-4x more expensive than Fastly at $0.75 - $1.60/million
Re: Show HN: Serverless Analytics Built from Scratch
#14I'd be curious to see a cost estimate for some traffic level. I wonder if there's a way to put the pixel in s3 and process the access logs more cheaply.
I’ve seen folks put their pixel endpoint behind Fastly and process the access log delivered in S3. A Fastly VCL can handle the same transform that this Lambda is doing.
Re: Show HN: Serverless Analytics Built from Scratch
#15Re: Show HN: Serverless Analytics Built from Scratch
#16Re: Show HN: Serverless Analytics Built from Scratch
#17I'd be curious to see a cost estimate for some traffic level. I wonder if there's a way to put the pixel in s3 and process the access logs more cheaply.
Re: Show HN: Serverless Analytics Built from Scratch
#18I think you can use API Gateway as a proxy for Kinesis, removing the need for Lambda.
Re: Show HN: Serverless Analytics Built from Scratch
#19Re: Show HN: Serverless Analytics Built from Scratch
#20Genuine question. What does this do that just inserting vanilla GA code in the page doesn't? Trying to understand the "why".