Urgent.News

What's breaking now, across thousands of outlets.

Tech

Hyper-efficient Cardinality Estimation: Redis HyperLogLog in Production with wredis

Hyper-efficient Cardinality Estimation: Redis HyperLogLog in Production with wredis Counting unique elements across millions of daily active users, IP addresses, or IoT telemetry events in a traditional relational database or standard Redis Set quickly consumes gigabytes of memory. A Redis Set storing 100 million UUIDs requires several gigabytes of RAM. In contrast, Redis HyperLogLog (HLL) uses a…

WRedis v1.0.0 LTS introduces a robust, enterprise-grade Python library for interacting with Redis, addressing challenges such as raw command handling, untyped returns, multithreading concurrency risks, and the need to reinvent cache decorators or distributed locks in each service. The library features native synchronous and asynchronous APIs, async/await support, declarative cache decorators (@cache and @async_cache with hit/miss ratio telemetry and configurable TTL policies), high availability factory support for Redis Sentinel and Cluster topologies, strict 100% type checking aligned with mypy configurations, 12 built-in data structures including Bitmaps, Hashes, Sets, SortedSets, Streams, Queues, Pub/Sub, Geo, HyperLogLog, Pipelines, and atomic transactions, a rigorous testing suite with over 800 unit tests, 38 integration tests on real Redis clusters, and 19 stress tests for concurrency, and practical implementation through clean hash management with JSON serialization via wredis.hash.RedisHashManager.

Example usage includes structured hash creation and reading with auto JSON serialization, real-time analytics using Bitmaps for user activity tracking, and setting and counting active users with O(1) memory complexity. WRedis can be installed via PyPI or GitHub and is maintained by William Steve Rodríguez Villamizar (Wisrovi).

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

This story

This is one outlet's version. Read the fullest account.

Read the original at dev.to →

More in Tech

Feeding the OLAP beast: ClickHouse massive bulk ingestion steps.

Feeding the OLAP beast: ClickHouse massive bulk ingestion steps. ClickHouse is a columnar beast, but treating it like MySQL by inserting row-by-row will bring your cluster to its knees.

  • ClickHouseBulkStep enables bulk data insertion in OLAP pipelines
  • Utilize wpipe-steps and wpipe import Pipeline for efficient production pipelines
  • Insert sample telemetry data batch and verify successful record count

Fool's Expertise

  • Huang dismissed AI doomerism, but missed chance to explain Hinton's wrong predictions
  • Hinton's mistake stemmed from making claims beyond his domain expertise
  • Consulting experts from various fields crucial to avoid "Fool's Expertise"

PDF, ZIP and binary files streaming over Kafka with names intact.

PDF, ZIP and binary files streaming over Kafka with names intact. Day 07 of the WKafka Open-Source Engineering Series. Don't provision a cloud bucket when all you need is sending small PDFs and ZIPs…

  • WKafka library streams PDF, ZIP, binary files over Kafka while preserving file names.
  • Traditional approaches require cloud buckets for small file transfers; WKafka handles it natively.

More from Monday 28 September →