<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by troy liu on Medium]]></title>
        <description><![CDATA[Stories by troy liu on Medium]]></description>
        <link>https://medium.com/@liuguanghao?source=rss-b6f9484a3cda------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ArRhedhg9Oq0FdeQ</url>
            <title>Stories by troy liu on Medium</title>
            <link>https://medium.com/@liuguanghao?source=rss-b6f9484a3cda------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 22:04:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@liuguanghao/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[My Kid’s Lunchbox Riddles Started a Playground Trend, So I Built a Website to Save My Sanity]]></title>
            <link>https://medium.com/@liuguanghao/my-kids-lunchbox-riddles-started-a-playground-trend-so-i-built-a-website-to-save-my-sanity-764495feb34b?source=rss-b6f9484a3cda------2</link>
            <guid isPermaLink="false">https://medium.com/p/764495feb34b</guid>
            <category><![CDATA[riddles-for-kids]]></category>
            <category><![CDATA[parentlife]]></category>
            <category><![CDATA[kids]]></category>
            <dc:creator><![CDATA[troy liu]]></dc:creator>
            <pubDate>Tue, 19 May 2026 03:56:21 GMT</pubDate>
            <atom:updated>2026-05-19T03:56:21.625Z</atom:updated>
            <content:encoded><![CDATA[<p>My Kid’s Lunchbox Riddles Started a Playground Trend, So I Built a Website to Save My Sanity</p><p>Hey fellow parents and storytellers,</p><p>It all started a few months ago with a simple morning routine. I wanted a quick, screen-free way to connect with my kid before dropping them off at school, so I started handwriting a little riddle on a scrap of paper and tucking it inside their lunchbox.</p><p>I honestly didn’t think much of it. It was just a silly little thing between us.</p><p>But a few weeks later, my kid’s teacher mentioned something that made me smile: every day at lunchtime, half the class was gathering around my kid’s table, leaning in to hear the daily riddle and shouting out guesses. It had become the highlight of their lunch break.</p><p>Naturally, my kid came home demanding more. And harder ones. Every single day.</p><p>That’s where the trouble started.</p><p>As a developer, my immediate instinct was to search the web for inspiration. If you’ve ever tried searching for “riddles for 6-year-olds” at 6:00 AM while your coffee gets cold, you know the nightmare. Most sites are stuck in the 1990s, buried under an avalanche of annoying pop-up ads, or the riddles are either brutally abstract or totally boring.</p><p>I was spending more time dodging cookies and closing ads than actually finding fun wordplay for my child.</p><p>So, I did the only logical thing a developer parent could do: I opened my laptop and built a clean, minimal fix myself.</p><p>It’s called <a href="https://riddlesforkids.app/"><strong>riddlesforkids.app</strong></a>.</p><p>I built this with a few specific rules in mind, mostly to solve my own frustrations:</p><ul><li><strong>Zero Clutter:</strong> No annoying pop-ups, no spam. Just a clean, safe space.</li><li><strong>Themed Categories:</strong> Kids go through hyper-fixations. Whether your little one is currently obsessed with dinosaurs, space, animals, or food, you can just jump straight to that theme.</li><li><strong>Built for Paper (Zero Screen Time):</strong> This is the core feature for our family. I added a “Printables” tool so you can layout the riddles into little cards and print a week’s worth at once. They go straight from the printer into the lunchbox or onto the family dinner table — no iPads required.</li></ul><p>The collection itself is a labor of love. It’s a mix of the time-honored traditional riddles we grew up with, alongside some newer ones I’ve adapted to make sure they perfectly match a child’s modern vocabulary and logic levels.</p><p>It’s just a wholesome passion project born from our morning routine, but it has made our family connection so much richer. I wanted to share it here because I know how exhausting the parenting trench can be, and sometimes we just need a quick, easy win to bring a smile to our kids’ faces.</p><p>It’s completely open for other parents to use. If you give it a try, I’d honestly love to hear what you think. What themes are your kids obsessed with right now? Drop a comment below and let me know what I should add next.</p><p>Enjoy, and happy guessing!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=764495feb34b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Apache Doris]]></title>
            <link>https://medium.com/@liuguanghao/apache-doris-fe8f176ace22?source=rss-b6f9484a3cda------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe8f176ace22</guid>
            <category><![CDATA[apache-doris]]></category>
            <dc:creator><![CDATA[troy liu]]></dc:creator>
            <pubDate>Fri, 08 Dec 2023 03:33:48 GMT</pubDate>
            <atom:updated>2023-12-08T03:33:48.255Z</atom:updated>
            <content:encoded><![CDATA[<h3>一、Introduction to Doris</h3><p>Apache Doris is a high-performance real-time analytical database based on MPP architecture. Positioned within the data flow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*j4c7o0ZoQ4knH501oYKZTw.png" /></figure><p>It serves as a comprehensive MPP data warehouse that stores processed structured data from upstream OLTP systems, log systems, and tracking systems. Doris provides functionalities such as report analysis, information querying, and database analysis, and acts as an SQL engine for accelerated querying of external data sources including Hive, Iceberg, Hudi, MySQL, ElectricSearch, with official Flink and Spark Connectors. It supports federated analysis and ensures that Doris data does not become isolated. <br>Key features include MPP architecture, efficient columnar storage engine, high performance, availability, and elasticity, ANSI SQL support, multi-table joins, MySQL protocol support, pre-aggregation, materialized views with automatic updates, efficient batch and real-time data import, real-time data updates, and high-concurrency queries.</p><p>Introduction to Relevant Terminology</p><p><strong>FE:</strong> Frontend, the front-end node of Doris. It primarily handles client requests, metadata, cluster management, and query plan generation.</p><p><strong>BE</strong>: Backend, the back-end node of Doris. It is mainly responsible for data storage and management, as well as query plan execution.</p><p><strong>bdbje</strong>: Oracle Berkeley DB Java Edition. In Doris, bdbje is used for persistent metadata operation logging and FE high availability functions.</p><p><strong>Tablet</strong>: A physical storage unit representing the actual storage of a table. After partitioning and bucketing, a table is stored in the BE as Tablets. Each Tablet includes metadata and several continuous RowSets.</p><p><strong>Rowset</strong>: A collection of data changes within a Tablet, including data import, deletion, and update. RowSets are recorded based on version information, with each change generating a version.</p><p><strong>Version</strong>: Comprised of “Start” and “End” attributes, maintaining records of data changes. It is typically used to represent the version range of a Rowset. A new import generates a Rowset with equal “Start” and “End,” while Compaction generates a version with a range after the process.</p><p><strong>Segment</strong>: Represents the data segment within a Rowset. Multiple Segments make up a Rowset.</p><p><strong>Compaction</strong>: The process of merging continuous versions of Rowsets, which includes data compression operations.</p><p><strong>Broker</strong>: A middleware service in Doris that interfaces with external data sources such as HDFS and object storage, assisting in import/export functions.</p><h3>二、Doris Architecture Analysis</h3><p>Doris primarily consists of two components, FE and BE. FE is responsible for query compilation, distribution, and metadata management (based on memory, similar to HDFS NN); BE primarily handles query execution and the storage system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*43Rhc_52Gbodrir9Q4_A5Q.png" /></figure><p>From the perspective of data storage: FE stores and maintains cluster metadata; BE stores physical data.</p><p>From the perspective of query processing: FE nodes receive and parse query requests, plan query execution, schedule queries, and return query results; BE nodes execute queries in a distributed manner based on the physical plan generated by FE.</p><p><strong>1.FE</strong><br> FE primarily consists of three roles: leader, follower, and observer. The leader and follower roles are primarily used to achieve high availability of metadata, ensuring that in the event of a single node failure, metadata can be restored online in real time without affecting the entire service. The observer, on the other hand, is used to expand query nodes. In other words, if the cluster experiences significant pressure, expanding the query capability can be achieved by adding observer nodes. Observers do not participate in any writes, only in reads.</p><p>FE: Primarily responsible for query compilation, distribution, and metadata management (based on memory, similar to HDFS NN)</p><p>Manages metadata, executes SQL DDL commands, and uses Catalog to record information such as databases, tables, partitions, tablet replicas, etc.<br>FE is deployed with high availability, using replication protocols to select a leader and synchronize metadata between leader and follower nodes. All metadata modification operations are completed by the FE leader node, while FE follower nodes can perform read operations. Metadata read and write operations adhere to sequential consistency. The number of FE nodes follows the formula 2n+1, tolerating the failure of n nodes. In the event of an FE leader failure, a new leader is selected from the existing follower nodes to complete failover.<br>FE’s SQL layer parses, analyzes, rewrites, performs semantic analysis, and optimizes relational algebra for user-submitted SQL, generating logical execution plans.<br>FE’s Planner converts logical plans into physically distributable execution plans and distributes them to a group of BE nodes.<br>FE supervises BE, manages BE’s online and offline status, and maintains the number of tablet replicas based on the survival and health status of BE nodes.<br>FE coordinates data imports to ensure data import consistency.</p><p><strong>2.BE</strong><br>BE is the backend node of Doris, responsible for data storage and SQL computation execution.</p><p>BE nodes are all equal peers, and FE distributes data to the corresponding BE nodes according to a specific strategy. During data import, data is written directly to BE nodes without passing through FE. BE is responsible for formatting imported data and generating relevant indexes. When executing SQL computations, a SQL statement is first planned into logical execution units according to specific semantics, and then split into specific physical execution units based on the distribution of data. Physical execution units are executed on the data storage nodes, thus avoiding data transmission and copying, which optimizes query performance.</p><p>When a query is executed in an MPP (Massively Parallel Processing) cluster, it is divided into a tree-like execution plan. The coordination of this tree’s execution is handled by the Coordinator. The leaf nodes of the tree, also called Plan Fragments, are assigned to query executors on BE nodes, representing the role of the query executor module.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*0P0Icsoe2ROu6WXtVdhg9g.png" /></figure><p>BE is specifically responsible for the following tasks:</p><ol><li>Managing tablet replicas, where a tablet is a subset of a table formed through partitioning and bucketing, utilizing columnar storage.</li><li>Under the guidance of FE, creating or deleting sub-tables.</li><li>Receiving physical execution plans distributed by FE and designating BE coordinator nodes. Under the coordination of the BE coordinator, working collaboratively with other BE workers to complete the execution.</li><li>Reading from the local columnar storage engine to retrieve data and swiftly filter data through indexing and predicate pushdown.</li><li>Executing compact tasks in the background to reduce read amplification during queries.</li></ol><p>BTW：</p><p>If everyone has a need for a self-built website, they can purchase through this link, which offers many discounts.</p><p><a href="https://www.interserver.net/r/938217">https://www.interserver.net/r/938217</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe8f176ace22" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>