{"by":"fanyang01","descendants":6,"id":42265647,"kids":[42272559,42270195,42275449,42270352],"score":32,"text":"Hello HN!<p>We&#x27;re excited to announce MyDuck Server, an open-source project that seamlessly integrates the analytical power of DuckDB with your existing MySQL &amp; Postgres databases.<p>*Backstory*<p>Currently, there are no fully satisfactory open-source OLAP solutions for MySQL &amp; Postgres. In the MySQL ecosystem, HeatWave offers close integration, but it&#x27;s a proprietary, commercial product from Oracle. The Postgres community has seen promising DuckDB-based extensions emerge, including the official pg_duckdb. However, extensions can introduce isolation concerns in mission-critical environments.<p>Consequently, many organizations resort to setting up complex and costly data movement pipelines using tools like Debezium, Flink, or other commercial solutions to replicate data from MySQL &amp; Postgres to OLAP systems (e.g., Snowflake, BigQuery, ClickHouse) or Lakehouses (e.g., Delta Lake + Spark). This approach introduces significant operational overhead and expense.<p>Another emerging strategy is the zero-ETL approach, increasingly advocated by cloud providers. This model simplifies data integration by allowing the cloud provider to manage ETL pipelines, while necessitating reliance on specific cloud ecosystems and services.<p>*Key features*<p>MyDuck Server offers a real-time analytical replica that leverages DuckDB&#x27;s native columnar storage and processing capabilities. It operates as a separate server, ensuring isolation and minimizing impact on your primary database. Key features include:<p>- Easy Zero-ETL: Built-in real-time replication from MySQL &amp; Postgres with no complex pipelines to manage. It feels like a standard MySQL replica or Postgres standby. With the Docker image, passing a connection string is enough.<p>- MySQL &amp; Postgres Protocol Compatibility: We take this seriously and are working to make this project integrate well with the existing ecosystem around MySQL &amp; Postgres. Currently, it is already possible to connect to MyDuck with standard MySQL &amp; PostgreSQL clients in many programming languages.<p>- HTAP Support: A standard database proxy can be deployed in front of a MySQL&#x2F;Postgres primary and its MyDuck replica to route write operations to the primary and read operations to the replica. It just works.<p>- DuckDB SQL &amp; Columnar I&#x2F;O over Postgres Protocol: It&#x27;s unnecessary to restrict ourselves to MySQL&#x2F;Postgres&#x27;s SQL expressiveness and row-oriented data transfer. The Postgres port accepts all DuckDB-valid SQL queries, and you can retrieve query results in columnar format via `COPY (SELECT ...) TO STDOUT (FORMAT parquet&#x2F;arrow)`.<p>- Standalone Mode: It does not need to be run as a replica. It can also act as a primary server that brings DuckDB into server mode and accepts updates from multiple connections, breaking DuckDB&#x27;s single-process limitation.<p>*Relevant Previous HN Threads*<p>- pg_duckdb [1] (<a href=\"https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41275751\">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41275751</a>) is the official Postgres extension for DuckDB. It uses DuckDB as an execution engine to accelerate analytical queries by scanning Postgres tables directly.<p>- pg_mooncake [2] (<a href=\"https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41998247\">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41998247</a>) is a Postgres extension that adds columnstore tables for PG. It uses pg_duckdb under the hood but stores data in Lakehouse formats (Iceberg &amp; Delta Lake).<p>- BemiDB [3] (<a href=\"https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=42078067\">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=42078067</a>) is also a DuckDB-based Postgres replica. Unlike us, they focus on storing data in Lakehouse format.<p>We believe MyDuck Server offers a compelling solution for those seeking high-performance analytics on their MySQL &amp; Postgres data without the complexities and costs of traditional approaches. We&#x27;re eager to hear your feedback and answer any questions you might have. Let me know what you think!<p>[0] <a href=\"https:&#x2F;&#x2F;github.com&#x2F;apecloud&#x2F;myduckserver\">https:&#x2F;&#x2F;github.com&#x2F;apecloud&#x2F;myduckserver</a><p>[1] <a href=\"https:&#x2F;&#x2F;github.com&#x2F;duckdb&#x2F;pg_duckdb\">https:&#x2F;&#x2F;github.com&#x2F;duckdb&#x2F;pg_duckdb</a><p>[2] <a href=\"https:&#x2F;&#x2F;github.com&#x2F;Mooncake-Labs&#x2F;pg_mooncake\">https:&#x2F;&#x2F;github.com&#x2F;Mooncake-Labs&#x2F;pg_mooncake</a><p>[3] <a href=\"https:&#x2F;&#x2F;github.com&#x2F;BemiHQ&#x2F;BemiDB\">https:&#x2F;&#x2F;github.com&#x2F;BemiHQ&#x2F;BemiDB</a>","time":1732805441,"title":"Show HN: MyDuck Server – Supercharge MySQL and Postgres Analytics with DuckDB","type":"story","url":"https://github.com/apecloud/myduckserver"}