<?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[Loco Talks - Medium]]></title>
        <description><![CDATA[Here we explore the world of app development through the lens of low code. Discover the latest trends, best practices, and success stories of low code development, and learn how it can help you bring your ideas to life faster and more efficiently than ever before. - Medium]]></description>
        <link>https://medium.com/loco-talks?source=rss----4ac84a202f4a---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Loco Talks - Medium</title>
            <link>https://medium.com/loco-talks?source=rss----4ac84a202f4a---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 05:11:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/loco-talks" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Having Fun: Engaging in AI Conversations with the Digibee Capsule Creation Interface]]></title>
            <link>https://medium.com/loco-talks/having-fun-engaging-in-ai-conversations-with-the-digibee-capsule-creation-interface-159d75eb2251?source=rss----4ac84a202f4a---4</link>
            <guid isPermaLink="false">https://medium.com/p/159d75eb2251</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[platform]]></category>
            <category><![CDATA[integration]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Artur Scheiner]]></dc:creator>
            <pubDate>Wed, 12 Jun 2024 15:39:00 GMT</pubDate>
            <atom:updated>2024-06-12T15:39:00.190Z</atom:updated>
            <content:encoded><![CDATA[<p>I recently stumbled upon a fun project in my home lab: creating a Digibee capsule to chat with my on-premise AI. After some tinkering with the AI’s API and the Digibee capsule interface, I was soon having engaging conversations with my AI through this new channel.</p><figure><img alt="A medieval capsule" src="https://cdn-images-1.medium.com/max/1024/1*bo2HVpp5FtvMfyn15FJu6Q.jpeg" /><figcaption>A Medieval Capsule</figcaption></figure><p>It was such a blast that I wanted to share some highlights from my experiment. Here’s a glimpse into my playful journey into AI and capsule creation. Enjoy!</p><p>If you’re new to capsule creation, I’ve covered the topic extensively in previous posts:</p><ul><li><a href="https://medium.com/loco-talks/executing-an-external-hello-world-program-written-in-python-and-golang-using-digibee-integration-4c636359c87b">Executing an external “Hello World” program written in python and golang using Digibee integration platform — Part II — The Insiders</a></li><li><a href="https://medium.com/loco-talks/what-if-you-could-use-digibee-to-implement-a-deployment-specification-in-a-kubernetes-cluster-1b390099ef55">What If… You Could Use Digibee to Implement a Deployment Specification in a Kubernetes Cluster? — Part II</a></li></ul><p>Those tutorials provide a solid foundation, from the basics to advanced tips. Since this post isn’t a step-by-step guide, I’ll assume you have some familiarity with the process and focus instead on my experience with the AI integration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4JoZ0n2L2ez4ADFZTL57sA.gif" /></figure><p>Like most modern applications, my AI engine communicates via REST calls to its API endpoints. In my home lab setup,I’ve gone a step further and fine-tuned the model, giving it the playful name “artur” and a King Arthur-like persona. When asked, “the artur model” will even assure you that its real name is indeed Artur, without the “H.”</p><h3><strong>Insights: A Look Inside the Capsule</strong></h3><p>To give you a better understanding of how the capsule interacts with my AI, let’s open up a few of its components and peek at the low-code magic happening inside.</p><h4><strong>The Form</strong></h4><p>Before the flow we just discussed even begins, the user interacts with a form within the Digibee capsule. This form is crucial for collecting the necessary information to guide the AI conversation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*WhoIpN3TVn5lEozCGfbwhg.png" /><figcaption>The Capsule Form</figcaption></figure><ul><li><strong>Prompt Field — </strong>This is where the user types their message or question for the AI. It’s the core input that drives the conversation.</li><li><strong>Negative Prompt Field (Optional) — </strong>This field allows the user to provide additional guidance to the AI. The negative prompt specifies what the user <em>doesn’t</em> want the AI to say or do. For instance, if the user is seeking a serious answer, they might include “Don’t be humorous” in the negative prompt.</li><li><strong>Model Selection List — </strong>This dropdown list presents the user with a choice of available AI models. In this case, we know “artur” is one option, but there might be others depending on how you’ve configured your AI environment. The user selects the model that best suits their needs or the type of conversation they want to have.</li></ul><h4><strong>How the Form Data Flows into the Capsule Logic</strong></h4><p>Once the user fills out the form and submits it, the values entered in these fields become the input for the capsule’s logic. Remember the user_prompt, negative_prompt, and model variables we discussed earlier? These variables are populated with the data the user provides in the form.</p><ul><li><strong>capsule.prompt</strong> is filled with the contents of the Prompt field.</li><li><strong>capsule.negative_prompt</strong> is filled with the contents of the Negative Prompt field (or left empty if the user doesn&#39;t provide one).</li><li><strong>capsule.model</strong> is set to the model the user selects from the list.</li></ul><h4><strong>Why This Form is Important</strong></h4><p>The form serves several crucial purposes:</p><ul><li><strong>User Control:</strong> It gives the user control over the direction and tone of the conversation by allowing them to tailor their prompts and choose the AI model.</li><li><strong>Flexibility:</strong> It makes the capsule adaptable to different use cases and preferences.</li><li><strong>Improved AI Responses:</strong> By providing both a prompt and a negative prompt, the user helps the AI generate more relevant and focused responses.</li></ul><h4>The Flow</h4><p>This flow is designed to facilitate a conversation between a user and an AI model. It takes the user’s input, combines it with various prompts and settings, and sends it to the AI engine as a REST request. The AI’s response is then processed and presented back to the user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*oZf80wI4u5NY5qwJx-G1_g.png" /><figcaption>The Capsule Flow</figcaption></figure><ul><li><strong>Here I define the prompts (JSON Generator Connector): </strong>This step creates a JSON object containing the following:</li></ul><pre>{<br>   &quot;meta_prompt&quot;: &quot;Respond in JSON using this model {\&quot;response\&quot;: \&quot;response from the assistant\&quot;}&quot;,<br>   &quot;user_prompt&quot;: {{ capsule.prompt }},<br>   &quot;negative_prompt&quot;: {{ capsule.negative_prompt }},<br>   &quot;model&quot;: {{ capsule.model }}<br>}</pre><ul><li><strong>Here I send the model to the session (Session Management): </strong>The chosen model is stored in a local session for later retrieval.</li><li><strong>Here I create the super prompt (JSON Generator Connector): </strong>This step combines the user_prompt, meta_prompt, and negative_prompt into a single &quot;super_prompt&quot; string. This consolidated prompt provides more context and guidance to the AI model.</li></ul><pre>{<br> &quot;super_prompt&quot;: {{ CONCAT(message.user_prompt, &quot; &quot;, message.meta_prompt, &quot; &quot;, message.negative_prompt) }}<br>}</pre><ul><li><strong>Here I get the model from the session (Session Management): </strong>The AI model (“artur”) is retrieved from the local session where it was stored earlier.</li><li><strong>Here I connect to the AI engine (REST Connector v2): </strong>This is where the actual communication with the AI engine takes place. The following happens:</li><li>— <strong>A POST request</strong> is sent to the AI’s API endpoint (http://your.lab:21434/api/chat).</li><li>— <strong>The request body</strong> includes the model, super_prompt, and other settings like stream (disabled), format (JSON), and the messages array containing the role (&quot;user&quot;) and content of the prompt.</li></ul><pre>{<br>  &quot;model&quot;: {{ message.model }},<br>  &quot;stream&quot;: false,<br>  &quot;format&quot;: &quot;json&quot;,<br>  &quot;messages&quot;: [<br>    {<br>      &quot;role&quot;: &quot;user&quot;,<br>      &quot;content&quot;: {{ message.super_prompt }}<br>    }<br>  ]<br>}</pre><ul><li><strong>Here I show the response in JSON (JSON Generator Connector): </strong>The raw JSON response from the AI engine is extracted and displayed. This typically includes the AI’s generated response in the content field of the message object.</li></ul><pre>{{ TOJSON(message.body.message.content) }}</pre><h4><strong>Additional Notes</strong></h4><ul><li>The session management steps are used to maintain the context of the conversation and ensure the correct model is being used.</li><li>Both the meta_prompt and negative_prompt can be used to refine the AI&#39;s behavior, for example, by preventing it from generating inappropriate or irrelevant responses.</li><li>The REST connector settings (timeout, error handling, etc.) can be customized based on the specific AI engine and network environment.</li></ul><h3><strong>The Joy of AI Tinkering</strong></h3><p>Building this Digibee capsule to chat with my AI was a surprisingly fun and rewarding experience. It’s amazing how easily you can connect different technologies and create something both engaging and practical. While this was just a playful experiment in my home lab, it highlights the potential of AI integration and the versatility of low-code platforms like Digibee.</p><p>If you’re curious about AI, capsule creation, or just enjoy tinkering with new tech, I encourage you to give it a try. Who knows what fun and creative applications you might come up with? And if you have any questions or want to share your own experiences, feel free to reach out!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=159d75eb2251" width="1" height="1" alt=""><hr><p><a href="https://medium.com/loco-talks/having-fun-engaging-in-ai-conversations-with-the-digibee-capsule-creation-interface-159d75eb2251">Having Fun: Engaging in AI Conversations with the Digibee Capsule Creation Interface</a> was originally published in <a href="https://medium.com/loco-talks">Loco Talks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Practical Example of Using Digibee to Orchestrate the Creation and Deletion of Kubernetes…]]></title>
            <link>https://medium.com/loco-talks/a-practical-example-of-using-digibee-to-orchestrate-the-creation-and-deletion-of-kubernetes-885608cdaed0?source=rss----4ac84a202f4a---4</link>
            <guid isPermaLink="false">https://medium.com/p/885608cdaed0</guid>
            <category><![CDATA[integration]]></category>
            <category><![CDATA[ipaas]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[orchestration]]></category>
            <category><![CDATA[monitoring]]></category>
            <dc:creator><![CDATA[Artur Scheiner]]></dc:creator>
            <pubDate>Thu, 28 Dec 2023 19:13:43 GMT</pubDate>
            <atom:updated>2023-12-28T19:13:43.008Z</atom:updated>
            <content:encoded><![CDATA[<h3>A Practical Example of Using Digibee to Orchestrate the Creation and Deletion of Kubernetes Deployments! — Part II</h3><p>Unlocking Insights: Unveiling Digibee’s Monitoring Capabilities</p><p>Welcome back, avid explorers of the Digibee realm! In this latest installment of our journey, we delve deeper into the heart of computational orchestration with Digibee.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VSa0rZepu5dUcvHoFmLj_Q.jpeg" /></figure><p>As we navigate through the intricacies of the Digibee integration platform, having explored the mechanisms behind api-k8s-deploy and dbg-kube-runner pipelines, it&#39;s time to empower these components with computational prowess using the RUN interface. This crucial step propels our practical example into action, transforming mere logic into dynamic and executable processes. Following this, our journey takes an insightful turn as we delve into the monitoring interface of the Digibee platform. We&#39;ll unravel the capabilities that offer real-time insights into pipeline performance, allowing us to scrutinize input messages and gain a holistic view of the orchestration in motion. Join us as we navigate this crucial phase, unlocking the full potential of Digibee&#39;s computational and monitoring features.</p><h3>Power On</h3><p>The Digibee RUN interface serves as a crucial space where computational capabilities are injected into integration pipelines, elevating their efficiency and processing prowess. To comprehend this augmentation, let’s revisit the foundational elements:</p><p><em>Pipeline Sizes and Serverless Concept:</em></p><ul><li>Pipelines adhere to the serverless paradigm, eliminating the need for users to worry about intricate infrastructure details.</li><li>Three distinct sizes define the computational capacity of each pipeline:</li><li>SMALL: 10 consumers, 20% of 1 CPU, and 64 MB memory.</li><li>MEDIUM: 20 consumers, 40% of 1 CPU, and 128 MB memory.</li><li>LARGE: 40 consumers, 80% of 1 CPU, and 256 MB memory.</li></ul><p><em>Consumers and Resources:</em></p><ul><li>Consumers: Determining the maximum number of concurrent executions allowed for each pipeline, influencing parallel processing capabilities.</li><li>Resources (CPU and Memory): Allocated based on the pipeline size, defining the performance and memory access parameters. CPU cycles and addressable memory space are dedicated to efficiently handle incoming messages.</li></ul><p>In essence, the Digibee RUN interface empowers pipelines by providing the necessary computational fuel, ensuring they meet the demands of diverse integration scenarios. The dynamic configuration of consumers and resources allows users to tailor the computational landscape according to the unique requirements of their integration flows. This strategic augmentation reinforces the adaptability and scalability of integration pipelines within the Digibee Integration Platform.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3vV2JMR4Dq9DRlxAgcPDAw.png" /></figure><p>As we venture deeper into the Digibee Integration Platform, it’s imperative to master the art of running and configuring deployments seamlessly. In previous posts, we’ve explored various facets of this dynamic platform, from orchestrating external code execution to provisioning Kubernetes resources. Now, let’s revisit the essential steps in running and configuring Digibee Platform deployments:</p><p>Pipeline Execution Journey:</p><ul><li>Uncover the intricacies of pipeline execution, traversing through the three fundamental phases: Build, Run, and Monitor.</li><li>Dive into the configuration of triggers, components, capsules, and pipelines, ensuring a robust foundation for your integration challenges.</li></ul><p>Deployment Environments:</p><ul><li>Discern between the two deployment environments — test and prod.</li><li>Leverage the test environment for pipeline evaluation, modification, and application testing before transitioning to the production environment.</li></ul><p>Configuration Parameters:</p><ul><li>Grasp the significance of configuration parameters within the Digibee Integration Platform.</li><li>Explore elements like API Keys, Basic Auth, and the creation of consumers for effective access control.</li></ul><p>Pipeline Scaling:</p><ul><li>Understand the concept of pipeline scaling, involving the selection of pipeline size, number of replicas, and concurrent executions.</li><li>Tailor the computational landscape to meet the specific demands of your integration workflows.</li></ul><p>Monitoring Capabilities:</p><ul><li>Delve into the monitoring capabilities of the Digibee Platform, gaining insights into pipeline status, message processing, and overall system health.</li></ul><p>Digibee RUN Interface:</p><ul><li>Uncover the computational power within the Digibee RUN interface, where pipelines receive a boost in performance through defined sizes and resource allocations.</li></ul><p>Digibee Deployment Best Practices:</p><ul><li>Absorb best practices and recommendations for deploying Digibee Platform instances, ensuring optimal performance and reliability.</li></ul><p>As we embark on this journey, these insights will serve as guiding lights, ensuring a smooth and efficient deployment experience within the dynamic ecosystem of the Digibee Integration Platform. Whether you’re a seasoned explorer or a newcomer, these posts lay the groundwork for harnessing the full potential of Digibee’s capabilities. Stay tuned for more in-depth explorations and practical examples in our ongoing quest with Digibee!</p><h3>Monitoring</h3><p>Monitoring the health and performance of deployed pipelines is paramount in ensuring seamless integration workflows. The Digibee Platform offers a robust monitoring feature that provides valuable insights into the execution status of your pipelines. Let’s dive into the key elements of the Monitor Overview:</p><p>Pipeline Tracking:</p><ul><li>The Overview page serves as a central hub to track all created pipelines within the Digibee Platform.</li><li>Presenting data on the 10 most executed pipelines, it offers a comprehensive snapshot of their activity and performance.</li></ul><p>Environment Selection:</p><ul><li>Tailor your monitoring experience by selecting the desired environment — whether it’s the testing ground or the live production environment.</li><li>The top-left corner of the page hosts an environment selector, allowing seamless transition between test and prod environments.</li></ul><p>Monitoring Cards:</p><ul><li>Directly below the environment selector, monitoring cards provide at-a-glance information on the number of pipelines created and deployed in the selected environment.</li><li>Additionally, you get insights into the total count of created accounts, offering a comprehensive view of your integration landscape.</li></ul><p>Search Functionality:</p><ul><li>Enhance your monitoring efficiency with the search bar, facilitating quick access to specific pipelines.</li><li>Filter pipelines based on their name or relevant keywords, streamlining the process of pinpointing and managing individual pipelines.</li></ul><p>Time Period Selector:</p><ul><li>Adapt the monitoring perspective by utilizing the time period selector.</li><li>Choose from predefined time ranges, spanning the last 15 minutes to the last 30 days, or set specific start and end dates and times for a tailored overview report.</li></ul><p>By leveraging the monitoring capabilities on the Overview page, Digibee users gain real-time insights, allowing for proactive management, issue resolution, and optimization of integration pipelines. Stay tuned for more in-depth explorations into Digibee’s monitoring features and their practical applications!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G36blweLHCGLxS1yzscK9Q.png" /></figure><h3>Conclusion</h3><p>In this exploration of the Digibee Platform’s monitoring capabilities, we’ve unveiled a powerful toolset for tracking the lifecycle of integration pipelines. The Overview page serves as a command center, offering insights into pipeline creation, deployment, and overall health. With the ability to filter, search, and tailor the monitoring experience based on environments and time periods, Digibee empowers users to stay in control.</p><p>As we venture deeper into the monitoring landscape, we’ll unveil more features and functionalities that enhance the visibility and management of your integration workflows. The journey continues, and the monitoring realm holds the key to ensuring the optimal performance of your deployed pipelines.</p><p>Stay tuned for upcoming posts, where we’ll dive into specific aspects of monitoring and share practical insights to maximize the potential of the Digibee Platform. For now, let the image below offer a sneak peek into the orchestration of a Kubernetes deployment deletion, showcasing the real-time impact of Digibee’s monitoring prowess.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dpMeU2vfIyzFnx6ZdKHAFA.gif" /></figure><p>Happy monitoring on your integration journey with Digibee!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=885608cdaed0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/loco-talks/a-practical-example-of-using-digibee-to-orchestrate-the-creation-and-deletion-of-kubernetes-885608cdaed0">A Practical Example of Using Digibee to Orchestrate the Creation and Deletion of Kubernetes…</a> was originally published in <a href="https://medium.com/loco-talks">Loco Talks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Practical Example of Using Digibee to Orchestrate the Creation and Deletion of Kubernetes…]]></title>
            <link>https://medium.com/loco-talks/a-practical-example-of-using-digibee-to-orchestrate-the-creation-and-deletion-of-kubernetes-831752f5efea?source=rss----4ac84a202f4a---4</link>
            <guid isPermaLink="false">https://medium.com/p/831752f5efea</guid>
            <category><![CDATA[orchestration]]></category>
            <category><![CDATA[sample]]></category>
            <category><![CDATA[ipaas]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[integration]]></category>
            <dc:creator><![CDATA[Artur Scheiner]]></dc:creator>
            <pubDate>Thu, 28 Dec 2023 18:12:04 GMT</pubDate>
            <atom:updated>2023-12-28T18:12:04.901Z</atom:updated>
            <content:encoded><![CDATA[<h3>A Practical Example of Using Digibee to Orchestrate the Creation and Deletion of Kubernetes Deployments! — Part I</h3><p>Streamlining Kubernetes Orchestration with Digibee: A Real-World Implementation</p><p>Welcome back, dedicated readers! Building upon the foundations laid in our previous discussions, we are thrilled to embark on the next chapter of our integration journey in this post. Our focus now shifts to the heart of the operation within the Digibee platform — the insiders, where the real magic transpires. In this iteration, we’ll delve into a practical example, showcasing the seamless provisioning of Kubernetes resources directly from within Digibee. Prepare to witness firsthand the transformative power and practical applications of our insights. Let’s continue our journey into the dynamic and innovative realm of Digibee integration!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q3nya9WDni-s44tyh1Km0A.jpeg" /></figure><p>In this eagerly anticipated third post of our exploration into “Kubernetes Automation with Digibee,” we’re diving into the practical implementation of a user-friendly interface that empowers users to dynamically interact with Kubernetes deployments. The end-user interface will feature a form with three essential fields — Deploy Name, Deploy Namespace, and Replicas. Complementing the user-centric design, the form will incorporate two buttons, one for creating a Kubernetes deployment based on the form values and another for deleting a deployment. The real magic unfolds as the form submission triggers an API endpoint exposed by a Digibee pipeline. This API endpoint, in turn, decouples the received payload and dispatches it to an event queue within the Digibee platform, aptly named k8s-deploy.</p><p>Here’s where the orchestration mastery of Digibee takes center stage. Our previously crafted pipeline from <a href="https://medium.com/loco-talks/what-if-you-could-use-digibee-to-implement-a-deployment-specification-in-a-kubernetes-cluster-1b390099ef55">Part II</a>, dbg-kube-runner, is seamlessly upgraded to act as the conductor. It keenly listens to messages queued on k8s-deploy, interpreting the user-submitted payload. The upgraded pipeline orchestrates the dynamic creation and deletion of Kubernetes deployments, transforming user inputs into tangible actions within the Kubernetes environment. This journey promises not only a practical illustration of Digibee’s prowess but also an insightful exploration into the harmonious marriage of user interaction and automated Kubernetes management. Buckle up for an engaging ride into the intersection of user experience and integration efficiency!</p><h3>Thunderclap ⚡️👏🏻</h3><p>Get ready for a sneak peek into the dynamic world of “Kubernetes Automation with Digibee”! The image below provides a tantalizing glimpse into the forthcoming magic as we unveil the seamless auto-creation of a Kubernetes deployment within a cluster. This spoiler showcases the power and simplicity that our user-friendly form brings to the orchestration of Kubernetes resources. Witness firsthand how a few clicks and form submissions translate into real-time actions, revolutionizing the way users interact with and manage Kubernetes deployments. The preview sets the stage for an immersive exploration, promising an in-depth look into the intricacies of this innovative Digibee-driven Kubernetes automation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZhcNIeDVgxZGsa34r0tSZQ.gif" /></figure><p>Appears straightforward, doesn’t it? Now, let’s unveil the behind-the-scenes magic.</p><h3>Practical Example</h3><p>As we immerse ourselves in this practical example, I’ll seamlessly progress and refrain from reiterating concepts already covered in <a href="https://medium.com/loco-talks/what-if-you-could-use-digibee-to-implement-a-deployment-specification-in-a-kubernetes-cluster-71e9481a527e">Part I</a> and <a href="https://medium.com/loco-talks/what-if-you-could-use-digibee-to-implement-a-deployment-specification-in-a-kubernetes-cluster-1b390099ef55">Part II</a>. I encourage readers to refer to these earlier segments for a more in-depth understanding of foundational principles and intricacies. This ensures a streamlined exploration of the current topic while allowing those who may have missed the preceding parts to catch up on essential context. Let’s continue our journey, building upon the knowledge established in the earlier installments!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LCWIvLpAnpPwqSh93LBYJQ.png" /></figure><h4>The End-User Interface</h4><p><a href="https://github.com/arturscheiner/post-executing-external-code-digibee/blob/main/kuberunner/deployment-form.html">The end-user HTML</a>, crafted for the seamless execution of POST or DELETE actions based on user interactions, plays a pivotal role in our practical example. The method employed by the HTML buttons — POST for creation and DELETE for removal — directly influences the configuration of the Digibee Pipeline’s REST trigger. It’s important to note that while the end-user HTML is an integral component of this demonstration, our focus here is not on detailing the construction of the HTML or its deployment specifics. Instead, the objective is to showcase the orchestration capabilities within Digibee.</p><p>In my lab setup, I constructed the end-user interface as a <a href="https://github.com/arturscheiner/post-executing-external-code-digibee/blob/main/kuberunner/deploy-form.yaml">Kubernetes deployment</a>, along with a <a href="https://github.com/arturscheiner/post-executing-external-code-digibee/blob/main/kuberunner/deployment-form-configmap.yaml">ConfigMap</a>, which will be made available on the <a href="https://github.com/arturscheiner/post-executing-external-code-digibee/tree/main/kuberunner">GitHub repository associated with this blog series</a>. Additionally, I exposed the end-user as a service resource within my Kubernetes cluster. To facilitate communication between the browser and the end-user service, I utilized kckit — a command-line utility I developed — to proxy the interactions. If you opt to replicate a similar setup, consider choosing the deployment approach that best aligns with your specific requirements. The focus remains on demonstrating the power of Digibee in orchestrating Kubernetes actions, and the deployment specifics are presented as part of the broader context for those interested in exploring similar configurations.</p><h4>The api-k8s-deploy Pipeline</h4><p>The api-k8s-deploy pipeline is equipped with a REST trigger meticulously configured to accept key HTTP methods—POST, DELETE, and OPTIONS, the latter serving for browser validation. To facilitate external access and ensure seamless calls from the end-user interface, the trigger is strategically configured with a response header, specifically Access-Control-Allow-Origin: *. This header allows external entities, including our end-user interface, to make calls to the API when published.</p><p>In the interest of security, a prudent approach has been adopted based on APIKey validation, as illustrated in the accompanying image. This security measure enhances the integrity of the API, ensuring that only authorized requests — authenticated by a valid APIKey — are processed. This dual emphasis on accessibility and security showcases the thoughtful configuration embedded in the Digibee pipeline to strike a balance between seamless integration and robust protection against unauthorized access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZFjUFRYzmFw84wHYK8B3pA.png" /></figure><p>In summary, this pipeline performs the following actions:</p><ul><li><strong>Payload Reception</strong>: The pipeline accepts incoming payloads formatted as JSON, adhering to the provided sample structure.</li><li><strong>Method-Dependent Action</strong>: Depending on the HTTP method received (POST or DELETE), the pipeline dynamically adds an “action” key to the original payload, along with its corresponding value.</li><li><strong>Payload Transformation</strong>: The pipeline modifies the original payload by introducing the “action” key and its associated value, effectively crafting a new payload reflective of the desired action.</li><li><strong>Queue Submission</strong>: The transformed payload is then submitted to the designated message queue named k8s-deploy. This decouples the payload and sets the stage for further orchestration by downstream components, particularly the dbg-kube-runner pipeline.</li></ul><p>In essence, this pipeline serves as a pivotal intermediary, shaping incoming payloads based on the HTTP method and channeling them to the central message queue, initiating a chain of events orchestrated by the subsequent dbg-kube-runner pipeline.</p><p>To check more details about this pipeline, check its <a href="https://github.com/arturscheiner/post-executing-external-code-digibee/blob/main/kuberunner/api-k8s-deploy-documentation.pdf">AI generated documentation</a> that I&#39;ve made available at this blog Github repository:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HrRd8O_kUv3MebEHZoldUg.png" /></figure><p>For those unfamiliar, Digibee introduced a remarkable feature within the platform that simplifies the developer experience — automatic documentation generation using AI. This powerful tool equips developers with the ability to effortlessly download comprehensive documentation for their pipelines. To access this feature, navigate to the pipeline build interface and locate the dedicated icon, as illustrated in the image below. With a simple click, developers can harness the benefits of AI-driven documentation, gaining valuable insights into the structure, components, and functionalities of their pipelines. This streamlined process enhances visibility, accelerates comprehension, and underscores Digibee’s commitment to empowering developers with cutting-edge tools for efficient integration development.</p><h4>The dgb-kube-runner Pipeline</h4><p>The dbg-kube-runner pipeline utilizes an EVENT trigger, actively listening to messages posted on the k8s-deploy queue. This shift from a typical REST trigger enhances flexibility and responsiveness to asynchronous events.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TUPTk3mRkJAny0SIlTQXFQ.png" /></figure><p>While this trigger is an important piece of this “orchestration” mastery, it does not work without the comprehensive logic that brings life to this pipeline. There are many things that, together, help us to accomplish the desired result:</p><ul><li><strong>Evolution with Components</strong>: Over time, the pipeline evolved from a basic structure to one with enhanced capabilities. Components like Session Management were introduced, allowing for the strategic placement of payload elements/objects in the pipeline memory for future reference.</li><li><strong>Object Store Implementation</strong>: The addition of an Object Store component further enriched the pipeline’s functionality. It establishes a status control mechanism for a callback, a vital aspect utilized by the Kuberunner capsules and their associated krunner script. Note that the specifics of the callback pipeline will be addressed in subsequent posts.</li><li><strong>Payload Processing</strong>: The pipeline receives payloads from the api-k8s-deploy and dynamically routes them based on the specified action, either &quot;create&quot; or &quot;delete.&quot; This segregation facilitates distinct processing pathways to accommodate the diverse requirements of each action.</li><li><strong>Dynamic Variable Utilization</strong>: The “action” key within the payload serves as a dynamic variable. This variable dynamically determines the kubectl command that the Kuberunner capsule will execute, allowing for adaptability and versatility in managing Kubernetes resources.</li><li><strong>Upgrade to Kuberunner Capsule 3.0</strong>: The Kuberunner capsule undergoes a significant upgrade to version 3.0, introducing a callback function. While details of the callback function are not covered in this series, it enables the capsule to instruct the krunner bash script to send a callback message upon the completion of specific actions. This enhancement sets the stage for further extensibility and automation, with more insights on the callback function to be explored in future posts.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/1*cq_D8dh6lB18lnx-dxRWBA.png" /></figure><p>Give a look at the <a href="https://github.com/arturscheiner/post-executing-external-code-digibee/blob/main/kuberunner/dgb-kube-runner-documentation.pdf">AI generated documentation</a> by accessing the Github repository of this blog post series.</p><blockquote>Check this pipeline Spec, by accessing it <a href="https://github.com/arturscheiner/post-executing-external-code-digibee/blob/main/kuberunner/dgb-kube-runner.json">here</a>.</blockquote><p>The pipeline Spec serves as the JSON representation of the Digibee pipeline, encapsulating its entire logic and configuration. By simply copying and pasting this Spec, readers gain the ability to effortlessly recreate the pipeline’s intricate logic within their Digibee realm. This streamlined process ensures a seamless transfer of the pipeline’s structure, components, and orchestration capabilities, allowing for quick implementation and adaptation in different realms. The Spec serves as a concise and portable blueprint, empowering users to replicate and leverage the power of the showcased pipeline within their unique Digibee environments.</p><h3>To be Continued</h3><p>While we’ve delved into the intricacies of this practical example, exploring the core orchestration capabilities of Digibee, there’s more to uncover in the next installment. In the next post, we’ll shift our focus to the monitoring capabilities of the Digibee Platform, offering insights into how you can effectively track and analyze the performance of your pipelines. Stay tuned for a deeper exploration of Digibee’s monitoring features, enhancing your understanding and mastery of this powerful integration platform.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=831752f5efea" width="1" height="1" alt=""><hr><p><a href="https://medium.com/loco-talks/a-practical-example-of-using-digibee-to-orchestrate-the-creation-and-deletion-of-kubernetes-831752f5efea">A Practical Example of Using Digibee to Orchestrate the Creation and Deletion of Kubernetes…</a> was originally published in <a href="https://medium.com/loco-talks">Loco Talks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What If… You Could Use Digibee to Implement a Deployment Specification in a Kubernetes Cluster?]]></title>
            <link>https://medium.com/loco-talks/what-if-you-could-use-digibee-to-implement-a-deployment-specification-in-a-kubernetes-cluster-1b390099ef55?source=rss----4ac84a202f4a---4</link>
            <guid isPermaLink="false">https://medium.com/p/1b390099ef55</guid>
            <category><![CDATA[orchestration]]></category>
            <category><![CDATA[integration]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[low-code]]></category>
            <category><![CDATA[ipaas]]></category>
            <dc:creator><![CDATA[Artur Scheiner]]></dc:creator>
            <pubDate>Sat, 23 Dec 2023 12:19:11 GMT</pubDate>
            <atom:updated>2023-12-23T12:19:10.938Z</atom:updated>
            <content:encoded><![CDATA[<h3>What If… You Could Use Digibee to Implement a Deployment Specification in a Kubernetes Cluster? — Part II</h3><p>Configuring Digibee’s Power: Unveiling the Integration Magic</p><p>Welcome back to our avid followers! In this post, we’re extending our exploration into the realm of provisioning Kubernetes resources directly from within the Digibee platform. However, our focus has shifted this time to the insiders — the core of the operation where the magic truly unfolds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h1OKm0B5F2aHf1HN4nV3ow.jpeg" /></figure><p>From now on, we’ll be harnessing the power of the Digibee low-code integration platform to create a pipeline geared towards generating Kubernetes resources using a YAML spec. Our journey will delve into utilizing the credential vault, global variables, capsules, and pipelines to seamlessly accomplish this task. So, roll up your sleeves and join us as we dive into the heart of Digibee! Soon, you’ll gain the proficiency to effortlessly create Kubernetes resources with ease. If you’re just joining us and haven’t read <a href="https://medium.com/loco-talks/what-if-you-could-use-digibee-to-implement-a-deployment-specification-in-a-kubernetes-cluster-71e9481a527e">Part I</a>, I recommend checking it out for context before proceeding. Here’s a glimpse of what we’ll cover in this post:</p><ol><li>Utilizing the credential vault to securely store sensitive information like private keys and passwords.</li><li>Creating global variables to store constants and frequently used values.</li><li>Constructing capsules to encapsulate reusable low-code logic.</li><li>Assembling pipelines to connect triggers, components, capsules, and execute the creation of Kubernetes resources.</li></ol><p>Stay tuned for the unfolding saga in the Digibee Explorers series!</p><h3>The Digibee Account</h3><p>For this demonstration, I’ll be using my own Digibee account. If you’d like to follow along, check if your account has the necessary permissions. If not, you can find details on platform configurations in my previous post, ‘<a href="https://medium.com/loco-talks/executing-an-external-hello-world-program-written-in-python-and-golang-using-digibee-integration-4c636359c87b">Executing an external “Hello World” program…</a>’ under the ‘<strong>Digibee Account</strong>’ section.</p><h3>Vault Credential</h3><p>To establish a credential within your vault’s realm, navigate to the settings menu and choose the Accounts option. Accounts play a pivotal role in fortifying the security of authentication processes, serving as a repository for sensitive information like passwords, private keys, and authentication tokens. These accounts are subsequently utilized by pipeline components to validate access to specific endpoints, ensuring that only authorized entities can gain entry to the necessary resources. For a more detailed, step-by-step guide, I invite you to read my dedicated blog post titled ‘<a href="https://medium.com/loco-talks/executing-an-external-hello-world-program-written-in-python-and-golang-using-digibee-integration-4c636359c87b">Executing an external “Hello World” program…</a>’ where I elaborate on all the intricacies of this process.</p><p>The only distinction in this context is that, rather than utilizing the host username mentioned earlier, it’s essential to refer to the <strong>kuberunner</strong> username and its corresponding <strong>private key</strong>. This adjustment ensures that the authentication process aligns with the specific requirements of the <strong>kuberunner</strong> account, enhancing the security and accuracy of the setup.</p><h3>Globals</h3><p>Global variables can help you develop pipelines faster and more efficiently. They allow you to use the same parameters in different pipelines and reuse information, which can save you a lot of time and effort. Global variables can also help you share information with other users, making it easier to collaborate on projects.</p><p>For this scenario, we will create three global variables to represent the elements of our external host: hostname, SSH port, and username.</p><ul><li>ext-host-kube-hostname</li><li>ext-host-kube-port</li><li>ext-host-kube-username</li></ul><p>For an in-depth, step-by-step walkthrough, please refer to my comprehensive blog post titled ‘<a href="https://medium.com/loco-talks/executing-an-external-hello-world-program-written-in-python-and-golang-using-digibee-integration-4c636359c87b">Executing an external “Hello World” program…</a>’ where I delve into the nuances of this procedure, guiding you through each detail to guarantee a seamless implementation.</p><h3>Capsule</h3><p>Capsules stand as the cornerstone of efficiency in your integration endeavors. These reusable components encapsulate business logic, offering a streamlined approach to manage, maintain, and update your pipelines. By consolidating components into more intricate tasks, capsules simplify the pipeline-building process, empowering you to tackle specific challenges with enhanced efficiency. This innovative approach ensures that your integration workflows remain dynamic, adaptable, and effortlessly navigable. Ready to harness the power of capsules? Let’s dive in and revolutionize the way you approach pipeline development!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*DxiGUQt7Xq_U8r4UaOn3KQ.png" /></figure><blockquote><em>As I will not cover the basic concepts of capsule collections and groups, I invite you to check </em><a href="https://docs.digibee.com/documentation/build/capsulas"><em>Digibee capsules documentation</em></a><em>.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/188/0*k6RHziZ05CfeTTUK.png" /></figure><p>Crafting a capsule follows a process akin to creating a pipeline, minus the necessity of configuring a trigger. The inaugural visual component on the canvas is the capsule configuration, encompassing parameters, accounts, documentation, and an output contract.</p><p>In this step, the capsule we develop is relatively straightforward, incorporating just five component types: SSH Remote Command, Session Management, Choice, Log, and JSON Generator. Let’s seamlessly integrate these components into our development environment!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oJKCQyBUvIML4eOD_B9VAg.png" /><figcaption>kuberunner capsule</figcaption></figure><p>Ensuring clarity in the comprehension of your capsule’s flow is a prudent practice. To attain this objective, it is essential to invest time in thoughtfully and descriptively titling each component. This practice enables anyone reviewing the flow to swiftly understand the logical structure and purpose of the capsule. Now, let’s delve into the internal details!</p><p>Take a look below at the final form of our kuberunner capsule:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/1*fr4DpIT8F9QgveLs5_Khew.gif" /></figure><blockquote><a href="https://github.com/arturscheiner/post-executing-external-code-digibee/tree/main/capsule"><em>This GitHub repository</em></a><em> has everything you need to create your own Coderunner capsule. This repository contains code samples and instructions for creating your own Kube</em><strong><em>runner</em></strong><em> capsule. The final parameters form of the capsule should be like this.</em></blockquote><p>In short words, to create the capsule you need to:</p><ol><li>Define the <a href="https://github.com/arturscheiner/post-executing-external-code-digibee/blob/main/kuberunner/1.capsule-parameters.json">parameters</a> that you will use on the form builder</li><li>Configure the <a href="https://github.com/arturscheiner/post-executing-external-code-digibee/blob/main/kuberunner/2.capsule-accounts.json">accounts</a> that will be used by the capsule</li><li>Copy the <a href="https://github.com/arturscheiner/post-executing-external-code-digibee/blob/main/kuberunner/4.capsule-components-v1.json">capsule low-code</a> and paste inside the capsule canvas</li><li>Connect the cog to the components logic</li><li>Configure the <a href="https://github.com/arturscheiner/post-executing-external-code-digibee/blob/main/kuberunner/3.capsule-contract-shema.json">capsule contract</a></li><li>Review the capsule logic and components configuration</li><li>Save the capsule</li><li>Publish the capsule</li></ol><blockquote><em>The capsule publish button will only be available once the capsule contract (JSON schema to validate the output) is configured. After publishing, the capsule will be available to be used as a component, on the build pipeline interface.</em></blockquote><h3>Pipeline</h3><p>The foundation of the Digibee Integration Platform lies in the pipeline concept — a sequential arrangement of components facilitating the connection of systems and the establishment of data flow between them. Each pipeline is comprised of:</p><ol><li>One trigger: This initiates the execution of the pipeline.</li><li>At least one additional component: These components execute the necessary tasks for achieving your integration goals.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*DdFbtvFAhCrc6fQ_76goqg.png" /><figcaption>create a pipeline</figcaption></figure><p>Pipelines can have complex low-code logic, depending on the integration needs. For this tutorial, we will create a very simple pipeline with an EVENT trigger and a few components, including capsules.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/379/1*yJ_M8ZeKhFCU9oj4P5n2pg.png" /></figure><p>An event serves as a message signaling a change of state, an action, or an occurred fact to other components. The <a href="https://docs.digibee.com/documentation/components/triggers/event-trigger">Event Trigger</a> responds to a specific event generated by another pipeline through the <a href="https://docs.digibee.com/documentation/components/queues-and-messaging/event-publisher">Event Publisher</a>.</p><p>The configuration parameters of the trigger include:</p><ul><li>Event Name: The name of the event to which the trigger responds.</li><li>Expiration: The time the event spends in the queue (in milliseconds). If the expiration is set to 0 or a value greater than 6 hours, it will default to 1/4 of the specified Maximum Timeout value.</li><li>Maximum Timeout: The maximum time (in milliseconds) allotted for the pipeline to process information before providing a response. The default is 30000, with a limit of 900000.</li><li>Allow Redelivery of Messages: When activated, this option permits messages to be redelivered in case of Pipeline Engine failure.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*38G-pmRnhnCtqfD0jp_2fg.png" /></figure><p>With the EVENT trigger now configured, our next step is to set up the capsule component to execute the required task. The subsequent steps will guide us through the fields that require configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/190/1*hExhb5OSd8BXlCL3916S0Q.png" /></figure><p>We should start giving it a nice and descriptive name, like the one seen bellow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*B1bI_ahEXPWrPzcFxqil6A.png" /></figure><p>When utilizing kubectl to generate resources from a Kubernetes spec file, the typical command employed is “apply.” Given that our capsule is designed to emulate kubectl, it is the command we should employ at this stage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*p3L3p05HY7AU9hoCdjeXDw.png" /></figure><p>The argument &quot;-f&quot; indicates that kubectl apply should read the specs from a file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*nprrnloxGpSD0gQWMDu7qA.png" /></figure><p>In this context, we specify the output as JSON, enabling the response to be seamlessly integrated into the pipeline flow. Additionally, we utilize the YAML field to insert the spec. However, it’s essential to note a distinctive feature here. Leveraging the Digibee platform’s capabilities, we can employ <a href="https://docs.digibee.com/documentation/build/double-braces/how-to-reference-data-using-double-braces">Double Braces</a> functions to reference data, transforming the spec into a dynamic and highly adaptable component. Very nice indeed!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*UhOrSRzF0yzzfSEU6JOnaQ.png" /></figure><p>The anticipated payload that this pipeline is set to receive through its EVENT trigger should resemble the following:</p><blockquote>{<br> “k8s-deploy-name”: “my-digibee-new-app”,<br> “k8s-replicas”: 4<br>}</blockquote><p>Hence, comprehending the Double Braces data reference in the YAML field above is straightforward.</p><p>Now, all that remains is to specify the values for the remote host, port, username, and its corresponding private key. The Double Braces references below are the ones we previously created when defining the “global variables” and the “account.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*WtZ0LhvoTxStcLpLSCUqoA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*YnMdupZyJcRq1uQ3jNZqlQ.png" /></figure><h3>Demo</h3><p>Behold the magic in action! The captivating demonstration below unveils the prowess of our pipeline as it dynamically crafts a Kubernetes resource on-the-fly. Utilizing the bespoke capsule we meticulously constructed, this showcase epitomizes the seamless integration and real-time adaptability that our solution brings to the forefront. Witness how the capsule orchestrates the creation of a Kubernetes resource, showcasing the innovative capabilities and efficiency embedded in our pipeline. This live demonstration underscores the transformative potential of our approach, underscoring its ability to cater to dynamic requirements and revolutionize the landscape of resource provisioning within Kubernetes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m4JbaJ2LvnCBG3D-dUZR7Q.gif" /></figure><h3>Conclusion</h3><p>In this comprehensive exploration, we’ve delved into the intricacies of creating Kubernetes resources using the Digibee integration platform. Beyond the conventional, we’ve harnessed the platform’s capabilities to dynamically generate resources on-the-fly, demonstrating the versatility and agility that Digibee brings to the realm of Kubernetes management.</p><p>Our journey began by unraveling the mechanics of <a href="https://medium.com/loco-talks/executing-an-external-hello-world-program-written-in-python-and-golang-using-digibee-integration-64e2ba7f4747">executing external code</a>, showcasing how Digibee serves as a potent force in connecting diverse systems and automating complex tasks. The simplicity of our “Hello World” example belies the robust capabilities inherent in Digibee, offering a glimpse into the platform’s power and adaptability.</p><p>Digibee transcends the ordinary, empowering users to craft pipelines that orchestrate a myriad of tasks — ranging from data processing and analysis to seamless application integration. This blog post merely scratches the surface, highlighting the boundless potential that Digibee presents for innovation and efficiency in the realm of integration.</p><p>For those eager to delve deeper into the world of Digibee, I encourage you to explore their website and delve into the rich documentation they provide. Our journey with Digibee is just beginning, and I trust this exploration has ignited your curiosity and appreciation for the transformative capabilities embedded within this remarkable platform.</p><p>I hope you’ve found this blog post both insightful and inspiring!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b390099ef55" width="1" height="1" alt=""><hr><p><a href="https://medium.com/loco-talks/what-if-you-could-use-digibee-to-implement-a-deployment-specification-in-a-kubernetes-cluster-1b390099ef55">What If… You Could Use Digibee to Implement a Deployment Specification in a Kubernetes Cluster?</a> was originally published in <a href="https://medium.com/loco-talks">Loco Talks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What If… You Could Use Digibee to Implement a Deployment Specification in a Kubernetes Cluster?]]></title>
            <link>https://medium.com/loco-talks/what-if-you-could-use-digibee-to-implement-a-deployment-specification-in-a-kubernetes-cluster-71e9481a527e?source=rss----4ac84a202f4a---4</link>
            <guid isPermaLink="false">https://medium.com/p/71e9481a527e</guid>
            <category><![CDATA[ipaas]]></category>
            <category><![CDATA[integration]]></category>
            <category><![CDATA[cluster]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[orchestration]]></category>
            <dc:creator><![CDATA[Artur Scheiner]]></dc:creator>
            <pubDate>Fri, 22 Dec 2023 22:28:31 GMT</pubDate>
            <atom:updated>2023-12-23T09:04:14.851Z</atom:updated>
            <content:encoded><![CDATA[<h3>What If… You Could Use Digibee to Implement a Deployment Specification in a Kubernetes Cluster? — Part I</h3><p>Harnessing Digibee: Applying Kubernetes Specs with Ease.</p><p>Integration platforms, exemplified by Digibee, possess robust capabilities that facilitate the seamless connection of diverse applications and systems, fostering efficient data exchange and collaboration. Now, envision harnessing Digibee’s prowess to proficiently deploy a Kubernetes specification as a fundamental element you integration needs. In this blog post, I will provide a comprehensive guide on leveraging Digibee to deploy a straightforward Kubernetes Deployment Spec. Through this exploration, I&#39;ll showcase how this capability becomes an integral part of your Digibee-powered integration journey.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xuBe5aNnxnmXk0lZUXar2w.jpeg" /></figure><h3>Some Context</h3><p>Alex, our tech startup hero, is back! This time, the challenge isn’t a simple “Hello World.” He needs to trigger a Kubernetes deployment, injecting life into containerized applications, all from within his beloved low-code iPaaS.</p><p>Enter Digibee, the integration platform that speaks both workflow and Kubernetes. With Digibee, Alex can:</p><ul><li><strong>Craft a pipeline</strong>: Define the deployment spec and trigger it with a click.</li><li><strong>Bridge the gap</strong>: Digibee translates iPaaS flows into Kubernetes commands, seamlessly orchestrating the deployment.</li><li><strong>Monitor and manage</strong>: Gain real-time insights and optimize the process.</li></ul><p>From manual config to automated magic, Digibee empowers Alex to focus on what matters: building solutions, not deployments.</p><p>Have you faced similar challenges? Embrace the possibilities of automation with Digibee and conquer your data integration frontier! We’ll follow Alex’s journey, so stay tuned for the technical deep dive!</p><h3>Spoiler Alert ‼️</h3><p>Brace yourselves for an exciting glimpse into the future! Get ready to witness the magic as Digibee orchestrates the provisioning of a Kubernetes deployment. As an exclusive peek behind the curtain, I’ll even open a terminal window, allowing you to catch a firsthand glimpse of the real-time results unfolding before your eyes. Stay tuned for this riveting display of seamless integration and the power of Digibee in action!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ueq5Zgv0_SsZauBjVp3SKA.gif" /></figure><h3>Essential Components for Achieving this Objective</h3><h4>Outside Digibee:</h4><ol><li><strong>SSH Host</strong> — a host, preferably, a Linux one, with <strong>kubectl</strong> installed. Additionally, the host and its SSH port must be visible to the Digibee platform. The SSH port must be securely publicly accessible or exposed to the platform using some of the available <a href="https://docs.digibee.com/documentation/platform/digibee-connectivity-solutions#vpn-deployments">secure connectivity solutions</a>;</li><li><strong>Host User</strong> — a common, unpowered host account with its respective key pair. The <strong>kubectl</strong> utility must be configured and working on this account. This account will only be used to run the <strong>kubectl</strong> command. Host authentication <strong>must be</strong> done using a <em>private key</em>;</li><li><strong>K8s Cluster</strong> —Certainly, to generate any resources on Kubernetes, it’s essential to have access to a functioning cluster. In fact, the Host User account mentioned earlier must possess a properly configured and operational <strong>kubectl</strong> tool to execute commands on the Kubernetes cluster;</li><li><strong>Krunner</strong> — A straightforward script that the Digibee capsule will invoke, accessible through the previously mentioned Host User account.</li><li><strong>Yaml</strong> — the kubenetes spec that we will use to create the desired resources on the cluster;</li></ol><h4>Inside Digibee</h4><ol><li><strong>Digibee Account</strong> — an active Digibee account that has access to a realm with permissions to build, create accounts, create globals, and run an integration pipeline;</li><li><strong>Vault Credential </strong>— the representation of the host user’s <strong>private key</strong>, which was created outside the platform, to be used securely by the developer who is creating the external execution logic;</li><li><strong>Globals</strong> — constants that can be used when creating pipelines or capsules. To achieve the objectives proposed here, three globals will be created to represent: <strong>hostname</strong>, <strong>port</strong> and <strong>username</strong>;</li><li><strong>Capsule</strong> — a reusable piece of low-code logic, which will be used as a component to access the external host environment. For those who don’t know, Digibee Capsules are a set of configured components that are encapsulated to be reused in the construction of Pipelines. To learn more about capsules, see their <a href="https://docs.digibee.com/documentation/build/capsulas">documentation</a>.</li><li><strong>Pipeline</strong> — the conduit of the requests. We will create it with an EVENT trigger that will receive a payload with the name of the deployment that will be created in the kubernetes cluster.</li></ol><h3>SSH Host</h3><p>For this lab, I will use the Ubuntu Linux host, publicly accessible on the Internet via SSH.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*RUxjLL-hwXkLZvFfmI7Grg.png" /></figure><p>The important point here is that this host must be accessible within the Digibee realm. Here in my lab I just configured a dstnat on my Mikrotik firewall.</p><p>The fictitious HOSTNAME and PORT I will use are:</p><ul><li>Hostname — host.homelab</li><li>Port — 10022</li></ul><p>If you are following along with this tutorial, you must have a real and accessible hostname and ssh port. We will soon use this information to create globals within the Digibee platform.</p><p>Now that we have the host configured with SSH, exposed in an internet-accessible address name, we need to create the account that will be used to authenticate to this host and execute the code.</p><h3>Host User</h3><p>Log in to your linux/unix with a user that supports sudo or has administrative privileges on your system. Here I will show you one method to provision a <strong>kuberunner</strong> user account.</p><h4>Create User — Automatic</h4><p>Leverage the efficiency of a robust yet straightforward bash script named “ssh-aktor,” which I’ve crafted for automating Linux user creation, automatic password assignment, and the generation of SSH key pairs. You can find the script in this GitHub repository.</p><ul><li>Clone the ssh-aktor repository on your user home directory</li></ul><pre>$&gt; git clone https://github.com/arturscheiner/ssh-aktor.git</pre><ul><li>Access the script folder, run the script with the username <strong>kuberunner</strong> as an argument and copy &amp; paste the resulting private key to a safe place (we will use it to create a private key credential inside Digibee’s vault)</li></ul><pre>$&gt; cd ./ssh-aktor<br>$&gt; sudo ./ssh-aktor kuberunner<br><br>The kuberunner user private key is:<br><br>-----BEGIN RSA PRIVATE KEY-----<br>MIIG5AIBAAKCAYEAtU6vuOh6OLQ9lFBoXOuho6w6CXb0lhBSzh9uXzPomTIkBZ55<br>RMUz8TgThyRNfVLMFXxtkCrd8OZ1LrDervzXNG0fnt+BSshJ2LtZ62H49PxwtX2a<br>HOBkrgMFqpWgRuDUINr2RwuSelhS4bEK0+nEASy91ero/NEwbggryMBmUntnJuCM<br>xbvh2BBg5IZycSDZVDUlIx8/uUH7PjXDI6Fo7K7Ut2X/OKwqgEo83fW4UVMWvqS1<br>B10zvaxmUeJXY2q2aYpvd/k+hTmPqpaXbFFYrqnMWXyCemB0HwUfWKB0YOP1TfgT<br>S6ADPQbOlutrbI+YiHxbqKFpJC55oronHtHcPObuK4s8GeeKsa09ioTlniRtsVT8<br>MIc8wb8fgGEtt8+qo22NHfFLqxLV9Z33YGROr+5QLZ42sBQ2MLmTr3Lo03R0osLS<br>s+qlgYGBOzX3QbFwSTMkmKj3mZtAz2UGCiHoSpFF7vOR3kF3FoYJ8zQqO1ROpJf4<br>0m+D4Ss5lVwHz2mDAgMBAAECggGAOcAdks1iGOu4baSLCYX4j5TNS7R7Rc1fQs6a<br>LnLvVNS2yp9myzPxTpVpCvPSRuf3n6RplbFBznjpvHyUAbMBrW5Q0x8oJLTVaNaM<br>VsB3NzmtgPHIBAipqQ/HX0WXrtvwVaLJLWoPNy8o/0CQTV25lBI3SYswuU68mV+6<br>6o/2R7GM8sI1tMoaruLQqhn1G/m1n+/pq11Jw+2zZGZliNTiAfnSQbSYbenRA9oh<br>tyWMl0LbDNCT5QuX7oOad9ybr0wO0s7G9BiXpmSm3t9Gnh/+AffJa82OtcZWftsI<br>1Ktmpi87eTgMaww1zH6viU8dzKZC3wKYmZkqi67RV4i6CFwLNye4kivcxkQpGU27<br>iGkuLGWcf7QhD2bqH7kCkPpYrXLtdFivJ23qngDbmY+SmiVvbn97KlsWr7M/lKPf<br>56fWw3IJ8ygVTC3EyvzfB5Ee1L9FHq4XKa+akJ86O68JlBb01FtGYv1uhcnzIhWk<br>WFF5f7HmDJw48E4DTpJ9d18hKj8RAoHBAObIPspLjPONKD0R93Ry7Kn63UXbEjne<br>ZVH8V0Y2VRvu9v7ws6SSCj4rG0UFB+5egIrWPuTHP/KuwBlEoUXOBtO0u0yIVKWp<br>kh/s8jQU04stWaKf191ANH8ihMxuEWjqW5ZHghXqCFcIyPbpTJQ+r+7iZBwNfODA<br>hdk/fS90J41WX9nQuNWR5dOHAUpC9oGmCgXa8l+YTZOX0eDBnmchXeHnKt30anxB<br>/0ggB2FZB1ryKczLnn7sKQa/XkSy2U4xWwKBwQDJHnakojSz2RnkRpcYye2VFpee<br>XhftJxJhJWJAf3HFVR5iaTQtZ83xLbGUHV1NgUpag7GOLYa3aV4+S5+116dPYduh<br>TvmggHJgcRlJ5VCDOkVtJBFiTO/S1BrxNO7QLp77N7uvb6lP8x94io1q6M+NH8TB<br>AOMUPHVX7/Uscn4ULt1zI0WiN9JY/AhRYyjnBEBhvjruxp09/6uTfityL9qoPK6R<br>dXQKAHARTGkw5BQb9FcE046ZVGP7eU8reIBYuPkCgcEAvtT2lvDCLOKcU2N366Lc<br>b/Iw5oKwH4n23kR7JmPnHKINO+JtqbfZIG8krX3rgQBD6ooel67rAhHeZwaJFN+4<br>ZXcdKbvRwurlGeEkpkxSYNOvOvpR1XIx9q7kgObDHq4r7ahTuSs8mjt5cjKYUD1F<br>3ZL2lPvSN0b7ZxlIuuShkA3MVKBzNqbeFHueZXnZvHs/7neN095sx47SzbdM9Jpy<br>t0of+EkThIxOO6XAdI7Ztipoxh/Zf7poclvr54K8jhvhAoHBAK/c5owBlqopTh2x<br>qFAxyoFStxPxXWSvhL/T671Qc9DFJIOTUN/fZFLfzOciYkLyqmzJuYoEv0dEaPd6<br>M1bUE2YzwNSl9Vxm1R0F6MIYNjX5z1mnb1gQxKkLdd+zlJwQGE6+Jm0668eQZdWG<br>+jAhEdRqkibeurIoR8e0eSP7ncnSTSxwDGTUASh0gmWAmvSfYBjYOjovDLJ5DbQ0<br>YJNByybPoSpqlSRly5kkwtrQpdDn8Ou0fn4PMDpmklcF0N1EKQKBwGFzlLpYvfY7<br>fImk+mTFeKkU4AllFQJ24jpzB9WEg1svyXWcYx3m+A+yiJU6O7fiqCVBJReCMewV<br>koaHsy0CVfPwiikTsIlBW3obOni+hkW0kbGuvQxKZhBIBDnK40Tjq0x5IvhV9UmG<br>h5wIXjL+IHM69hNk2O56Nfe0oSCPqUGEwlyF05bFCHrP+3vhAuTJITfafJ/Yzg2B<br>H8Y+nEjPlz1gFhxTd1lV71uH5Hnxq+MnofndoZu3PK/6tYecHbTXOg==<br>-----END RSA PRIVATE KEY-----<br><br>The kuberunner user private key is available at: ~/kuberunner.key<br><br>To test the kuberunner user private key, run the following:<br><br>     ssh -o StrictHostKeyChecking=no -i ~/kuberunner.key kuberunner@localhost &#39;whoami&#39;</pre><ul><li>Additionally, just to make sure everything is working fine, you can test authentication with the generated private key using the command shown in the ssh-aktor output. This command will establish an ssh connection with the user’s private key and execute the <em>whoami</em> command. If it returns the newly created username without errors, it means everything worked as expected.</li></ul><h3>Kubernetes Cluster</h3><p>To achieve our goal of orchestrating a Kubernetes Deployment using an external host, having a Kubernetes cluster is imperative. A Kubernetes cluster serves as a foundational infrastructure for deploying and managing containerized applications, providing scalability and efficiency.</p><p>For testing purposes within a home lab, there are user-friendly methods to bootstrap a Kubernetes cluster.</p><p>As a helpful resource, I’ve developed a utility called <strong>kckit 💡</strong>, currently in development, which automates the provisioning of a complete Kubernetes cluster from scratch. This utility simplifies the process and ensures a hassle-free setup, allowing users to focus on the core task at hand.</p><p>I’m excited to announce that an alpha version of <strong>kckit</strong> will be released soon, enabling users to seamlessly deploy and manage their Kubernetes clusters with ease.</p><p>Below, you’ll find a sneak preview screenshot of <strong>kckit</strong>, offering a glimpse into its user-friendly interface and powerful functionalities. Stay tuned for more updates on this exciting project!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qhPLBw-66euprlXo2AdaWA.png" /></figure><p>It’s noteworthy to highlight that the Kubernetes cluster employed in this lab was established through kckit, underscoring the tool’s effectiveness and reliability. Below, I demonstrate the utility of kckit by utilizing the ‘kckit shell’ command to open a terminal within an instance named ‘kv-station.’ From within this instance, I execute the ‘kubectl get nodes -o wide’ command, providing a seamless and efficient way to interact with the Kubernetes cluster. Pretty cool, isn’t it?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*57jpaIeBMZdmk-vWcStdDA.gif" /></figure><blockquote>While kckit is not yet available, you can find more information about how to provision a kubernetes cluster on the link: <a href="https://kubernetes.io/docs/setup/">https://kubernetes.io/docs/setup/</a></blockquote><h3>The Execution Environment</h3><p>Now check if you have kubectl installed and working on your linux distro:</p><ul><li>If you have used the automated user credential and key pair creation method, I recommend running the following command:</li></ul><pre>$&gt; ssh -o StrictHostKeyChecking=no -i ~/kuberunner.key kuberunner@localhost &#39;kubectl get nodes&#39;<br>NAME          STATUS   ROLES           AGE   VERSION<br>kv-master-1   Ready    control-plane   12d   v1.28.4<br>kv-worker-1   Ready    &lt;none&gt;          12d   v1.28.4</pre><ul><li>Should you encounter error messages while attempting to run kubectl with the kuberunner account, refer to the Kubernetes documentation. Explore the documentation to learn how to install and configure kubectl to troubleshoot and resolve any issues.</li></ul><blockquote>The k8s docs regarding kubectl can be found here:</blockquote><blockquote><a href="https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/">https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/</a></blockquote><h3>Krunner</h3><p>This important script, called by the Digibee capsule during the provisioning of kubernetes resources, gives us more control over the overall execution environment. It is referenced from the kuberunner’s home location ($HOME/krunner) during the capsule build. Specifically, the script sets environment variables, logs information to a log file for debugging and generates a universally unique identifier (UUID) to uniquely identify the execution of the external process.</p><ul><li>If you used the automated user credential and key pair creation method, run the following command to install the krunner script on the <strong>kuberunner</strong> user home directory:</li></ul><pre>$&gt; ssh -o StrictHostKeyChecking=no -i ~/kuberunner.key kuberunner@localhost &#39;https://github.com/arturscheiner/krunner.git&#39;</pre><ul><li>If you have manually created the user credential and key pair, you can run the following commands directly from your current terminal location, to install the krunner script:</li></ul><pre>coderunner@host $&gt; git clone https://github.com/arturscheiner/krunner.git</pre><h3>YAML</h3><p>Let’s take a look at some details of the kubernetes spec that the Digibee platform will use to provision k8s resources over the external host.</p><p>Although you can use this method to create any kubernetes resource using a yaml spec, in this post I&#39;ll be covering the provision of a Deployment. In this example It creates a ReplicaSet to bring up dynamic number of nginx Pods, as defined by the double-braces payload reference {{ message.k8s-replicas }}</p><pre>apiVersion: apps/v1<br>kind: Deployment<br>metadata:<br>  name: <strong>{{ message.k8s-deploy-name }}</strong><br>  labels:<br>    app: nginx<br>spec:<br>  replicas: <strong>{{ message.k8s-replicas }}</strong><br>  selector:<br>    matchLabels:<br>      app: nginx<br>  template:<br>    metadata:<br>      labels:<br>        app: nginx<br>    spec:<br>      containers:<br>      - name: nginx<br>        image: nginx:1.14.2<br>        ports:<br>        - containerPort: 80</pre><p>In this example:</p><ul><li>A Deployment with a dynamic name defined by the pipeline payload and referenced by the double-brace <strong>{{ message.k8s-deploy-name }} </strong>will be created, indicated by the.metadata.name field. This name will become the basis for the ReplicaSets and Pods which are created later. See <a href="https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#writing-a-deployment-spec">Writing a Deployment Spec</a> for more details.</li></ul><blockquote>When creating a resource with Digibee, you can make any of the Kubernetes Specs fields a dynamic one, you should use the logic that attends your integration project or business specific needs.</blockquote><h3>To Be Continued…</h3><p>Fantastic developments! We’ve triumphed in laying the foundation for our setup, and our external components are now finely tuned and prepared! As we look ahead to the next chapter, our focus shifts towards the insiders of the Digibee platform. This phase entails the meticulous configuration of every vital element, gearing up for the exciting challenge of orchestrating a Kubernetes Deployment using an external host. I invite you to embark on this journey with me in the upcoming chapter, where the true adventure unfolds, and we dive into the heart of the action. Get ready for an exhilarating experience as the real fun commences!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71e9481a527e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/loco-talks/what-if-you-could-use-digibee-to-implement-a-deployment-specification-in-a-kubernetes-cluster-71e9481a527e">What If… You Could Use Digibee to Implement a Deployment Specification in a Kubernetes Cluster?</a> was originally published in <a href="https://medium.com/loco-talks">Loco Talks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Executing an external “Hello World” program written in python and golang using Digibee integration…]]></title>
            <link>https://medium.com/loco-talks/executing-an-external-hello-world-program-written-in-python-and-golang-using-digibee-integration-c52d7ac71d47?source=rss----4ac84a202f4a---4</link>
            <guid isPermaLink="false">https://medium.com/p/c52d7ac71d47</guid>
            <category><![CDATA[ipaas]]></category>
            <category><![CDATA[low-code]]></category>
            <category><![CDATA[orchestration]]></category>
            <category><![CDATA[integration]]></category>
            <category><![CDATA[microservices]]></category>
            <dc:creator><![CDATA[Artur Scheiner]]></dc:creator>
            <pubDate>Fri, 22 Dec 2023 17:48:50 GMT</pubDate>
            <atom:updated>2023-12-22T17:40:30.259Z</atom:updated>
            <content:encoded><![CDATA[<h3>Executing an external “Hello World” program written in python and golang using Digibee integration platform — Part III — The Boot</h3><p>Intrepid Digibee explorers. Welcome! On the previous posts we’ve embarked on a thrilling voyage through the uncharted territories of external code execution, and in <a href="https://medium.com/loco-talks/executing-an-external-hello-world-program-written-in-python-and-golang-using-digibee-integration-4c636359c87b">Part II — The Insiders</a>, we meticulously constructed the pipeline that will launch our code into the cosmos. Now, in Part III, it’s time to flip the ignition switch and witness the magic come alive!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K7FdWUYCJdxtnCPmCaViRw.jpeg" /></figure><p>In this post we will cover:</p><ul><li>Using the Settings panel to create an assign an API Key to a pipeline with the trigger of type REST.</li><li>Deploy the pipeline giving it computational power and compiling it as a micro-service.</li><li>Call the pipeline end-point from the outside and synchronously, receive a JSON output with the execution results.</li></ul><p>Now, hurry up! There’s no time to live! Let’s move forward with this new chapter!</p><h4>The Rest Trigger</h4><p>Before generating the API Key and assign it, let&#39;s checkout if our pipeline REST trigger is cofigured to accept this kind of authentication method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_U_B9R4bnscQlzRepbjuFA.gif" /></figure><h4>Consumers (API Keys)</h4><p>In the Digibee Integration Platform, a Consumer represents a nominal entity that can be linked to API Keys.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/156/1*aMQFPz7wht6xABXLitmRBw.png" /></figure><p>To create an API Key and assign it to our dgb-code-runner pipeline, go to the platform Settings menu (⬆) and select (⬇) Consumers (API Keys) on the left panel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/179/1*Iz-24fG6V8xPh7ExG7R5HA.png" /></figure><p>The creation is intuitive. Now just select the environment (test or prod), where this API Key will be valid and hit + CREATE…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eQA5d00HkL8ntygGRj-JJA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9ry8JmU25sFuXXQ6dcdxXA.gif" /></figure><p>Upon Consumer creation, an API Key is automatically generated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NyTybe84idk3O2n-LxSAdA.png" /></figure><p>API Keys serve as access credentials essential for queries within pipelines utilizing REST, HTTP, and HTTP File triggers. The adoption of API Keys is imperative, providing a fundamental level of security. A Consumer has the capacity to house multiple API Keys.</p><h4>Running the Pipeline</h4><p>The “Run” phase is an integral component of the Digibee Integration Platform, following the pipeline construction in the preceding Build phase. Its primary objective is to deploy the pre-configured pipeline, complete with triggers, execute it, and transition the integration into a production environment</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*uXokRgFVcEQaL_z_lv_aHw.gif" /></figure><p>There are two deployment environments available for pipelines: <strong><em>test</em></strong> and <strong><em>prod</em></strong>.</p><p>The test environment serves as a place to evaluate the pipeline construction, allowing for testing and adjustments. This provides a validation environment for pipelines before transitioning them to the production (prod) environment.</p><p>The prod environment is where the final deployment process occurs, following thorough testing and validation for production readiness.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*mZ6Z0Z5C5DfuwusMkqbZ_A.png" /></figure><p>In the event that an evolutive change is necessary for a pipeline in the production environment or if it encounters any issues, it is recommended to make these changes in the test environment first. Only after successful testing in the test environment should the pipeline be returned to the production environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/103/1*Uoz6D0SaWx_pGuiQ933Siw.png" /></figure><p>Choose a pipeline along with its version. Once the pipeline is selected, details about the associated project and, if applicable, the instance (in the case of a multi-instance pipeline) are presented. Proceed to select the preferred pipeline size, and if dealing with a multi-instance pipeline, also choose a specific instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*7SIcxW1Xmq_LD7Rzpo4Yyg.png" /></figure><p>Choose the quantity of simultaneous executions. Specify the desired number of concurrent executions, following the example provided:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*xENTyq3fdvEnH4eAyC4MSA.png" /></figure><p>Choose the quantity of replicas and specify the desired number to be utilized. All replicas will maintain the same size as previously selected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*5coqGl_5V2lA2q6YSLiicg.png" /></figure><p>Review the summary. Subscription-Based Model users will see a screen displaying the calculation of RTUs and subscriptions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/401/1*1zS-mjwvGuv_EbXbnUxtcw.png" /></figure><p>Review the status card of the pipeline to confirm the deployment stage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*i4mlYkTg3_BTDT3SDQwPNA.png" /></figure><p>Once it is deployed, you can access the details by simply clicking on the pipeline name on the card, as demonstrated below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*X82ayoDWMX-lBjb0KCXsAQ.gif" /></figure><p>Now with the endpoint and the assigned API Key, we can make a request to the pipeline.</p><h4>Call the Pipeline</h4><p>Proceed to initiate a request to the pipeline by utilizing the Postman tool. This step involves interacting with the pipeline to gather and analyze the corresponding data or responses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pKMXvUDo32M6I980bLu7rA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LEc9DpwS9Ch3b4ZGPqukFA.gif" /></figure><h4>Conclusion</h4><p>Like a rocket soaring through the cosmos, we’ve successfully ignited our Digibee pipeline, unlocking a universe of external code execution possibilities. We’ve navigated the Settings panel to secure our pipeline with API keys, deployed it into the computational realm as a microservice, and opened communication channels to receive JSON outputs — all with the elegance of a few precise commands.</p><p>But this journey is far from over. It’s merely the first step toward a boundless frontier of innovation. With the knowledge you’ve gained in this series, you can now:</p><ul><li><strong>Unleash Machine Learning Models</strong>: Deploy complex ML algorithms on remote servers, expanding their reach and impact.</li><li><strong>Orchestrate Global Workflows</strong>: Trigger automated tasks across continents, streamlining operations and transcending geographic boundaries.</li><li><strong>Bridge Integration Gaps</strong>: Seamlessly connect disparate systems and services, fostering a harmonious ecosystem of data exchange.</li></ul><p>As you continue to explore Digibee’s external code execution capabilities, remember the lessons learned here:</p><ul><li><strong>Security is Paramount</strong>: Always safeguard your pipelines with robust authentication methods like API keys to ensure authorized access and data integrity.</li><li><strong>Deployment is Empowerment</strong>: Release your code into the wild as a microservice, granting it computational power and the ability to interact with external systems.</li><li><strong>Communication is Key</strong>: Establish clear communication channels to receive execution results and monitor pipeline performance, enabling continuous optimization and improvement.</li></ul><p>The cosmos awaits, Digibee explorers. Embrace the possibilities, ignite your pipelines, and let your code shape the future!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c52d7ac71d47" width="1" height="1" alt=""><hr><p><a href="https://medium.com/loco-talks/executing-an-external-hello-world-program-written-in-python-and-golang-using-digibee-integration-c52d7ac71d47">Executing an external “Hello World” program written in python and golang using Digibee integration…</a> was originally published in <a href="https://medium.com/loco-talks">Loco Talks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Executing an external "Hello World" program written in python and golang using Digibee integration…]]></title>
            <link>https://medium.com/loco-talks/executing-an-external-hello-world-program-written-in-python-and-golang-using-digibee-integration-64e2ba7f4747?source=rss----4ac84a202f4a---4</link>
            <guid isPermaLink="false">https://medium.com/p/64e2ba7f4747</guid>
            <category><![CDATA[bash]]></category>
            <category><![CDATA[ipaas]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[ssh-keys]]></category>
            <dc:creator><![CDATA[Artur Scheiner]]></dc:creator>
            <pubDate>Mon, 23 Oct 2023 19:05:08 GMT</pubDate>
            <atom:updated>2024-06-11T20:54:46.903Z</atom:updated>
            <content:encoded><![CDATA[<h3>Executing an external &quot;Hello World&quot; program written in python and golang using Digibee integration platform — Part I — The Outsiders</h3><p>Integration platforms like Digibee are powerful tools that allow you to connect different applications and systems, enabling them to exchange data and work together seamlessly. One cool feature of Digibee is the ability to execute external programs as part of an integration pipeline. In this blog post, we’ll walk you through how to use <a href="http://www.digibee.com/">Digibee</a> to execute two simple programs written in Python and Golang, each displaying the classic “Hello World” message.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DAwnUI6bdJAouaOhAOmM4g.jpeg" /></figure><h3>Some Context</h3><p>Time passed and new challenge emerged at that tech startup company, from our last story. That brilliant developer named Alex was, again, faced with a new technical conundrum. The company relied on a low-code iPaaS to streamline data integration flows, but at a certain point Alex needed a math result that could only be provided by a script, running on a high-profile server with a GPU. For that particular reason Alex needed to execute an external code in this server and bring the results of “a very complex machine learning prediction” back into the flow. So, he decided to code two programs written in Python and Golang, both programmed to output “Hello World!” message. A tuff task! Alex’s plan was for the iPaaS to trigger the programs, scoop up the output, and weave it into the flow like a data wizard. Alex was confident that, with the right configuration, the challenge would be a walk in the park… or, in tech speak, a picnic-sized challenge.</p><p>Have you ever faced a challenge like this? Let’s discuss it and learn how Digibee approaches these challenges.</p><h3>Let&#39;s Start!</h3><p>Before embarking on the creation of this delectable dessert, it is imperative to fully comprehend the functional flow of the recipe and the necessary ingredients required for its success. Nice, right?</p><h4>Sneak Peek</h4><p>Check out this pipeline sample running in debug mode in the image below. Look at the lower-right corner for the output. Amazing, right? You can run a hard-coded script on the Digibee platform. Follow me on this journey and I’ll show you how.</p><figure><img alt="sneak peek of the pipeline and output" src="https://cdn-images-1.medium.com/max/1004/1*GSTLQHQyDwCN-DDy45Uq1g.png" /><figcaption>sneak peek of the pipeline and its output</figcaption></figure><h4>Functional Flow</h4><ol><li>A simple GET request will be made on an iPaaS exposed HTTP endpoint;</li><li>During the processing of the request, the platform should submit a python and a golang code, in parallel, to an external host to be executed by their respective engines.</li><li>The initial GET request should have as its result a JSON with the &quot;Hello World&quot; string indicating the successful execution of both parallel pathways;</li></ol><h4>Ingredients Outside Digibee Platform</h4><ol><li><strong>SSH Host</strong> — a host installed with python and golang packages. Additionally, the host and its SSH port must be visible to the Digibee platform. The SSH port must be securely publicly accessible or exposed to the platform using some of the available <a href="https://docs.digibee.com/documentation/platform/digibee-connectivity-solutions#vpn-deployments">secure connectivity solutions</a>;</li><li><strong>Host User</strong> — a common, unpowered host account with its respective key pair. This account will only be used to run respective python and golang codes. Host authentication <strong>must be</strong> done using a <em>private key</em>;</li><li><a href="https://github.com/arturscheiner/crunner/blob/main/crunner"><strong>Crunner</strong></a> — a simple script that i&#39;ve wrote and that the Digibee capsule will call during code execution. This script gives us more control over the overall execution environment, logs information for debugging, computes the time to run the external process, and generates the UUID.</li><li><strong>Code</strong> — the python and golang code that will be executed by the external host;</li></ol><h4>Ingredients Inside Digibee Platform</h4><ol><li><strong>Digibee Account</strong> — an active Digibee account that has access to a realm with permissions to build, create accounts, create globals, and run an integration pipeline;</li><li><strong>Vault Credential </strong>— the representation of the host user’s <strong>private key</strong>, which was created outside the platform, to be used securely by the developer who is creating the external execution logic;</li><li><strong>Globals</strong> — constants that can be used when creating pipelines or capsules. To achieve the objectives proposed here, three globals will be created to represent: <strong>hostname</strong>, <strong>port</strong> and <strong>username</strong>;</li><li><strong>Capsule</strong> — a reusable piece of low-code logic, which will be used as a component to access the external host environment. For those who don’t know, Digibee Capsules are a set of configured components that are encapsulated to be reused in the construction of Pipelines. To learn more about capsules, see their <a href="https://docs.digibee.com/documentation/build/capsulas">documentation</a>.</li><li><strong>Pipeline</strong> — the conduit of the requests. It will be created with a REST trigger to respond to GET requests and execute the desired integration logic.</li></ol><h3>SSH Host</h3><p>For this lab, I will use my Ubuntu homelab Linux host, publicly accessible on the Internet via SSH.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*v8ZxqCa2OELsPszK2L5g4g.gif" /></figure><p>The important point here is that this host must be accessible within the Digibee realm. Here in my homelab I just configured a dstnat on my Mikrotik firewall.</p><p>The fictitious HOSTNAME and PORT I will use are:</p><ul><li>Hostname — host.homelab</li><li>Port — 10022</li></ul><p>If you are following along with this tutorial, you must have a real and accessible hostname and ssh port. We will soon use this information to create globals within the Digibee platform.</p><p>Now that we have the host configured with SSH, exposed in an internet-accessible address name, we need to create the account that will be used to authenticate to this host and execute the code.</p><h3>Host User</h3><p>Log in to your linux/unix with a user that supports sudo or has administrative privileges on your system. I will show you two methods for creating a <strong>coderunner</strong> user account.</p><h4>Create User — Automatic — Method One</h4><p>Use a simple but powerful bash script called ssh-aktor, available in this github repository, that I created to automate Linux user creation, automatic password assignment, and ssh key pair generation.</p><ul><li>Clone the ssh-aktor repository on your user home directory</li></ul><pre>$&gt; git clone https://github.com/arturscheiner/ssh-aktor.git</pre><ul><li>Access the script folder, run the script with the username <strong>coderunner</strong> as an argument and copy &amp; paste the resulting private key to a safe place (we will use it to create a private key credential inside Digibee’s vault)</li></ul><pre>$&gt; cd ./ssh-aktor<br>$&gt; sudo ./ssh-aktor coderunner<br><br>The coderunner user private key is:<br><br>-----BEGIN RSA PRIVATE KEY-----<br>MIIG5AIBAAKCAYEAtU6vuOh6OLQ9lFBoXOuho6w6CXb0lhBSzh9uXzPomTIkBZ55<br>RMUz8TgThyRNfVLMFXxtkCrd8OZ1LrDervzXNG0fnt+BSshJ2LtZ62H49PxwtX2a<br>HOBkrgMFqpWgRuDUINr2RwuSelhS4bEK0+nEASy91ero/NEwbggryMBmUntnJuCM<br>xbvh2BBg5IZycSDZVDUlIx8/uUH7PjXDI6Fo7K7Ut2X/OKwqgEo83fW4UVMWvqS1<br>B10zvaxmUeJXY2q2aYpvd/k+hTmPqpaXbFFYrqnMWXyCemB0HwUfWKB0YOP1TfgT<br>S6ADPQbOlutrbI+YiHxbqKFpJC55oronHtHcPObuK4s8GeeKsa09ioTlniRtsVT8<br>MIc8wb8fgGEtt8+qo22NHfFLqxLV9Z33YGROr+5QLZ42sBQ2MLmTr3Lo03R0osLS<br>s+qlgYGBOzX3QbFwSTMkmKj3mZtAz2UGCiHoSpFF7vOR3kF3FoYJ8zQqO1ROpJf4<br>0m+D4Ss5lVwHz2mDAgMBAAECggGAOcAdks1iGOu4baSLCYX4j5TNS7R7Rc1fQs6a<br>LnLvVNS2yp9myzPxTpVpCvPSRuf3n6RplbFBznjpvHyUAbMBrW5Q0x8oJLTVaNaM<br>VsB3NzmtgPHIBAipqQ/HX0WXrtvwVaLJLWoPNy8o/0CQTV25lBI3SYswuU68mV+6<br>6o/2R7GM8sI1tMoaruLQqhn1G/m1n+/pq11Jw+2zZGZliNTiAfnSQbSYbenRA9oh<br>tyWMl0LbDNCT5QuX7oOad9ybr0wO0s7G9BiXpmSm3t9Gnh/+AffJa82OtcZWftsI<br>1Ktmpi87eTgMaww1zH6viU8dzKZC3wKYmZkqi67RV4i6CFwLNye4kivcxkQpGU27<br>iGkuLGWcf7QhD2bqH7kCkPpYrXLtdFivJ23qngDbmY+SmiVvbn97KlsWr7M/lKPf<br>56fWw3IJ8ygVTC3EyvzfB5Ee1L9FHq4XKa+akJ86O68JlBb01FtGYv1uhcnzIhWk<br>WFF5f7HmDJw48E4DTpJ9d18hKj8RAoHBAObIPspLjPONKD0R93Ry7Kn63UXbEjne<br>ZVH8V0Y2VRvu9v7ws6SSCj4rG0UFB+5egIrWPuTHP/KuwBlEoUXOBtO0u0yIVKWp<br>kh/s8jQU04stWaKf191ANH8ihMxuEWjqW5ZHghXqCFcIyPbpTJQ+r+7iZBwNfODA<br>hdk/fS90J41WX9nQuNWR5dOHAUpC9oGmCgXa8l+YTZOX0eDBnmchXeHnKt30anxB<br>/0ggB2FZB1ryKczLnn7sKQa/XkSy2U4xWwKBwQDJHnakojSz2RnkRpcYye2VFpee<br>XhftJxJhJWJAf3HFVR5iaTQtZ83xLbGUHV1NgUpag7GOLYa3aV4+S5+116dPYduh<br>TvmggHJgcRlJ5VCDOkVtJBFiTO/S1BrxNO7QLp77N7uvb6lP8x94io1q6M+NH8TB<br>AOMUPHVX7/Uscn4ULt1zI0WiN9JY/AhRYyjnBEBhvjruxp09/6uTfityL9qoPK6R<br>dXQKAHARTGkw5BQb9FcE046ZVGP7eU8reIBYuPkCgcEAvtT2lvDCLOKcU2N366Lc<br>b/Iw5oKwH4n23kR7JmPnHKINO+JtqbfZIG8krX3rgQBD6ooel67rAhHeZwaJFN+4<br>ZXcdKbvRwurlGeEkpkxSYNOvOvpR1XIx9q7kgObDHq4r7ahTuSs8mjt5cjKYUD1F<br>3ZL2lPvSN0b7ZxlIuuShkA3MVKBzNqbeFHueZXnZvHs/7neN095sx47SzbdM9Jpy<br>t0of+EkThIxOO6XAdI7Ztipoxh/Zf7poclvr54K8jhvhAoHBAK/c5owBlqopTh2x<br>qFAxyoFStxPxXWSvhL/T671Qc9DFJIOTUN/fZFLfzOciYkLyqmzJuYoEv0dEaPd6<br>M1bUE2YzwNSl9Vxm1R0F6MIYNjX5z1mnb1gQxKkLdd+zlJwQGE6+Jm0668eQZdWG<br>+jAhEdRqkibeurIoR8e0eSP7ncnSTSxwDGTUASh0gmWAmvSfYBjYOjovDLJ5DbQ0<br>YJNByybPoSpqlSRly5kkwtrQpdDn8Ou0fn4PMDpmklcF0N1EKQKBwGFzlLpYvfY7<br>fImk+mTFeKkU4AllFQJ24jpzB9WEg1svyXWcYx3m+A+yiJU6O7fiqCVBJReCMewV<br>koaHsy0CVfPwiikTsIlBW3obOni+hkW0kbGuvQxKZhBIBDnK40Tjq0x5IvhV9UmG<br>h5wIXjL+IHM69hNk2O56Nfe0oSCPqUGEwlyF05bFCHrP+3vhAuTJITfafJ/Yzg2B<br>H8Y+nEjPlz1gFhxTd1lV71uH5Hnxq+MnofndoZu3PK/6tYecHbTXOg==<br>-----END RSA PRIVATE KEY-----<br><br>The coderunner user private key is available at: ~/coderunner.key<br><br>To test the coderunner user private key, run the following:<br><br>     ssh -o StrictHostKeyChecking=no -i ~/coderunner.key coderunner@localhost &#39;whoami&#39;<br></pre><ul><li>Additionally, just to make sure everything is working fine, you can test authentication with the generated private key using the command shown in the ssh-aktor output. This command will establish an ssh connection with the user’s private key and execute the <em>whoami</em> command. If it returns the newly created username without errors, it means everything worked as expected.</li></ul><h4>Create User — Manual — Method Two</h4><p>Run the following steps:</p><ul><li>There are some methods to create users, depending of the linux/unix distribution you’re using. Choose the one that better fits your knowledge.</li></ul><pre>$&gt; sudo useradd coderunner<br>$&gt; sudo passwd coderunner<br>$&gt; sudo mkdir -p /home/coderunner/.ssh<br>$&gt; chown -R coderunner:coderunner /home/coderunner<br><br>or <br><br>$&gt; sudo adduser coderunner</pre><ul><li>Login with your newly created user and create the account key pair.</li></ul><pre>$&gt; sudo -i<br>$&gt; login coderunner<br>Password: write the password you&#39;ve defined on the previous step<br>coderunner@host $&gt; ssh-keygen -m PEM</pre><ul><li>Echo the public key to the ssh authorized_keys of <strong>coderunner</strong> user.</li></ul><pre>coderunner@host $&gt; cat ~/.ssh/id_rsa.pub &gt;&gt; authorized_keys</pre><ul><li>Grab the private key and copy &amp; paste it to a safe place (we will use it later to create an access credential inside the vault of the Digibee platform)</li></ul><pre>coderunner@host $&gt; cat ~/.ssh/id_rsa<br><br>-----BEGIN RSA PRIVATE KEY-----<br>MIIEowIBAAKCAQEA0rgrxydDOrb9c60hSD9x/QoZyxMJPecjnmsQr7W3+I1TwHBF<br>wkg4ITrqg0sGEmuXEA21JS7BFskMzKgQtfS3k6f6URnm6mi550KiK6oyLiWncdxN<br>IMZYFdkSPEdTYpXN4qoj+EBHuPtxD6qydD6T3vku6nlIIqdAtCAUbulk2mNJKaGs<br>DoFYlGWzLjOQxfpT8CjPNTKQfkWu35FFpprtluE8SKtPgJ30a1CUxME0SzEPATUW<br>mkWVCJz4pth9OOaqacixqOiVgoVkOG9F/o6tAJt5YFKdlFNVZN1VRZjq53RO1afR<br>sul5HDPYOjuFREQ23VM6gphw2GKVRf7Mx+JGnwIDAQABAoIBAGw4PfOIDJUJCd3w<br>2pj6TJaCK4EKA8MRBFAF+InlL9is7Ih2oL0Izhry4SIQ08t+ChUqlQ/FlVEYbERn<br>RD3OssFYkcw5G0jkBCXrKNJ4FFFy8S4e0FW2x+Jgm2bt0rtc6GIys0p56Nvt9sDv<br>D7t3sAXhv+CX7R4u+6IGn7fekfc9+/HIZve7aJrQJe7MrTFnl2mgJu4ES83/F+sM<br>w9Vvk8ckRp+yVO6jIp/1f0dl7zPOLWrA5sOpc4rN+<br>-----END RSA PRIVATE KEY-----</pre><h4>The Execution Environment</h4><p>Now check if you have we have, python and golang installed on your linux distro:</p><ul><li>If you have used the automated user credential and key pair creation method, I recommend running the following command:</li></ul><pre><br>$&gt; ssh -o StrictHostKeyChecking=no -i ~/coderunner.key coderunner@localhost &#39;python3 --version; go version; jq --version; uuidgen --version&#39;</pre><ul><li>If you have manually created the user credential and key pair, you can run the following commands directly from your current terminal location:</li></ul><pre>coderunner@host $&gt; python3 --version<br>Python 3.7.3<br>coderunner@host $&gt; go version<br>go version go1.13.8 linux/arm64<br>coderunner@host $&gt; jq --version<br>jq-1.5-1-a5b5cbe<br>coderunner@host $&gt; uuidgen --version<br>uuidgen from util-linux 2.33.1</pre><ul><li>If you receive message errors trying to running the language engines, check the documentation of the distro you’re using and check how to install the python and golang environments.</li></ul><blockquote>It’s important to note that we are not limited to python and golang engines. Theoretically, this technique applies to any language engine. I decided to use these two just to exemplify the potential of this type of implementation.</blockquote><h3>Crunner</h3><p>This important script, called by the Digibee capsule during the execution of external host code, gives us more control over the overall execution environment. It is referenced from the coderunner’s home location ($HOME/crunner) during the capsule build. Specifically, the script sets environment variables, logs information to a log file for debugging, computes the time to run the external process by measuring the elapsed time between the start and end of the process, and generates a universally unique identifier (UUID) to uniquely identify the execution of the external process.</p><ul><li>If you used the automated user credential and key pair creation method, run the following command to install the crunner script on the <strong>coderunner</strong> user home directory:</li></ul><pre>$&gt; ssh -o StrictHostKeyChecking=no -i ~/coderunner.key coderunner@localhost &#39;https://github.com/arturscheiner/crunner.git&#39;</pre><ul><li>If you have manually created the user credential and key pair, you can run the following commands directly from your current terminal location, to install the crunner script:</li></ul><pre>coderunner@host $&gt; git clone https://github.com/arturscheiner/crunner.git</pre><h3>Code</h3><p>Let’s take a look at some details of the python and golang code that the Digibee platform will run on the external host.</p><h4>The Python Code</h4><p>The Python code that will run on the remote host is straightforward. It is just a string formatted as JSON output, and it will be executed as a script using the Python 3 engine. This means that it is expected to run much faster than the Golang code.</p><pre>import json<br><br># some JSON:<br>x = &#39;{&quot;message&quot;:&quot;Hello World!&quot;}&#39;<br><br># print the JSON message:<br>print(x)</pre><p>See below the time this python script takes to run on the same host where the code will be executed remotely.</p><pre>$&gt; time python3 hw.py<br>{&quot;message&quot;:&quot;Hello World!&quot;}<br><br>real 0m0.257s<br>user 0m0.143s<br>sys 0m0.070s</pre><h4>The Golang Code</h4><p>The Golang code that will run on the remote host is more complex than the Python code. Additionally, Golang does not work as a script. It must be compiled on the fly before it can be executed. This means that the Golang code is expected to run much slower than the Python code.</p><pre>package main<br>import (<br>    &quot;fmt&quot;<br>    &quot;encoding/json&quot;<br>)<br>type Output struct {<br> Message string `json:&quot;message&quot;`<br>}<br>func main() {<br>    myOutput := Output{&quot;Hello World!&quot;}<br>    bytes, _ := json.Marshal(myOutput)<br>    fmt.Println(string(bytes))<br>}</pre><p>Now the runtime required to run the golang code on the same host that will run the code remotely.</p><pre>$&gt; time go run hw.go<br>{&quot;message&quot;:&quot;Hello World!&quot;}<br><br>real 0m1.600s<br>user 0m1.332s<br>sys 0m0.577s</pre><h3>To Be Continued…</h3><p>Wowwwww! We’ve finished the first part of our setup. The outsiders are ready to rock and roll! In the next chapter, we’ll walk through setting up the Digibee platform insiders. That means we’ll configure all the elements of the platform to perform our challenge of running a language hard-code on an external host. <a href="https://medium.com/loco-talks/executing-an-external-hello-world-program-written-in-python-and-golang-using-digibee-integration-4c636359c87b">Let’s move on to the next chapter</a>, where the real fun begins!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64e2ba7f4747" width="1" height="1" alt=""><hr><p><a href="https://medium.com/loco-talks/executing-an-external-hello-world-program-written-in-python-and-golang-using-digibee-integration-64e2ba7f4747">Executing an external &quot;Hello World&quot; program written in python and golang using Digibee integration…</a> was originally published in <a href="https://medium.com/loco-talks">Loco Talks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Executing an external “Hello World” program written in python and golang using Digibee integration…]]></title>
            <link>https://medium.com/loco-talks/executing-an-external-hello-world-program-written-in-python-and-golang-using-digibee-integration-4c636359c87b?source=rss----4ac84a202f4a---4</link>
            <guid isPermaLink="false">https://medium.com/p/4c636359c87b</guid>
            <category><![CDATA[ipaas]]></category>
            <category><![CDATA[integration]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[low-code]]></category>
            <dc:creator><![CDATA[Artur Scheiner]]></dc:creator>
            <pubDate>Mon, 23 Oct 2023 19:03:54 GMT</pubDate>
            <atom:updated>2023-12-22T09:44:20.797Z</atom:updated>
            <content:encoded><![CDATA[<h3>Executing an external “Hello World” program written in python and golang using Digibee integration platform — Part II — The Insiders</h3><p>Welcome back to those that are following me! In this post, we’ll be continuing our journey into the world of executing external code on an external host using Digibee. But this time, we’ll be focusing on the insiders — where the magic happens.</p><figure><img alt="Hard-Coded Integration with an Outsider" src="https://cdn-images-1.medium.com/max/1024/1*Ci3uks6JXP2XnSXRPqiNhA.jpeg" /></figure><p>We’ll be using the Digibee low-code integration platform to create a pipeline that can execute any language hard-code, using an external host, and bring the results back to be processed. In this post, we’ll be using the credential vault, globals variables, capsules and pipelines to accomplish this task.</p><p>So get ready to roll up your sleeves and dive into the heart of Digibee! In no time, you’ll be able to run any external code you want with ease. If you just arrived here without reading <a href="https://medium.com/loco-talks/executing-an-external-hello-world-program-written-in-python-and-golang-using-digibee-integration-64e2ba7f4747">Part I — The Outsiders</a>, I invite you to read it before continuing.</p><p>Here’s a sneak peek at what we’ll be covering in this post:</p><ul><li>Using the credential vault to store sensitive information, such as private keys and passwords.</li><li>Creating globals variables to store constants and other frequently used values.</li><li>Building capsules to encapsulate reusable low-code logic.</li><li>Assembling pipelines to connect triggers, components, capsules and execute external code.</li></ul><p>So, stay tuned for the next chapter in the Digibee Outsiders saga!</p><h3>The Digibee Account</h3><p>To complete the task proposed in this article (see Part I for more deets), I’ll be using my own Digibee account. If you’re not sure if your account has the necessary permissions, check the platform configurations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1fYZhBoIA7oYoDiB4KQxAQ.gif" /><figcaption>check the realm and access the settings menu</figcaption></figure><p>There are many administrative tasks you can do in the settings menu. Here you can view the audit trail, configure identity providers, roles and groups among other things. But let’s focus on the users menu, where you can easily search for your account object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-6jt4oDo8s5gC6MGjLe7dw.gif" /><figcaption>select the users menu on the left and search your username</figcaption></figure><p>See how easy is to check your Digibee realm account permissions? The list of permissions is big. Doesn&#39;t fit the screen. You need to scroll down to see all of them. As you can observe, they are very granular, allowing more control over who does what. Nice, right?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9P_wOXW-lYqwSlQucEXI-Q.gif" /><figcaption>on the available actions, edit the user details and check your permissions</figcaption></figure><p>Now, let’s set sail on this low-code adventure and see what we can create together!</p><h3>Vault Credential</h3><p>To create a credential within your realm’s vault, in the settings menu, we will select the Accounts options. Accounts provide a critical layer of security in authentication processes by storing sensitive data such as passwords, private keys, and authentication tokens. These accounts are consumed by pipeline components that verify access to specific endpoints, ensuring that only authorized entities can access required resources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/165/1*wav2-8yOg2cl6xe2skvbQA.png" /></figure><p>In this section, we will insert the coderunner user private key that we created on our external host (see Part I for more details). We will need to use this user account to authenticate via SSH on our external host and execute the commands during the creation of our pipeline. To avoid using credential information in the pipeline itself, we will create an object with a label and reference this object label when configuring the authentication details on the SSH component.</p><p>Here are the steps involved:</p><ol><li>Create an object with a label and store the coderunner user private key in it.</li><li>When configuring the authentication details on the SSH component, reference the object label instead of using the private key directly.</li></ol><p>This approach has several benefits:</p><ul><li>It improves security by keeping the private key out of the pipeline itself.</li><li>It makes the pipeline more reusable and portable, as it does not need to be updated if the private key changes.</li><li>It makes the pipeline easier to read and maintain, as the private key is only referenced in one place.</li></ul><p>To create an account object with your <strong>coderunner</strong> private key, simply click the “+CREATE” button on the Accounts interface page and complete the form.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/448/1*msFJPjrSLdUhFq75NEYreQ.gif" /><figcaption>creating a vault credential</figcaption></figure><p>Now let’s move to our external host terminal and &quot;cat, select &amp; copy&quot; the private key.</p><figure><img alt="private key cat, select &amp; copy" src="https://cdn-images-1.medium.com/max/446/1*6B7ZkGhojMWuifcAXiL48Q.png" /><figcaption>private key cat, select &amp; copy</figcaption></figure><p>Now we just need to paste the private key on the form box, hit the CONFIRM button and thats it. We are ready to move on to the next stage.</p><figure><img alt="paste the private key in the form box" src="https://cdn-images-1.medium.com/max/447/1*vIaxlXqXhgGidNP5AxUsqg.png" /><figcaption>paste the private key on the form box</figcaption></figure><blockquote>In addition to the build interface and its execution environment, the Digibee platform offers two environments: <strong>test</strong> and <strong>prod</strong>. In this example, we could paste two different private keys, one for each environment. The platform will automatically select the correct credential when deploying the pipeline. For the build interface execution environment, the platform will always use the <strong>test</strong> value of the credential.</blockquote><h3>Globals</h3><p>Global variables can help you develop pipelines faster and more efficiently. They allow you to use the same parameters in different pipelines and reuse information, which can save you a lot of time and effort. Global variables can also help you share information with other users, making it easier to collaborate on projects.</p><p>For this scenario, we will create three global variables to represent the elements of our external host: hostname, SSH port, and username.</p><ul><li>ext-host-code-hostname: <strong>host.homelab</strong></li><li>ext-host-code-port: <strong>10022</strong></li><li>ext-host-code-username: <strong>coderunner</strong></li></ul><p>To create a global just hit Globals on the settings menu then &quot;+CREATE&quot;. The approach is almost the same that we’ve used to create the vault credential.</p><figure><img alt="settings menu with globals selected" src="https://cdn-images-1.medium.com/max/143/1*24L5tVwcrE6y1SmIXenudA.png" /></figure><p>Repeat the following step for each of the globals fulfilling the form with its respective information.</p><figure><img alt="global creation interface" src="https://cdn-images-1.medium.com/max/453/1*n42diNfhjmYOM11lLL3jsQ.png" /></figure><p>Filtering the globals using the ext-host, we should see the three globals we just created on the platform.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*4tN-ckGAafCXcgJfSA6SRA.png" /></figure><p>Now we have the needed objects to jump to the next stage. The build phase!</p><h3>Capsule</h3><p>Capsules are reusable components that encapsulate business logic, making pipelines easier to manage, maintain, and update. By grouping components into more complex tasks, Capsules can simplify pipeline building and help you solve specific problems more efficiently. Exciting, right? Let’s go!</p><figure><img alt="path to capsule creation" src="https://cdn-images-1.medium.com/max/736/1*EibR-40Nae_b4TnhePzfwQ.gif" /></figure><blockquote>As I will not cover the basic concepts of capsule collections and groups, I invite you to check <a href="https://docs.digibee.com/documentation/build/capsulas">Digibee capsules documentation</a>.</blockquote><figure><img alt="capsule creation menu" src="https://cdn-images-1.medium.com/max/188/1*elqk2U_Qc9VjQbd3hs1u0w.png" /></figure><p>Creating a capsule is similar to creating a pipeline, but without the need to configure a trigger. The first visual component on the canvas is the capsule configuration, which includes parameters, accounts, documentation, and an output contract.</p><p>The capsule we create in this step will be relatively simple, containing just four component types: <a href="https://docs.digibee.com/documentation/components/tools/ssh-remote-command">SSH Remote Command</a>, <a href="https://docs.digibee.com/documentation/components/logic/choice">Choice</a>, <a href="https://docs.digibee.com/documentation/components/tools/log">Log</a> and <a href="https://docs.digibee.com/documentation/components/tools/json-generator">JSON Generator</a>. So, let’s bring them to our development environment!</p><figure><img alt="just drag and drop the four components" src="https://cdn-images-1.medium.com/max/1024/1*l779XSQPJ8BDKtg1GLpB7A.gif" /></figure><p>Once we’ve placed the components on the canvas, we need to connect them. The direction left-to-right indicates the flow of the message that will be processed. For the purpose of this tutorial, the capsule logic will be as shown in the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jQ-5S8rZ3eY5Nq2ElyRN-g.png" /></figure><p>It is a prudent practice to ensure that the flow of your capsule is easily comprehended by those who view it. To achieve this goal, one should devote time to carefully and descriptively titling each component. This will allow for anyone who observes the flow to quickly grasp the logical structure and purpose of the capsule. Now let’s check the internals!</p><h4>Configuring the Capsule</h4><p>In a capsule, everything starts in the cog icon. The capsule configuration is all there.</p><figure><img alt="capsule configuration navigation" src="https://cdn-images-1.medium.com/max/1024/1*N-Tb3M8JjnnsHF9qq7lUmw.gif" /></figure><blockquote><a href="https://github.com/arturscheiner/post-executing-external-code-digibee/tree/main/capsule">This GitHub repository</a> has everything you need to create your own Coderunner capsule. This repository contains code samples and instructions for creating your own <strong>Coderunner</strong> capsule. The final parameters form of the capsule should be like this.</blockquote><p>In short words, to create the capsule you need to:</p><ol><li>Define the <a href="https://github.com/arturscheiner/post-executing-external-code-digibee/blob/main/capsule/1.capsule-parameters.json">parameters</a> that you will use on the form builder</li><li>Configure the <a href="https://github.com/arturscheiner/post-executing-external-code-digibee/blob/main/capsule/2.capsule-accounts.json">accounts</a> that will be used by the capsule</li><li>Copy the <a href="https://github.com/arturscheiner/post-executing-external-code-digibee/blob/main/capsule/4.capsule-components-v1.json">capsule low-code</a> and paste inside the capsule canvas</li><li>Connect the cog to the components logic</li><li>Configure the <a href="https://github.com/arturscheiner/post-executing-external-code-digibee/blob/main/capsule/3.capsule-contract-shema.json">capsule contract</a></li><li>Review the capsule logic and components configuration</li><li>Save the capsule</li><li>Publish the capsule</li></ol><blockquote>The capsule publish button will only be available once the capsule contract (JSON schema to validate the output) is configured. After publishing, the capsule will be available to be used as a component, on the build pipeline interface.</blockquote><p>Ohhh weeeee, this form below is lookin’ fine! When setting up a capsule inside a pipeline, you’ll be treated to this sleek interface. Check out how clean and well-designed it is — a thing of beauty.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*6I_hv3OzVUxavyDdr2gt2g.png" /></figure><h4>Testing the Capsule</h4><p>Now that you have created the capsule, let’s test it. On the lower left-corner of the interface, we can access the execution panel (aka test mode). Open it and let’s fill out the form. Test mode allows you to test your capsule before publishing it to production. To use test mode, simply open the execution panel and fill out the form with the input data that you want to test your capsule with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_cZ6nbaLfddVHSqUNgGEeQ.gif" /></figure><p>Boom shakalaka, we got our capsule locked and loaded! Now, it’s time to buckle up and get our pipeline party started!</p><h3>Pipeline</h3><p>The Digibee Integration Platform is built around the pipeline concept, which is a sequence of components that allows you to connect systems and establish data flow between them.</p><p>Each pipeline consists of:</p><ul><li>One trigger: This component initiates the execution of the pipeline.</li><li>At least one other component: These components perform the tasks that you need to accomplish in your integration.</li></ul><figure><img alt="create a pipeline" src="https://cdn-images-1.medium.com/max/564/1*CWbzD-3kLQC6RXq2zqU2NA.gif" /></figure><p>Pipelines can have complex low-code logic, depending on the integration needs. For this tutorial, we will create a simple pipeline with a REST trigger and a few components, including capsules.</p><h4>Configuring the Trigger</h4><p>This pipeline will have a REST trigger that only accepts GET requests and requires API key authentication. We are using a REST trigger with only the GET method and API key authentication to ensure that our pipeline is only accessible to authorized users.</p><figure><img alt="configuring the REST trigger" src="https://cdn-images-1.medium.com/max/1024/1*DBTxag1iST0ziGKd9iXjUQ.gif" /></figure><p>This pipeline demonstrates the Digibee platform’s ability to connect to an external host and execute Python and Golang code configured on Coderunner capsules. Notably, we use the same Coderunner capsule to run both codes, but each capsule is individually configured for its specific needs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vk0L-Zp77Fh5-HErGgTDFg.png" /></figure><p>As you can see, we are also using the Parallel Execution component to run both codes almost simultaneously, as well as the Log component.</p><blockquote>The Parallel Execution component allows us to run both codes almost simultaneously, which can improve the performance of our pipeline. The Log component allows us to log information about the execution of the pipeline, which can be helpful for debugging and troubleshooting.</blockquote><h4>Python Coderunner Capsule</h4><p>Indeed, this capsule is a masterwork of engineering excellence. Observe the seamless integration of Python code within the component, seamlessly facilitating data processing and analysis with remarkable efficiency and elegance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/1*EmIYFHWwIRxbE58sfHSelw.png" /></figure><h4>Golang Coderunner Capsule</h4><p>This capsule is a powerful tool for data processing and analysis, enabling engineers to streamline and refine the development and deployment of complex pipelines with remarkable productivity and finesse.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*7BXZPCJKbppHrSfSM0ZIcw.png" /></figure><h4>What about a Ruby code?</h4><figure><img alt="copy and paste a capsule and configure it to run ruby" src="https://cdn-images-1.medium.com/max/1024/1*XHlCXgm4lqQTvg-CamHEIg.gif" /></figure><p>Totally! Running Ruby in Coderunner is legit! It’s like watching a DJ spinning mad beats with the turntables of computational awesomeness. The Coderunner capsule provides a slick platform for Ruby to shine!</p><h3>Execution Panel</h3><p>The Digibee execution panel is a powerful tool that allows you to test and execute your pipelines. It provides a variety of features that make it easy to debug and troubleshoot your pipelines, as well as to monitor their performance.</p><p>One of the most useful features of the execution panel is the ability to step through your pipelines one component at a time. This allows you to see how each component is processing the data and to identify any errors that may be occurring.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6lkJhmCYEpjSRzEjR8jWIA.gif" /></figure><blockquote><a href="https://github.com/arturscheiner/post-executing-external-code-digibee/blob/main/pipeline/execution-panel-test.json">This GitHub repository</a> contains a sample of the output of this pipeline execution.</blockquote><h3>Conclusion</h3><p>In this blog post, we have learned how to execute an external “Hello World” program written in Python and Golang using the Digibee integration platform. We have seen that Digibee is a powerful platform that can be used to connect to a variety of external systems and services, and to automate the execution of complex tasks.</p><p>The example that we have used in this blog post is just a simple one, but it demonstrates the power and flexibility of Digibee. With Digibee, you can create pipelines that can perform a wide range of tasks, such as data processing, data analysis, and application integration.</p><p>If you are interested in learning more about Digibee, I encourage you to visit their <a href="http://digibee.com/">website</a> and <a href="http://docs.digibee.com/">to explore their documentation</a>.</p><p>I hope you have enjoyed this blog post!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c636359c87b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/loco-talks/executing-an-external-hello-world-program-written-in-python-and-golang-using-digibee-integration-4c636359c87b">Executing an external “Hello World” program written in python and golang using Digibee integration…</a> was originally published in <a href="https://medium.com/loco-talks">Loco Talks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Running and scaling the "Hello World" integration flow using the Terminal is soooo cool]]></title>
            <link>https://medium.com/loco-talks/running-and-scaling-the-hello-world-integration-flow-using-the-terminal-is-soooo-cool-fda3b18087ad?source=rss----4ac84a202f4a---4</link>
            <guid isPermaLink="false">https://medium.com/p/fda3b18087ad</guid>
            <category><![CDATA[integration-platform]]></category>
            <category><![CDATA[scale]]></category>
            <category><![CDATA[command-line-interface]]></category>
            <category><![CDATA[low-code]]></category>
            <category><![CDATA[ipaas]]></category>
            <dc:creator><![CDATA[Artur Scheiner]]></dc:creator>
            <pubDate>Fri, 16 Jun 2023 22:36:24 GMT</pubDate>
            <atom:updated>2023-06-16T22:40:51.407Z</atom:updated>
            <content:encoded><![CDATA[<h4>Don&#39;t be afraid. The command line has many secrets.</h4><figure><img alt="A notebook screen in black&amp;white with a window showing the Digibee logo in ASCII code." src="https://cdn-images-1.medium.com/max/1024/1*rpopA1DXaW16FhOeZA1zZg.jpeg" /></figure><p>In this post I will present you to the command line utility, used to interact with a Digibee realm. Overall, this tool provides users with a powerful and flexible interface to interact with <a href="http://digibee.com/">Digibee&#39;s</a> low-code and cloud native integration platform, enabling automation, scripting, remote access, and integration with other tools. It enhances efficiency, portability, and reproducibility while catering to diverse user needs and scenarios.</p><h3>Some Context</h3><p>In a bustling tech startup, there was a talented and resourceful developer named Alex. Their company relied heavily on an Integration Platform as a Service (iPaaS) solution to connect and streamline data flows between various systems. However, as the company grew and the data volume increased, the integration microservice started experiencing performance bottlenecks, posing a significant challenge.</p><p>Recognizing the urgency of the situation, Alex turned to their trusty command line utility, armed with deep knowledge of the iPaaS system and an innate problem-solving ability. They embarked on a mission to analyze the performance patterns and identify the root cause of the bottlenecks.</p><p>Alex decided to retrieved crucial metrics such as CPU and memory usage, network throughput, and response times using a monitoring interface. This data analysis revealed that the integration microservice was hitting resource limits, resulting in delays and degraded performance. It became evident that scaling the microservice was crucial to meet the growing demand.</p><p>Drawing upon the automation capabilities of the command line utility, Alex devised a meticulous plan to dynamically scale the integration microservice. They crafted scripts that leveraged the utility’s scaling commands, enabling automatic adjustments to the number of micro service instances based on real-time workload metrics.</p><p>Do you recognize this type of situation? Let’s talk about it and discover Digibee’s approach to overcoming these challenges with <strong>Digibeectl</strong>.</p><h3>What is Digibeectl?</h3><p>Digibeectl is an API-enabled command-line tool (CLI) that serves as a game-changing solution for orchestrating deployments in an efficient and user-friendly manner. It provides a range of features and capabilities to facilitate pipeline management and automation. With Digibeectl, users can easily create flexible pipelines and interactively scale their integrations as needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OzBXht4upvXWayusOFcXJA.png" /></figure><h3>Let&#39;s Start!</h3><p>Before playing with Digibeectl, we need to understand some basic concepts:</p><h4>Digibee Deployment</h4><p>After finishing the development phase of a pipeline, the next step is to promote the &quot;low-coded&quot; integration to a running environment, <strong><em>TEST</em></strong> or <strong><em>PROD</em></strong>. We do this by creating a deployment. During this step, the developer needs to assign computational capabilities that will be used by the integration flow microservice, to process messages. These capabilities are represented by three available sizes.</p><blockquote>A deployment is basically a pipeline compiled and executed as a microservice, that runs on the Digibee Integration Platform.</blockquote><p>When creating a deployment, the developer can choose the scale of a pipeline by giving it vertical and horizontal resources. Bellow are the variables that can be adjusted during the build phase:</p><ul><li><strong>CPU and Memory</strong> — selecting the size <strong>SMALL</strong>, <strong>MEDIUM</strong> or <strong>LARGE</strong></li><li><strong>Concurrent Executions</strong> — selecting the number of executions and limited by size</li><li><strong>Replicas</strong> — selecting how many replicas of the previous two configurations will be running</li></ul><h4>How to install Digibeectl?</h4><p>Digibeectl is provided as a ‘tar.gz’ file for MacOS and linux. The command below helps in the digibeectl installation with one execution only. For that, open a terminal window and execute:</p><pre>curl -s https://storage.googleapis.com/digibee-release-test/releases/install.sh | bash</pre><h4>Supported Platforms</h4><p>In general, digibectl supports all available modern linux distros running over arm64 or x86 (arm is not supported). If you want to check all the available binaries, follow this link:</p><ul><li><a href="https://storage.googleapis.com/digibee-release-test">https://storage.googleapis.com/digibee-release-test</a></li></ul><p>According Digibee <a href="https://docs.digibee.com/documentation/platform/digibeectl">official documentation</a>, digibeectl doesn’t support Windows binaries at this moment. But you can run it on Linux over Windows by using WSL (<a href="https://learn.microsoft.com/pt-br/windows/wsl/install">https://learn.microsoft.com/pt-br/windows/wsl/install</a>) or any Linux running over a virtualization technology, like Virtualbox or VMware.</p><h4>Configuring Digibeectl</h4><p>Digibeectl requires a configuration file that is encrypted and an authentication token. To generate this file you need to open Digibee’s Interface.</p><figure><img alt="How to navigate the Digibee&#39;s Interface to create a configuration token" src="https://cdn-images-1.medium.com/max/1024/1*XBYY7W7nVmtRGtesdTYY6A.png" /></figure><p>The first thing to do is to navigate the interface click in the realm governance related configurations and find, in the left-side, the Digibeectl option in the menu.</p><figure><img alt="Selecting the token options and permissions" src="https://cdn-images-1.medium.com/max/1024/1*tLJN29_uEI51S80IPX1Icg.png" /></figure><p>After that you need to give it a name, select the permissions and the expiration time.</p><figure><img alt="Save, download and configure the digibeectl" src="https://cdn-images-1.medium.com/max/1024/1*a6bJ33w5yn_SbuiPf_8ZTQ.png" /></figure><p>Follow the instructions described in the:</p><pre>digibeectl set config --help</pre><p>Use the following command line to configure digibeectl:</p><pre>digibeectl set config --file ./path/my.config.json --secret-key &quot;xxxxxxxx&quot; --auth-key &quot;yyyyyyyyy&quot;</pre><p>The digibeectl save its configuration on the following path:</p><pre>$HOME/.digibeectl/config.json</pre><h4>Switching Between Realms</h4><p>In its actual version, digibeectl doesn’t support a multi-realm environment on the same Linux or Mac user account. Different users can have different tokens, each one configured to communicate with one specific realm. As the configuration is stored on the $HOME/.digibeectl/config.json you can switch between realms using some approaches:</p><ul><li>Configure digibeectl with a token -&gt; Rename the config.json to config-token1.json;</li><li>Configure the digibeectl with another token -&gt; Rename the config.json to config-token2.json;</li><li>If you wish to use the token1, copy config-token1.json to config.json;</li><li>If you wish to use the token2, overwrite the config. json with the config-token2.json;</li><li>Use the dgb-realmswitch</li></ul><h4>Configuring and Using the dgb-realmswitch</h4><p>To use dgb-realmswitch you need to:</p><ul><li>Access the repo: <a href="https://github.com/arturscheiner/dgb-realmswitch">https://github.com/arturscheiner/dgb-realmswitch</a></li><li>Read the easy-to-follow documentation available on the project page</li></ul><p>After following the instructions the <strong>dgb-rs</strong> utility will be installed on your computer. With the command bellow you can access its help information.</p><pre>dgb-rs -h</pre><figure><img alt="Dgb-realmswitch Help Information" src="https://cdn-images-1.medium.com/max/1024/1*Vu6OWr8kNJkl9zlqN-84cQ.png" /></figure><h4>What you can do with Digibeectl?</h4><p>This small piece of software can help a lot, but it have its limitations. In its actual version, this CLI tool has its main focus on the RUN. Yes, on the RUN… aka DEPLOYMENT. Gotcha?</p><blockquote>Like in build, RUN and monitor …</blockquote><p>Although you have some limited pipeline BUILD related commands, it is at the RUN department that it shines! With it, you will be able to create, scale up, scale down and delete deployments.</p><blockquote>Furthermore with Digibeectl you will have the power to redeploy deployments without disrupting the integrations. Just resize them on-the-fly … like you do using the RUN GUI, but from the CLI.</blockquote><p>With digibeectl configured on your computer, write on your terminal screen the following command:</p><pre> digibeectl create deployments -h</pre><figure><img alt="Digibeectl create deployments help" src="https://cdn-images-1.medium.com/max/1024/1*gYttnjQ8rSVwYZMOhvEXlA.png" /></figure><p>And you will get the help information, like in the image above.</p><h4>Deploying an Integration Pipeline</h4><p>Now that we have everything set, it is time to deploy a pipeline. In this example we will deploy the <strong><em>hello-world-pipeline</em></strong> that we have created on the previous post. You can find the post clicking in the link bellow:</p><ul><li><a href="https://medium.com/loco-talks/how-to-build-a-hello-world-flow-using-an-awesome-low-code-integration-platform-bc6bb3ac9dc">How to BUILD a “Hello World” flow using an awesome low-code integration platform</a></li></ul><p>Before deploying the hello-world-pipeline let&#39;s first check if is deployed on the configured realm:</p><pre>digibeectl get deployment --name hello-world-pipeline</pre><figure><img alt="Digibeectl get deployment — hame hello-world-pipeline" src="https://cdn-images-1.medium.com/max/956/1*BXrnzC--Dxpfimz8b-y_nA.png" /></figure><p>As you can see, the pipeline is not deployed. So, to accomplish the proposed task we must use digibeectl to get the pipeline id. The pipeline id is needed by the deployment command.</p><pre>digibeectl get pipelines --name hello-world-pipeline</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DU62DS5S24V5Va7V8T7e2Q.png" /></figure><p>With the pipeline id, we can deploy the pipeline using the command bellow:</p><pre>digibeectl create deployment --pipeline-id af5e049b-dfc3-4dcc-8909-97b7a8ef2877 -e test --replicas 1 --pipeline-size SMALL</pre><p>As you can see the command specifies that we will create a micro service of the size SMALL (default 10 consumers/threads) with one replica. The return of this command is a simple &quot;<strong>Deployment created</strong>&quot; message. Now let&#39;s check if it is running:</p><pre>digibeectl get deployment --name hello-world-pipeline</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GS9zqXOR6hLCRVfML7KtDg.png" /></figure><h4>Scaling Up the Integration Pipeline</h4><p>Now that we have our <strong>hello-world-pipeline</strong> running, it&#39;s time to scale it. We will change its size from SMALL to MEDIUM with two replicas. The command needed to accomplish this is describe bellow:</p><pre> digibeectl create deployment --pipeline-id af5e049b-dfc3-4dcc-8909-97b7a8ef2877 -e test --replicas 2 --pipeline-size MEDIUM --redeploy</pre><p>Note that this command has a <strong>redeploy</strong> parameter specified. The return is the same as before, &quot;Deployment created&quot;. Now let&#39;s check the status of the deployment with the command:</p><figure><img alt="Digibeectl scaling using the redeploy option" src="https://cdn-images-1.medium.com/max/1024/1*6JZhGzssmnTk27yq1LLO7g.png" /></figure><p>Impressive! We expanded our integration pipeline on-the-fly and now it has twice the capacity and an extra replica. In addition to providing horizontal resources, a replica also extends the high availability of the individual pipeline. In this case, two microservices, representing the same flow, is running and available to process messages at the same time.</p><p>To scale down the pipeline you can use the same logic. Just change the attributes and … be happy! 😁</p><h3>SUMMARY</h3><p>In this post I showed you how to deploy the “Hello World” integration pipeline using the terminal command line utility, digibeectl. This utility can be integrated with other tools and with some creativity allows users to automate tasks and build scripts for repetitive or complex operations. It provides a way to interact with the Digibee low-code platform programmatically, enabling the integration of platform operations into existing automation workflows and processes.</p><p>So… stay tuned! I will be releasing posts that will shows you:</p><ul><li>How to RUN pipelines from the GUI interface</li><li>And how to MONITOR them</li></ul><p>Besides that, I will release other tutorials that explore some nice techniques like:</p><ul><li>How to use DIGIBEECTL together with bash to extract a pipeline flowSpec and sync it with a git repo in order to track changes within a DevOps CI/CD platform</li><li>How to create a custom CAPSULE to be used in a pipeline, the same way you use a connector</li></ul><p>If you are a curious person and would like to know more about Digibee, check out the <a href="https://digibee.academy/login-page/?redirect_to=https%3A%2F%2Fdigibee.academy%2F%3Futm_source%3Dmedium_mag%26utm_medium%3Darticles%26utm_campaign%3Ddgb_articles%26utm_id%3D101">digibee.academy</a>. There you will find trainings and certifications. You can also find plenty of resources on <a href="http://digibee.com/">Digibee website</a>.</p><p>Thank you for your time and reading, I hope to see you in the next posts!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fda3b18087ad" width="1" height="1" alt=""><hr><p><a href="https://medium.com/loco-talks/running-and-scaling-the-hello-world-integration-flow-using-the-terminal-is-soooo-cool-fda3b18087ad">Running and scaling the &quot;Hello World&quot; integration flow using the Terminal is soooo cool</a> was originally published in <a href="https://medium.com/loco-talks">Loco Talks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to BUILD a "Hello World" flow using an awesome low-code integration platform]]></title>
            <link>https://medium.com/loco-talks/how-to-build-a-hello-world-flow-using-an-awesome-low-code-integration-platform-bc6bb3ac9dc?source=rss----4ac84a202f4a---4</link>
            <guid isPermaLink="false">https://medium.com/p/bc6bb3ac9dc</guid>
            <category><![CDATA[low-code]]></category>
            <category><![CDATA[integration]]></category>
            <category><![CDATA[ipaas]]></category>
            <category><![CDATA[json]]></category>
            <category><![CDATA[hello-world]]></category>
            <dc:creator><![CDATA[Artur Scheiner]]></dc:creator>
            <pubDate>Sat, 22 Apr 2023 14:18:07 GMT</pubDate>
            <atom:updated>2023-06-16T19:39:44.877Z</atom:updated>
            <content:encoded><![CDATA[<h4>Let&#39;s start with the basics. As simple as connecting two dots.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tXirvfGxpsC9PZDNbPsmnQ.jpeg" /></figure><p>In this post we will explore the very basics of an awesome low-code integration platform. The idea in this series of posts is to give you, kind off, an introduction to <a href="https://www.digibee.com/">Digibee Integration Platform</a>. This elegant and simple to navigate solution allows us to visually create easy-to-follow, but that can become extremely complex, data integration flows. Naturally, that will depends of your business needs attained to your creativity.</p><h3>Some Context</h3><p>Many years ago, around 2005, one day I got a ride to work with a co-worker. As the traffic was intense, it took a long time for us to reach our destination. We got that opportunity to talk about life and our area of expertise. At a certain point we started to ramble on about some of the biggest challenges that could one day be faced by companies around the world. One of these challenges was related to data integration. We even tried to figure out how these challenges could be resolved. We explored possible solutions via software development, file formats, TCP sockets. However, the lack of more flexible and viable technological options always led us to a “dead end”.</p><p>At the time, little was said about this subject in the market. Data integration was a concern, but computational structures divided into silos, often with data structures tied into proprietary systems, did not allow us to ride far from what served and brought a certain comfort. Some of the market products even came with their proprietary and limited integration connectors. Discussions revolved around client-server applications, which concentrated virtually all business data for a given industry or market sector. And that was, more or less, how things worked.</p><p>Little did we know that one day we would call those fancy vendor centric client-server applications “legacy applications”.</p><p>Since then, the world has evolved and data has spread. And I breathe data integration every day.</p><h3>Why low-code integration?</h3><p>Low-code integration platforms offer a number of benefits for organizations, including faster time-to-market, reduced costs, and improved collaboration among teams. They also help to automate many aspects of the integration process, including data mapping, data transformation, and data validation, which can significantly reduce the time and resources required for integration. Additionally, low-code integration platforms offer a visual interface and drag-and-drop components, which make it easier for non-technical stakeholders to participate in integration projects.</p><h3>Why Digibee?</h3><p>Digibee Integration Platform is a low-code integration platform that enables enterprises to connect their applications and data sources quickly and easily. With Digibee, organizations can automate many aspects of the integration process, including data mapping, data transformation, and data validation, reducing the time and resources required for integration.</p><h3>Let&#39;s Start!</h3><p>Before putting our hands-on Digibee platform, we need to understand some basic concepts about it:</p><h4>Digibee Realm</h4><p>A Digibee Realm is a logical separation of environments within the Digibee Integration Platform. It allows organizations to manage their integrations across different environments, such as test-mode (aka dev-mode), test, and prod, using a single platform. This helps to ensure consistency and reduce errors during the integration process. Each Realm has its own set of resources, such as connectors, transformations, and APIs, which can be managed independently. Realms can also be configured with different security settings and access controls, providing an additional layer of protection for sensitive data.</p><h4>Digibee Pipeline</h4><p>A Digibee Pipeline is a sequence of steps that defines how data flows between applications and data sources. Each step in the pipeline performs a specific task, such as data mapping, data transformation, or data validation. Pipelines can be used to automate many aspects of the integration process, reducing the time and resources required for integration. They can also be customized to meet the specific needs of an organization.</p><h4>Navigating</h4><p>Besides understanding the basic concepts, you will need an account on Digibee platform to start navigating on it.</p><p>If you&#39;re part of an organization that is already a subscriber, an official partner or a systems integrator you just need to check with the department in your organization that holds the Digibee platform governance practices.</p><p>Users that holds a professional or company email can access a training realm by following the digibee academy rules. From <a href="https://digibee.academy/?utm_source=medium_mag&amp;utm_medium=articles&amp;utm_campaign=dgb_articles&amp;utm_id=101">digibee.academy</a> you will be able to create an account and choose an on-line training to enroll.</p><p>As soon as you log in to the realm, you are faced with a simple and clean interface. At the top we can see the main navigation buttons BUILD, RUN and MONITOR.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*yxC6xR5QTnruvkcZSIqyYw.png" /></figure><h4>Build</h4><p>When thinking about how to integrate data between one or more application or system in a interchangeable way, a good start point is to create a sequential flow or a simple list of functional requirements, like the one bellow:</p><ol><li>an https GET requisition will be sent to a public endpoint</li><li>the platform should be able to respond with a simple JSON message body</li></ol><pre>{<br>  &quot;message&quot;: &quot;Hello World&quot;<br>}</pre><p>With these functional objectives in place, now its time to sketch the pipeline architecture that will serve the integration purpose.</p><p>And here is where the magic starts to come true. The Digibee approach makes it easier the creation of integration pipelines, providing a very comfortable and clean interface that we call, Canvas. Seems natural. Just start drawing the logic on the board to bring ideas to life. It feels like creating a storyboard. Amazing!</p><p>To start creating a pipeline, from the main navigation interface, just hit BUILD (top middle) and + CREATE (on the right) -&gt; Pipeline.</p><figure><img alt="Digibee main navigation interface" src="https://cdn-images-1.medium.com/max/1024/1*E5FtZ6MoRQGT2GgXZjv3SA.png" /></figure><p>Tadaaa 🎵. There comes the Canvas! On the main board we can see a “circle-play” icon. This icon represents the “Trigger”. On the right side we have the connectors palette. For now, it is important to know that there sits two kinds of connectors: the architectural/technical and the capsules.</p><figure><img alt="A full view of Digibee Canvas" src="https://cdn-images-1.medium.com/max/1024/1*sa0BJ1M7zfW43fQ8Ia5cyg.png" /></figure><p>As our functional requirements defines that a GET requisition will be made on a public endpoint, first we need to configure the &quot;Trigger&quot;.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n5jXOvYSgBlpA6oTkTGxCQ.png" /></figure><p>Digibee is a &quot;pipeline-led&quot; integration platform. That means we can trigger an integration flow by many ways. For this example we will define it of type &quot;rest&quot;.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rmvc2JWRjqrv42sPNFvIzw.png" /></figure><p>Now we set the configuration that will be used by the API gateway (integrated and abstracted on the platform) when deploying the pipeline. Just need to fill the configuration form. Voilà!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1d-qrOxnJy0_xkWrbFy9gw.png" /></figure><p>That&#39;s it. The icon of the trigger of our &quot;Hello World&quot; pipeline now becomes an {API} circle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VQl7bicQ7XjjGCgQhg6HlQ.png" /></figure><p>To comply with our second requirement, that is to respond the request with a message, we will use the <strong>JSON Generator (Mock)</strong>. This is one of our mostly versatile connector. It allows you to mock or manipulate a json payload in-line.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*40F038LF6AYzYKtOcO2Dtg.png" /></figure><p>Now it is time to connect the dots. Just use a simple mouse gesture. Grab and draw (from the left-to-right) a line between the trigger and the connector to create a relationship. Catchau!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*UCJNNgpbVc8rcngirBRRPA.png" /></figure><p>Configure the JSON Generator, the same way we did with the trigger. Just click on the gear icon to access the connector configuration form.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*doX_qyo35SEEwwDpraAF-Q.png" /></figure><p>Here we give it an easy-to-read Step Name: Hello World.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lSedazcuQIHYEpMzTfOGdA.png" /></figure><p>And create the JSON message that we want it to process. As this is the last connector of the flow, its output will be shown, when a request is made on this pipeline’s endpoint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FflnVP94oZv-ADddv1OMVA.png" /></figure><p>Now that we have finished to sketch the pipeline according the functional requirements, its time to check if it is working using the development environment &quot;<strong>Test mode</strong>&quot;. To open this mode we just need to click on the button with the same name, on the lower-left side of the main BUILD interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/150/1*7g-zJfQmk4ZY-EP0m2DgTw.png" /></figure><p>After that, we just need to hit the PLAY button on the right side of the <strong>Test mode</strong> slide panel. Note! Here are some important things to comprehend, when building Digibee pipelines:</p><ul><li>the payload moves from the left-to-right,</li><li>the output of a connector is the input of the subsequent one,</li><li>and last but not least, while its being processed a payload flows in JSON format regardless of how the message arrives or leaves</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XixXQU2BEBLBRrTqhXxxrg.png" /></figure><p>Don&#39;t forget. Anytime, when developing a pipeline, we can hit the SAVE button on the top-right of the BUILD interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7J3innsP2hs-YfD0dLXJ5g.png" /></figure><p>Give the pipeline a name, description and choose the project it pertains.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0W-ENLtkxLsgHA-wL-sPVg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1tQF8M1wjhxUpu7YX-juaw.png" /></figure><h3>SUMMARY</h3><p>In this post I showed you how to create your first &quot;Hello World&quot; integration pipeline using the Digibee eiPaaS. Although this pipeline does not integrate systems and it is far from the complexity involved in creating a real world one, it serves as a sample on how to understand and iterate with the basics of the platform.</p><p>So… stay tuned! I will be releasing posts that will shows you:</p><ul><li>How to RUN this pipeline</li><li>And how to MONITOR it</li></ul><p>Besides that, I will release other tutorials that explore some nice techniques like:</p><ul><li>How to use DIGIBEECTL together with bash to extract a pipeline flowSpec and sync it with a git repo in order to track changes within a DevOps CI/CD platform</li><li>How to create a custom CAPSULE to be used in a pipeline, the same way you use a connector</li></ul><p>Thank you for your time and reading, I hope to see you in the next posts!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc6bb3ac9dc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/loco-talks/how-to-build-a-hello-world-flow-using-an-awesome-low-code-integration-platform-bc6bb3ac9dc">How to BUILD a &quot;Hello World&quot; flow using an awesome low-code integration platform</a> was originally published in <a href="https://medium.com/loco-talks">Loco Talks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>