---
title: "Discussion on \"How HyperLogLog Counts Billions of Views with 12KB RAM\" | Hashnode"
description: "Discussion on \"How HyperLogLog Counts Billions of Views with 12KB RAM\". Learn how the HyperLogLog algorithm estimates cardinality at scale using constant memory, replacing expensive hash sets with a clever mathematical hack."
url: "https://hashnode.com/posts/how-hyperloglog-works-cardinality-estimation/6a83292d386a1d4aa6d9f6ed"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How HyperLogLog Counts Billions of Views with 12KB RAM](https://doogal.dev/how-hyperloglog-works-cardinality-estimation?utm_source=hashnode&utm_medium=feed)

Learn how the HyperLogLog algorithm estimates cardinality at scale using constant memory, replacing expensive hash sets with a clever mathematical hack.

Aug 17 · 6 min read · doogal.dev  
Read the article

-   [#systemdesign](https://hashnode.com/tag/systemdesign)
-   [#computerscience](https://hashnode.com/tag/computerscience)
-   [#databases](https://hashnode.com/tag/databases)
-   [#softwareengineering](https://hashnode.com/tag/softwareengineering)

## Written by

[Doogal Simpson](https://hashnode.com/@doogal)

@doogal

  
[View profile](https://hashnode.com/@doogal)

"hey doogal, what is .... ?"

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
