Is Supbase a right fit for website tracking applic...
# off-topic
d
Is Supbase a right fit for website tracking application? Just trying to understand if it fits our needs.
x
Supabase is Postgres, which isn’t the best for analytics but definitely a good contender
Especially since I’ve heard that we might get Timescale on the managed version, potentially
Timescale makes Postgres sort of fly when it comes to time series data.
But yeah, I guess the real question would be if Postgres is fit for your needs - which depends a lot on the complexity of your analytics
d
Thanks @User ! We have used Firebase in past for a simple website tracking application and found it to work well. My main use case is to store User ID | Page ID| Page URL Visited | Timestamp in a datastore and use it to do certain queries like most visited pages, peak traffic hours.
Not sure if Supabase would work well for this use case. We could have thousands of users per minute during campaigns.
x
Well, thousands of inserts per minute at that data size isn’t really much for Postgres
l
this is interesting. I am looking into developing something very similar. I was originally going to use Firebase. after a bit of research seemed like fireabse would be quite expensive, hence trying out this
x
Even the free plan should be able to handle that well
Is this for ad tracking?
But yeah, for that amount of complexity, Postgres is fine. And once (if) we get Timescale, you’ll be able to query data intervals at pretty nice speeds
Obviously if you go selfhosted you can already use Timescale, but I’m gonna assume you’re interested in the managed version.
d
Yeah managed version. Don't want to handle server complexity. To provide more context we offer an LMS where students do all sorts of activities, Take Lessons, Visit Page, Watch Videos , Replay Videos. Ideally we would want the solution to expand from just website tracking to logging these activities. If it works well we would like to scale to our entire network of thousands of sites.
Its difficult to estimate the traffic just yet but it could be well beyond thousands of write per minute if we expand services to offer different event tracking not just pageviews.
x
Well, it’s Postgres 🤷‍♂️ spin up a free instance on Supabase and start inserting to benchmark
If you really need to squeeze out performance, you can just skip PostgREST and insert directly into Postgres
That way you skip the overhead of Kong + PostgREST
d
Thank you! I am not a developer but this is super helpful and going to pass it onto our team for review.