Hacker News new | ask | show | jobs
by golondon 1859 days ago
Hi, what's the infra behind this? What do you use to store events or only the count of them to generate the numbers?

Other question I have is, you seem to have returning visitors feature and as far as I understood, you store info in localStorage to be able to do that. I guess you're generating a uniq identifier to be able to that and store in the localStorage. Although it's not a cookie, semantically isn't kinda same thing? If you were to store those in cookies you would have needed to show cookie banner, but since it's in localStorage you don't have to?

1 comments

We're using Nats (https://nats.io/) for event streaming and pub/sub. The sessions are aggregated in memory, then they go to Badger (https://github.com/dgraph-io/badger), and finally the daily aggregates are easily distributable and immutable JSON files.

We're setting a session identifier to sessionStorage and those id's are wiped out once the session is processed and leaves the server memory. We worked together with a privacy specialist to ensure this is not violating GDPR. Details on what/how we collect data is here:

https://volument.com/privacy/

Thanks!