{"componentChunkName":"component---src-templates-tag-page-js","path":"/tags/algorithms/","result":{"data":{"site":{"siteMetadata":{"title":"M.Hassan Ahmed","author":"Hassan11196"}},"allMarkdownRemark":{"totalCount":1,"edges":[{"node":{"excerpt":"How many distinct things are in this stream? Distinct users today, distinct error signatures this hour, distinct workflow IDs that touched a…","fields":{"slug":"/2026-09-26-hyperloglog-count-distinct-at-scale/"},"frontmatter":{"date":"2026-09-26T00:00:00.000Z","title":"HyperLogLog: Count Distinct at Scale in 12KB","description":"Counting unique items exactly costs memory that grows with your data. HyperLogLog estimates the cardinality of billions in about 12KB. Here's how it works.","tags":["Algorithms","OpenSearch","Observability","Redis","Data Structures"],"thumbnail":{"childImageSharp":{"fluid":{"base64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAALCAIAAADwazoUAAAACXBIWXMAAAsSAAALEgHS3X78AAAB7ElEQVQoz12RyZKbMBCGOWbACCSBEBZm38xuYxvHYI+XmZrjpHLP+79GGjunVP3V1VL3V7+6JeG8BqG0cPpjfn1E4yV/fyTTNTpdvMMpe7/DMThO2flW3D79YURJAf36k5Jk1ZFVgbDvRduyOVfdpWwveXlK8yHODutqLJpzlO7zaoRqEO90GsoLAZSCVtKCBsiMNStRjUghoUJDhQSIxZhniCWzzBhKMgnedA+qGoNjCJRCXAmxlIoG26Vm5U+tEcssr3WzwXQ7w2ksbwMNzGncaC/8rWakmplrLFN0B+BE52sqqhcMOQh41YT7wnRbnuyIqKxm8O8f7vVuTRMtd8hIZA1gM8F2QZbVi4QIJCTM39jpniVbErYaz42fJ/b7y/r1Jf58s+mMcCTrYoZ1u6CifjnDE0Q6pP3N7yYr7TW3xH6t2Wte7OPr52o38e6IoxYZsYyWkmrGeFnSZU3tigdbHvdG2FG/NsOO57OzlfV4VbFVG9XTMtjq88A5WL4hPjuDIS8Oznhjh5PRH58a+HH07g/3evMeH0a2tb2NE+/ndViZBtGM31TrNXPJvE4Xpb4sDbclqwbegkVNIRE1cWoi6n+LhNFgL7yYnVUmKdhVaaASXyXBf9JZQniGwQq+mvpzGw1fcYHdHwv2F7XYUxz50t48AAAAAElFTkSuQmCC","aspectRatio":1.899441340782123,"src":"/static/d8c408d0f784bb15fc0ce20a2f9339e1/40a76/hero.png","srcSet":"/static/d8c408d0f784bb15fc0ce20a2f9339e1/c972b/hero.png 340w,\n/static/d8c408d0f784bb15fc0ce20a2f9339e1/27625/hero.png 680w,\n/static/d8c408d0f784bb15fc0ce20a2f9339e1/40a76/hero.png 1360w,\n/static/d8c408d0f784bb15fc0ce20a2f9339e1/ed396/hero.png 2000w","sizes":"(max-width: 1360px) 100vw, 1360px"}}}}}}]}},"pageContext":{"tag":"Algorithms"}},"staticQueryHashes":["32046230"]}