ankane / ahoy

Simple, powerful, first-party analytics for Rails
MIT License
4.18k stars 376 forks source link

Ahoy on Serverless #428

Closed nabilfreeman closed 4 years ago

nabilfreeman commented 5 years ago

Hey there,

We run a Node.js stack but love Ahoy so much that we are running a Rails app on the side just to use it for analytics!!

After successfully moving the rest of our tech to serverless on Lambda and seeing enormous cost & concurrency benefits I thought Ahoy could also benefit from it.

Anybody tried?

I found Ruby on Jets: https://blog.boltops.com/2018/12/21/jets-afterburner-serverless-rails-on-aws-lambda-in-5-minutes which promises an easy solution to getting Rails on Lambda but I'm wondering what cold starts etc are like.

I also looked at writing a JS server port of Ahoy specifically for Lambda but I don't think it's worth the effort considering how amazing this library already is.

ankane commented 5 years ago

Hey @nabilfreeman, I haven't tried running Ahoy on Lambda myself, but will leave this open for a bit in case others want to jump in (however, there's typically not a lot of chatter here).

ankane commented 4 years ago

Cleaning up issues