Urgent.News

What's breaking now, across thousands of outlets.

Tech

Nunca más crees partes de 1 fila en ClickHouse: Buffer Manager integrado.

Día 03 de la serie técnica WClickHouse Open Source. No necesitas un cluster de Redis solo para proteger a ClickHouse de escrituras en streaming. WClickHouse incluye su propio Buffer Manager en memoria. Los Problemas Reales Microservicios que necesitan emitir eventos en tiempo real según ocurren Configurar buffers en Redis y workers de Celery solo para volcar a ClickHouse Tirar clusters de…

The ninth day of the WClickHouse Open Source technical series unfolds, revealing a groundbreaking development. Unlike previous reliance on Redis clusters to safeguard ClickHouse against streaming writes, WClickHouse now features its own integrated Buffer Manager in memory. This innovative approach addresses the challenges faced by microservices that need to emit real-time events as they occur.

Traditionally, services would set up buffers in Redis and Celery workers, solely to funnel data into ClickHouse. However, WClickHouse simplifies this process dramatically. By simply importing the WClickHouse module and enabling automatic buffering with "use_buffer = True", developers can start inserting events into the buffer. The library does the rest, buffering data in RAM and automatically flushing it to ClickHouse once the buffer reaches a limit of 10,000 events.

This architecture boasts several advantages. The in-memory accumulator allows the system to absorb micro-investments without any extra infrastructure overhead. When the buffer reaches its threshold, it flushes the data to ClickHouse, ensuring optimal performance. Importantly, this solution eliminates the need for Redis or message brokers in simple service scenarios, reducing complexity and cost.

Extensive testing has validated the effectiveness of this implementation. It has achieved over 95% test coverage against real instances of ClickHouse. The library supports Python versions 3.9 to 3.14 and leverages the powerful Apache Arrow and Pydantic v2 libraries. For those interested in exploring or integrating WClickHouse into their projects, the source code is available on GitHub at https://github.com/wisrovi/wclickhouse, and it can be installed via PyPI at https://pypi.org/project/wclickhouse.

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

Also reported by 1 other outlet

Read the original at dev.to →

More in Tech

Tamper-proof distributed nodes: SHA-256 source code integrity verification.

Day 03 of the wFabricSecurity Open-Source Engineering Series. How do you know the worker submitting transactions to your blockchain hasn't been modified on disk?

  • wFabricSecurity verifies SHA-256 code integrity before transactions
  • Node name and MSP directory path initialize security instance
  • Tamper detection halts execution if source code changes

trelix v3.2.2 to v3.3.8: A GitHub App Already Hardened and Running in Production, and a Connector That Never Touches a Pixel

docker run --entrypoint trelix-mcp ghcr.io/sairam0424/trelix:3.2.1 --help returns exit code 127: command not found. Not a typo, not a stale tag — the published 3.2.1 image never contained trelix-mcp…

  • Trelix evolves from v3.2.2 to v3.3.8, addressing previous defects
  • Version 3.2.3 introduces CI pipeline, fixes LIKE -wildcard bug
  • Version 3.3.8 marks correct code, new features and fixes implemented

More from Saturday 26 September →