<?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 markov-ngz on Medium]]></title>
        <description><![CDATA[Stories by markov-ngz on Medium]]></description>
        <link>https://medium.com/@markov-ngz?source=rss-a3ea36e4c413------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*V1ksKNjrf0oMZBGJFMBaoQ.jpeg</url>
            <title>Stories by markov-ngz on Medium</title>
            <link>https://medium.com/@markov-ngz?source=rss-a3ea36e4c413------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 06:34:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@markov-ngz/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[When Freshness Matters : Real-Time Analytics with Apache Fluss and Apache Doris]]></title>
            <link>https://medium.com/@markov-ngz/when-freshness-matters-real-time-analytics-with-apache-fluss-and-apache-doris-d4590416e6ab?source=rss-a3ea36e4c413------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4590416e6ab</guid>
            <category><![CDATA[apache-fluss]]></category>
            <category><![CDATA[real-time-analytics]]></category>
            <category><![CDATA[apache-doris]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[markov-ngz]]></dc:creator>
            <pubDate>Thu, 05 Nov 2026 20:46:35 GMT</pubDate>
            <atom:updated>2026-11-05T20:46:35.659Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*srE-K0Lp2O8D6mdxA9SsDQ.png" /></figure><p>Analytical needs are increasingly shifting toward the immediate exploitation of data. But what implications does this freshness requirement have on the way data architectures are designed, from ingestion to consumption?</p><p>With its version 5.0 and its Multi-Modal Lakehouse approach, Apache Doris notably introduces an integration with Apache Fluss, opening new perspectives for real-time analytics.</p><p>Why is real-time becoming a key concern for analytical architectures? What use cases justify this evolution, and how does the combination of Apache Fluss and Apache Doris address them?</p><p>We will first explore the motivations and constraints of Real-Time Analytics, then examine the complementary roles of Apache Fluss and Apache Doris. Finally, we will illustrate this architecture through a practical use case of trend detection in e-commerce searches, deployable locally.</p><p><strong>Detailed outline</strong></p><p><em>1. Why is real-time becoming a key concern for analytical architectures?</em></p><ul><li>How can one hour of data freshness be too late?</li><li>Micro-batch vs streaming: how to decide?</li></ul><p><em>2. Toward a Real-Time Analytics architecture with Apache Fluss and Apache Doris</em></p><ul><li>Apache Doris : an analytic database built for openness</li><li>Apache Fluss: a storage system oriented toward streaming analytics</li><li>The Fluss-Doris integration: toward a unified analytical experience</li><li>Architectural positioning and comparison with alternatives</li></ul><p><em>3. Use case: Ecommerce Search Box text trend</em></p><ul><li>Implementation description</li><li>Data Transformation</li><li>Visualization</li></ul><p>4. Outlook and agentic perspectives</p><p>5. References</p><p>Use case code available on <a href="https://github.com/markov-ngz/realtime-analytics-doris-fluss">GitHub</a>.</p><h3>Why is real-time becoming a key concern for analytical architectures?</h3><p>The key point here is that streaming is not done for the sake of streaming. The need must be justified both technically and economically.</p><h4>How can one hour of data freshness be too late?</h4><p>Three questions help frame the need:</p><ul><li><strong>What is the data used for ?</strong> Does it trigger an immediate action or feed a report ?</li><li><strong>Is the action window ephemeral ?</strong> Can we wait an hour, or until the next day ?</li><li><strong>What level of freshness is actually required ?</strong> Sub-second, sub-minute, within five minutes ?</li></ul><p>A purchase intent not detected within a minute is a lost opportunity: personalization, retargeting, or a targeted offer all become irrelevant. On the other hand, a weekly performance report will tolerate a daily batch process at no cost.</p><p>The real risk is confusing <strong>operational comfort</strong> (having data earlier because it is possible) with <strong>technical necessity</strong> (needing it now because the action cannot wait).</p><h4>Micro-batch vs streaming: how to decide?</h4><p>Consider the example of an e-commerce site wanting to track the evolution of user searches to detect emerging trends.</p><p>Two approaches are possible:</p><ul><li><strong>Micro-batch :</strong> search and sales events are collected and aggregated every 5 minutes. This approach is relatively straightforward to implement, but what happens when volumes grow, transformations become more complex, or multiple sources need to be synchronized ? Each execution must have the necessary data available, handle potential delays, and ensure consistency with previous runs.</li><li><strong>Streaming :</strong> events are processed as they arrive and aggregates are maintained continuously. Joining multiple streams can then rely on their time of occurrence rather than on independent execution cycles. But this continuity introduces its own constraints: how do you recover state after an incident? How do you evolve a job without losing that state ? How do you absorb load variations while keeping permanently allocated resources under control ?</li></ul><p>The choice therefore goes beyond the question of freshness alone. It also concerns the architecture’s ability to evolve, guarantee consistency across transformations, and absorb incidents without overly complicating operations.</p><p>Streaming becomes relevant when these requirements justify moving to a continuous processing model, despite the operational constraints it entails.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*qgHN4hnOXOJf9hvdm3LSRw.png" /><figcaption>Batch vs Streaming: decision</figcaption></figure><p><strong>When should streaming be preferred ?</strong></p><p>Streaming becomes relevant when the value of data freshness outweighs the cost of a continuous infrastructure, or when multiple sources must be joined within a shared event-driven logic. These two conditions are distinct: the first is economic, the second architectural. A pipeline can thus justify streaming even if a freshness of a few minutes remains acceptable.</p><p>It is precisely in this perspective that the combination of Apache Fluss &amp; Apache Doris positions itself : facilitating access to and analytical exploitation of data produced continuously.</p><h3>Why is the combination of Apache Fluss and Apache Doris ideal for real-time analytics?</h3><h4>Apache Doris : an analytic database built for openness</h4><p>Originally developed by Baidu and donated to the Apache Foundation in 2018, Doris is an analytical database built on an MPP architecture with columnar storage decoupled from compute.</p><p>What sets it apart from other analytical engines is its federated approach to data : through its external catalogs, Doris can query heterogeneous sources (relational databases, object storage, open table formats) without re-ingesting them. The goal is to reduce silos without multiplying pipelines.</p><p>On the storage format side, Doris notably supports Apache Paimon, an open table format organized as an LSM tree that is particularly well-suited to continuous write workloads, making it a coherent choice for streaming-oriented architectures.</p><p>It is precisely this native compatibility with Paimon, and by extension with Apache Fluss, that serves as the entry point for the architecture presented here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*Kevnbq_DS7QH1RO_oG4N7w.png" /><figcaption>Would it be an antipattern to unlock silos through the catalogs ?</figcaption></figure><h4>Apache Fluss : a storage system oriented toward streaming analytics</h4><p>Fluss is a columnar storage system designed for real-time and analytical workloads. It exposes a unified interface in the form of a table, built on a three-tier storage hierarchy organized by data freshness :</p><ul><li><strong>Hot recent data </strong>kept on TabletServers within the cluster.</li><li><strong>Warm data</strong> offloaded to remote object storage (such as S3) to relieve TabletServer memory.</li><li><strong>Cold data</strong> archived in the warehouse, accessible for reading via the Union Read mechanism.</li></ul><p>Compared to Kafka, Fluss’s columnar storage enables <strong>column pruning</strong>, p<strong>artition pruning</strong>, and <strong>predicate pushdown</strong> , optimizations that are absent from a log-oriented system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y6SW4_mYh_Sw5F0VSBFfow.png" /><figcaption>Fluss storage organization</figcaption></figure><h4>A combination for an optimized and simplified Union Read</h4><p>The benefit of combining Fluss and Doris goes beyond simply juxtaposing streaming and analytics: their native integration aims to unify and optimize data access, regardless of freshness level.</p><ul><li><strong>Optimized reads</strong> : Fluss’s columnar storage reduces I/O and network traffic, a particularly significant advantage for agentic workflows as it generates many fine-grained queries.</li><li><strong>Union Read </strong>: Doris can jointly query hot (streaming) and cold (data lake) data via the Fluss catalog, with no offset-based deduplication logic to manage on the application side.</li><li><strong>Resource control</strong> : the integration relies on JNI, which means JVM memory consumption must be monitored when multiple scanners are competing. Doris’s `jni_heap_admission` parameter helps mitigate OOM risks.</li></ul><p>Note: the Union Read between Doris and Fluss was still under active development at the time of writing [<a href="https://github.com/apache/doris/pull/68713">PR #68713</a>] and could not be tested as part of this use case.</p><h4>Comparison with other implementations</h4><p><strong>Kafka + Iceberg + Doris</strong></p><p>The stack presented by <a href="https://www.youtube.com/watch?v=h7vC5KhYF2c">Doctolib at Devoxx 2025</a> illustrates a widely adopted approach: a Spark job runs every 5 minutes to write Kafka topic events into Iceberg tables. To cover the delta not yet written to the data lake, it is then necessary to read directly from Kafka introducing constraints depending on the table type:</p><ul><li><strong>Primary-key tables </strong>: deduplication on the key is required, and for deletions, the state must be rebuilt from a changelog.</li><li><strong>Non-keyed tables</strong> : offset management or use of a timestamp whose reliability remains partial.</li></ul><p>It is precisely this reconciliation complexity that the Fluss/Doris Union Read aims to eliminate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pYWitYCkVXOht-GhjemY4g.png" /><figcaption>Real-time reading with Iceberg &amp; Kafka as proposed</figcaption></figure><p><strong>The Snowflake ecosystem</strong></p><p>To compare this approach with another data lake architecture, Snowflake provides an interesting alternative. Beyond its analytical capabilities, the platform offers an ecosystem of AI services and features that facilitate the deployment of agentic solutions at scale.</p><p>Snowflake provides several mechanisms for data stream ingestion and processing:</p><ul><li>Snowpipe Streaming: continuous ingestion, including from Kafka.</li><li>Openflow: ingestion and CDC (Change Data Capture) connectors.</li><li>Dynamic Tables: automated data transformations and refreshes.</li><li>Interoperability with Iceberg and Delta Lake: access to data stored in these open formats.</li></ul><p>One possible architecture consists of using Snowpipe Streaming or Openflow to populate a Snowflake-managed Iceberg table. Consumer applications can then benefit from the Union Read approach, accessing data directly without multiplying ingestion or synchronization mechanisms.</p><p>Adding <a href="https://www.snowflake.com/en/product/features/datastream/">Datastream</a>, a managed Kafka service, also makes it possible to envision real-time processing directly within the Snowflake ecosystem, with a simplified infrastructure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9wZKTmaB0m4RI4fKTwSEEA.png" /><figcaption>Example implementation with Snowflake</figcaption></figure><p>One point of caution concerns connectivity between the various resources, particularly when the architecture combines self-hosted components with cloud-hosted services.</p><p><strong>Conclusion</strong></p><p>Real-time analytics can be addressed with different stacks. The Kafka + Iceberg approach is proven and deployed at scale in production, but it transfers part of the complexity (deduplication, offset management, temporal consistency) to application layers or transformation jobs.</p><p>Fluss and Doris, through their native integration and the Union Read mechanism, aim to reduce this operational burden while maintaining analytical performance. It is in this light that they form a relevant combination for real-time analytical processing.</p><p>The following section presents a concrete use case deployed locally with Docker.</p><h3>Example Use Case: Search Text Trend</h3><p>The goal of this use case is to analyze the evolution of purchase intent from text searches performed by users in the search bar of an e-commerce site.</p><p>By joining searches with sales events, two types of signals can be identified:</p><ul><li><strong>Pre-order search </strong>: identifying keywords whose search volume is increasing without a corresponding rise in conversions. This allows the detection of emerging demand that could justify marketing activation actions: targeted campaigns, product highlighting, or recommendation adjustments.</li><li>P<strong>ost-order search </strong>: identifying searches performed after a purchase. These can reveal unmet complementary needs, particularly around accessories, bundles, or personalized recommendations.</li></ul><p>The goal is therefore to transform user searches into actionable signals to detect commercial opportunities and adapt marketing actions accordingly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9htZu5rN1aU3XELDfHV-yA.png" /><figcaption>Search bar from JD.com, which inspired this use case</figcaption></figure><h4>Architecture</h4><p>The use case relies on two event streams produced by the e-commerce site:</p><ul><li><strong>Search events </strong>: terms entered in the search bar.</li><li><strong>Sales events </strong>: orders placed by users.</li></ul><p>These events are sent to Fluss via HTTP requests passing through the Gateway, then stored in <strong>bronze</strong> tables.</p><p>A Flink job then handles their transformation and enrichment to produce the expected analytical mart, stored in a <strong>gold</strong> table.</p><p>Finally, Doris queries this mart via the <a href="https://fluss.apache.org/docs/streaming-lakehouse/union-read/">Union Read</a> mechanism, relying on the Fluss catalog to access the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BXfFz7fGykTzN1Mbyqa7qg.png" /><figcaption>Overall architecture of the analytical processing pipeline</figcaption></figure><h4>Data Transformation</h4><p>A single job handles data transformation through the following steps:</p><p>1. Reading events from the <strong>bronze</strong> tables.</p><p>2. Enriching text searches by joining them with sales made within the same session, within a time window of ± 60 minutes.</p><p>3. Aggregating by keyword using <strong>sliding windows</strong> to track search volume trends over time.</p><p>4. Computing trend indicators by comparison with a historical baseline, along with conversion signals.</p><p>5. Writing results to the <strong>gold</strong> table, which constitutes the mart consumed by Doris.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mMALYoJGCR35x5fGT1dpfQ.png" /></figure><h4>Visualization</h4><p>Results are exposed through two complementary Streamlit dashboards, each addressing a distinct analytical objective.</p><p><strong>1. Detecting emerging trends</strong></p><p>This first dashboard identifies keywords whose search volume is increasing significantly relative to their baseline, without that increase yet translating into equivalent conversions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*cDGIFV4lhSkq3g9KjX0iPQ.png" /><figcaption>Post purhcase intent</figcaption></figure><p><strong>2. Identifying complementary needs</strong></p><p>The second dashboard focuses on searches performed after a purchase in order to identify needs that emerge once a transaction has been completed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*eHvaiQcvdp0xeyl2m212Tg.png" /><figcaption>Keyword Velocity Dashboard</figcaption></figure><h3>Outlook and agentic perspectives</h3><p>As this use case demonstrates, dashboards make it possible to identify trends and opportunities, but they remain passive : they expose a reality without necessarily explaining it or acting on it.</p><p>The Apache Doris ecosystem opens the way to agentic workflows by combining several building blocks : real-time data access via Fluss (as presented here), Hybrid Search, observability, and integration of LLMOps technologies.</p><p>In our example, an agent could explain the sudden rise of a keyword by analyzing associated factors (region, channel, purchasing behavior), then prepare targeted campaigns in interaction with CRM and marketing tools.</p><p>The goal : moving from visualizing signals to interpreting them and automating the resulting actions.</p><p>Thank you for taking the time to read this ! <strong>😁</strong></p><h3>References</h3><ul><li><a href="https://www.velodb.io/blog/jd-com-s-exploration-practice-apache-doris">JD.com exploration’s of Apache Doris ,</a> Li Zhe , 12–07–2025</li><li><a href="https://doris.apache.org/blog/apache-doris-5-multimodal-lakehouse-preview">Apache Doris 5.0 : multimodal lakehouse preview ,</a> Mingyu Chen September 4, 2026</li><li><a href="https://fluss.apache.org/blog/apache-doris-fluss-stream-lake-analytics">Apache Doris &amp; Fluss for stream lake analytics ,</a> Mingyu Chen October 8 2026</li><li><a href="https://fluss.apache.org/compare/kafka/">Apache Fluss &amp; Kafka comparison</a> , Fluss documentation</li><li><a href="https://www.youtube.com/watch?v=huTlmR7XXJk">Building a Real-Time Streaming Lakehouse with Apache Fluss and Apache Doris</a>, Anton Borisov October 2026</li><li><a href="https://www.youtube.com/watch?v=h7vC5KhYF2c&amp;pp=ygUVZG9jdG9saWIgZGV2b3h4IDIwMjUg">Iceberg , pourquoi devez vous connaitre ce nouveau format de données ? </a>, Bertrand Paquet Devoxx 2025</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4590416e6ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DevSecOps: Apache Airflow CI/CD Workflow with Argo CD and GitHub Actions]]></title>
            <link>https://medium.com/@markov-ngz/devsecops-apache-airflow-ci-cd-workflow-with-argo-cd-and-github-actions-5be38c5642a9?source=rss-a3ea36e4c413------2</link>
            <guid isPermaLink="false">https://medium.com/p/5be38c5642a9</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[argo-cd]]></category>
            <category><![CDATA[devsecops]]></category>
            <category><![CDATA[airflow]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[markov-ngz]]></dc:creator>
            <pubDate>Sun, 11 Oct 2026 14:40:32 GMT</pubDate>
            <atom:updated>2026-10-23T16:28:25.205Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FLIbLWcdBlQbkwTeJzzPow.png" /></figure><p><strong><em>How to automate the deployment of an Apache Airflow cluster running on Kubernetes while maintaining security, reliability, and consistency across environments?</em></strong></p><p>This project addresses this challenge by implementing a secure, GitOps-driven CI/CD workflow built on GitHub Actions and Argo CD.</p><p>Here’s what we’ll cover:</p><ol><li>Architecture Overview</li><li>CI : Apache Airflow</li><li>CD : Argo CD</li><li>Scaling Across an Organisation</li></ol><p>⭐️ <a href="https://github.com/markov-ngz/devsecops-airflow-argocd">Github Repository Link</a></p><p>━━━━━━━━━━━━━━━━━━━━</p><h4>1. Architecture Overview</h4><p>The project separates application development from infrastructure management using two kind of repositories, each with a distinct responsibility :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*-ZBHJnNGSaIs-uLyiPHvbA.png" /></figure><p>To upgrade to a new application version, the infrastructure repository only needs to update the image reference or add new configuration entries. This split also lets the number of application repositories grow freely while keeping a single source of truth for infrastructure.</p><p>This leaves one question open: once a change is pushed to the infrastructure repository, what actually deploys it?</p><p><a href="https://argo-cd.readthedocs.io/en/stable/">Argo CD</a> fills that role, watching the repository and applying changes directly to the target Kubernetes clusters while <a href="https://kyverno.io/">Kyverno</a> enforces policy compliance along the way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WJI773jMwHiYRSlkzJHu_w.png" /><figcaption>Architecture overview</figcaption></figure><p>━━━━━━━━━━━━━━━━━━━━</p><h4>2. Continuous Integration : Apache Airflow</h4><p>Not all changes to Apache Airflow require the same deployment process.</p><p>This project distinguishes between two main categories of changes: DAG changes, and Docker image changes.</p><p><strong>2.1 Dag Changes</strong></p><p>When modifying or adding a DAG, Apache Airflow do not need to be redeployed however, DAGs must be “synced” across all environments and checks to be valid.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oeO6SVQl3lXwlpfGTFhMTw.png" /><figcaption>CI Airflow Dag</figcaption></figure><p><strong>2.2 Docker Image Changes</strong></p><p>When updating any files related to the image build, Airflow deployment will have to be updated.</p><p>Hence the following steps are needed :</p><ol><li>Build and validate the image</li><li>Publish it to the container registry</li><li>Update the corresponding image reference in the infrastructure repository, and let Argo CD synchronize the deployment.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OzR6es2X64UFnGOLcDfTwg.png" /><figcaption>Airflow CI Image</figcaption></figure><p>━━━━━━━━━━━━━━━━━━━━</p><h4>3. Continuous Delivery : ArgoCD</h4><p>Argo CD implements the continuous delivery component of the workflow using GitOps principles.</p><p>It continuously monitors the configured Git repositories and compares the desired application state with the actual state of the Kubernetes cluster.</p><p>When the infrastructure repository is updated, Argo CD detects the changes and synchronizes the cluster with the desired configuration, according to the application’s synchronization policy.</p><p><strong>Deployment Workflow</strong></p><p>The deployment process follows these steps:</p><ol><li>The infrastructure repository is updated with the appropriate image reference or Helm chart values.</li><li>Argo CD detects the configuration change.</li><li>Argo CD synchronizes the Kubernetes cluster with the desired state.</li><li>Kyverno policies validate applicable Kubernetes resources and enforce the configured security requirements.</li></ol><p>Each environment can have its own Helm values file. This allows the same application artifact to be promoted across environments while keeping environment-specific configuration separate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*euvO4qIsSiKFWCe3TYzATw.png" /><figcaption>ArgoCD multi environment deployment</figcaption></figure><p>By separating image builds from deployment configuration, the workflow improves deployment traceability and helps ensure that each environment runs the intended application version.</p><p>━━━━━━━━━━━━━━━━━━━━</p><h4>4. Scaling the architecture</h4><p>In larger organizations, a single application repository is often insufficient to accommodate multiple teams with different development cycles, dependencies, and delivery requirements.</p><p>For organizations using Apache Airflow’s multi-team capabilities, one possible approach is to introduce additional repositories dedicated to shared resources and reusable CI automations, which allows scaling the number of repositories while maintaining a single source of truth for deployments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pu8SspUnPfvoYqynxtdgbw.png" /><figcaption>Airflow Multi Team Repository Structure</figcaption></figure><p>However, onboarding more teams introduces new underlying challenges, such as proper resource allocation and monitoring usage, including compute and egress costs.</p><p>To address the resource allocation challenge, a solution like <a href="https://yunikorn.apache.org/">Yunikorn</a> could prove useful, as it also enables <a href="https://yunikorn.apache.org/docs/user_guide/gang_scheduling">Gang Scheduling</a> for Spark workloads .</p><p>━━━━━━━━━━━━━━━━━━━━</p><h4>🌟 <strong>Acknowledgements</strong></h4><p>Thank you for checking out this project!</p><p>If you find this post enlightening, please consider giving it a star on GitHub !</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d-tikwawcdkRrBfH5wygfQ.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5be38c5642a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Towards a Streaming Lakehouse ]]></title>
            <link>https://medium.com/@markov-ngz/towards-a-streaming-lakehouse-67697085b74c?source=rss-a3ea36e4c413------2</link>
            <guid isPermaLink="false">https://medium.com/p/67697085b74c</guid>
            <category><![CDATA[apache-fluss]]></category>
            <category><![CDATA[apache-polaris]]></category>
            <category><![CDATA[apache-flink]]></category>
            <category><![CDATA[apache-iceberg]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[markov-ngz]]></dc:creator>
            <pubDate>Mon, 20 Apr 2026 05:56:01 GMT</pubDate>
            <atom:updated>2026-04-20T05:56:01.528Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>As we delve deeper into a columnar world for data storage and new needs for real time processing emerges through AI, how to maintain a coherent architecture while ensuring governance, performance, operational ease, and avoiding cost explosion?</p><p>This is what we aim to solve by implementing a Streaming Lakehouse : unifying storage with one source of truth between hot streaming data and cold historical one and flexible enough to support business needs requiring daily batch pipeline or sub seconds transformations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*28jc3pLWjusyRGWP80QGUw.png" /><figcaption>Streaming Lakehouse Overview</figcaption></figure><p>Github Repository ⭐ : <a href="https://github.com/markov-ngz/towards_streaming_lakehouse">https://github.com/markov-ngz/towards_streaming_lakehouse</a></p><p>Documentation Site 📚: <a href="https://markov-ngz.github.io/towards_streaming_lakehouse">https://markov-ngz.github.io/towards_streaming_lakehouse</a></p><p>Note : The title is a reference to the article <a href="https://fluss.apache.org/blog/unified-streaming-lakehouse/">Towards A Unified Streaming &amp; Lakehouse Architecture</a> by Luo Yuxia (Alibaba Cloud).</p><h3><strong>1. Motivations</strong></h3><p>To understand the need for a streaming lakehouse, it is important to recall the current challenges faced when implementing real-time processing for analytics:</p><p>- Operational complexity of streaming applications</p><p>- Incompatibility of message queues with analytical workloads</p><p>- Difficulty in assessing the workload and challenges of migrating jobs from batch to streaming</p><p>These points are detailed below:</p><h4><strong>Message Queue Challenges</strong></h4><p>- Difficulty reading both historical and real-time data together (union reads)</p><p>- No column pruning: full rows must be read, leading to unnecessary network costs</p><p>- Data updates require heavy deduplication processes</p><h4><strong>Assessing Migration from Batch to Streaming</strong></h4><p>In practice, how to assess, for a project of this scale, the human workload, business considerations, and potential side effects?</p><p>The transition from batch to stream immediately implementation several questions:</p><p>- What are the first steps to check technical feasibility?</p><p>- If a schema changes, what protocol should be followed?</p><p>- How can batch jobs be unified with the streaming layer?</p><p>- Should transformations be refactored, and is the current structure capable of supporting this smoothly?</p><p><strong>Not to mention: </strong>security, logging, test environments, CI/CD, scaling, load testing, financial budget, disaster recovery, versioning, data quality, and the technical skills required</p><p>Implementing a lightweight version of a streaming lakehouse helps explore multiple areas and identify many issues that need to be addressed early in a project.</p><h4><strong>Streaming Application Challenges</strong></h4><p>Well known to Flink developers, designing stateful real-time processing applications involves the following challenges:</p><p>- Row-based reading instead of columnar (leading to unnecessary network traffic)</p><p>- State size explosion</p><p>- Difficulty debugging state</p><p>- State updates</p><p>- Schema evolution</p><p>How can these issues be solved? Should new features be added to the Flink framework, or should streaming storage systems also evolve to address them?</p><h3><strong>2. Implementation</strong></h3><p>This project is divided into three parts:</p><h4>Deployment on Kubernetes</h4><p>With S3 as remote storage: Fluss cluster, Polaris API as Iceberg Catalog , Spark, and Flink operators for applicative deployments</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GEcnr1ElUhxWaRH86roqug.png" /><figcaption>Deployed resources</figcaption></figure><h4>Application-specific features with Flink and Fluss</h4><p>This part outlines how Fluss, integrates with Flink to optimize performance and data handling. Key benefits include:</p><p>- Reduced state size for faster backups and checkpoints</p><p>- Lower memory usage</p><p>- Seamless integration with historical data</p><p>The following Flink features and patterns were implemented for smooth Fluss integration:</p><p>- first_row merge type</p><p>- Delta join</p><p>- Lookup join</p><p>- Materialized table</p><p>- Union read</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*btedYLx5xXMFqPU1C92UCA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*BFW8OGnRndCLKEzUfp0cNw.png" /><figcaption>Multiple type of join</figcaption></figure><h4>Business use case</h4><p>customer order first-touch attribution (i.e., how a customer enters the sales funnel) respecting a medalion model</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uZrK_jJGYjoE3zZplWOrrQ.png" /><figcaption>Data transformations</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cRqwR4PsFqudCGaiBg5Syw.png" /><figcaption>Example of data queried at the mart layer</figcaption></figure><h3>3. What Does Apache Fluss Solve?</h3><p>Apache Fluss is a core component of a streaming lakehouse. With its tiering service, it enables seamless, periodic transfer of hot data to cold storage. It also introduces columnar streaming using an <a href="https://arrow.apache.org/docs/index.html">Apache Arrow</a> implementation and shifts from traditional queue/topic-based messaging to <a href="https://fluss.apache.org/docs/table-design/overview/">tablets</a>.</p><p>This is a key change, as it enables the following:</p><p>- Column pruning</p><p>- Data updates using KV tablets (avoiding heavy deduplication) with multiple <a href="https://fluss.apache.org/docs/table-design/merge-engines/">merge engines</a></p><p>Additionally, Flink integration with Fluss (which stands for <em>*Flink Unified Streaming Storage*</em>) improves:</p><p>- State reduction (e.g., delta joins) by moving processing from the application layer to streaming storage (resulting in faster checkpoints, quicker recovery, and lower memory usage)</p><p>- Easier debugging by querying Fluss tables directly (less opaque)</p><p>- Unified reads of historical and streaming data, handled seamlessly by Flink with Fluss</p><h3><strong>4. Challenges and Next Steps</strong></h3><p>From here, several technical aspects could be explored in more detail:</p><p>- Security implementation: at the Kubernetes cluster level or within Fluss applications</p><p>- Operational scenarios: step-by-step protocols for performing changes</p><p>- A clear comparison between Kafka and Fluss</p><p>- Choosing between Paimon and Iceberg</p><p>For more example use cases, I highly recommend the following articles:</p><p>- <a href="https://fluss.apache.org/blog/taobao-practice">Real-Time Multi-Dimensional Unique Visitor Deduplication in Practice</a> by Yang Wang</p><p>- <a href="https://fluss.apache.org/blog/roaringbitmap-uv-deduplication/">How Taobao uses Apache Fluss (Incubating) for Real-Time Processing in Search and RecSys</a> by Xinyu Zhang and Lilei Wang</p><h3><strong>Cite and Share</strong></h3><p>Please consider adding a star ✨ to the repository if you found this work and documentation useful !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67697085b74c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[Azure] Container Apps Deployment Guide with ApplicationGateway, CosmosDB , blue/green deployment ..]]></title>
            <link>https://medium.com/@markov-ngz/azure-container-apps-deployment-guide-with-applicationgateway-cosmosdb-blue-green-deployment-1f1373d0a28a?source=rss-a3ea36e4c413------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f1373d0a28a</guid>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[markov-ngz]]></dc:creator>
            <pubDate>Wed, 18 Jun 2025 06:15:34 GMT</pubDate>
            <atom:updated>2025-06-18T06:15:34.758Z</atom:updated>
            <content:encoded><![CDATA[<h3>[Azure] Container Apps Deployment Guide with Application Gateway, CosmosDB , blue/green deployment pipeline , KeyVault and Log based alerts</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*zSJlpEF2_QR8hdrC.jpg" /></figure><p>This guide details deploying Azure Container Apps with vital services: Key Vault , CosmosDB and Application Gateway . It also includes a Blue/Green deployment pipeline with github actions for seamless updates and log-based alert configuration for proactive monitoring, all within a Virtual Network.</p><h4>Summary</h4><ol><li>Virtual Network</li><li>Container App</li><li>Key Vault</li><li>CosmosDB</li><li>Application Gateway</li><li>CD : Deploy an image on Azure Registry</li><li>CD : Blue/Green Deployment</li><li>Log based Alerts</li></ol><p>For sample applications see : <a href="https://github.com/markov-ngz/az-containerapp-examples">https://github.com/markov-ngz/az-containerapp-examples</a></p><h3>1. Virtual Network</h3><p>First things first, create a virtual network , basic configuration (cidr 10.0.0.0/16) with 3 subnets :</p><ul><li>application gateway subnet ( 10.0.0.0/24)</li><li>services’s private endpoints subnet (10.0.1.0/24)</li><li>container app environment subnet ( 10.0.2.0/23)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-XdWk-OLKyOQ7iuqKn7mHg.png" /><figcaption>Target network’s resources</figcaption></figure><h3>2. Container App</h3><p>For this step we are going to create an container application environment with a basic container application . Then we will add a Private DNS Zone to resolve to the domain of the container application environment within our subnet.</p><h4>2.1 Container App (+ Environment)</h4><p>With the azure web portal, a container app environment cannot be created without a container app. Hence, go to “Container App” &gt; “+Create”.</p><p>Create a new Container App Environment with the following network configuration :</p><ul><li>Subnet : select the container application environment’s subnet ( 10.0.2.0/23)</li><li>Keep the virtual IP as internal (no exposure on internet by default)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*Pf-dIB-vXGLhLjkP3FFKSA.png" /></figure><p>Then click on “Create”.</p><p>Back to Container App creation, choose the starter image ( to troubleshoot any misconfiguration) and create the object (the deployment takes several minutes ).</p><p>Once created, go to the container app resource access and copy :</p><ol><li>Container application environment domain : copy “<em>&lt;random name given by microsoft&gt;-&lt;8 first chars of your subscription id&gt;.&lt;location&gt;.azurecontainerapps.io</em>” from the container application URL.</li></ol><p>2. the static IP of the container app environment</p><h4>2.2 Private DNS zone</h4><p>Inside the vnet, the url of the container application cannot resolve to the container application environment static ip. We’re going to add a private dns zone so that the application can be accessed from the resource inside our vnet by the the URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tOmB-cvHScacZ7lZit-cyg.png" /></figure><p>Once created add :</p><ul><li>Virtual Network Links: Select the virtual network , keep defaults values</li><li>2 A recordsset with name: “*”,” @” and value as the container application environment static ip</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9aVZ31pIoiL8k7cilJOrFQ.png" /><figcaption>Record set example</figcaption></figure><p><strong>Check the configuration :</strong></p><p>Create a VM inside the vnet , ssh into it and lookup to the domain :</p><pre>nslookup &lt;container_env_fqdn&gt;</pre><p>The static ip of the container environment application should be linked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W1_yTAPaIOZiRv9hWjhCeQ.png" /></figure><h3>3. Key Vault</h3><p>In order to store database secrets, API keys or SSL certificates we need an Azure Key Vault and give access to our container application to read secrets from it.</p><h4>3.1 Create resource</h4><p>with a public access and restrict it to the subnet of the container environment application (the configuration is shown as below) .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*DVpOOHD06Ictdf2DIFWcrw.png" /><figcaption>Network Configuration at creation</figcaption></figure><p>Once created :</p><ul><li>add the RBAC role “Key Vault Administrator” to yourself or your colleagues account</li><li>add your IP in order for you to be able to create secrets</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3U4OjYs0Wu07s1J2vWzzBw.png" /></figure><h4>3.2 Manage Container App Access</h4><p>For a container app to read the secret’s value and pass it as an environment variable to the container, grant the access to a managed identity :</p><ol><li>From Azure portal , create a Managed Identity</li><li>Go the Key Vault &gt; IAM &gt; Role assignments &gt; Add role “Key Vault Secrets User” to the managed identity</li><li>Go to the container app &gt; identity &gt; User assigned &gt; add &gt; select the newly created managed identity</li><li>The reference a secret with its URL and select the managed identity</li></ol><h3>4. CosmosDB (NoSQL) 🪐</h3><p>To setup a CosmosDB :</p><ol><li>create the resource with the appropriate network configuration</li></ol><p>2. add read/write permissions</p><h4>4.1 Create the resource</h4><p>We will follow the pattern of the portal :</p><p><strong>Basics :</strong></p><p>Capacity Mode : Choose serverless . ( For development purpose, provisioned throughput is not the way to go as it is billed hourly and do not depend of the number of requests made)</p><p><strong>Networking:</strong></p><p>Select “private endpoint” , allow access from azure portal ( it will help to create and the resource via the portal) + allow access from your IP ( development and troubleshooting purpose)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1007/1*29NFX9LDeQOTx-ZKGCDMMQ.png" /></figure><p>Add a private endpoint for the container application to access the database :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HaBL0_W2sMemLkt_qWnnDQ.png" /></figure><p>It will add an access an endpoint to CosmosDB from the vnet and create a private dns zone to resolve the cosmos account url at this private endpoint.</p><p>💡 Secure your database by adding Network Security Group (NSG)</p><p><strong>Security</strong></p><p>Disable key-Based Authentication as it is better practice to manage everything with RBAC / Entra .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cpJ6hYlH9M1jlnYn2096lw.png" /></figure><p>=&gt; Create the object</p><h4>4.2. Add Read/Write permissions</h4><p>In order to do DML operations, the role “Data Built-in Contributor” is needed, however it cannot be set through the portal.</p><ol><li>Get the object id of the resource to grant the rights to : Users or Enterprise Application , we’ll call it principal id</li><li>Get the resource group name</li><li>Get the cosmos account name</li><li>Retrieve the role id of “Data Built-in Contributor” ( cannot be seen from portal 😖 )</li><li>Get the scope : limit it to the cosmos account</li><li>Grant Role access</li></ol><p>The following script shows you how to do it with the CLI (powershell) :</p><pre># 1. Setup the base id<br>set cosmos_acc=&lt;cosmos account name&gt;<br><br>set r_group=&lt;resource group name&gt;<br><br>set principal_id=&lt;object id to grant the access to&gt;<br><br># 2. Retrieve the id for role &quot;Data Built-in Contributor&quot;<br><br>az cosmosdb sql role definition list --resource-group &quot;%r_group%&quot; --account-name &quot;%cosmos_acc%&quot;<br><br>set role_id=&lt;copy paste the id found&gt; ## note that the id of the role is really often like : /subscriptions/&gt;subscritption_id&gt;/resourceGroups/&lt;r_group&gt;/providers/Microsoft.DocumentDB/databaseAccounts/&lt;cosmos_acc&gt;/sqlRoleDefinitions/00000000-0000-0000-0000-000000000002<br><br># 3. Set the scope of the permissions<br>az cosmosdb show --resource-group &quot;%r_group%&quot; --name &quot;%cosmos_acc%&quot; --query &quot;{id:id}&quot;<br><br>set scope=&lt;copy paste the id&gt;<br><br># 4. Grant the role access<br>az cosmosdb sql role assignment create --resource-group &quot;%r_group%&quot; --account-name &quot;%cosmos_acc%&quot; --role-definition-id &quot;%role_id%&quot; --principal-id &quot;%principal_id%&quot; --scope &quot;%scope%&quot;</pre><h3>5. Application Gateway 🌐</h3><p>After setting up the database, key vault and such , it is now time to be able to access our application from a public ip by creating an Application Gateway.</p><p>An application gateway is a resource within a subnet with :</p><ol><li>Frontend : the public ip to access our application</li><li>Backend Pool : the target within our vnet to direct the traffic</li><li>Rules : how to listen to traffic from the frontend and how to direct to the backend.</li></ol><h4><strong>5.1 Frontend</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Iig3PtFjUTYud3JDsqlqw.png" /></figure><p>Create a new public ip with default parameters.</p><h4>5.2 Backend pool</h4><p>Target the container application ( not the container application environment ) the fqdn should be like :</p><p><em>&lt;container_app_name&gt;.&lt;random name given by microsoft&gt;-&lt;8 first chars of your subscritption id&gt;.&lt;location&gt;.azurecontainerapps.io</em></p><p>💡 Remember the wildcard ‘*’ recordset at the private dns zone before, thanks to it the application gateway can target our container application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*GvBKo0Odg-kByQfshC8dyw.png" /></figure><h4>5.3 Rules</h4><p>The rule define 2 main components :</p><ul><li>a Listener : how to listen to traffic from our frontend , you’d typically add your SSL certficate there</li><li>a Backend Target : how to bring the requests to our backend</li></ul><p><strong>5.3.1 Rule Listener</strong></p><p>Create a new rule with a listener on port 80 (http) and basic type.</p><p>“Basic” or “Multi site type” ? For more than one domain , if you wish to direct the traffic to multiple targets depending on the domain, then choose multi site, however in our case it is just basic as we have one backend.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sV5t-gQlALwYYIGRWOz-qw.png" /></figure><p>For SSL termination, you would typically choose :<strong> </strong>Protocol HTTPS and add your certificate .pfx at this step</p><p><strong>5.3.2 Rule Backend Target</strong></p><p>Select your backend pool as the target and create backend rule settings with the following settings ⚠️ :</p><ul><li>Protocol : https</li><li>Backend port : 443</li><li>Backend server’s certificate is issued by a well-known CA : Yes</li><li>Override with new host name : Yes</li><li>Host name override : Pick host name from backend target ( we specified the fqdn at the backend pool creation )</li><li>Create custom probes : No</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*N4puINJqV44TVIs6EBk6Fg.png" /></figure><p>Then finally create the resource.</p><p><strong>Check your application :</strong></p><p>Wait for a couple of minutes , access the public IP and voilà !</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UT7YXHPJZw5irhhgJ4WDIA.png" /></figure><h3>6. CD : Deploy an image on Azure Container Registry</h3><p>As hotfix are made to your application, you can easily deliver your application with container registry by integrating it to a github actions workflow :</p><ol><li>Create an application in EntraID and add federated credentials matching your github repository’s properties</li><li>Add the following job to your .github/workflows folder repository :</li></ol><pre>name: Build <br><br>on:<br>  workflow_call:<br>    inputs:<br>      application_working_directory:<br>        description: &#39;Application working directory where the target Dockerfile needs to be deployed from&#39;<br>        required: true<br>        type: string<br>      image_registry_name:<br>        description: &#39;registry url&#39;<br>        required: true<br>        type: string<br>      image_name:<br>        description: &#39;Name of the image to push to the registry&#39;<br>        required: true<br>        type: string<br>      image_tag:<br>        description: &#39;Tag of the image&#39;<br>        required: true<br>        type: string<br>    outputs:<br>      image_fullname:<br>        description: image fqdn<br>        value:  ${{ jobs.build.outputs.image_fullname }}<br><br>jobs: <br>  build:<br>    runs-on: ubuntu-latest<br>    environment: production<br>    permissions:<br>      id-token: write<br>      contents: read<br>    outputs:<br>      image_fullname: ${{ steps.image_fullname.outputs.image_fullname }}<br>    steps:<br><br>      - name: Checkout code<br>        uses: actions/checkout@v4<br><br>      - name: Azure login<br>        uses: azure/login@v2<br>        with:<br>          client-id: ${{ secrets.AZURE_CLIENT_ID }}<br>          tenant-id: ${{ secrets.AZURE_TENANT_ID }}<br>          subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}<br><br>      - name: Export full image name # with repository <br>        run: echo &quot;IMAGE_NAME=${{ inputs.image_registry_name }}.azurecr.io/${{ inputs.image_name }}:${{ inputs.image_tag }}&quot; &gt;&gt; $GITHUB_ENV<br>          <br>      - name: Print image name # to debug <br>        run: echo $IMAGE_NAME<br><br>      - name: Login to registry<br>        run: az acr login --name ${{ inputs.image_registry_name }}<br>      <br>      - name: Build docker image<br>        working-directory: ${{ inputs.application_working_directory}}<br>        run: |<br>          docker build -t $IMAGE_NAME . <br><br>      - name: Push Docker image to Artifact Registry<br>        run: |<br>          docker push $IMAGE_NAME<br><br>      - name: Set output<br>        id: image_fullname<br>        run: |<br>          echo &quot;image_fullname=$IMAGE_NAME&quot; &gt;&gt; &quot;$GITHUB_OUTPUT&quot;</pre><p>Checkout for a concrete example at the example provided : <a href="https://github.com/markov-ngz/az-containerapp-examples/tree/main/.github/workflows">https://github.com/markov-ngz/az-containerapp-examples/tree/main/.github/workflows</a></p><h3>7. CD : Blue/Green Deployment</h3><p>If a new feature did not pass, it can be “quite” useful to be able to rollback on a few seconds, hence a Blue/Green deployment method is a good idea and it can be automated. How to do this with Azure Container App &amp; a Gtihub Action workflow ?</p><ol><li>Get the label currently in production ( green or blue )</li><li>Create new revision</li><li>Label the revision with the tag not used</li><li>Direct Traffic to the new revision</li></ol><p>Either develop it yourself ( it is just a few shell commands) or use an already made github action :</p><pre>- name: Deploy to Azure Container App <br>  uses: markov-ngz/containerapp-bluegreen-deploy@v1.X # choose the right deployment tag<br>  with:<br>      resource_group_name: &lt;resource groupe name&gt;<br>      container_app_name: &lt;name of the container app&gt;<br>      image_full_name: &lt; image full name&gt; </pre><p>Github action repository : <a href="https://github.com/markov-ngz/az-containerapp-bluegreen-deploy">https://github.com/markov-ngz/az-containerapp-bluegreen-deploy</a></p><h3>7. Log based Alerts</h3><p>When using JSON formatted logs , you can explore and filter those with KQL (Kusto Query Language) queries :</p><pre>ContainerAppConsoleLogs_CL<br>| where ContainerAppName_s == &quot;&lt;container_app_name&gt;&quot;<br>| extend parsedLog = parse_json(Log_s)<br>| where parsedLog.level == &quot;error&quot;<br>| project TimeGenerated, Log_s<br>| order by TimeGenerated desc</pre><p>To then create an alert , the following needs to be created :</p><ul><li>an action group : it will define who to send the alert to and how to do it ( email/sms/webhook)</li><li>a scheduled alert rule : threshold to raise the alert</li></ul><p>It can be easily set up with either GUI or terraform code :</p><pre>resource &quot;azurerm_monitor_action_group&quot; &quot;error&quot; {<br>  name                = &quot;ErrorAlertsAction&quot;<br>  resource_group_name = azurerm_resource_group.default.name<br>  short_name          = &quot;p0action&quot;<br>  email_receiver {<br>    name          = &quot;sendtoadmin&quot;<br>    email_address = var.admin_email<br>  }<br>}<br><br>resource &quot;azurerm_monitor_scheduled_query_rules_alert_v2&quot; &quot;error&quot; {<br>  name                = &quot;ErrorAlertRule&quot;<br>  location            = data.azurerm_resource_group.default.location<br>  resource_group_name = data.azurerm_resource_group.default.name<br><br>  evaluation_frequency = &quot;PT30M&quot;<br>  window_duration      = &quot;PT30M&quot;<br>  scopes               = [data.azurerm_log_analytics_workspace.default.id]<br>  severity             = 1<br>  criteria {<br>    query                   = &lt;&lt;-KQL<br>    ContainerAppConsoleLogs_CL<br>    | where ContainerAppName_s == &quot;&lt;application name&gt;&quot;<br>    | extend parsedLog = parse_json(Log_s)<br>    | where parsedLog.level == &quot;error&quot;<br>    | project TimeGenerated, Log_s<br>    | order by TimeGenerated desc<br>    KQL<br>    time_aggregation_method = &quot;Count&quot;<br>    threshold               = 0<br>    operator                = &quot;GreaterThan&quot;<br><br>    # as no column are specified, the number of lines returned by the query will be counted<br><br>    failing_periods {<br>      minimum_failing_periods_to_trigger_alert = 1<br>      number_of_evaluation_periods             = 1<br>    }<br>  }<br><br>  workspace_alerts_storage_enabled = false<br>  description                      = &quot;Alerting on container application&#39;s error logs&quot;<br>  display_name                     = &quot;&lt;application&gt;-error&quot;<br>  enabled                          = true<br>  query_time_range_override        = &quot;PT1H&quot;<br>  skip_query_validation            = false<br>  action {<br>    action_groups = [azurerm_monitor_action_group.error.id]<br>  }<br><br>}</pre><h3>Conclusion</h3><p>As we’ve seen there is a lot of configuration and many specific details yet to explore , it is a tedious task to remember the configuration but as a first approach it is necessary to pass through the azure portal in order to understand the resources. Once done with the azure portal, you can now use an awesome tool to export your resource to the format needed ( json, bicep or terraform) and automate it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*cViYx4XfTkQGVfE6sLOuXw.png" /><figcaption>Export the configuration</figcaption></figure><h3>Sources &amp; useful links</h3><p>Azure documentation:</p><ul><li>keyvault : <a href="https://learn.microsoft.com/en-us/azure/key-vault/general/private-link-service?tabs=portal">https://learn.microsoft.com/en-us/azure/key-vault/general/private-link-service?tabs=portal</a></li><li>container app environment : <a href="https://learn.microsoft.com/fr-fr/azure/container-apps/waf-app-gateway?tabs=default-domain">https://learn.microsoft.com/fr-fr/azure/container-apps/waf-app-gateway?tabs=default-domain</a></li><li>login to container registry : <a href="https://learn.microsoft.com/en-us/azure/container-registry/container-registry-authentication?tabs=azure-cli#individual-login-with-microsoft-entra-id">https://learn.microsoft.com/en-us/azure/container-registry/container-registry-authentication?tabs=azure-cli#individual-login-with-microsoft-entra-id</a></li></ul><p>I highly recommend to watch those videos and checkout their creators’s youtube channels :</p><ul><li>Rahul Wagh , <a href="https://www.youtube.com/watch?v=m1rN24vnOlU&amp;ab_channel=RahulWagh">https://www.youtube.com/watch?v=m1rN24vnOlU&amp;ab_channel=RahulWagh</a></li><li>Will Velida , <a href="https://www.youtube.com/watch?v=jFa4Rd-c4wA&amp;ab_channel=WillVelida">https://www.youtube.com/watch?v=jFa4Rd-c4wA&amp;ab_channel=WillVelida</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/987/1*lQX9tvIgsb8t23ZQzSaaDg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f1373d0a28a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fivetran & Snowflake: The Mechanics Under the Hood]]></title>
            <link>https://medium.com/@markov-ngz/how-does-fivetran-import-data-into-a-snowflake-database-996d31fd3f9f?source=rss-a3ea36e4c413------2</link>
            <guid isPermaLink="false">https://medium.com/p/996d31fd3f9f</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[fivetran]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[snowflake]]></category>
            <dc:creator><![CDATA[markov-ngz]]></dc:creator>
            <pubDate>Sun, 25 May 2025 16:18:30 GMT</pubDate>
            <atom:updated>2025-05-25T16:36:27.312Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tv0xAK5JRH4srZvXs0Uvpg.png" /></figure><p>Fivetran is easy to use, reliable and offers many connectors. Have you ever considered how it imports data ? Which operations are executed and why ?</p><p>First, we will examine how it checks if the import process can proceed. Second, we will look at how it actually imports the data. Third, we will cover optional operations. Fourth, we will discuss the performance of this data ingestion.</p><p>To see this practically, we’ll use an example of a merge with soft deletion performed on a target table.*</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/281/1*Pf4x1sMujw-359ayXaOUcQ.png" /><figcaption><strong>Ingestion Steps</strong></figcaption></figure><h4>1. Destination integrity checks</h4><p>Initially, a session opens to validate the table’s schema, structure, and columns.</p><p>This pre-check determines if data can be successfully ingested.</p><pre>DESC TABLE &quot;&lt;schema&gt;&quot;.&quot;&lt;table&gt;&quot; ; </pre><pre>SHOW COLUMNS IN &quot;&lt;schema&gt;&quot;.&quot;&lt;table&gt;&quot;</pre><p>Also for each columns with a json format value, the json schema of the field is checked individually :</p><pre>SELECT &lt;variant_field&gt; FROM &quot;&lt;schema&gt;&quot;.&quot;&lt;table&gt;&quot; WHERE &lt;variant_field&gt; IS NOT NULL LIMIT 1 ; </pre><p>NB : As Fivetran connections are set to a database level, a target table is always specified along with its schema.</p><h4>2. Data Ingestion</h4><p>As the importation is said to be ready to process, a second session which will import the data is opened.</p><p>2.1 Create Temporary Table</p><p>Snowflake temporary table is an ephemeral table materialization lasting the user’s session. This will simplify the merge process and avoid computations from Fivetran side.</p><pre>CREATE TEMPORARY TABLE &quot;FIVETRAN_DUPLICATE_SUPERSTRUCTURE_STAGING&quot;.&quot;&lt;schema&gt;_P-STAGING-&lt;uuid&gt;&quot; <br>  ( [<br>      &lt;column_1&gt; , <br>      &lt;column_2&gt; ,<br>      ... <br>    ] , <br>    &quot;_fivetran_deleted&quot; boolean , <br>    &quot;_fivetran_synced&quot; timestamp_tz , <br>    &quot;_fivetran_op_type&quot; integer , <br>    &quot;_fivetran_updated_cols&quot; varchar , <br>  )</pre><p>The “P” for P-STAGING may stand for the PostgresSQL connector used in this case (to be confirmed).</p><p>2.2 Copy data from a cloud bucket</p><p>Using Snowflake’s cloud storage integration features, the data is copied into the temporary table.</p><pre>COPY INTO &quot;&lt;temporary_table_name&gt;&quot;<br>  ( [<br>      &lt;columns&gt;<br>     ]<br>  )<br> FROM &#39;s3://&lt;bucket_name&gt;/&lt;uuid&gt;/&#39;<br> FILES = (&#39;1&#39;)<br> REGION = &#39;&lt;region&gt;&#39;<br> CREDENTIALS = (<br>    AWS_KEY_ID=&#39;&lt;key_id&gt;&#39;<br>    AWS_SECRET_KEY = &#39;&lt;secret_key&gt;&#39;<br>    AWS_TOKEN = &#39;&lt;aws_token&gt;&#39;<br> )<br> ENCRYPTION = ( MASTER_KEY = &#39;&lt;encryption_key&gt;&#39; )<br> FILE_FORMAT = (<br>  BINARY_FORMAT = BASE64<br>  TYPE = &#39;csv&#39;<br>  ESCAPE = NONE<br>  ESCAPE_UNENCLOSED_FIELD = NONE<br>  FIELD_OPTIONNALY_ENCLOSED_BY = &#39;&quot;&#39;<br>  COMPRESSION = &#39;zstd&#39;<br>  NULL_IF = &#39;null-&lt;custom_id&gt;&#39;<br>  SKIP_HEADER= 1<br> ) </pre><p>Fivetran use the same bucket name with a unique folder for each sync.</p><p>The .csv is smartly compressed with a zstd algorithm encoded in base64.</p><p>Also the NULL_IF custom_id is shared by all the target’s copy commands for the same client account ( it does not depend to the connectors but it might be unique to the target).</p><p>2.3. Merge</p><pre>MERGE <br>  INTO &quot;&lt;schema&gt;&quot;.&quot;&lt;table&gt;&quot; AS &quot;MAIN&quot;<br>  USING &quot;&lt;temporary_table&gt;&quot; AS &quot;_FIVETRAN_STAGING_&quot;<br>  ON &quot;MAIN&quot;.&quot;ID&quot; = &quot;_FIVETRAN_STAGING_&quot;.&quot;ID&quot;<br>-- 1. soft delete existing rows  <br>WHEN MATCHED <br>  AND  &quot;_FIVETRAN_STAGING_&quot;.&quot;_FIVETRAN_OP_TYPE&quot; = 2 <br>  AND  &quot;_FIVETRAN_STAGING_&quot;.&quot;_FIVETRAN_UPDATED_COLS&quot; = &#39;&lt;^[0,1]+$&gt;&#39;<br>THEN UPDATE SET<br>  &quot;MAIN&quot;.&quot;_FIVETRAN_DELETED&quot; = &quot;_FIVETRAN_STAGING_&quot;.&quot;_FIVETRAN_DELETED&quot;<br>  &quot;MAIN&quot;.&quot;_FIVETRAN_SYNCED&quot; = &quot;_FIVETRAN_STAGING_&quot;.&quot;_FIVETRAN_SYNCED&quot;<br>-- 2. update existing rows <br>WHEN MATCHED <br>  AND  &quot;_FIVETRAN_STAGING_&quot;.&quot;_FIVETRAN_OP_TYPE&quot; = 1 <br>  THEN UPDATE SET <br>    &quot;MAIN&quot;.&quot;&lt;column_name&gt;&quot; = &quot;_FIVETRAN_STAGING_&quot;.&quot;&lt;column_name&gt;&quot;<br>    ...<br>-- 3. insert new rows <br>WHEN NOT MATCHED<br>  AND &quot;_FIVETRAN_STAGING_&quot;.&quot;_FIVETRAN_OP_TYPE&quot; = 1<br>  THEN INSERT (&quot;&lt;column_name&gt;&quot;, ... ) VALUES (&quot;column_name&quot;, ... ) </pre><p>This is a basic merge process handling deletion, updates and insertions where :</p><p>_fivetran_op_type : Integer value. 1 stands for writes and 2 for deletions</p><p>_fivetran_updated_cols : String value . It consists of a chain of 0 and 1 (ex : ‘0000110’) . It is done for the Fivetran engine to update the columns having the information about deletions.</p><h4>3. Optional queries</h4><ul><li>Historical re-sync</li></ul><p>If a full resync of a table of a performed , the former queries are also executed with an additional update statement :</p><pre>UPDATE &quot;&lt;schema&gt;&quot;.&quot;&lt;table&gt;&quot; <br>  SET _FIVETRAN_DELETED = TRUE <br>  WHERE <br>  (&quot;_FIVETRAN_SYNCED&quot; &lt; &#39;timestamp_ordered_resync&#39;<br>    AND (&quot;_FIVETRAN_DELETED&quot; != TRUE OR _FIVETRAN_DELETED IS NULL )<br>  )<br>  OR <br>  &quot;_FIVETRAN_SYNCED&quot; IS NULL </pre><ul><li>Checking keys</li></ul><p>Some connectors checks the primary and foreign keys of a table after the merge process. It might be to ensure the relationship between some tables ( ex: “users” and “users_department”) when the connector’s source is an API but as it may be done at the start and not at the end it needs confirmation.</p><pre>SHOW PRIMARY KEYS IN TABLE &quot;&lt;schema&gt;&quot;.&quot;&lt;table&gt;&quot; ;</pre><pre>SHOW IMPORTED KEYS IN &quot;&lt;schema&gt;&quot;.&quot;&lt;table&gt;&quot; ;</pre><ul><li>No common data</li></ul><p>Some connectors checks the overlapping ids between the source and the target by running a simple query :</p><pre>SELECT<br>  CASE <br>    WHEN max(source.id) &lt; min(target.id) THEN TRUE<br>    WHEN min(source.id) &gt; max(target.id) THEN TRUE<br>    ELSE FALSE<br>  END as NO_COMMON_DATA</pre><h4>4. Performance observations</h4><p>Fivetran steps to import data makes it reliable and are smartly reducing their cost by computing using the client’s server. This way of doing things might prove difficult for stressful environment.</p><p>As a concrete example :</p><p>With a X-Small warehouse , a table (320 Mb, 100 columns) and 567 updated/inserted rows :</p><p>The whole process lasted 21.139 seconds :</p><ul><li>Snowflake compute side : 19.307 seconds . The merge request is mostly responsible for the latency (14.808 seconds).</li><li>Fivetran ‘engine’ : 1.832 seconds . Noticing a 1.4 seconds gap occuring between the first session’s closing and the second’s opening =&gt; This gap may reveal the use of an orchestrating tool like Airflow .</li></ul><h4>Conclusion</h4><p>By taking a peek under the hood, data ingestion from Fivetran may not seem that complicated from the target side:</p><ol><li>Checking the target’s state</li><li>Importing data with a few SQL operations</li></ol><p>However, the real difficulty of these tasks resides in the conception of:</p><ul><li>Disaster recovery</li><li>Performance optimization</li><li>Data integrity issues (which can happen from the source, slip past the checking process, and lead you to believe the error is with your target connector…)</li></ul><p>Listing and not forgetting all possible scenarios requires a serious amount of work. It is not just ‘take data from A and put it in B’ and Fivetran makes it seem so really well.</p><p>Thank you for your attention.</p><p>@<a href="https://github.com/markov-ngz">markov-ngz</a> , may 2025</p><p>—</p><p>Notes :</p><p>*operations were observed for postgresql source in may 2025.</p><p>PS : I do not pretend to have absolute truth in this subject. If it is wrong in any way please let it be known in the comments ! Those steps were deduced from what could be seen from Snowflake’s side so some parts could be missing or simply wrong.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=996d31fd3f9f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL : Practical Gaps and Islands problem resolution]]></title>
            <link>https://medium.com/@markov-ngz/sql-practical-gaps-and-islands-problem-resolution-ebec37705f7a?source=rss-a3ea36e4c413------2</link>
            <guid isPermaLink="false">https://medium.com/p/ebec37705f7a</guid>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[markov-ngz]]></dc:creator>
            <pubDate>Sat, 10 May 2025 18:32:29 GMT</pubDate>
            <atom:updated>2025-05-10T18:32:29.719Z</atom:updated>
            <content:encoded><![CDATA[<h3>SQL basics : Practical Gaps and Islands problem resolution</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8nGZffQCWwkuTd1A.jpg" /></figure><p>10 min read</p><p>This article is a practical example of how to solve the gaps and islands problem for SQL. This problem is really common , for example it could help calculating a company’s employee turnover rate or aggregating booking slots into a time range.</p><p><strong># Dive into the issue : Gym company entry exit</strong></p><p>A gym company wishes to know the entry/exit of their customer.</p><p>The gym added a policy, if a customer signed a new contract in the lapse in time 1 month after of his last contract then it is not considered as an exit.</p><p>Example :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ubzww1xQQy8e-SoJgqgFLg.png" /></figure><p>In this schema :</p><ul><li>Bob’s subscription ended on 2025–01–15 and started another 7 days later =&gt; he did not left the gym</li><li>Alice’s subscription ended on 2025–09–09 and her next started one 5 months later =&gt; she left the gym</li></ul><p>The main problem here is to know if 2 or more contracts are “consecutive” if the interval is inferior to the delay of 1 month .</p><p><strong># Resolution Steps</strong></p><p>The method consists of 2 steps :</p><ol><li>Get the end date of each subscription “period”</li><li>Add the start period date</li></ol><p>The base table is the following :</p><pre>SELECT<br>  customer_id , -- customer identifier<br>  subscription_start_date,<br>  COALESCE(subscription_end_date,&#39;9999-12-31&#39;) as subscription_end_date, <br>      -- avoid null values as it breaks subsequent compute<br>  customized_delay<br>FROM X</pre><p><strong># Step 1 : Get the end date of each subscription “period”</strong></p><p>The goal of this step is to retrieve this :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/283/1*KXxxVCejjR-e0L8xd840CA.png" /></figure><p>## 1.1. Compute information about Consecutive Rows</p><blockquote>LEAD or LAG : that is the question …</blockquote><p>For this kind of problems, there is always the question if the consecutive aspect should be computed from the last row to the former one ( using LAG ) or using LEAD by computing from the current row to the next one.</p><p>Here both should technically work (?), depending on the choice the following logic will differ a bit.</p><pre>SELECT<br>  customer_id,<br>  subscription_start_date,<br>  subscription_end_date<br>  customized_delay,<br>  LEAD(subscription_start_date) OVER (PARTITION BY customer_id ORDER BY subscription_start_date) as next_subscription_start_date,<br>  DATEDIFF(day , subscription_end_date, next_subscription_start ) as diff_end_current_next_start -- compute difference<br>FROM 0</pre><p>## 1.2. Get the maximum end date for each subscription</p><pre>SELECT<br>  customer_id,<br>  subscription_start_date,<br>  subscription_end_date, <br>  customized_delay,<br>  next_subscription_start_date, <br>  MAX(subscription_end_date)  OVER (PARTITION BY customer_id ORDER BY subscription_start_date, customized_delay &gt; diff_end_current_next_start) as period_end_date<br>FROM 1.1</pre><p>After getting the information about the next row, filter to only get the last row for each period .</p><p>## 1.3. Filter to get the last row</p><pre>SELECT<br>  customer_id, <br>  period_end_date<br>FROM 1.2<br>WHERE (COALESCE(IFF( customized_delay &gt;= diff_current_end_next_start , next_subscription_start_date, NULL) , period_end_date) = period_end_date) -- get the last row </pre><p><strong># Step 2 : Add the start period date</strong></p><p>## 2.1 Get the first row for each period</p><pre>  SELECT<br>      customer_name , <br>      start_date,<br>      end_date, <br>      ROW_NUMBER() OVER (PARTITION BY customer_name ,  customized_delay &gt;= diff_current_end_next_start ORDER BY customer_name) as period_number<br>  FROM 1.1</pre><p>## 2.2 Filter to get only the fist row out of the former query</p><pre>SELECT <br>  customer_name , <br>  period_number, <br>  min(start_date) as start_period<br>FROM 2.1<br>GROUP BY 1,2</pre><p>## 2.3 Add the date to the existing query</p><pre>SELECT <br>  1.3.customer_name , <br>  2.2.start_period, <br>  1.3.end_period <br>FROM 1.3<br>LEFT JOIN 2.2 on 1.3.customer_name = 2.2.customer_name  AND 2.2.start_period &lt;  1.3.end_period <br>QUALIFY RANK() OVER (PARTITION BY F=1.3.customer_name , 1.3.end_period ORDER BY datediff(day, 2.2.start_period, 1.3.end_period)) = 1 -- filter to get only the closer start period date for each period date </pre><p><strong>Conclusion</strong></p><p>As you may have noticed, it might not be the most efficient solution ( compute wise) to this problem, the goal was really to have simple and explainable query in order to introduce the problem !</p><p>At last, the full query is obtained :</p><pre>WITH 0 AS (<br>  -- base query <br>  SELECT<br>    customer_id , -- customer identifier<br>    subscription_start_date,<br>    COALESCE(subscription_end_date,&#39;9999-12-31&#39;) as subscription_end_date, <br>        -- avoid null values as it breaks subsequent compute<br>    customized_delay<br>  FROM X<br>),<br>1.1 AS ( -- Get the next subscription information<br>  SELECT<br>    customer_id,<br>    subscription_start_date,<br>    subscription_end_date<br>    customized_delay,<br>    LEAD(subscription_start_date) OVER (PARTITION BY customer_id ORDER BY subscription_start_date) as next_subscription_start_date,<br>    DATEDIFF(day , subscription_end_date, next_subscription_start ) as diff_end_current_next_start -- compute difference<br>  FROM 0<br>), <br>1.2 AS ( -- Get the maximum end date for each subscription<br>  SELECT<br>    customer_id,<br>    subscription_start_date,<br>    subscription_end_date, <br>    customized_delay,<br>    next_subscription_start_date, <br>    MAX(subscription_end_date)  OVER (PARTITION BY customer_id ORDER BY subscription_start_date, customized_delay &gt; diff_end_current_next_start) as period_end_date<br>  FROM 1.1<br>),<br>1.3 AS ( -- Filter to only get the last row <br>  SELECT<br>    customer_id, <br>    period_end_date<br>  FROM 1.2<br>  WHERE (COALESCE(next_subscription_start_date, period_end_date) = period_end_date) -- get the last row<br>),<br>2.1 AS ( -- Get the number of periods <br>  SELECT<br>      customer_name , <br>      start_date,<br>      end_date, <br>      ROW_NUMBER() OVER (PARTITION BY customer_name ,  customized_delay &gt;= diff_current_end_next_start ORDER BY customer_name) as period_number<br>  FROM 1.1<br>),<br>2.2 AS ( -- Filter to only get the date <br>  SELECT <br>    customer_name , <br>    period_number, <br>    min(start_date) as start_period<br>  FROM 2.1<br>  GROUP BY 1,2<br>)<br>SELECT <br>  1.3.customer_name , <br>  2.2.start_period, <br>  1.3.end_period <br>FROM 1.3<br>LEFT JOIN 2.2 on 1.3.customer_name = 2.2.customer_name  AND 2.2.start_period &lt;  1.3.end_period <br>QUALIFY RANK() OVER (PARTITION BY F=1.3.customer_name , 1.3.end_period ORDER BY datediff(day, 2.2.start_period, 1.3.end_period)) = 1 -- filter to get only the closer start period date for each period date<br></pre><p>I highly recommend those stack overflow posts if you ever have any issues :</p><ul><li><a href="https://stackoverflow.com/questions/62767817/sql-calculate-consecutive-hours">https://stackoverflow.com/questions/62767817/sql-calculate-consecutive-hours</a></li><li><a href="https://stackoverflow.com/questions/69644850/selecting-distinct-consecutive-values-of-timeseries">https://stackoverflow.com/questions/69644850/selecting-distinct-consecutive-values-of-timeseries</a></li></ul><p><strong>Thank you for your attention and for reading to the end !</strong></p><p>Credits :</p><p>Front picture : Maldives , <a href="https://www.google.com/url?sa=i&amp;url=https%3A%2F%2Fwww.goodfon.com%2Flandscapes%2Fwallpaper-southern-maalhosmadulu-atoll.html&amp;psig=AOvVaw2qLyGT9hyzOvwjHRelnQS6&amp;ust=1746130216990000&amp;source=images&amp;cd=vfe&amp;opi=89978449&amp;ved=0CBUQjRxqFwoTCMi73KfIgI0DFQAAAAAdAAAAABAR">goodfon.com</a> — , License : <a href="https://creativecommons.org/licenses/by-nc/4.0/">https://creativecommons.org/licenses/by-nc/4.0/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ebec37705f7a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>