<?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[SnapLogic Engineering - Medium]]></title>
        <description><![CDATA[The What, Who, and Why of SnapLogic Engineering - Medium]]></description>
        <link>https://medium.com/snaplogic-engineering?source=rss----48acfb72659f---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>SnapLogic Engineering - Medium</title>
            <link>https://medium.com/snaplogic-engineering?source=rss----48acfb72659f---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 11:55:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/snaplogic-engineering" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How To Build a Better Data Platform Using SnapLogic]]></title>
            <link>https://medium.com/snaplogic-engineering/how-to-build-a-better-data-platform-using-snaplogic-88285e01c02?source=rss----48acfb72659f---4</link>
            <guid isPermaLink="false">https://medium.com/p/88285e01c02</guid>
            <category><![CDATA[ipaas]]></category>
            <category><![CDATA[data-platforms]]></category>
            <category><![CDATA[data-lake]]></category>
            <category><![CDATA[customer-360]]></category>
            <category><![CDATA[data-integration]]></category>
            <dc:creator><![CDATA[Pradeep Sathyanarayan]]></dc:creator>
            <pubDate>Tue, 18 Jul 2023 21:32:27 GMT</pubDate>
            <atom:updated>2023-07-18T21:32:27.386Z</atom:updated>
            <content:encoded><![CDATA[<p>Authors:</p><p>Pradeep Sathyanarayan, Software Architect, SnapLogic Software Engineering</p><p>Prathyusha Kanala, Manager, SnapLogic Software Engineering</p><h4>1. Abstract</h4><p>“Data is the new oil” as eloquently quoted by the famous mathematician Clive Humby. Just like oil is valuable, so is data, but if it is not refined properly, it cannot be used¹. Adding context to data provides information which can produce meaningful decisions and actions².</p><p>An Enterprise could be at a different level of evolution and maturity driven by economic, business, and regulatory needs. A single legacy source of data is not enough to compete in the fierce marketplace. Business opportunities could be hidden across multiple sources of data, providing contextual insights. Business leaders not only have to overcome the technical constraints of data sources. They must also manage the cost of data processing and compliance, while depending on institutional knowledge amidst depleting workforces.</p><p>The bottom line is an enterprise must act fast on the opportunities and do that responsibly and efficiently.</p><p>A data platform built on SnapLogic iPaaS helps connect enterprise data and applications. In this manner a raw data which is unorganized can be converted into a big repertoire of information that is organized, presents context and relationship between the various data elements to aid in quick decision making.</p><p>This paper discusses the architecture solution of a customer 360 dashboard that has been implemented internally for SnapLogic’s internal consumption and strategic decision making.</p><h4>2. Problem Statement</h4><p>As with any enterprise organization, at SnapLogic the customer data required for the 360 dashboard is available in silos spread across disparate systems like Salesforce, MongoDB, Aha!, Zendesk and Google worksheets. There is no unified view of individual customer data.</p><p>If one needs to know all the different pipelines created and executed by the customer, they would need to connect to MongoDB. On the other hand, if one needs to know all the details of different tickets and their resolution for a given customer, one would need to login into Zendesk.</p><p>Therefore, it was important to unify the data across all these systems and be able to run analytics needed for strategic decision making and actions.</p><p>Following are some of the questions that the customer 360 dashboard was expected to answer for each customer:</p><ol><li>What are the number of open opportunities?</li><li>What is the annual recurring revenue (ARR)?</li><li>Who is the current Account Executive from SnapLogic?</li><li>Who is the Customer Success Manager for this customer?</li><li>What is the CSAT score for the customer?</li><li>What is the pricing model used for the customer?</li><li>What is the support level offered to the customer?</li><li>When is the next renewal date for the subscription?</li><li>How many support tickets were raised by the customer?</li><li>How many support tickets are still open?</li><li>How many of them have been resolved?</li><li>What are the new feature requests made by the customer?</li><li>How is the customer using SnapLogic Platform?</li><li>How many pipelines are being created?</li><li>How many pipeline executions are being done?</li><li>How many documents are processed by the SnapLogic Platform for the customer?</li><li>How many active users are there in the customer’s organization?</li></ol><p>Given below is a screenshot of how the customer 360 dashboard would look like for a given customer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*viR7mJ7arIQvBFM4MSx_IQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZDSxitkK_gW0Cu0CloqjkQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F2_S5_l3VKbfuJfKjgDRsg.png" /><figcaption><em>Figure 1: Customer 360 Dashboard</em></figcaption></figure><h4>3. Solution Overview</h4><p>At a very high level, the solution brings in all the disparate data sources mentioned under one umbrella by integrating them using the SnapLogic iPaaS infrastructure. This provides a unified view of a customer 360.</p><p>The data would be extracted from all sources, using either REST API calls, SOQL or NOSQL, and then minimally cleansed and transformed on the SnapLogic iPaaS, to land in cloud data storage. Finally, the data is loaded into the cloud data warehouses (CDWs) for further transformation. It is then integrated with Google Looker Studio to provide the unified view.</p><h4>4. Introduction</h4><p>Traditionally the data used to be stored in big on prem data warehouses where the data is very structured and has a specific schema. With the advent of Big Data, this paradigm shifted where enterprises started to get data from various sources in all sorts of formats wherein the data was no longer structured. Then came the concept of a data lake, which allows storage of massive amounts of data in its raw format.</p><p>The term Data Lake (DL) originated in 2011 from data vendor Pentaho (now Hitachi) as a way to reduce data silos that were forming in Data Warehouse-based ecosystems³.</p><p>Now there is another term called Data Lakehouse. Databricks defines Data Lakehouse as a new, open data management architecture that combines the flexibility, cost-efficiency, and scale of data lakes with the data management and ACID transactions of data warehouses, enabling business intelligence (BI) and machine learning (ML) on all data. Putting it simply, it is a data warehouse operating on a data lake.</p><p>This paper describes how SnapLogic can be used to implement a data platform. It is based on an internal use case Customer 360. It extracts data from disparate sources like Salesforce, Zendesk, MongoDB, Aha! and Google worksheets and brings them all together into Google Cloud storage and Amazon S3 to be loaded into Google BigQuery for analytics and AWS SageMaker for data science and machine learning purposes.</p><h4><strong>5. SnapLogic Platform</strong></h4><p>SnapLogic’s iPaaS empowers enterprises by automating application, data, and cloud integration.</p><p>It consists of two main components:</p><p>1. Control Plane</p><p>2. Data Plane</p><p>The “Control Plane” controls where and how data is processed based on user configuration and preferences⁴.</p><p>In other words, it is here where the user can design and construct their integration pipelines using the SnapLogic User Interface and the available snaps catalog.</p><p>There are custom snaps that can extract and load data from different source and target endpoints which make data integration tasks simplified for the user.</p><p>The “Data Plane” (aka the Snaplex) does the actual processing of data as per the pipelines received from the control plane. No data is stored in the SnapLogic Integration Cloud, instead data is streamed between systems via the Snaplex⁴.</p><h4><strong>6. Solution Architecture</strong></h4><p>Following is the high-level architecture of the workflow (Figure 2) designed for implementing a data lakehouse ecosystem for customer 360.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UzMssb0VliICW1UMH7hG5g.png" /><figcaption><em>Figure 2: High level workflow for implementing a data platform for customer 360</em></figcaption></figure><p>As can be observed in the above figure (Figure 2), data is extracted from 5 different source endpoints, namely:</p><p>1. Salesforce</p><p>2. Zendesk</p><p>3. Aha!</p><p>4. MongoDB</p><p>5. Google worksheets</p><p>All these data are cleansed, transformed, and landed on to the data lake constituting Google Cloud Storage and Amazon S3.</p><p>The data from Google Cloud Storage is then uploaded into Google BigQuery for further transformation and analytics.</p><p>The data from Amazon S3 is then loaded into Amazon SageMaker for further data science and machine learning operations.</p><p>Google BigQuery has been chosen as a platform for all the analytics for the Customer 360 dashboard because of the following reasons:</p><p>1. SnapLogic uses Google Suites across the organization</p><p>2. Google BigQuery does not charge the users to load data into BigQuery</p><p>Salesforce contains all the customer purchase and other licensing related data.</p><p>Aha! carries all the information pertaining to the customers’ feature requests and enhancements.</p><p>Zendesk hosts all the customers’ support related requests.</p><p>MongoDB is the database that hosts all the various assets created by the users in SnapLogic that include pipelines, accounts, plexes, tasks, files, pipeline runtime information etc.</p><p>Google worksheets contain various customer satisfaction surveys and other customer-specific details.</p><h4>6.1 Simplified explanation of EtLT</h4><p>EtLT stands for “Extract transform Load Transform.” Typically, most workflow operations either do ETL or ELT, but in this implementation, we have embraced the advantages of both ETL and ELT world to get the best possible performance, functionality, and cost effectiveness for the implementation of the data lakehouse ecosystem.</p><p>SnapLogic as a platform has both functionalities of ETL and ELT built into it.</p><p>In the EtL part, initially the data is extracted, cleansed, and transformed to a certain format and then loaded into the target Cloud Data Warehouse (CDW). The reason the second “t” is in lower case is to indicate that the transformations are done on a smaller scale on the SnapLogic Platform. Once the data has landed onto the CDW, remaining portions of transformation are done inside the CDW which constitutes the final “T” part in the “EtLT” process.</p><p>There are significant advantages to this approach:</p><p>1. It speeds up data ingestion</p><p>2. It improves data quality</p><p>3. Helps in Data compliance and security</p><p>4. Reduces Data warehousing costs for compute and storage</p><p>Yet again, it really depends upon where the lower case “t” and uppercase “T” is done. In some cases, switching the position of “t” and “T” in the above acronym may make sense if the target CDW processing costs are higher.</p><h4><strong>6.2 Data Extraction from MongoDB</strong></h4><p>The following pipeline (Figure 3) is one of the several pipelines that are used in the implementation that extracts data from MongoDB. The workflow helps in determining all the pipelines that were created by a given customer in a given month.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z6mJJv_zhOm85s6GgBA8lQ.png" /><figcaption><em>Figure 3: Pipeline that extracts data from MongoDB</em></figcaption></figure><p>For the sake of brevity, only the high-level logic of the workflow has been explained here:</p><p>1. Data is extracted from MongoDB using the MongoDB Find Snap</p><p>2. For each of the extracted records for an individual pipeline, the complete snap map (indicates the snaps comprising the pipeline) and the link map (that indicates how the snaps are connected) are extracted and transformed</p><p>3. This data is written by splitting them into two separate tables in BigQuery by staging the data on Google Cloud Storage</p><h4><strong>6.3 Data Extraction from Salesforce</strong></h4><p>The following 6 different pipeline fragments (Figure 4) extract data from different Salesforce Objects. This workflow helps in generating data about the customer details like the name of the customer, support offered to them, the current ARR, Customer Support manager from SnapLogic, the type of billing, software licenses etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T2lVjdXIso9l71lnwZ-hbQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*cZGxRIaawDEbwYmwA9_txw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*41Lom701vqqTmuXi2jRSiw.png" /><figcaption><em>Figure 4: Pipeline fragments that extract data from Salesforce</em></figcaption></figure><p>To keep things simple and succinct, following is the high-level flow of the above pipeline fragments:</p><p>1. Data is extracted in parallel from 6 different Salesforce objects</p><p>2. Since the data needs to be written into BigQuery and the schema of BigQuery and Salesforce are not fully compatible, the Salesforce Data types are converted into BigQuery Data Types as a part of the transformation phase using the Type Converter Snaps of MLData Preparation snap pack</p><p>3. The transformed data is written into the Google Cloud Storage and Amazon S3 using the S3 writer snap</p><p>4. Finally, the data is uploaded into BigQuery using the Google BigQuery Bulk Load Snap</p><h4><strong>6.4 Data Extraction from Google Worksheets</strong></h4><p>The following workflow (Figure 5) indicates how the data is gathered for the NPS score for every customer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V-mI9XdQCjqNOo-Mdtt9PA.png" /><figcaption><em>Figure 5: Pipeline that extracts data from Google worksheets</em></figcaption></figure><p>Below is a high-level summary of how the data is collected from Google worksheets, transformed, and loaded into BigQuery:</p><p>1. Initially the target table is truncated on BigQuery in order to upload fresh data from the Worksheets at regular intervals</p><p>2. The data is read from the worksheet using the Worksheet reader snap and its data types are converted into the BigQuery using the Type Converter snap</p><p>3. It is then sorted and aggregated on the SnapLogic Platform using the Aggregate snap</p><p>4. Finally, the data is loaded into BigQuery using Google Cloud Storage as a staging area</p><h4>6.5 Data Extraction from Zendesk</h4><p>The following workflow (Figure 6) indicates how the data is gathered for tracking all the technical support related tickets requests for every customer. This information may include the customer name, ticket number, person assigned to work on the ticket, status of the ticket, the date the ticket was last updated, the date the ticket was created etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rygJtUweYN5Oyx87q3yzzQ.png" /><figcaption><em>Figure 6: Pipeline that extract data from ZenDesk</em></figcaption></figure><p>Below is a brief description of how the data is collected from Zendesk, transformed, and loaded into BigQuery:</p><p>1. Initially the target table is truncated on BigQuery in order to upload fresh data from Zendesk at regular intervals</p><p>2. The data is read from Zendesk using the REST GET snap and its data types are converted into the BigQuery using the Type Converter snap</p><p>3. Finally, the data is loaded into BigQuery using Google Cloud Storage as a staging area</p><h4><strong>6.6 Data Extraction from Aha!</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4rftsXtyaLuS4yn0arcXbA.png" /><figcaption><em>Figure 7: Pipeline that extracts data from Aha!</em></figcaption></figure><p>By utilizing the REST API provided by the Aha! portal, it is possible to extract and analyze ideas efficiently, transforming raw data into valuable insights. Once the ideas are split into pages, it then proceeds to extract valuable details about each idea. This includes attributes such as idea title, description, submission date, and votes.</p><p>The script in the Script Snap reads input documents, wraps them in a HashMap for easy processing downstream and writes the output documents. The script can be customized to perform more complex transformations based on specific requirements within a SnapLogic pipeline.</p><p>The extracted idea details can be further processed and analyzed to identify trends, evaluate the popularity of certain ideas, or perform sentiment analysis. This information can guide product development decisions, enable prioritization of ideas, and provide insights into customer preferences and needs.</p><h4>6.7 Writing Data into Google Cloud Storage and Loading into Google BigQuery</h4><p>The following (Figure 8) shows the ease at which SnapLogic connector or Snap Google BigQuery Bulk Load can be configured and used.</p><p>In the snap configuration, the user can simply configure the destination table name, its dataset id and Project ID where the extracted data can be loaded into. It also specifies the Google Cloud Storage Bucket name wherein the staging data can be landed onto. The user has the ability to specify the name and the format of the file where the staging data is stored on the Google Cloud Storage bucket. In this example, the format of the input file is JSON. This particular snap has been used across all the pipelines that have been explained before.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0j9m1ros5SRj1U3a89zDBA.png" /><figcaption><em>Figure 8: Configuration for Google BigQuery Bulk Load Snap</em></figcaption></figure><h4><strong>6.8 Writing Data into Amazon S3</strong></h4><p>The following (Figure 9) demonstrates the simplicity with which SnapLogic connector or Snap S3 File Writer can be configured and used.</p><p>The S3 contents are used further by AWS SageMaker for data science and machine learning. The S3 File Writer comes with a very easy to use interface where the data coming in the form of documents is written directly from the upstream snaps into the chosen S3 bucket and file as seen in the snap configuration. It also offers performance optimization options provided by S3 of multi-part upload allowing multiple threads to make the writes faster and efficient. It also provides buffer-size tuning options in order to provide a throttle control on the write operations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZyfugnAvlpSGyOF-58-5cg.png" /><figcaption><em>Figure 9: Configuration for S3 File Writer Snap</em></figcaption></figure><h4>6.9 Running Analytics on Google BigQuery</h4><p>The following SQL query exemplifies the analytics performed in BigQuery as part of the Transformation (T) phase, as described in Section <strong>“Simplified explanation of EtLT”</strong>. Its purpose is to generate pipeline execution statistics by combining data from the “executions per day” and “org_metadata” tables.</p><pre>(<br> WITH temp_execution_day AS (<br>   SELECT A.*, org.org, org.org_type, org.customer FROM (<br>     SELECT<br>       DATE(time) AS date,<br>       doc,<br>       exec,<br>       pipe_count_map,<br>       org_snode_id<br>     FROM `analytics-next-gen.execution_v4.execution_day`<br>     WHERE DATE(time) &gt;= DATE_SUB(CURRENT_DATE(), INTERVAL 2 YEAR)<br>   ) A<br>   LEFT OUTER JOIN `org_metadata.org_metadata_v2` org ON A.org_snode_id = org.org_snode_id<br>   WHERE lower(org.customer) != &#39;snaplogic&#39; AND org.org != &#39;/&#39;<br> ),<br> temp_exec_pipeline AS (<br>   SELECT date, org_snode_id, COUNT(DISTINCT JSON_VALUE(pipeline, &#39;$.key&#39;)) as pipe FROM (<br>     SELECT<br>       date, org_snode_id, pipe_count_map AS pipeline<br>     FROM temp_execution_day<br>   ), UNNEST(pipeline) AS pipeline<br>   GROUP BY date, org_snode_id<br> ),<br> exec_daily AS(<br>   SELECT t.*, temp_exec_pipeline.pipe FROM (<br>     SELECT<br>       date,<br>       org_snode_id,<br>       ANY_VALUE(org) AS org,<br>       ANY_VALUE(org_type) AS org_type,<br>       ANY_VALUE(customer) AS customer,<br>       SUM(doc) AS doc,<br>       SUM(exec) AS exec,<br>     FROM temp_execution_day<br>     GROUP BY date, org_snode_id<br>   ) t<br>   LEFT OUTER JOIN temp_exec_pipeline ON t.date = temp_exec_pipeline.date AND t.org_snode_id = temp_exec_pipeline.org_snode_id<br> ),<br> tempable AS (<br>   SELECT<br>     org_snode_id, org, org_type, customer,<br>     -- doc<br>     SUM(IF(DATE_DIFF(CURRENT_DATE(), date, DAY) &lt;= 30, doc, 0)) AS doc_30d,<br>     SUM(IF(DATE_DIFF(CURRENT_DATE(), date, DAY) &gt; 30 AND DATE_DIFF(CURRENT_DATE(), date, DAY) &lt;= 60, doc, 0)) AS doc_60d,<br>     SUM(IF(DATE_DIFF(CURRENT_DATE(), date, DAY) &gt; 60 AND DATE_DIFF(CURRENT_DATE(), date, MONTH) &lt;= 3, doc, 0)) AS doc_3m,<br>     SUM(IF(DATE_DIFF(CURRENT_DATE(), date, MONTH) &gt; 3 AND DATE_DIFF(CURRENT_DATE(), date, MONTH) &lt;= 3, doc, 0)) AS doc_6m,<br>     SUM(IF(DATE_DIFF(CURRENT_DATE(), date, MONTH) &gt; 6 AND DATE_DIFF(CURRENT_DATE(), date, YEAR) &lt;= 1, doc, 0)) AS doc_1y,<br>     SUM(IF(DATE_DIFF(CURRENT_DATE(), date, YEAR) &gt; 1 AND DATE_DIFF(CURRENT_DATE(), date, YEAR) &lt;= 2, doc, 0)) AS doc_2y,<br>     -- exec<br>     SUM(IF(DATE_DIFF(CURRENT_DATE(), date, DAY) &lt;= 30, exec, 0)) AS exec_30d,<br>     SUM(IF(DATE_DIFF(CURRENT_DATE(), date, DAY) &gt; 30 AND DATE_DIFF(CURRENT_DATE(), date, DAY) &lt;= 60, exec, 0)) AS exec_60d,<br>     SUM(IF(DATE_DIFF(CURRENT_DATE(), date, DAY) &gt; 60 AND DATE_DIFF(CURRENT_DATE(), date, MONTH) &lt;= 3, exec, 0)) AS exec_3m,<br>     SUM(IF(DATE_DIFF(CURRENT_DATE(), date, MONTH) &gt; 3 AND DATE_DIFF(CURRENT_DATE(), date, MONTH) &lt;= 3, exec, 0)) AS exec_6m,<br>     SUM(IF(DATE_DIFF(CURRENT_DATE(), date, MONTH) &gt; 6 AND DATE_DIFF(CURRENT_DATE(), date, YEAR) &lt;= 1, exec, 0)) AS exec_1y,<br>     SUM(IF(DATE_DIFF(CURRENT_DATE(), date, YEAR) &gt; 1 AND DATE_DIFF(CURRENT_DATE(), date, YEAR) &lt;= 2, exec, 0)) AS exec_2y,<br>     -- pipe<br>     SUM(IF(DATE_DIFF(CURRENT_DATE(), date, DAY) &lt;= 30, pipe, 0)) AS pipe_30d,<br>     SUM(IF(DATE_DIFF(CURRENT_DATE(), date, DAY) &gt; 30 AND DATE_DIFF(CURRENT_DATE(), date, DAY) &lt;= 60, pipe, 0)) AS pipe_60d,<br>     SUM(IF(DATE_DIFF(CURRENT_DATE(), date, DAY) &gt; 60 AND DATE_DIFF(CURRENT_DATE(), date, MONTH) &lt;= 3, pipe, 0)) AS pipe_3m,<br>     SUM(IF(DATE_DIFF(CURRENT_DATE(), date, MONTH) &gt; 3 AND DATE_DIFF(CURRENT_DATE(), date, MONTH) &lt;= 3, pipe, 0)) AS pipe_6m,<br>     SUM(IF(DATE_DIFF(CURRENT_DATE(), date, MONTH) &gt; 6 AND DATE_DIFF(CURRENT_DATE(), date, YEAR) &lt;= 1, pipe, 0)) AS pipe_1y,<br>     SUM(IF(DATE_DIFF(CURRENT_DATE(), date, YEAR) &gt; 1 AND DATE_DIFF(CURRENT_DATE(), date, YEAR) &lt;= 2, pipe, 0)) AS pipe_2y,<br>   FROM exec_daily<br>   GROUP BY org_snode_id, org, org_type, customer<br> ),<br> time_array AS (<br>   SELECT [&#39;30D&#39;, &#39;3M&#39;, &#39;6M&#39;, &#39;1Y&#39;] as x<br> )<br> SELECT org_snode_id, org, org_type, customer, time,<br> -- doc<br> CASE time<br>   WHEN &#39;30D&#39; THEN doc_30d<br>   WHEN &#39;3M&#39; THEN doc_30d + doc_60d + doc_3m<br>   WHEN &#39;6M&#39; THEN doc_30d + doc_60d + doc_3m + doc_6m<br>   WHEN &#39;1Y&#39; THEN doc_30d + doc_60d + doc_3m + doc_6m + doc_1y<br> END AS doc,<br>   CASE time<br>   WHEN &#39;30D&#39; THEN doc_60d<br>   WHEN &#39;3M&#39; THEN doc_6m<br>   WHEN &#39;6M&#39; THEN doc_1y<br>   WHEN &#39;1Y&#39; THEN doc_2y<br> END AS doc_past,<br> -- exec<br> CASE time<br>   WHEN &#39;30D&#39; THEN exec_30d<br>   WHEN &#39;3M&#39; THEN exec_30d + exec_60d + exec_3m<br>   WHEN &#39;6M&#39; THEN exec_30d + exec_60d + exec_3m + exec_6m<br>   WHEN &#39;1Y&#39; THEN exec_30d + exec_60d + exec_3m + exec_6m + exec_1y<br> END AS exec,<br>   CASE time<br>   WHEN &#39;30D&#39; THEN exec_60d<br>   WHEN &#39;3M&#39; THEN exec_6m<br>   WHEN &#39;6M&#39; THEN exec_1y<br>   WHEN &#39;1Y&#39; THEN exec_2y<br> END AS exec_past,<br> -- pipe<br> CASE time<br>   WHEN &#39;30D&#39; THEN pipe_30d<br>   WHEN &#39;3M&#39; THEN pipe_30d + pipe_60d + pipe_3m<br>   WHEN &#39;6M&#39; THEN pipe_30d + pipe_60d + pipe_3m + pipe_6m<br>   WHEN &#39;1Y&#39; THEN pipe_30d + pipe_60d + pipe_3m + pipe_6m + pipe_1y<br> END AS pipe,<br>   CASE time<br>   WHEN &#39;30D&#39; THEN pipe_60d<br>   WHEN &#39;3M&#39; THEN pipe_6m<br>   WHEN &#39;6M&#39; THEN pipe_1y<br>   WHEN &#39;1Y&#39; THEN pipe_2y<br> END AS pipe_past<br> FROM tempable CROSS JOIN time_array, UNNEST(time_array.x) AS time<br>)</pre><p>This query retrieves the number of distinct executions per day for each organization by joining the “executions per day” and “org_metadata” tables. It allows us to analyze the frequency and distribution of executions within each organization on a daily basis.</p><p>Additionally, the query performs aggregation on the “executions per day” data, computing the sum of executions at different time intervals. This enables us to understand the overall volume of executions during specific time periods, providing valuable insights into execution patterns and trends.</p><h4><strong>6.10 Integration with Looker Dashboard</strong></h4><p>Organizations continuously face the challenge of efficiently accessing and querying large volumes of data to derive actionable insights. Executives often make strategic business decisions based on customer usage data, and customer support heavily relies on real-time information to identify and triage major issues. Additionally, engineering teams strategically allocate resources to address critical and high-impact areas of operation based on this valuable data. These needs necessitate a robust infrastructure and visualization tools such as Looker/Google Data Studio become crucial in enabling ad hoc queries to gather insights.</p><p>Currently, Google Cloud Storage and Google BigQuery serve as data sources for dashboards developed in Google Data Studio. This integration empowers users to create visually appealing and interactive dashboards that pull data directly from the data warehouse, ensuring accuracy and real-time information. By consolidating all necessary data within the data warehouse, there is flexibility to perform queries tailored to specific needs, at will. Scheduled jobs can be set up to generate daily, weekly, or monthly reports in easily consumable formats.</p><p>Looker provides connectors to a myriad of sources. In this case, it would connect to the BigQuery instance and pull in the appropriate datasets for the report. Reports can also be generated by aggregating data from different datasets and multiple sources if there is such a use case.</p><p>Consider the example of generating a pipeline execution statistics report. Once the data is extracted from MongoDB into Google BigQuery (see Figure 3), Looker can be set up to pull in that data to generate a report.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JStHem8UBJtxmrpBniHZ1w.png" /><figcaption><em>Figure 10: Picking a data source in Looker Dashboard</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oc67g6RGoFs7cVMrF7N41Q.png" /><figcaption><em>Figure 11: Picking the dataset and the tables to pull data from</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gRE8_cMA7p2wW2V05ETZfA.png" /><figcaption><em>Figure 12: Configuring parameters to generate a report in form of a graph or a pie chart</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YCfIxE-fX058DkSus06jPQ.png" /><figcaption><em>Figure 13: Example of number of pipeline executions per org and number of documents processed</em></figcaption></figure><h4>6.11 Integration with Amazon SageMaker</h4><p>The runtime data from MongoDB is replicated to S3 in near real-time. With the help of Amazon SageMaker, we leverage the data stored in S3 to train powerful machine learning models. These models are trained using a comprehensive dataset of high-quality pipelines. The dataset undergoes continuous updates to include the latest pipelines executed in the SnapLogic environment, ensuring that the models stay current. This ML based model is used in our recommendation system, which we call Iris AI. Iris AI enhances the pipeline building experience, by offering intelligent snap recommendations tailored to the user’s specific needs and contextual information. Once the training is complete, SageMaker provides the capability to easily turn our model into an API endpoint that can efficiently process real-time data from S3.</p><h4><strong>7. Common Data Problems Solved by the SnapLogic Platform</strong></h4><p>Typically, when integrating data from disparate systems, several data problems are bound to arise, some of which are listed below:</p><p>1. <strong>Schema of the source and the target system are different and/or incompatible</strong>: The SnapLogic Platform provides an easy way to infer the schema from the source systems with its pre-built connectors or snaps and then accordingly aid in converting the schema to the target system using pre-built comprehensive SnapLogic Expression library infrastructure. AutoSync would be an easy alternative if the source and target endpoints are currently supported by it.</p><p><strong>2. Sources which don’t carry any schema like CSV and JSON files: </strong>There are many sources like CSV, JSON and AVRO file formats that don’t have a pre-built schema in them. But most of the Cloud Data warehouses are strongly typed databases which work on a strongly defined schema. SnapLogic Platform offers connectors like Auto Prep and inbuilt schema inference logic in its ELT Load Snap that can infer the schema of these schema-less sources before loading the data into the target table.</p><p>3. <strong>Incompatibilities between source and target data values: </strong>It is not just the schema that could be incompatible, but data values themselves between the source and target systems can be incompatible. For example, date and timestamp formats may not be compatible between source and target systems or float and double data types may not be compatible either because of the precision support each of them carries. SnapLogic Platform offers different options through its plethora of SnapLogic expression capabilities to do these transformations to make the data values compatible.</p><p>4. <strong>API limits on the source systems: </strong>Data needs to be extracted from multiple sources while performing such complex integrations. Several data sources impose limits on the number of API calls that can be made to extract data from them. SnapLogic Platform offers capabilities by offering scheduling capabilities of the various data extraction tasks to avoid such data contention issues imposed by API limits.</p><p>5. <strong>Data security compliance: </strong>Security is the key and compliance to Data security is an implicit requirement of the day. Data Masking or eliminating data columns containing sensitive data during the extraction of the data are some of the capabilities that SnapLogic Platform offers through its plethora of connectors. SnapLogic offers connectors which can encrypt the data during transit and decrypt them at the destination.</p><p>6. <strong>Performing complex analytics with SQL</strong>: Even though SQL is a widely used language for all data analytics, it becomes extremely complex to write SQLs which have complex transformations and debugging them is even more hard. The SnapLogic Platform offers the ELT Snap pack that provides an easy and a very convenient way for the end users to write complex SQL in a simplified GUI.</p><p>7. <strong>Capturing historical data using SCD2: </strong>One of the key requirements of any workflow is to capture historical data which describes the changes happening to the data in terms of what row was updated and storing all the prior updated values of that row. This is very useful for auditing and for historical reference. SnapLogic provides automated connectors that can be used in the pipelines which would capture this data in the most seamless manner.</p><h4>8. Conclusion</h4><p>The number of disparate data sources with time. Each source application is expected to produce data in its own format, as each of these applications would address specific business needs. The need for a unified view of all the different data will continue to grow, along with the need to bring this raw, unstructured data into data lakes.</p><p>As businesses fiercely compete in this ever-changing economic climate, it becomes even more important to be able to integrate all the different facets of business in the most fast, efficient manner in order to make strategic decisions and execute these decisions quickly.</p><p>This is where platforms like SnapLogic will play a pivotal role in the rapidly changing enterprise automation environment.</p><p>The topics discussed here provide just a sneak peak of the extensive and deep capabilities that the SnapLogic iPaaS can offer for building a better data platform. Only imagination can be the limit.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88285e01c02" width="1" height="1" alt=""><hr><p><a href="https://medium.com/snaplogic-engineering/how-to-build-a-better-data-platform-using-snaplogic-88285e01c02">How To Build a Better Data Platform Using SnapLogic</a> was originally published in <a href="https://medium.com/snaplogic-engineering">SnapLogic Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[On-Premises Data Integration]]></title>
            <link>https://medium.com/snaplogic-engineering/on-premises-data-integration-3bff2b0a5774?source=rss----48acfb72659f---4</link>
            <guid isPermaLink="false">https://medium.com/p/3bff2b0a5774</guid>
            <category><![CDATA[application-integration]]></category>
            <category><![CDATA[data-integration]]></category>
            <category><![CDATA[on-premise]]></category>
            <dc:creator><![CDATA[Ajay Kidave]]></dc:creator>
            <pubDate>Mon, 23 Aug 2021 21:06:25 GMT</pubDate>
            <atom:updated>2021-08-24T20:37:37.571Z</atom:updated>
            <content:encoded><![CDATA[<p>An overview of the options for integrating data located On-Premises, behind a customer firewall, using an Integration Platform As a Service (iPaaS).</p><h3>Introduction</h3><p>We discussed in an earlier post about <a href="https://medium.com/snaplogic-engineering/integration-in-the-modern-enterprise-763df30fdb40">integration use cases in a modern enterprise</a> and how an <strong>Integration Platform As a Service (iPaaS)</strong> can solve enterprise integration challenges. This post will drill down into the various approaches used by iPaaS vendors for supporting <strong>On-Premises data</strong> and the pros/cons of the various approaches. On-Premises in this case includes data residing on the customer’s own data centers and also endpoints on IaaS services like AWS/Azure/GCP <strong>not accessible over the public internet</strong>.</p><h3>On-Premises Data Sources</h3><p>With the rise of SaaS applications, many application endpoints are cloud hosted, meaning they are available over the public Internet. Traditionally, customer owned data centers were the main source of On-premises data, which is still the case for the largest Enterprises. Applications and databases on IaaS services like AWS/Azure/GCP are hosted on the cloud, but some of them are equivalent to a On-Premises data source since they are not reachable over the public internet due to security considerations. The On-Premises data sources include:</p><ul><li><strong>Applications/Databases in customer data centers</strong>: These are reachable from within the data center only, opening up access to the public internet is not possible or is highly restricted.</li><li><strong>Applications/Databases in customer IaaS platforms</strong>: These are reachable from within the customer’s VPC network only. Opening to the public internet might be possible but is not recommended generally unless the application is designed to be open.</li><li><strong>Endpoints with special authentication/authorization requirements</strong>: For some endpoints, the origin host sending the request is significant. For example, an S3 bucket or RDS database could be setup with IAM rules to restrict requests to specific hosts or networks.</li></ul><p>For all the above, access to the data would be easier when the read/write requests come from within the same network as the data source.</p><h3>Various Approaches to On-Premises Data</h3><p>iPaaS platforms allow customers to build integrations easily, using the SaaS model to minimise the installation and maintenance overhead. The general architecture is to have a central <strong>control plane</strong> where the integration metadata is stored, exposing a UI to allow building integrations through a graphical interface.</p><p>The actual data processing happens on a <strong>data plane</strong>. The data plane fetches the data from the source endpoints, processes the data and then writes to the target endpoints.</p><p>Various iPaaS vendors take different approaches to handle on-premises data. Some vendors do not support on-premises data at all, limiting the usecases which can be supported using such products. Among the vendors which support on-premises data, the various approaches include requiring customers to open up firewall holes, installing custom network agent or allowing the data plane to run on the customer network.</p><ul><li><strong>Firewall Hole Approach</strong>: This approach requires the customer to open a firewall hole to allow access to the customer’s on-premises endpoint from the iPaaS provider’s network. The allowlist might be to a wide CIDR range containing all the data plane nodes hosted by the vendor, across tenants. For larger accounts, the allowlist might be a smaller range specific to the particular customer’s data plane nodes.</li><li><strong>VPN Tunnel Approach</strong>: This approach requires the customer to setup an IPSec VPN tunnel on their network. The customer’s network operations team will have to setup the tunnel using the functionality exposed by the networking device used on-premises. Once the tunnel is configured, endpoints within the customer network are accessible from the iPaaS provider’s networks. There can be limitations like DNS not being supported, requiring the use of static IP addresses.</li><li><strong>Custom Networking Agent Approach</strong>: This approach involves the customer installing custom networking agent software on premises. The agent will make outbound connections to the iPaaS provider using Websockets or HTTP long-polling. The outbound connection are used to proxy requests for data on endpoints within the customer’s network. The endpoint data is passed for processing to the data plane nodes at the iPaaS provider.</li><li><strong>On-premises Processing Agent Approach</strong>: This approach involves the customer installing custom agent software on-premises, with the agent doing the actual data processing. The agent makes outbound connections to the iPaaS provider using Websockets or HTTP long-polling. The outbound connections are used for passing control requests to the agent. The agent will talk directly to the on-premises source endpoints, do the data processing and then talk to the target endpoints to write the data.</li></ul><p>The various approaches can be classified at a high level as <strong>Data Processing at the iPaaS provider</strong> (the first three approaches above) and <strong>Data Processing On-Premises</strong> (the last approach).</p><h3>Data Processing at the iPaaS provider</h3><p>All data is pulled into the iPaaS provider’s network before being processed. The firewall hole approach, the VPN tunnel approach and the custom networking agent approach are in this category.</p><figure><img alt="VPN and Networking agent approach" src="https://cdn-images-1.medium.com/max/801/1*m_Ppj62ZM8eD6IvCh50uQQ.png" /><figcaption><strong>VPN and Networking agent approach</strong></figcaption></figure><h4>Pros</h4><ul><li>Limited infrastructure provisioning is required on-premises, only the VPN or networking agent needs to be provisioned. No data processing nodes are provisioned locally</li></ul><h4>Cons</h4><ul><li>No data locality, data is pushed out of the network before processing. This has severe performance and security implications.</li><li>Complex networking setup: The VPN tunnel approach can have complex configuration requirements. Each new on-premises location will have to go through this complexity. This approach does not work when the customer needs to send the request through an on-premises HTTP proxy.</li><li>Connector configuration can be complex. With the networking agent approach, the endpoint connection configuration can be complex due to the requests having to be proxied through the agent. Depending on what protocol is used to talk to the endpoint, like HTTP/JDBC/SFTP etc, only limited endpoints might be accessible through the agent.</li><li>Endpoints with special authentication/authorization requirements like IAM based access cannot be accessed without non-trivial configuration.</li></ul><h3>Data Processing On-Premises</h3><p>The data processing happens on the customer’s on-premises instances. Data is not sent out of the customer’s network and data locality is maintained by doing the processing closer to the data source.</p><figure><img alt="On-Premises Processing Agent Approach" src="https://cdn-images-1.medium.com/max/788/1*AUZFTm9-_KUg4050G0TUFw.png" /><figcaption><strong>On-Premises Processing Agent Approach</strong></figcaption></figure><h4>Pros</h4><ul><li>Data locality means processing happens close to the data source. This has performance and security advantages</li><li>On agent software is installed, all on-premises endpoints can be accessed without any custom network settings being used.</li><li>Endpoints with special authentication/authorization requirements like IAM based access controls work as usual.</li></ul><h4>Cons</h4><ul><li>Infrastructure provisioning is required on-premises for data processing nodes</li><li>Agent software installation and software upgrades are required on-premises</li></ul><h3>Data Locality</h3><p>There are various advantages to doing the data processing close to the location of the data. The advantages include</p><ul><li><strong>Performance</strong>: For use cases where data has to be filtered, doing the processing remotely would require all the data to be pushed to the remote location before the processing can be done. Not all data sources support push-down optimizations. The performance difference can be even more significant when the source and target endpoints are co-located.</li><li><strong>Security</strong>: Doing the processing locally means that the customer data does not leave their premises, reducing the risk of security issues and make audits easier.</li><li><strong>Isolation</strong>: Doing the processing on-premises has the advantage that processing can continue if there is a network disruption causing communication issues with the iPaaS control plane.</li></ul><h3>SnapLogic Solution for On-Premises Data</h3><p>SnapLogic uses the <strong>on-premises data processing agent</strong> approach. For customers who do not have any on-prem sources, all processing can happen on data-plane nodes managed by SnapLogic. For customers with on-prem use cases, the SnapLogic agent software can be installed on the customer’s infrastructure. This provides all the data locality advantages listed above. To address the downsides of having to install agent software on-premises, the agent is designed with various features like:</p><ul><li><strong>Lightweight installation</strong>: Stateless agent software means the installation is lightweight, with no need to configured persistent storage</li><li><strong>Resource management options</strong>: Support for various installation configurations including VMs, standalone Docker, Kubernetes and Mesosphere</li><li><strong>Websocket based networking</strong>: The processing agents use <a href="https://en.wikipedia.org/wiki/WebSocket">Websockets</a> to communicate with the control plane, enabling bi-direction communication through the customer’s firewall. Using the standards-compliant Websockets protocol ensures that the communication can go through proxies without any changes required on the customer’s network,</li><li><strong>Automatic upgrades</strong>: Customer controls when the agent software gets upgraded. Customers can take a hands-on approach, deciding when the upgrades happen on each environment or take a hands-off approach, with SnapLogic automatically applying the upgrades.</li></ul><p>With this approach, SnapLogic supports enterprise customers who have data processing spread across multiple data centers and IaaS services around the world. The control plane provides a single interface to manage and monitor all the integrations, with the actual data processing being done at the most suitable location. Uses cases requiring low latency access to endpoints like <a href="https://medium.com/snaplogic-engineering/reliable-high-throughput-batching-with-the-kafka-consumer-snap-7c65e41e204b">Kafka queues</a> are possible with SnapLogic, which is not feasible with the approach of doing the data processing at the iPaaS provider</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3bff2b0a5774" width="1" height="1" alt=""><hr><p><a href="https://medium.com/snaplogic-engineering/on-premises-data-integration-3bff2b0a5774">On-Premises Data Integration</a> was originally published in <a href="https://medium.com/snaplogic-engineering">SnapLogic Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reliable, High-Throughput Batching with the Kafka Consumer Snap]]></title>
            <link>https://medium.com/snaplogic-engineering/reliable-high-throughput-batching-with-the-kafka-consumer-snap-7c65e41e204b?source=rss----48acfb72659f---4</link>
            <guid isPermaLink="false">https://medium.com/p/7c65e41e204b</guid>
            <category><![CDATA[kafka]]></category>
            <dc:creator><![CDATA[Patrick Taylor]]></dc:creator>
            <pubDate>Thu, 28 Jan 2021 18:54:26 GMT</pubDate>
            <atom:updated>2021-01-28T18:54:26.153Z</atom:updated>
            <content:encoded><![CDATA[<h3>OVERVIEW</h3><p>SnapLogic recently <a href="https://community.snaplogic.com/t/release-notes-for-confluent-kafka-snap-pack-version-423patches7900/9184">released an update</a> to our <strong>Confluent Kafka Snap</strong> pack containing a number of important enhancements. In this article, we take a closer look at the <strong>Kafka Consumer</strong> Snap’s new <strong>Output Mode</strong> setting, and how it can be used to achieve reliable, high-throughput performance for some common use cases where it’s important to process records in batches.</p><h3>USE CASE 1: COPY ALL DATA FROM A TOPIC TO S3</h3><p>Imagine a use case with these requirements:</p><ol><li>Copy all records from a Kafka topic to JSON files stored on S3.</li><li>The topic can have any number of records.</li><li>Each file should contain a maximum of 5,000 records.</li><li>The first execution of the pipeline should copy all existing data in the topic.</li><li>Each subsequent execution should copy all new data since the last execution.</li><li>Ensure that each file is successfully written before reading more records.</li></ol><p>This can be implemented with a fairly simple pipeline that looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7oo2dtiD21iuQ3XJ" /></figure><h3>Kafka Consumer configuration</h3><p>Requirements 1 and 2 imply:</p><ul><li>Set <strong>Message Count</strong> to the special value 0 so that all available records will be copied.</li></ul><p>Requirement 3 says that we need to deal with records in batches:</p><ul><li>Set <strong>Max Poll Records</strong> to 5000 to specify the desired batch size.</li><li>Set <strong>Acknowledge Mode</strong> to <strong>Wait after each batch of records</strong>.</li><li>Set the new <strong>Output Mode</strong> setting to <strong>One output document per batch</strong>. We’ll discuss the importance of this below.</li></ul><p>Requirements 4 and 5 mean:</p><ul><li>Set <strong>Group ID</strong> to a new value for the first execution; then leave it unchanged.</li><li>Set <strong>Auto Offset Reset</strong> to <strong>Earliest</strong> so that the first run will start from the earliest record.</li><li>Set the Consumer’s <strong>Seek Type</strong> to <strong>End</strong> so that subsequent executions will start consuming records following the offsets committed by the last execution.</li></ul><p>Requirement 6 means:</p><ul><li>Uncheck <strong>Auto Commit</strong>.</li><li>Use the <strong>Kafka Acknowledge</strong> Snap to allow the Consumer to track when it’s ok to commit offsets of processed records and poll for more records.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*riwKAUeXPfllgQYp" /></figure><h3>Importance of the Consumer’s new Output Mode setting</h3><p>The key to solving this use case with such a simple pipeline is the Consumer’s new <strong>Output Mode</strong> setting. The default value for this setting is the backward-compatible behavior: <strong>One output document per record</strong>. The diagram below shows how this works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_-dmkxBucahpjF4AWZkj3Q.png" /><figcaption>Output Mode = One output document per record</figcaption></figure><p>This flattening of the record batches received from the broker into a stream of individual records is ideal for many use cases where records can be processed individually. But it presents a problem for our use case since we want to process records in batches. The <strong>JSON Formatter</strong> Snap can be configured to write all records to a single output file, or to write each record individually, neither of which is what we want.</p><p>We could try to re-batch the Consumer’s output records using a Snap like <strong>Group by N</strong>. But this is also problematic. What would we use for the value of <strong>N</strong>? If we set it 5000, the same value used for the Consumer’s <strong>Max Poll Records</strong>, this would re-impose the batching of records to resemble the batching as received from the broker. However, the Kafka broker can sometimes return a batch that has fewer records than the batch size specified by <strong>Max Poll Records</strong>, even when more records are available. If this were to happen, the <strong>Group By N</strong> snap would wait indefinitely to receive more input records, since it needs a full N input records to create a single output document. But since we’ve disabled <strong>Auto Commit</strong>, the Consumer snap will not output more records until the records it just output have been acknowledged by the Acknowledge Snap, which is downstream from the Group By N. The records that need to be acknowledged before more records will be fetched won’t ever be acknowledged if the Group By won’t let them proceed, so the Consumer Snap will abort with an acknowledge timeout exception. Changing the value of N for the Group By N Snap won’t help.</p><p>The solution for this problem is to set the Consumer’s <strong>Output Mode</strong> to <strong>One output document per batch</strong>. This preserves the batching of records as received from the broker:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*arYRxdeAHZ8zonJ9SebEKA.png" /><figcaption>Output Mode = One output document per batch</figcaption></figure><p>In this mode, every output document looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/0*bl3wXHZeAgbEeBuZ" /></figure><p>Each document has three top-level keys:</p><ul><li><strong>batch</strong>: An array of records, each with <em>key</em>, <em>value</em>, <em>metadata</em>.</li><li><strong>batch_size</strong>: The number of records in this batch.</li><li><strong>batch_index</strong>: The index of this batch with respect to all other batches output by this instance of the Snap during the current execution, starting from 0.</li></ul><h3>JSON Formatter configuration</h3><p>To configure what the <strong>JSON Formatter</strong> Snap writes to its binary output, we can set <strong>Content</strong> to <strong>$batch</strong> to reference the array of records within each document received from the Consumer, and check <strong>Format each document</strong> so that each input document will result in a separate output file to be written by the <strong>File Writer</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*O25Czr_qbPts8OB8" /></figure><p>We also configure the<strong> Binary header properties</strong> to write additional information to accompany each binary output:</p><ul><li>Pass through the value of <strong>batch_index</strong> so it can be referenced by the <strong>File Writer</strong>’s <strong>File name </strong>expression.</li><li>Pass through the <strong>metadata</strong> from every record in the <strong>batch</strong> array so it can be accessed by the downstream <strong>Kafka Acknowledge</strong> Snap.</li></ul><h3>File Writer configuration</h3><p>We configure the <strong>File Writer</strong>’s <strong>File name</strong> to an expression which references three variables:</p><ul><li><strong>_OutputPath</strong>: The value of a pipeline parameter named OutputPath, which we set to the URL of the root S3 directory where all the files from every execution should be written.</li><li><a href="https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1439352/Pipeline+Functions+and+Properties#PipelineFunctionsandProperties-ruuid"><strong>pipe.ruuid</strong></a>: The unique identifier of the pipeline execution (i.e. the runtime). This is used as the name of a subdirectory to create under the root S3 directory.</li><li><strong>batch_index</strong>: The batch index from the <strong>Kafka Consumer</strong>’s output document, passed through the <strong>JSON Formatter</strong> as a binary header.</li></ul><p>At the end of an execution, we’ll have a set of S3 files named batch-0.json, batch-1.json, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*75Y8dxGy1JBP-g0d" /></figure><h3>JSON Splitter configuration</h3><p>Even when using batch output mode, we need to acknowledge each record individually, so we use a <strong>JSON Splitter </strong>to split the array of metadata which the <strong>JSON Formatter</strong> extracted from the <strong>Kafka Consumer</strong>’s output. This passed through the <strong>File Writer</strong> as a binary header named <strong>metadata</strong>, available as <strong>$original.metadata</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*a7XOx5KhjXBwtpCs" /></figure><p>The output from the <strong>JSON Splitter</strong> looks as follows. Each row is the value of the <strong>metadata</strong> object from an individual record from one element of the batch array of the Consumer’s output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pvNFMerwazrEg7F7" /></figure><h3>Kafka Acknowledge configuration</h3><p>Every input document contains the metadata fields at the root level, so the <strong>Metadata Path</strong> is simply <strong>$</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UwvCaHchNva2gSg1" /></figure><h3>USE CASE 2: MORE COMPLEX PROCESSING OF EACH BATCH</h3><p>Imagine a scenario similar to Use Case 1, but instead of just formatting and writing each batch, we require more complex processing of each batch. Perhaps we need to group all of the records by key, write a file per unique key, and write only a subset of each record’s data instead of including all the metadata in every file.</p><p>To handle this, we can delegate the processing of each batch to a child pipeline using the <strong>Pipeline Execute</strong> snap:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*izh6O_mzmmD3qQQq" /></figure><p>A separate child pipeline instance is created to handle each document from the <strong>Kafka Consumer</strong>. This pipeline performs all of the per-batch processing: splitting, sorting, grouping, mapping, etc.:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nq8eceuKGGY-fwVU" /></figure><p>The output of the child pipeline’s <strong>Merge</strong> Snap becomes the output of the <strong>Pipeline Execute</strong> Snap in the parent pipeline. Each document contains a subset of the records from the batch, all with a matching value for their key. Even though the records of the batch have been split up and re-grouped by key, all records from the batch will be acknowledged. Note that the <strong>Kafka Acknowledge</strong> Snap should always be in the same pipeline as the <strong>Kafka Consumer </strong>Snap.</p><p>We can get parallel processing by setting the <strong>Pipeline Execute</strong>’s <strong>Pool Size</strong> to a value greater than 1.</p><p>We won’t explore this solution in more detail here, as the Kafka lesson is exactly the same: To achieve reliable batch processing of any number of records with the <strong>Kafka Consumer,</strong></p><ul><li>Disable <strong>Auto Commit</strong>.</li><li>Set <strong>Output Mode</strong> to <strong>One output document per batch</strong>.</li><li>Set <strong>Acknowledge Mode</strong> to <strong>Wait after each batch of records</strong>.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c65e41e204b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/snaplogic-engineering/reliable-high-throughput-batching-with-the-kafka-consumer-snap-7c65e41e204b">Reliable, High-Throughput Batching with the Kafka Consumer Snap</a> was originally published in <a href="https://medium.com/snaplogic-engineering">SnapLogic Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enterprise Integration Tooling]]></title>
            <link>https://medium.com/snaplogic-engineering/enterprise-integration-tooling-d14b0c9c8cf?source=rss----48acfb72659f---4</link>
            <guid isPermaLink="false">https://medium.com/p/d14b0c9c8cf</guid>
            <category><![CDATA[enterprise-technology]]></category>
            <category><![CDATA[data-integration]]></category>
            <category><![CDATA[enterprise-software]]></category>
            <category><![CDATA[integration-architecture]]></category>
            <dc:creator><![CDATA[Ajay Kidave]]></dc:creator>
            <pubDate>Wed, 01 Jul 2020 17:18:47 GMT</pubDate>
            <atom:updated>2020-07-28T17:25:04.082Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>This post is the second in a series providing an overview of Enterprise Integration. See <a href="https://medium.com/snaplogic-engineering/integration-in-the-modern-enterprise-763df30fdb40?source=friends_link&amp;sk=0e9950e94ef2d18b349b6e0e6ecd0aaa">Enterprise Integration</a> for the previous post in this series. This post will give an overview of various integration tooling options and how Enterprises risk creating <strong>tooling silos</strong> while trying to build integrations to avoid <strong>data silos</strong>.</p><h3>Enterprise Data Landscape</h3><p>There are a variety of applications and systems which store data in an Enterprise. Considering a typical Enterprise, some of the applications in use and the integration approach to use with those systems are:</p><ul><li><strong>SaaS Applications</strong> — Most SaaS applications expose REST or SOAP APIs for integration purposes. For some, custom SDK’s can be used to develop connectors.</li><li><strong>Custom On-Premises Applications</strong> — This would include custom applications running on customer data centers or on their IaaS accounts. Integration with such applications would use REST or SOAP APIs. Since the application is hosted by the customer, directly accessing the underlying database is also an option for integrating with such applications.</li><li><strong>Databases</strong> — Integrating with databases would use SQL queries or bulk load/unload tools for higher throughput. The same would apply for cloud-hosted databases. For NoSQL databases, custom SDK or REST APIs would have to be used for integration.</li><li><strong>Data Warehouses</strong> — Integrating with data warehouses would use SQL queries or bulk load/unload tools for higher throughput. The same would apply for cloud-hosted data warehouses.</li><li><strong>Data Lakes</strong> — Data lakes usually expose filesystem-level APIs for loading data into the lakes (aka data lake hydration). This applies for on-premises Hadoop based data lakes and also cloud-hosted data lakes using S3/ABFS/GCS etc.</li></ul><figure><img alt="Enterprise Data Landscape" src="https://cdn-images-1.medium.com/max/776/1*8B-vuwFFJTOb0x6i_Ljhdg.png" /><figcaption>Enterprise Data Landscape</figcaption></figure><h3>Integration Tooling Options</h3><p>There are a variety of applications and systems which store data in an Enterprise. The various <strong>integration tooling options</strong> available when working with these applications include:</p><p><strong>On-Premises Integration Tools</strong></p><ul><li>Support ELT usecases for data integration</li><li>Limited support for SaaS applications and non-relational data formats</li><li>Difficult to maintain and update</li></ul><p><strong>Custom Integration Applications</strong></p><ul><li>Custom-developed in house applications for integration</li><li>Non-trivial to maintain and update, difficult to add new functionality</li></ul><p><strong>Message Queue Focused Tooling</strong></p><ul><li>Provide message queue interface for application integration</li><li>Developer focused approach, rather than no-code</li><li>Focused on in house applications rather than SaaS applications</li></ul><p><strong>SaaS Focused Integration Tools</strong></p><ul><li>Focused primarily on the integration of SaaS applications</li><li>Limited support for on-premises usecases and data integration usecases</li></ul><p><strong>IaaS Ecosystem Focused Tools</strong></p><ul><li>Tools focused around integration across particular IaaS ecosystem</li><li>Limited support for applications outside of the particular ecosystem</li></ul><p><strong>API Management Tools</strong></p><ul><li>Support development of API’s to expose application data</li><li>Require additional integration tooling for API authoring</li></ul><p><strong>Data Warehouse Integration Tools</strong></p><ul><li>Support loading of application data into data warehouses</li><li>Focused on data load into warehouses, limited support for data extract from warehouses</li><li>No support for integration between SaaS applications, limited support for data lakes</li></ul><p><strong>Data Lake or Big Data Tools</strong></p><ul><li>Support loading of application data into data lakes</li><li>No support for integration between SaaS applications, limited support for databases and data warehouses</li></ul><figure><img alt="Integration Tooling Options" src="https://cdn-images-1.medium.com/max/776/1*VItTAZl4EC73crYeUH5i5g.png" /><figcaption>Integration Tooling Options</figcaption></figure><h3>Tooling Silos</h3><p>With the variety of integrations tools available, enterprises risk creating <strong>integration tooling silos</strong>. Considering an Enterprise with an <strong>On-premises SAP instance</strong> and a <strong>Workday Cloud</strong> application, they could face a scenario where multiple integration tools are required to integrate with these applications:</p><ul><li><em>On-Premises Integration Tools</em> for integrating SAP data with other on-premises applications</li><li><em>SaaS Focused Integration Tools</em> for integrating Workday with other SaaS applications</li><li><em>Data Warehouse Integration Tools</em> for loading Workday data into a Cloud Warehouse (because the SaaS focused tool does not support data warehouse loads)</li><li><em>Custom Integration applications</em> for integrating SAP with Workday, since the SaaS integration tools do not work with on-premises SAP and the on-premises tools do not work well with complex data formats used by Workday</li></ul><p>This leads to a scenario of <strong>integration tooling silos</strong>, where specialized tools are required for specific integration usecases. Multiple tools are used with one application endpoint since no single tool supports all the required usecases. The endpoint credentials need to be maintained in multiple integration tools. Every new integration needs to start with the consideration of which tool would have to be used for that usecase.</p><p>Some of the <strong>technical challenges</strong> which come from usecase specific integration tooling are:</p><ul><li><em>Wrong tool for the job</em> : If the only integration tooling available is a big data focused tool, then all integration problems become big data problems. Hammers and nails!!</li><li><em>Wrong design choices</em> : If the integration tooling available is a data warehouse focused tool, then all integration problems require the use of the warehouse as a staging area. This is usually not the right design for application integration usecases and for scenarios involving log data where data lakes would be better suited.</li><li><em>Uni-directional data movement</em> : Some of the usecase specific tooling work in one direction only. For example, data warehouse loading tools usually load data into a warehouse, they do not support loading data into applications.</li></ul><p>The challenges with such tooling silos are not just technical. There are <strong>organizational challenges</strong> in terms of requiring multiple teams to maintain the various integration usecases using different tools. It becomes impossible to assign ownership of integration requirements within the enterprise.</p><h3>SnapLogic Solution</h3><p>At SnapLogic, we believe that a modern enterprise needs to be able to satisfy all their integration uses cases with one integration platform. Such a platform needs to be able to provide support for various integration requirements including:</p><ul><li><strong>Data Integration</strong>: supporting a variety of filesystem, file formats, authentication mechanisms etc</li><li><strong>Application Integration</strong>: supporting native connectivity to most enterprise applications and providing REST and SOAP-based connectivity with a flexible data model to support modern data formats</li><li><strong>Ease of Use</strong>: making it easy for citizen integrators to develop integrations, rather than focusing on developers</li><li><strong>Hybrid Deployment</strong>: making it easy to access On-premises and Cloud endpoints seamlessly</li><li><strong>Big Data support</strong>: making it possible to automatically scale out and process data in parallel when data volume is larger than what can be processed on a single instance</li><li><strong>API management functionality</strong>: making it possible to use the data and application integration functionality to author APIs and expose them to end users without requiring external APIM tools</li><li><strong>Data Science functionality</strong>: making it possible to build, train and deploy machine learning models, using the integration features to load data for building models, ML features for training and APIM functionality for deploying the model.</li></ul><p>Each of the above usecases requires significant focus to be able to satisfy the diverse usecases faced by enterprises. For example, a data integration usecase could look at a high level to be a simple case of reading files from S3. Drilling down, the actual details could involve Parquet format files that have to be read from S3, where the S3 file is accessible through a custom IAM role only and the data is encrypted with customer-managed keys. It is useful to look at the details of the usecases when evaluating integration tooling.</p><p>The SnapLogic platform is deployed at some of the largest enterprises around the world and can solve all the integration challenges faced by enterprises. Using a single integration platform has significant advantages for the customer and helps avoid the challenges which come from <strong>integration tooling silos</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d14b0c9c8cf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/snaplogic-engineering/enterprise-integration-tooling-d14b0c9c8cf">Enterprise Integration Tooling</a> was originally published in <a href="https://medium.com/snaplogic-engineering">SnapLogic Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Integration in the Modern Enterprise]]></title>
            <link>https://medium.com/snaplogic-engineering/integration-in-the-modern-enterprise-763df30fdb40?source=rss----48acfb72659f---4</link>
            <guid isPermaLink="false">https://medium.com/p/763df30fdb40</guid>
            <category><![CDATA[modern-data-architecture]]></category>
            <category><![CDATA[enterprise-technology]]></category>
            <category><![CDATA[enterprise-software]]></category>
            <category><![CDATA[application-integration]]></category>
            <category><![CDATA[data-integration]]></category>
            <dc:creator><![CDATA[Ajay Kidave]]></dc:creator>
            <pubDate>Wed, 13 May 2020 21:59:15 GMT</pubDate>
            <atom:updated>2020-07-06T17:59:15.965Z</atom:updated>
            <content:encoded><![CDATA[<p>This post aims to provide an overview of how an <strong>Integration Platform As a Service (iPaaS)</strong> can be used in an Enterprise to eliminate data silos. This is intended for an audience of data integrators and data architects. Integration platforms provide two main sets of functionality:</p><ul><li><strong>Data Integration</strong>: Batch processing of data. The integration platform provides support for processing data from various storage systems and file formats and supports visual development of data transformation functionality.</li><li><strong>Application Integration</strong>: Syncing of data between applications. The integration platform provides connectors to read and write data from various application endpoints. This combined with the transformations supported as part of data integration allows data to be moved from any source to any target, while performing transformations as required.</li></ul><h3>Typical Enterprise Layout</h3><p>A typical Enterprise runs multiple applications, some running as SaaS applications and others running in the customer’s own data centers. This network layout shows the unenviable task facing a data integrator having to combine data from multiple sources.</p><p>The Enterprise shown uses two data centers, one in US East and another in US West, each hosting some applications (like SAP/Oracle) and some databases. There is an IaaS account (AWS/Azure/GCP) which hosts custom applications and a data warehouse. There are multiple SaaS applications in use (like Workday/NetSuite etc).</p><figure><img alt="Typical Network Layout for an Enterprise" src="https://cdn-images-1.medium.com/max/779/1*HcdSLtAT7nN0Jeg3XBh9_w.png" /><figcaption>Typical Enterprise Network Layout</figcaption></figure><p>Some of the complexities to consider include:</p><ul><li><em>Corporate network</em>: The data integrator builds the pipelines to orchestrate the data processing. The corporate network where the pipeline design happens from (or home network as the case might be) might not have direct network access to the data center and cloud IaaS accounts.</li><li><em>Data Locality</em>: The pipeline development and actual data processing happen on different machines. The data integrator is on the corporate network but the actual data processing usually needs to happen on one of the data centres nodes or on the IaaS account. This would be required because of endpoint connectivity requirements and to ensure that data processing is data locality aware and happens closer to the data sources.</li><li><em>On-premises Firewall</em>: The on-premises nodes are behind a firewall. While it is possible to open a firewall rule to allow inbound connections from the open internet, this is not usually recommended and is disallowed by Enterprise network operations teams.</li><li><em>Isolated Networks</em>: Nodes in the IaaS account are not usually reachable from the on-premises data centre and vice-versa. It is possible to setup up Direct Connect or equivalent networking setup to allow direct access between on-premise nodes and IaaS nodes, but an Enterprise network architecture which does not require direct access between data centers as a requirement would be more flexible and reliable in the longer term. Also, the various on-premises data centers might not be able to talk to each other directly. VPN’s might allow access to some of the endpoints but they usually will not allow access to all the endpoints simultaneously. This is especially true when considering data centers distributed across the globe and cases where there might be endpoints in multiple IaaS regions or even multiple IaaS providers.</li></ul><h3>Integration Scenarios</h3><p>The high-level scenarios in terms of network layout would be:</p><ul><li><strong>SaaS Only</strong>: Smaller companies might be running purely using SaaS applications, with no IaaS applications. This would be unusual for larger enterprises. Moving data from Salesforce to a Snowflake data warehouse would be in this category.</li><li><strong>Cloud Only</strong>: Newer companies might be using only SaaS applications with some IaaS accounts for custom applications, with no on-premises data centers. Combining data from an RDS database (accessible from within the customer’s AWS account only) with NetSuite data and generating a report would be in this category.</li><li><strong>Cloud and Ground</strong>: Most enterprises have a combination of SaaS applications, applications on IaaS Cloud and on-premises Ground applications. Larger enterprises might have multiple data centers, geographically distributed for failover and for serving employees and users across the world. Reading data from an on-premises SAP instance and joining it with data from Redshift warehouse and writing the results to an Oracle database in another data center would be in this category.</li></ul><p>In terms of integration requirements, the first scenario, <em>SaaS Only</em> would be the easiest to satisfy. Data processing for this category can run anywhere, because the endpoints (SaaS application) are reachable from anywhere.</p><p>The <em>Cloud Only</em> scenario depends on the kinds of applications being run on the IaaS account. If a data warehouse is run in the cloud account, and the warehouse is open to the public internet (secured using authentication mechanisms rather than at the network level), then the data processing can run anywhere. For custom applications running in the cloud which are not reachable over the public internet. the data processing has to run on the IaaS network or on nodes which can reach the IaaS network.</p><p>The <em>Cloud and Ground</em> scenario has the most complexities in terms of integration requirements. If a use case requires data to be combined between a database running in US West with an application running in US East or in the cloud, the integration has the challenge that no node will have direct access to all the required endpoints.</p><h3>iPaaS vs Traditional Integration Solutions</h3><p>Traditional integration solutions involve installing on-premises integration tools which allow the development of data processing pipelines. This comes with all the usual challenges associated with on-premises applications, like high overhead for maintenance and upgrades. Beyond the usual advantages of the SaaS model, iPaaS has some advantages over the on-premise integration tools</p><ul><li><em>Regular Updates</em>: For an integration platform, even if no new functionality needs to be delivered, ensuring that connectors to the various endpoints are kept updated and new connectors are available requires that the integration platform gets regular updates, which is easier with the iPaaS model.</li><li><em>Ease Of Use</em>: The traditional integration tools usually require a fat client and might not be easily available to all users within the Enterprise. The iPaaS model, with browser-based tools means that the functionality is available to all end-users and is user-friendly.</li><li><em>Distributed Model</em>: iPaaS approach enables a distributed model, as against the centralized model used by traditional integration tools. This allows for easy handling of distributed integration scenarios like the <em>Cloud and Ground</em> model described above.</li></ul><h3>SnapLogic iPaaS</h3><p>Various iPaaS products take different approaches to solve the challenges outlined above. This layout shows the high-level approach adopted by SnapLogic</p><figure><img alt="SnapLogic iPaaS Solution" src="https://cdn-images-1.medium.com/max/785/1*9ao5_Y7Jye9LbZ2Ckgrd2Q.png" /><figcaption>SnapLogic iPaaS Solution</figcaption></figure><p>The SnapLogic approach utilizes an iPaaS service, running in the public cloud, like any regular SaaS service. All data integrator user interactions happen against this service. Actual data processing happens on dedicated data processing agents called <strong>Snaplexes</strong>.</p><p>For the <em>SaaS Only</em> scenario, all data processing can happen within the SnapLogic cloud. For the data processing scenarios requiring access to data on the customer IaaS or on-premises, Snaplex agents processes can be installed on-premises as required.</p><p>This approach addresses the complexities discussed earlier:</p><ul><li><em>Corporate network</em>: The data integrator works from the corporate network, interacting with the SnapLogic cloud only. The pipeline development process allows for easy orchestration of data pipelines running on any of the customer data centers or IaaS accounts.</li><li><em>Data Locality</em>: The data processing happens on the Snaplex closest to the data source, allowing for data locality aware processing.</li><li><em>On-premises Firewall</em>: The Snaplexes can run behind the customer firewall, making outbound requests to the SnapLogic Cloud. There is no need to open inbound firewall rules.</li><li><em>Isolated Networks</em>: Orchestrating pipelines, where data is read from a source in one data center and combined with data from another location is made easy through the distributed model.</li></ul><p>The Snaplex agents installed on-premises are stateless services, which automatically upgrade themselves as required by communicating with the SnapLogic cloud. Being stateless, the installation is simple, with no local database required, all state is maintained in the SnapLogic cloud. The agents use outbound connections to the SnapLogic cloud, removing the need to open firewall rules to allow access.</p><p>The SnapLogic approach enables having a single integration platform Enterprise-wide. This allows end-users to easily build data pipelines and orchestrate data flow across on-premises and cloud endpoints, breaking data silos within the Enterprise.</p><p>This is the first in a series about Enterprise Integration, see <a href="https://medium.com/snaplogic-engineering/enterprise-integration-tooling-d14b0c9c8cf?source=friends_link&amp;sk=bc0a23501a366b2b1f8a762896ae2fb9">here</a> for the next post in the series.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=763df30fdb40" width="1" height="1" alt=""><hr><p><a href="https://medium.com/snaplogic-engineering/integration-in-the-modern-enterprise-763df30fdb40">Integration in the Modern Enterprise</a> was originally published in <a href="https://medium.com/snaplogic-engineering">SnapLogic Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Transforming and Visualizing COVID-19 Data]]></title>
            <link>https://medium.com/snaplogic-engineering/transforming-and-visualizing-covid-19-data-f98268613ddf?source=rss----48acfb72659f---4</link>
            <guid isPermaLink="false">https://medium.com/p/f98268613ddf</guid>
            <category><![CDATA[data-integration]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[data-transformation]]></category>
            <category><![CDATA[snaplogic]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Patrick Taylor]]></dc:creator>
            <pubDate>Thu, 09 Apr 2020 04:17:36 GMT</pubDate>
            <atom:updated>2021-04-19T21:16:31.638Z</atom:updated>
            <content:encoded><![CDATA[<p>Step by Step Guide</p><p>The total number of confirmed COVID-19 cases, worldwide, now exceeds one million.</p><p>Many resources are available on the Internet to help us track and understand the growth of this pandemic, including the <a href="https://www.arcgis.com/apps/opsdashboard/index.html#/bda7594740fd40299423467b48e9ecf6">dashboard operated by the Johns Hopkins University Center for Systems Science and Engineering</a>. This dashboard is backed by a <a href="https://github.com/CSSEGISandData/COVID-19">data repository published on GitHub</a>. Even though the source data is high quality, it requires significant structural transformation for an effective visualization. <a href="https://www.snaplogic.com/">SnapLogic Intelligent Integration Platform</a> handles the transformations easily.</p><p>In this article, I will walk through the construction of a SnapLogic pipeline, which reads a subset of this data from the GitHub repository, filters the data for a few countries, and transforms the data so that it can be viewed with a line chart using SnapLogic’s DataViz feature. I have included lots of screenshots and detailed explanations so that you can easily follow along. The final output looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WP-2XErI470iWOER" /><figcaption>Figure 1: Interactive chart of COVID-19 cases made with SnapLogic</figcaption></figure><h3>The Source Data</h3><p>Our source data is JHU’s <a href="https://github.com/CSSEGISandData/COVID-19/blob/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv">time_series_covid19_confirmed_global.csv</a> file, which is automatically updated every day, and contains time-series data for total confirmed COVID-19 cases arranged by country/region, as shown below. GitHub’s <strong>Raw</strong> button in this view is linked to <a href="https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv">the URL for the raw CSV file</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xUa6X5Frh2vPb2_H" /><figcaption>Figure 2: COVID-19 time series CSV data</figcaption></figure><h3>The Pipeline</h3><p>Here’s an overview of our SnapLogic pipeline to read and transform this data:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mUvYOE-_WP5D1M1F" /><figcaption>Figure 3: SnapLogic pipeline that produces interactive chart based on raw CSV data.</figcaption></figure><p>Let’s walk through this pipeline, Snap by Snap.</p><h3>File Reader + CSV Parser</h3><p>The first two Snaps in this pipeline demonstrate a very common pattern:</p><ul><li>A <strong>File Reader</strong> to read the raw data, configured with the raw file’s <a href="https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv">URL</a>.</li><li>A <strong>Parser</strong> Snap specific to the file’s data format, in this case <strong>CSV</strong>. No additional configuration is needed for this Snap.</li></ul><p>It’s important to understand how much data we’re working with. We can do that by running the pipeline and then viewing the <strong>Pipeline Execution Statistics</strong>, which shows that the <strong>CSV Parser</strong> generated 258 output documents, one per row of the CSV file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8N-HrdqR9I8cCgWE" /><figcaption>Figure 4: Pipeline execution statistics</figcaption></figure><p>SnapLogic platform allows you to process data even in preview mode, as you are building your pipelines. To easily work with these 258 output documents in preview, open the Settings of the <strong>Designer</strong> and change the <a href="https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1438287/Data+Preview+from+a+Pipeline"><strong>Preview doc count</strong></a> to 500:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*k7wmSeFK1hz5j_pf" /><figcaption>Figure 5: SnapLogic Designer settings to change the preview doc count</figcaption></figure><p>Now if we validate the pipeline, we can preview all of the <strong>CSV Parser</strong>’s output documents. The default <strong>Table</strong> view is the best format to show this data given its tabular structure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*T54KZkYsgsobUMhV" /><figcaption>Figure 6: Tabular output from the CSV parser</figcaption></figure><h3>Filter By Country</h3><p>Next, let’s filter this data to find the rows (documents) corresponding to just four countries we’re focusing on for this example. To do this, we use a <strong>Filter</strong> Snap, configured with an expression using <a href="https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1438042/Understanding+Expressions+in+SnapLogic">SnapLogic’s expression language</a>, which is based on JavaScript but with additional features to work with SnapLogic documents. This expression is evaluated for each input document, and the <strong>Filter</strong> snap requires an expression with a boolean-type result: <em>true</em> or <em>false</em>. If the expression evaluates to <em>true</em> for a given input document, it will pass through as an output document of this Snap; if <em>false</em>, the document will be skipped.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7fklBf6Ojk0DwPWy" /><figcaption>Figure 7: Filter Snap configuration</figcaption></figure><p>To see the full <strong>Filter expression</strong>, click the down arrow and then the <strong>expand editor</strong> icon to open the <strong>Expression builder</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eInVVDXXzDDpeu9V" /><figcaption>Figure 8: Expression builder interface for the Filter Snap</figcaption></figure><p>Let’s take a closer look at this expression:</p><pre>[“US”, “Italy”, “Spain”, “United Kingdom”]<br>.indexOf($[‘Country/Region’]) &gt;= 0 <br>&amp;&amp; $[‘Province/State’] == “”</pre><p>This expression uses an array to specify the countries of interest and the <a href="https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1438091/Array+Functions+and+Properties#ArrayFunctionsandProperties-indexOf"><strong>indexOf</strong></a> operator to test whether the <strong>Country/Region</strong> value is an element of this array. It also tests whether the <strong>Province/State</strong> value is empty, since we’re <em>not</em> interested in rows with a value for that column.</p><p>If we preview the output of this Snap, we see the four rows (<em>documents!</em>) of interest:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8sxM4cDyH398e8Vd" /><figcaption>Figure 9: Output of the Filter Snap</figcaption></figure><h3>Prune Fields</h3><p>Next in the pipeline is a <strong>Mapper</strong> Snap, by far the most powerful and frequently used Snap in SnapLogic. Here we use the <strong>Mapper</strong> to implement another typical pattern used in a pipeline of this nature: filtering the columns of the data, which we’ll call <em>fields</em> or <em>keys</em> since each document is represented as a JSON object. Let’s look at the <strong>Mapper</strong>’s configuration:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*O632e0wfhe6Qdexv" /><figcaption>Figure 10: Pruning input data fields for a simplified output</figcaption></figure><p>Note the following about this configuration:</p><ul><li>The <strong>Pass through</strong> setting is enabled, which allows all fields to pass through by default, without explicitly mapping them. This includes the fields corresponding to dates (1/22/20, etc). This means the output will automatically include new data for additional dates the next time we run this pipeline.</li><li>The first row of the <strong>Transformations</strong> table maps the value of the <strong>Country/Region</strong> field to the name <strong>country</strong> in the output. The presence of the <strong>/</strong> character in the original name makes it invalid to use the expression <strong>$Country/Region</strong>, so we would have to use the longer alternative syntax <strong>$[‘Country/Region’]</strong>. With this mapping, we’ll be able to refer to this value simply as <strong>$country</strong>.</li><li>Any row that has an <strong>Expression</strong> but no value for <strong>Target path</strong> will be deleted from the output, which is only needed when <strong>Pass through</strong> is enabled. Note that we must have a row for the <strong>Country/Region</strong> field here again, otherwise the value for this field will appear twice in the output document, as <strong>Country/Region</strong> (because <strong>Pass through</strong> is enabled) and as <strong>country</strong>, as specified by the first mapping.</li></ul><p>If we preview the output of this Snap, we’ll see just the date fields and the <strong>country</strong> field, all the way to the right:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rpw80diaRmEtwITh" /><figcaption>Figure 11: Prune fields output</figcaption></figure><p>Let’s take a closer look at this output. Each value under a date column in this table is the total number of confirmed cases on that date in the corresponding country in the right-most column. This is the data we want to represent graphically, but before we can do that, we need to flip the structure so that the columns become rows. That will require some more advanced mapping and expressions, over several steps.</p><h3>Map Columns to Arrays</h3><p>Next in our pipeline is another <strong>Mapper</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3eoTgqcjJHxuH0BM" /><figcaption>Figure 12: Mapping columns to arrays</figcaption></figure><p>This has a single expression:</p><pre>$.entries().filter(pair =&gt; pair[0] != ‘country’)<br>.map(pair =&gt; { Date: pair[0], [$country]: pair[1] })</pre><p>Let’s break this down.</p><p><strong>$.</strong><a href="https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1439367/Object+Functions+and+Properties#ObjectFunctionsandProperties-entries"><strong>entries</strong></a><strong>()</strong></p><p>This sub-expression will produce an array of the key/value pairs in the object, where each pair is a subarray with two elements: the key and the value. You can see this result using the <strong>sub-expression</strong> feature of the <strong>Expression builder</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-lqpeO7t8er8j3sA" /><figcaption>Figure 13: Subexpression while mapping columns to rows</figcaption></figure><p><a href="https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1438091/Array+Functions+and+Properties#ArrayFunctionsandProperties-filter"><strong>.filter</strong></a><strong>(pair =&gt; pair[0] != ‘country’)</strong></p><p>This sub-expression will filter the array of key/value pairs produced by <strong>entries</strong>, resulting in a new array of the pairs which match the callback function given as its argument. In the screenshot above we’re seeing the first few pairs of the document containing the US data: [“1/22/20”, “1”], [“1/23/20”, “1”], [“1/24/20”, “2”], etc. If you look back at the Prune Fields output, you can see the final pairs in this row: [“4/2/20”, “243453”], [“country”, “US”]. Our filter function will match all but the last pair, where pair[0] == “country”.</p><p><a href="https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1438091/Array+Functions+and+Properties#ArrayFunctionsandProperties-map"><strong>.map</strong></a><strong>(pair =&gt; { Date: pair[0], [$country]: pair[1] })</strong></p><p>The input to this <strong>map</strong> sub-expression is an array of the key/value pairs representing each date and the case count for that date: [“1/22/20”, “1”], …, [“4/2/20”, “243453”] for the US row.</p><p>The <strong>map </strong>function returns a new array where each pair will be transformed by the expression to the right of the <strong>=&gt;</strong>, which is an <a href="https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1439367/Object+Functions+and+Properties#ObjectFunctionsandProperties-ObjectLiterals">object literal</a> resulting in an object with two properties:</p><ul><li><strong>Date: pair[0]</strong> results in a property named <em>Date</em> containing the first half of each pair (the date value).</li><li><strong>[$country]: pair[1]</strong> results in a property whose name is the value of the expression <strong>$country</strong>, and whose value is the second half of each pair (the case count).</li></ul><p>So for the last pair of the row of US data, the <strong>map</strong> function will produce an object like this:</p><pre>{“Date”: “4/2/20”, “US”: “243453”}</pre><p>This is much closer to the form we need to start plotting points on a chart.</p><p>When you change the <strong>Preview Type</strong> to JSON, here’s the output preview of the <strong>Map Cols To Arrays</strong> Snap:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8jwaaZ_NWKBd2iYf" /><figcaption>Figure 14: JSON preview of the column to array mapper</figcaption></figure><p>What you’re seeing here is a partial view of the <em>first</em> output document of this Snap, created by transforming the first input document containing the data for Italy. Unlike the input document, which was a simple JSON object consisting of name/value pairs, the output object is a JSON array of JSON objects.</p><p>If you switch the <strong>Preview Type</strong> back to Table and click on a few cells in the last row, representing this same data, it lets you peer into this nested array structure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xJXO8rNyoikh9GHk" /><figcaption>Figure 15: Nested array output of the columns to arrays mapper</figcaption></figure><h3>Split</h3><p>As shown above, each input document to the next Snap in our pipeline is an array of objects. We want to split up these arrays into their component objects. To do that we can use the <strong>JSON Splitter</strong> Snap, where we configure the <strong>Json Path</strong> setting with the path within each input document referencing the array elements that should be mapped as the output documents. Clicking the suggest icon at the right end of the <strong>Json Path</strong> field helps us do this. Clicking the top node in this tree sets the path to <strong>$[*]</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jI_0Bm70KNHPIkZj" /><figcaption>Figure 16: Configuration of JSON splitter</figcaption></figure><p>Here is the output of the JSON splitter for the rows with values for US:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*a6xzXT0ImihIPO7O" /><figcaption>Figure 17: Output of the JSON splitter for US rows</figcaption></figure><h3>Sort By Date</h3><p>Next, we will sort the data by Date. This is quite easy with the <strong>Sort</strong> Snap, configured with <strong>$Date</strong> as the <strong>Sort path</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-Y0nYJpfDCj1sBna" /><figcaption>Figure 18: Configuration for Sort By Date</figcaption></figure><p>The output is what you might expect:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ossvhaLzEi8o272l" /><figcaption>Figure 19: Output of the Sort Snap</figcaption></figure><p>Note that the date values here are of string type, so they are sorted alphanumerically, without interpreting them as dates. Which means “3/9/20” is at the end of the data for March. We could deal with that if we needed to, but we don’t. This output is perfectly adequate for our remaining steps.</p><h3>Group By Date</h3><p>Now that the documents are sorted by Date, we can use the <strong>Group By Fields</strong> Snap to group documents together by that field. Note this will only work correctly if the data is, in fact, sorted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iBtUVamrfJbQRT3Q" /><figcaption>Figure 20: Configuration of Group By Fields Snap</figcaption></figure><p>This Snap is configured with one or more <strong>Fields</strong> to group by, in this case just the <strong>Date</strong>. The Snap will collect each group of input documents with the same value for the <strong>Date</strong> field and output a single document containing the data from all of these input documents, nested under an array in the output document, where the array is stored under a field named by the <strong>Target field</strong> setting: <strong>recs</strong>. To make that clear let’s just preview the output as JSON. Here is the last page of the JSON output</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-W6PPQsaS6-FruMJ" /><figcaption>Figure 21: Output of Group By Fields Snap</figcaption></figure><p>Last step in this pipeline is another <strong>Mapper</strong>.</p><h3>Reduce</h3><p>You’ve already seen the <strong>map</strong> function of the expression language used in our last <strong>Mapper</strong>. This may ring a bell if you’re familiar with the MapReduce programming model at the heart of “Big Data” processing. Well guess what? The SnapLogic expression language also has a <strong>reduce</strong> function, which we’ll use in our final <strong>Mapper</strong>. Here’s our configuration (with some side panels collapsed):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8JvQ8AzRUxLglXjM" /><figcaption>Figure 22: Configuration of the final Mapper Snap</figcaption></figure><p>Let’s break down the expression:</p><pre>$recs.reduce((result, elem) =&gt; result.merge(elem), {})</pre><p><strong>$recs</strong> is the array within each input document, which looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/0*-JGu-CQwigU2dtiy" /><figcaption>Figure 23: Array within each input document</figcaption></figure><p>This contains everything we need for the output document.</p><p><a href="https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1438091/Array+Functions+and+Properties#ArrayFunctionsandProperties-reduce"><strong>.reduce</strong></a><strong>(<em>function, initialValue</em>) </strong>will reduce this array to a single value using the given function, starting the iteration with the given initial value. Here, this function is expressed as a JavaScript lambda expression:</p><pre>(result, elem) =&gt; result.merge(elem)</pre><p>The function’s parameters are named on the left side of the <strong>=&gt;</strong> <em>result</em> and <em>elem</em>. The expression on the right is used to compute the result of the function. The <strong>reduce</strong> function will call this function once for every element in the array, with the output of each call serving as input to the subsequent call via the <em>result</em> parameter, and the next array element’s value via the <em>elem</em> parameter. The <em>initialValue</em><strong> </strong>given to <strong>reduce</strong> is the value of the <em>result</em> param to use for the first iteration. In this case, we’re using the <a href="https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1439367/Object+Functions+and+Properties#ObjectFunctionsandProperties-merge"><strong>merge</strong></a> function to merge this array of objects into a single object.</p><p>This will be easier to understand if we show each iteration:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vMppr5zeHbYeXS0jAnURnQ.png" /></figure><p>On each iteration of <strong>reduce</strong>, another element of the array gets merged into the output object. Every element has the same Date value, so that stays the same after each iteration, but we end up with a single object that contains all of the country case counts for that date.</p><p>You can see the resulting output documents in the <strong>Output preview data</strong> panel in the lower-right corner of the <strong>Reduce </strong>Mapper shown above.</p><h3>Data Visualization</h3><p>Let’s preview the output of the <strong>Reduce</strong> Mapper from the previous step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GXYMJijPnsgGADnm" /><figcaption>Figure 24: Final chart-friendly data</figcaption></figure><p>Bingo! Our data finally looks chart-friendly. Let’s open the <a href="https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1438287/Data+Preview+from+a+Pipeline#DataPreviewfromaPipeline-DataVisualization">DataViz</a> panel by clicking on the left-pointing arrow shape just above the DataViz label on the right side of the window. The panel expands to occupy the right half.</p><p>Set the <strong>Chart Type</strong> to “Line Chart — Date as X axis”, <strong>X-axis</strong> to “Date”, and <strong>Key to Visualize</strong> to the country names to see the final line chart.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MvcAPgO06-Z9xmWj" /><figcaption>Figure 25: Final visualization of the COVID-19 data</figcaption></figure><p>I hope this helped you gain a better understanding of some powerful features of the SnapLogic platform. You can download the pipeline from <a href="https://community.snaplogic.com/t/transform-and-visualize-covid-19-data/7246">this post in the SnapLogic community</a> and try it out yourself. There are links throughout this article to relevant sections of the <a href="https://docs-snaplogic.atlassian.net/wiki/spaces/SD/overview?mode=global">SnapLogic Product Documentation</a>, where you’ll find more information.</p><p>I hope for the best of luck to you and yours during this difficult time.</p><p>Stay healthy, stay safe!</p><p>UPDATE (April 2021): When I ran this pipeline again recently, I noticed a new problem with date sorting that didn’t occur with the data when I initially developed the pipeline. We’re sorting dates as formatted strings, so “10/1/20” was ending up before “9/30/20” in the sorted output, for example.</p><p>To fix this, use a Mapper to reformat the dates:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2X_DmPKxxHoaDBjX7LRcXA.png" /></figure><p>Here’s the expression as text:</p><p>Date.parse($Date,&quot;MM/dd/yy&quot;).toLocaleDateString({&quot;format&quot;:&quot;yyyy/MM/dd&quot;})</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f98268613ddf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/snaplogic-engineering/transforming-and-visualizing-covid-19-data-f98268613ddf">Transforming and Visualizing COVID-19 Data</a> was originally published in <a href="https://medium.com/snaplogic-engineering">SnapLogic Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[So, what’s it like to work in Engineering at SnapLogic anyway?]]></title>
            <link>https://medium.com/snaplogic-engineering/so-whats-it-like-to-work-in-engineering-at-snaplogic-anyway-65a811954faf?source=rss----48acfb72659f---4</link>
            <guid isPermaLink="false">https://medium.com/p/65a811954faf</guid>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[snaplogic]]></category>
            <category><![CDATA[integration]]></category>
            <dc:creator><![CDATA[Robin Howlett]]></dc:creator>
            <pubDate>Fri, 28 Feb 2020 05:56:16 GMT</pubDate>
            <atom:updated>2021-12-14T19:46:33.188Z</atom:updated>
            <content:encoded><![CDATA[<p><em>SnapLogic provides the #1 Enterprise Automation Platform.</em></p><p>We offer AI-powered workflows and self-service integration capabilities on a single, scalable cloud-native platform.</p><p>So, what does that actually <em>mean</em>?</p><p>We make it fast and easy for modern enterprises to visually design their:</p><ul><li><a href="https://www.snaplogic.com/products/application-integration"><strong>application integrations</strong></a> (e.g. syncing Salesforce, ServiceNow and Workday),</li><li><a href="https://www.snaplogic.com/products/data-integration"><strong>data integrations</strong></a> (e.g. migrating an Oracle database to Snowflake),</li><li><a href="https://www.snaplogic.com/products/snaplogic-api-management"><strong>API management</strong></a> (e.g. design request/response transformations, control traffic and authentication)</li><li><a href="https://www.snaplogic.com/products/snaplogic-data-science"><strong>data engineering</strong></a> (e.g. clean missing values, sample, feature synthesis, principal component analysis),</li><li><a href="https://www.snaplogic.com/products/snaplogic-data-science"><strong>machine learning</strong></a> (e.g. AutoML, regression trainer, classification predictor, clustering)</li><li><a href="https://www.snaplogic.com/products/snaplogic-extreme"><strong>big data workloads</strong></a> (e.g. process Peta/Exabyte volumes to/from cloud data lakes, warehouses, and analytical systems; build Spark jobs without coding),</li><li><a href="https://www.snaplogic.com/products/ultra-pipelines"><strong>streaming processing</strong></a> (e.g. leverage Kafka, RabbitMQ etc. for near real-time/IoT integrations),</li><li><strong>hybrid, managed, and ephemeral architectures</strong> (i.e. run your integrations behind your firewall, or let us manage it for you, including AWS EMR clusters),</li><li><a href="https://www.snaplogic.com/products/snaplogic-b2b-integration"><strong>B2B integrations</strong></a> (e.g. EDI),</li><li><strong>legacy migrations</strong> (e.g. use SnapLogic to convert a non-web compatible application into a REST API),</li><li>and <a href="https://www.snaplogic.com/blog/automation-the-superpower-of-the-enterprise"><strong>enterprise automation</strong></a> projects.</li></ul><p>To support all these capabilities in one platform, means <em>plenty</em> of interesting technical challenges.</p><p>First, the product. Let’s take a look at how easy it is to design integrations between systems.</p><p>Connectors (Snaps) can be dragged to the canvas, configured via simple interactive forms, the work in-progress can be previewed at any time, and SnapLogic does all the heavy lifting to execute the integration seamlessly:</p><figure><img alt="A screen capture of our visual drag-and-drop designer showing how complex integration can be achieved with easy-to-use UX" src="https://cdn-images-1.medium.com/max/600/0*M56k4jdwSD3hx2lW" /><figcaption>Our easy-to-use visual, no-code designer for solving complex integration challenges</figcaption></figure><h3>Growth and Ambition</h3><p><em>We want to disrupt the $300 billion integration market.</em></p><p>In December 2021, SnapLogic became a “unicorn” after <a href="https://www.snaplogic.com/press-releases/snaplogic-raises-165-million">raising $165 million</a> at $1 billion valuation, led by<a href="https://sixthstreetgrowth.com/"> Sixth Street Growth</a> to bolster our market leadership and accelerate global expansion.</p><p>Hundreds of Global 2000 <a href="https://www.snaplogic.com/customers">customers</a> — including Adobe, AstraZeneca, Box, Emirates, Schneider Electric, and Wendy’s — rely on SnapLogic to automate business processes, accelerate analytics, and drive digital transformation. For the last four years, Gartner has named SnapLogic <a href="https://www.snaplogic.com/press-releases/snaplogic-named-a-leader-in-2019-gartner-magic-quadrant-for-enterprise-ipaas">as a Leader in the Magic Quadrant for Enterprise Integration Platform as a Service, Worldwide</a> and <a href="https://www.snaplogic.com/press-releases/snaplogic-debuts-as-a-visionary-in-gartners-magic-quadrant-for-data-integration-tools-2019">as a Visionary in Gartner’s Magic Quadrant for Data Integration Tools</a>.</p><p>Our CEO, <a href="https://www.linkedin.com/in/gauravdhillon">Gaurav Dhillon</a>, co-founded Informatica, led it to $300 million in annual revenue and an IPO — he has <a href="https://www.cbronline.com/qa/snaplogic-ceo-five-questions">a clear and passionate vision</a> for how this market is evolving and where it is going.</p><h3>Technology</h3><p><em>We believe we have the best technology in the market: the easiest-to-use interface, the most-flexible data processing architecture, and the fastest way to connect to any source, at any speed, anywhere — whether on-prem, in the cloud or with hybrid environments.</em></p><h4>Intelligent Integration</h4><p>The SnapLogic Intelligent Integration Platform delivers a multi-tenant cloud service for all styles of integration — application or data, batch or streaming. It is designed to handle any variety, volume, velocity and location of structured and unstructured information.</p><p>All of our customers login to a snaplogic.com SaaS web application. They design their integration solution visually, building <strong><em>pipelines</em></strong> by interacting with an HTML5 Canvas application communicating with our Python control-plane APIs.</p><p>However, the <em>execution</em> of that integration is decoupled from its configuration. The engine that actually runs the pipeline is called a Snaplex — a Jetty server that our customers can install into their own data centers. That data-plane server communicates with control-plane via a websocket connection, simply exchanging metadata about the pipeline (how its constructed, with what Snaps, its configuration, runtime statistics and so on).</p><p>The data-plane pulls down the code required to run the pipeline on-demand, initializes it with the metadata configuration sent by the control-plane, and the integration begins.</p><p>This means <strong>none</strong> of the data that flows through the pipeline is going through SnapLogic — it’s all running on systems our customer can fully control. It also means no loss of performance due to network IO — customers can run SnapLogic wherever their data or application data lives, be it in the cloud or on the “ground”!</p><p>Our <a href="https://www.snaplogic.com/products/iris-artificial-intelligence">Iris AI platform</a> learns how our customers are building and configuring their integration solutions, and we offer efficiency gains, such as predicting the next action to take, or what configuration is most likely to be needed, and making it just a click away.</p><p>We currently process over <strong>1 trillion</strong> documents every month!</p><h4>UX</h4><p>Our multi-tenant React-based <a href="https://www.snaplogic.com/products/how-it-works#ux"><strong>Designer, Manager and Monitoring Dashboard</strong></a> solution runs in the public cloud. It’s a powerful but approachable self-service integration experience — easy to setup and easy to use without compromising the need to manage complex data and process flows.</p><h4>Flows</h4><p>In 2021, SnapLogic also launched <a href="https://www.snaplogic.com/products/snaplogic-flows">Flows</a>, self-service user interface for non-technical business users. The Flows interface has been designed to give business users what they need to embrace self-service and build their own integrations and automations as needed to support their business goals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZAz1ac_K-CbDVNaI.png" /></figure><h4>Snaps and Pipelines</h4><p>Over 500 pre-built intelligent connectors, called <a href="http://www.snaplogic.com/why-snaplogic/how-it-works#snaps"><strong>Snaps</strong></a>, allow you to connect to just about anything in a <a href="http://doc.snaplogic.com/working-with-pipelines"><strong>Pipeline</strong></a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*Q16LIZDDzVC6R5Q3" /></figure><p>Be it REST APIs, NoSQL data stores, relational databases and data warehouses, SOAP endpoints, formatters and parsers, queues and topics, splitters and aggregators, <em>anything</em> — accelerating your integration and business is just a Snap away.</p><p>Customers and partners can also build their own Snaps with <a href="https://developer.snaplogic.com/">our SDK and API</a>, making it straightforward to embed Snaps and integration flows into other applications and platforms.</p><h4>Snaplex</h4><p>Our elastic execution kernel, called <a href="http://www.snaplogic.com/why-snaplogic/how-it-works#architecture"><strong>Snaplex</strong></a>, can run in the cloud <strong>and</strong> behind the firewall.</p><p>The Snaplex is a self-upgrading, elastic execution grid that streams data between applications, databases, files, social and big data sources. When running in the cloud, the Snaplex is able to scale up and down elastically based on the volume of data being processed or the latency requirements of the cloud integration flow.</p><p>The Snaplex can also be configured to run behind the firewall for hybrid deployments involving on-premise enterprise applications and big data sources.</p><p>It allows data and process integration flows to be triggered based on events or scheduled jobs, called via REST APIs, or invoked programmatically.</p><h4>Ultra Pipelines</h4><p><a href="http://www.snaplogic.com/ultra-pipelines"><strong>Ultra Pipelines</strong></a> provide <em>real-time data delivery</em>, which is critical to supporting modern business applications.</p><p>SnapLogic Ultra Pipelines receive input from a website or an application and return data to the requested endpoint at speeds up to 10x faster than before for some use cases. They are always active, eliminating the need for IT staff to manually invoke or schedule multistep and multi-point integration processes, resulting in significantly faster data delivery compared to legacy application and data integration technologies.</p><p>They can also be used to deploy machine learning-based models without additional hardware and software.</p><h4>Resumable Pipelines</h4><p>Having guaranteed data delivery is integral for many organizations. SnapLogic Resumable Pipelines overcome network and endpoint failures and provide the benefits of exactly-once guaranteed delivery for data as needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GsHTceEr5sFHt1zy.png" /></figure><h3>Company</h3><p>SnapLogic is split into 6 departments:</p><p><strong>Engineering</strong></p><ul><li>UX, Platform, Big Data/eXtreme, Snaps, Data Science, and QA teams</li></ul><p><strong>Product</strong></p><ul><li>Design, Product Management</li></ul><p><strong>Engineering Services</strong></p><ul><li>Operations, Tech Support, Documentation</li></ul><p><strong>Marketing</strong></p><ul><li>Product, Online/Digital, Field, Graphic Design</li></ul><p><strong>People</strong></p><ul><li>HR, Recruitment, IT, Finance, Accounting</li></ul><p><strong>Sales</strong></p><ul><li>Solution Engineers, Enterprise Architects, Global Account Management, Customer Success, Professional Services</li></ul><p>Check out <a href="https://www.snaplogic.com/careers">Life at SnapLogic</a> to learn about all the great benefits and perks of working at SnapLogic, but highlights include flexible time off, stock options, and lunch provided twice a week.</p><h4>Employee Recognition</h4><p>One of the most popular internal initiatives we have is our use of OKR tool <a href="https://7geese.com/">7Geese</a> to encourage employees to thank and reward their co-workers for a job well done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/0*lDwVn9qz1SREN00c" /></figure><p>Each month, you can give $100 (a “SnapStar”, financed by SnapLogic of course) or a shout-out (a “Kudos”) to someone in the company who has demonstrated one of our core values: <strong>Innovation, Intensity and Integrity</strong>. There’s no limit on the number of SnapStars you can receive, or the number of Kudos you either give or receive.</p><h3>Shipping Products</h3><p>SnapLogic has traditionally updated the Intelligent Integration Platform quarterly, while updating other components of our stack (e.g. Snaps) on a much more frequent basis. Customers have many options about when and how they want to upgrade.</p><p>Each Engineering team has a daily standup where we update each other about what we have been and are working on, and representatives from Product, Ops, and/or Sales attend with updates from the field.</p><p>We perform <a href="https://www.reviewboard.org/">code reviews</a> on each other’s work, and <a href="https://travis-ci.org/">Travis CI</a> is our build/automation/CI tool of choice. We have an <a href="https://www.atlassian.com/software/confluence">internal wiki</a> for knowledge transfer and collaborating on proposals. Engineers are encouraged to write company blog posts too (such as this one!).</p><h4><em>Development</em></h4><p>Building the SnapLogic product primarily involves the following: Python, Java 8 &amp; 11, and HTML/CSS/JavaScript (the Snap team also supports <a href="http://www.drdobbs.com/jvm/jsr-223-scripting-for-the-java-platform/215801163">JSR 223 scripting languages</a> in the <a href="http://doc.snaplogic.com/com-snaplogic-snaps-script-script_2">Script Snap</a>).</p><p>Developers are free to use the tools and hardware they prefer but the majority use <a href="https://www.jetbrains.com/">JetBrains</a> products (Intellij IDEA, PyCharm etc.) on Apple MacBooks.</p><p>We use Git for version control and host on <a href="https://github.com/">GitHub</a>. <a href="https://www.atlassian.com/software/jira">JIRA</a> is used for project management, <a href="https://www.zendesk.com/">Zendesk</a> for customer support.</p><p>Within the Snap team, <a href="https://github.com/google/guice">Guice</a> is our DI framework and we use <a href="http://junit.org/">JUnit</a>/<a href="http://easymock.org/">EasyMock</a> when testing. We’ve built our own integration test harness that simulates the lifecycle of a Snap, combined with the ability to spin-up instances of a service on-demand.</p><p>We also use hundreds of diagnostic <a href="https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1439001/Working+with+Pipelines?search_id=bec9f2c4-d7c9-4cae-ab00-af0b933b7add">pipelines</a> to serve as end-to-end integration and smoke tests.</p><p>Each Snap is, in essence, a type of <em>microservice</em>, with self-contained dependencies, and predictable interfaces, processes and deployment flows.</p><p>The Snaps are configured in a Maven multi-module build, but each Snap can be deployed separately to any of our internal or customer-facing environments, either globally or for particular customers organizations or projects.</p><p>The Platform stack includes <a href="http://www.eclipse.org/jetty/">Jetty</a> and <a href="https://www.nginx.com/">NGINX</a> and we host our cloud infrastructure on <a href="https://aws.amazon.com/">Amazon Web Services</a>.</p><p>Generally, Product and Engineering will plan out what to include in a release (features and defect fixes) and the teams will iteratively adjust as the Sprint develops. We have a formal QA team to perform acceptance and exploratory testing, as well as manage some of our automated test suites (diagnostic pipelines, <a href="http://www.seleniumhq.org/">Selenium tests</a> etc.).</p><h4>Ops and Infrastructure-as-Code (IaC)</h4><p><em>Self-service is something we aim for at every opportunity.</em></p><p>Running in the cloud means we need to be efficient too.</p><p>Our stellar Ops team has built an <a href="https://www.ansible.com/">Ansible-based</a> IaC framework, allowing our teams the ability to instantly provision and deploy new cloud-based instances and services (and tear them down when not in use!), without any IT or Ops involvement.</p><h4><em>Productivity</em></h4><p>SnapLogic uses <a href="https://gsuite.google.com/">G Suite</a> for email, calendars, file storage etc and <a href="https://www.okta.com/">Okta</a> for SSO. The entire company uses <a href="https://slack.com/?story=video&amp;v=3">Slack</a> for chat, and Zoom for video conferencing.</p><p>One of the best things about working at SnapLogic is… you get to use SnapLogic. We <a href="https://en.wikipedia.org/wiki/Eating_your_own_dog_food">eat our own dog food</a>!</p><p>The product is very powerful, and we use it for all kinds of automated use cases. Examples include:</p><ul><li>our People team on-boarding new employees,</li><li>PMs emailing groups about certain kinds of feature requests from our Field,</li><li>Engineering powering two-way synchronization between issue tracking and code review systems,</li><li>and even our Data Science team leverages SnapLogic to populate our data lake and train Machine Learning models!</li></ul><h3>Come work at SnapLogic!</h3><p>We are always seeking top-quality candidates to join us here at SnapLogic. Check out our Careers page for the latest open positions: <a href="https://www.snaplogic.com/careers/job-listings">https://www.snaplogic.com/careers/job-listings</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65a811954faf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/snaplogic-engineering/so-whats-it-like-to-work-in-engineering-at-snaplogic-anyway-65a811954faf">So, what’s it like to work in Engineering at SnapLogic anyway?</a> was originally published in <a href="https://medium.com/snaplogic-engineering">SnapLogic Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Solved: When the Maven Deploy Plugin silently fails to deploy]]></title>
            <link>https://medium.com/snaplogic-engineering/solved-when-the-maven-deploy-plugin-silently-fails-to-deploy-94576782a492?source=rss----48acfb72659f---4</link>
            <guid isPermaLink="false">https://medium.com/p/94576782a492</guid>
            <category><![CDATA[maven]]></category>
            <dc:creator><![CDATA[Robin Howlett]]></dc:creator>
            <pubDate>Wed, 15 May 2019 21:03:58 GMT</pubDate>
            <atom:updated>2019-05-16T15:55:30.082Z</atom:updated>
            <content:encoded><![CDATA[<p>At SnapLogic, we recently noticed that a particular build job that was responsible for deploying build artifacts to a Nexus repository via Maven had suddenly stopped, well, deploying. What was odd was that no error of any kind was being communicated, even in DEBUG mode.</p><p>Examining the history of the repository, what had changed was the addition of a new module (“slbugs”) to the existing multi-module Maven build. This module’s reposibility was to run some code health checks using Google’s <a href="https://github.com/google/error-prone">error-prone</a> static analysis tool to catch some programming mistakes that our developers occassionally made that had a negative effect at runtime.</p><p>What was different about this module versus the others was that it did not use the root POM as a parent (as it was sufficiently different from the other more product-focused modules). The other modules were also configured to use the <a href="https://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html#deployAtEnd">deployAtEnd</a> parameter of the parent&#39;s <a href="https://maven.apache.org/plugins/maven-deploy-plugin">maven-deploy-plugin</a> plugin configuration.</p><p>The problem was that each of the product modules would log that they would be deployed at the end of the build, but after the last module ran its deploy phase, nothing would happen - no uploading of artifacts would be attempted, no warnings or debug messages logged to explain the inaction, and the build would just end with a SUCCESS status.</p><p>The solution turned out to be related to the wonderful world of Maven classloaders.</p><p>When the problem was reported and some obvious things had been tried (changing plugin versions etc.), I started to look into it. The first thing I did was create a standalone test that mirrored the basic structure of the multi-module project and chose what I deemed to be the pertinent configurations from the production POMs.</p><p>It looked like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5is-HOW3XGzNssDUOLpsrA.png" /><figcaption>Multi-module project structure</figcaption></figure><p>Quite standard as you can see. pom-root defines the modules ( module-one and module-two), where module-one does not use pom-root as its parent but module-two does. All dependency and plugin versions are identical, but pom-root (and therefore module-two by inheritence) uses the deployAtEnd configuration for the maven-deploy-plugin. For running the deploy phase, I setup a local empty temporary repository via the distributionManagement definition.</p><p>So, I ran mvn clean deploy and expected to see the problem reproduced:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/28079382f599e86d7206a8d3e1038a2f/href">https://medium.com/media/28079382f599e86d7206a8d3e1038a2f/href</a></iframe><p>Odd. The deployment happened perfectly. Then why wasn’t it happening with the production build?</p><p>I decided to debug. I added <a href="https://github.com/apache/maven-deploy-plugin/releases/tag/maven-deploy-plugin-2.8.2">the source for version 2.8.2</a> of the maven-deploy-plugin to my IDE and ran the same command except this time with mvnDebug and <a href="https://stackoverflow.com/a/14853683/277133">a Remote Debug configuration setup</a>. I put a breakpoint <a href="https://github.com/apache/maven-deploy-plugin/blob/maven-deploy-plugin-2.8.2/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java#L152">in the </a><a href="https://github.com/apache/maven-deploy-plugin/blob/maven-deploy-plugin-2.8.2/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java#L152">execute() method of the </a><a href="https://github.com/apache/maven-deploy-plugin/blob/maven-deploy-plugin-2.8.2/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java#L152">DeployMojo class</a> and hoped to see what was causing the deployment not to be executed:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f71b91db72d3a2f74bf4874d535e4810/href">https://medium.com/media/f71b91db72d3a2f74bf4874d535e4810/href</a></iframe><p>It looked clear that the projectsReady boolean would be key. Its value was determined by the equality of a static AtomicInteger called readyProjectsCounter and the size of the reactorProjects collection. The only way for the build to log that it was going to deploy at the end and then not deploy the final module, would be if the readyProjectsCounter and reactorProjects size had some kind of off-by-X error. Indeed, the debugger showed that, for the production build, readyProjectsCounter was one less than the collection size. But what would cause that?</p><p>I dived into the debug logs of the production build to try to see if I could identify anything of note. After trying quite a few different things, something caught my eye.</p><p>When “slbugs” was running its deploy phase with the maven-deploy-plugin, it logged:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7cfb643ca05787ef5b104c7ca49b7037/href">https://medium.com/media/7cfb643ca05787ef5b104c7ca49b7037/href</a></iframe><p>When the parent POM was running, this was logged:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cb3a9671ea45a6d5169ca7a00302bb40/href">https://medium.com/media/cb3a9671ea45a6d5169ca7a00302bb40/href</a></iframe><p>This -932771130 suffix was strange. When I turned on debug logging for pom-root by running mvn -X clean deploy, I saw no such recreation of a &quot;class realm&quot;. In fact, every plugin was &quot;initialized&quot; once.</p><p>But in the production build, many plugins ( maven-install-plugin, maven-resources-plugin etc.), all seem to have been &quot;recreated&quot; when the build moved on to the root pom (after the initial &quot;slbugs&quot; module had been deployed). What was triggering that? I started to consume some articles from the web, including:</p><ul><li><a href="https://maven.apache.org/guides/mini/guide-maven-classloading.html">The official “Guide to Maven Classloading”</a></li><li><a href="http://blog.semsur-it.com/2011/11/java-class-loader-and-maven-plugin.html">Semsur IT’s “Java class loader and Maven plugin”</a></li><li><a href="http://takari.io/book/91-maven-classloading.html">takari’s “Maven classloading”</a></li><li><a href="http://blog.chalda.cz/2018/02/17/Maven-plugin-and-fight-with-classloading.html#_class_loading_troubles">chalda’s “Maven plugin and fight with classloading”</a></li></ul><p>I’ll admit that I was a bit puzzled. Neither build had any custom extensions defined, but I started focusing on whether there was anything non-standard defined in the production build POM, looking at things like &lt;properties&gt;, &lt;build&gt;, or anything around &lt;plugins&gt;.</p><p>Sure enough, I noticed the following:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/073bc98653e699ee9c5368362f14c67a/href">https://medium.com/media/073bc98653e699ee9c5368362f14c67a/href</a></iframe><p>This was added many years ago to the build, probably to avail of some SNAPSHOT-versioned plugin. So I decided to replicate this in the standalone test’s pom-root&#39;s pom.xml by adding the following:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e21f4f6c70417cb5acb97f4dc0c04e13/href">https://medium.com/media/e21f4f6c70417cb5acb97f4dc0c04e13/href</a></iframe><p>I re-ran the build and I finally I had reproduced the problem (the non-deployment of pom-root and module-two):</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/69dd7a4945963726e054881027e3fee1/href">https://medium.com/media/69dd7a4945963726e054881027e3fee1/href</a></iframe><p>Similarly, the debug log shows the two initializations of the maven-deploy-plugin:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/22418fefff191380749c2d4b6e9ee775/href">https://medium.com/media/22418fefff191380749c2d4b6e9ee775/href</a></iframe><p>So, the addition of the new module (“slbugs”) in our production build (that didn’t define a &lt;pluginRespositories&gt; and didn&#39;t use the root POM as its parent), created a new context that resulted in new classloaders being used when the root POM (and its child modules) executed. This caused the maven-deploy-plugin&#39;s readyProjectsCounter static AtomicInteger to start once again from 0 (instead of 1 as it should have been incremented when the first module was deployed), resulting in the off-by-one error when compared to the count of the reactor module (which wasn&#39;t static), meaning the parent and child modules never meeting the condition that would trigger the deployment.</p><p>As for resolving this, I found that if both pom-root and module-one &quot;matched&quot; when it came to defining the &lt;pluginRepositories&gt;, then the deployment would work; meaning:</p><ul><li>if neither defined it, the deployment worked</li><li>if both defined it, the deployment worked (however the pluginRepository&#39;s id and urls must be the same)</li></ul><p>The standalone project I created to demonstrate this is available on GitHub here: <a href="https://github.com/robinhowlett/maven-deploy-plugin-gotcha">https://github.com/robinhowlett/maven-deploy-plugin-gotcha</a></p><p><a href="https://github.com/robinhowlett/maven-deploy-plugin-gotcha/tree/master">The </a><a href="https://github.com/robinhowlett/maven-deploy-plugin-gotcha/tree/master">master branch</a> represents the non-working deployment, and <a href="https://github.com/robinhowlett/maven-deploy-plugin-gotcha/tree/fix">the </a><a href="https://github.com/robinhowlett/maven-deploy-plugin-gotcha/tree/fix">fix branch</a> represents the working example (with the &lt;pluginRepositories&gt; <a href="https://github.com/robinhowlett/maven-deploy-plugin-gotcha/compare/fix?expand=1#diff-600376dffeb79835ede4a0b285078036">removed from the root POM</a>).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94576782a492" width="1" height="1" alt=""><hr><p><a href="https://medium.com/snaplogic-engineering/solved-when-the-maven-deploy-plugin-silently-fails-to-deploy-94576782a492">Solved: When the Maven Deploy Plugin silently fails to deploy</a> was originally published in <a href="https://medium.com/snaplogic-engineering">SnapLogic Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>