<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <title>Shawn Deggans</title>
    <subtitle>AI Engineer and Solutions Architect. Building software, data and AI systems since 1996.</subtitle>
    <link rel="self" type="application/atom+xml" href="https://shawndeggans.com/atom.xml"/>
    <link rel="alternate" type="text/html" href="https://shawndeggans.com"/>
    <generator uri="https://www.getzola.org/">Zola</generator>
    <updated>2024-02-13T09:22:59-06:00</updated>
    <id>https://shawndeggans.com/atom.xml</id>
    <entry xml:lang="en">
        <title>AI Tools Beyond ChatGPT</title>
        <published>2024-02-13T09:22:59-06:00</published>
        <updated>2024-02-13T09:22:59-06:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2024/02/13/ai-tools-beyond-chatgpt/"/>
        <id>https://shawndeggans.com/2024/02/13/ai-tools-beyond-chatgpt/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2024/02/13/ai-tools-beyond-chatgpt/">&lt;p&gt;I have the pleasure to speak once again to the &lt;a href=&quot;https:&#x2F;&#x2F;akron-aitp.org&#x2F;&quot;&gt;Akron-area Association of Information Technology Professionals&lt;&#x2F;a&gt; this week on the subject of AI Tools beyond ChatGPT.&lt;&#x2F;p&gt;
&lt;p&gt;I wanted to give my blog readers a small preview of the presentation.&lt;&#x2F;p&gt;
&lt;p&gt;The evolution of AI is unfolding at an unprecedented pace, moving beyond foundational models like ChatGPT to a future where AI influences every aspect of our lives and businesses. This transformation is not just about improving existing technologies, but also about innovating new ones, pushing the boundaries of what AI can achieve.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;Custom AI Models and Data Privacy&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;One of the most significant advancements is the development of custom AI models. By integrating proprietary data, companies can create tailored AI solutions that offer more relevant, accurate responses, enhancing user experiences and operational efficiency. However, this approach raises important data privacy and security concerns, necessitating strict adherence to legal frameworks and ethical practices.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;Vector Stores and Graph Data&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;The role of vector stores and graph data in enhancing AI’s capabilities cannot be overstated. These technologies improve the accuracy and relevance of information retrieval, significantly boosting the performance of AI models. By leveraging these tools, businesses can achieve more sophisticated data analysis, leading to better decision-making and innovation.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;The Rise of Specialized AI Models&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;The trend towards specialized, purpose-built AI models is gaining momentum. These models are designed to address specific business needs, operating closer to the data source and enabling real-time processing. This shift not only reduces costs and latency but also enhances privacy and regulatory compliance, marking a significant departure from one-size-fits-all solutions.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;AI in Wearable and Embedded Devices&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;AI’s integration into wearable and embedded devices is opening new avenues for innovation. From smart glasses offering real-time information to embedded AI in medical devices for enhanced diagnostics, the possibilities are endless. However, this also introduces challenges around privacy, data security, and the potential for AI inaccuracies.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;Content Creation Revolutionized&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;Generative AI is revolutionizing content creation, offering tools that can transform text into video or music. This innovation could dramatically change marketing, storytelling, and customer engagement, allowing for more personalized, creative content without the need for extensive resources.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;Next-Generation Neural Networks&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;As we look beyond current AI models, next-generation neural networks promise even greater advancements. Models like Mamba, Neurosymbolic AI, and self-correcting models in reinforcement learning are pioneering more efficient, accurate, and adaptable AI solutions, suitable for complex decision-making and problem-solving across various domains.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;AI Agent Communication and Collaboration&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;The future also holds promise for AI agent-to-agent communication, enabling more complex, collaborative tasks. This could revolutionize fields like logistics, customer service, and software development, showcasing the potential for AI agents to work together synergistically.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;Marketplaces of AI Agents&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;The emergence of AI agent marketplaces is another exciting development, offering customized AI solutions for a wide range of applications. This democratizes access to AI, allowing individuals and businesses to leverage specialized AI tools for innovation and efficiency.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;Conclusion: Navigating the AI Landscape&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;As we navigate this rapidly evolving AI landscape, the emphasis on strategic adoption, ethical considerations, and data privacy becomes paramount. The future of AI promises immense potential for innovation and transformation across industries. However, realizing this potential requires visionary leadership, a commitment to ethical practices, and a proactive approach to technology integration. The journey through the AI landscape is complex, but ripe with opportunities for those ready to embrace the future of technology.&lt;&#x2F;p&gt;
&lt;p&gt;This presentation is being co-presented through &lt;a href=&quot;https:&#x2F;&#x2F;www.intecconsultants.com&#x2F;&quot;&gt;InTec Consultants&lt;&#x2F;a&gt; and &lt;a href=&quot;https:&#x2F;&#x2F;appliedcuriosity.ai&#x2F;&quot;&gt;Applied Curiosity&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;iframe loading=&quot;lazy&quot; class=&quot;wp-embedded-content&quot; sandbox=&quot;allow-scripts&quot; security=&quot;restricted&quot; style=&quot;position: absolute; clip: rect(1px, 1px, 1px, 1px);&quot; title=&quot;“AI Tools Beyond ChatGPT” — Akron-Area AITP&quot; src=&quot;https:&#x2F;&#x2F;akron-aitp.org&#x2F;ai-tools-beyond-chatgpt&#x2F;embed&#x2F;#?secret=cFoibpWXrR#?secret=l8ICNBPvy0&quot; width=&quot;500&quot; height=&quot;282&quot; frameborder=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; scrolling=&quot;no&quot;&gt;&lt;&#x2F;iframe&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Create a Long Form Audio Book with Azure Speech service</title>
        <published>2023-09-22T07:32:40-05:00</published>
        <updated>2023-09-22T07:32:40-05:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2023/09/22/create-a-long-form-audio-book-with-azure-speech-service/"/>
        <id>https://shawndeggans.com/2023/09/22/create-a-long-form-audio-book-with-azure-speech-service/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2023/09/22/create-a-long-form-audio-book-with-azure-speech-service/">&lt;p&gt;Creating long-form audiobooks from your written content can be an incredible way to repurpose your content and reach a broader audience. By leveraging the Azure Speech Service, it becomes surprisingly straightforward to convert long textual content into audiobooks. In this article, we will demonstrate how to achieve this with a step-by-step guide and Python code.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;setting-up-azure-speech-service&quot;&gt;Setting up Azure Speech Service&lt;&#x2F;h2&gt;
&lt;p&gt;Before diving into the code, let’s first set up the Azure Speech Service:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Azure Subscription&lt;&#x2F;strong&gt;: If you don’t have one, you can create a &lt;a href=&quot;https:&#x2F;&#x2F;azure.com&#x2F;free&quot;&gt;free Azure subscription&lt;&#x2F;a&gt;.&lt;&#x2F;li&gt;
&lt;li&gt;&lt;strong&gt;Create a Speech Resource&lt;&#x2F;strong&gt;: Go to the Azure portal and create a new Speech resource.&lt;&#x2F;li&gt;
&lt;li&gt;&lt;strong&gt;Get Your Speech Resource Key and Region&lt;&#x2F;strong&gt;: After deploying your Speech resource, click on ‘Go to resource’. This will allow you to view and manage your keys. If you need additional details about Azure AI service resources, refer to the &lt;a href=&quot;https:&#x2F;&#x2F;docs.microsoft.com&#x2F;en-us&#x2F;azure&#x2F;cognitive-services&#x2F;speech-service&#x2F;overview#find-your-keys-and-location&quot;&gt;official documentation&lt;&#x2F;a&gt;.&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;With these steps completed, you are now ready to integrate the Azure Speech Service into your Python code.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;prerequisites&quot;&gt;Prerequisites&lt;&#x2F;h2&gt;
&lt;p&gt;To work with the code, ensure you have the following packages installed. You can do this in a Jupyter notebook:&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;%pip install azure-cognitiveservices-speech
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;%pip install markdown
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;%pip install beautifulsoup4
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;%pip install pydub
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;h2 id=&quot;converting-markdown-to-plain-text&quot;&gt;Converting Markdown to Plain Text&lt;&#x2F;h2&gt;
&lt;p&gt;First, let’s convert our markdown content to plain text. This ensures the reader doesn’t get distracted by markdown elements like hash symbols or bullets.&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;import markdown
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;from bs4 import BeautifulSoup
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;# Open the markdown file
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;with open(&amp;#39;.&#x2F;bronze&#x2F;target.md&amp;#39;, &amp;#39;r&amp;#39;) as f:
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    # Read the content of the file
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    contents = f.read()
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;# Convert the markdown to plain text
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;plain_text = markdown.markdown(contents)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;output = &amp;#39;&amp;#39;.join(BeautifulSoup(plain_text).findAll(text=True))
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;# Write the plain text to a new file
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;with open(&amp;#39;.&#x2F;bronze&#x2F;output.txt&amp;#39;, &amp;#39;w&amp;#39;) as f:
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    f.write(output)
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;h2 id=&quot;splitting-the-text&quot;&gt;Splitting the Text&lt;&#x2F;h2&gt;
&lt;p&gt;The Azure Speech Service can be a bit finicky with longer content. To avoid any issues, we’ll break the text into smaller chunks. This makes it easier for the service to process the text in a batch mode.&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;lines_per_file = 25
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;smallfile = None
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;file_index = 0
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;with open(&amp;#39;.&#x2F;bronze&#x2F;output.txt&amp;#39;) as bigfile:
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    for lineno, line in enumerate(bigfile):
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        if lineno % lines_per_file == 0:
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;            if smallfile:
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;                smallfile.close()
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;            file_index += 1
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;            small_filename = &amp;#39;.&#x2F;silver&#x2F;{0:0&amp;gt;3}file.txt&amp;#39;.format(file_index)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;            smallfile = open(small_filename, &amp;quot;w&amp;quot;)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        smallfile.write(line)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    if smallfile:
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        smallfile.close()
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;h2 id=&quot;setting-up-the-azure-speech-sdk&quot;&gt;Setting Up the Azure Speech SDK&lt;&#x2F;h2&gt;
&lt;p&gt;Before using the Azure Speech SDK, ensure it’s installed. If not, we’ll display an error message.&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;try:
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    import azure.cognitiveservices.speech as speechsdk
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;except ImportError:
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    print(&amp;quot;&amp;quot;&amp;quot;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    Importing the Speech SDK for Python failed.
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    Refer to
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    https:&#x2F;&#x2F;docs.microsoft.com&#x2F;azure&#x2F;cognitive-services&#x2F;speech-service&#x2F;quickstart-text-to-speech-python for
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    installation instructions.
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    &amp;quot;&amp;quot;&amp;quot;)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    import sys
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    sys.exit(1)
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Make sure to add your Azure Speech key and service region:&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;# Replace with your own subscription key and service region (e.g., &amp;quot;westus&amp;quot;).
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;speech_key, service_region = &amp;quot;YOUR_SPEECH_KEY&amp;quot;, &amp;quot;YOUR_SERVICE_REGION&amp;quot;
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;h2 id=&quot;text-to-audio-conversion&quot;&gt;Text to Audio Conversion&lt;&#x2F;h2&gt;
&lt;p&gt;Now, for the fun part. We’ll convert the small text files into individual audio segments.&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;from pydub import AudioSegment
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;def speech_synthesis_to_mp3_file(small_text_file):
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    &amp;quot;&amp;quot;&amp;quot;Performs speech synthesis to an mp3 file&amp;quot;&amp;quot;&amp;quot;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    # Setup for Azure Speech SDK
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    speech_config = speechsdk.SpeechConfig(subscription=speech_key, region=service_region)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    speech_config.set_speech_synthesis_output_format(speechsdk.SpeechSynthesisOutputFormat.Audio16Khz32KBitRateMonoMp3)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    speech_config.speech_synthesis_voice_name = &amp;quot;en-US-NancyNeural&amp;quot;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    # Initialize a speech synthesizer object
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    speech_synthesizer = speechsdk.SpeechSynthesizer(speech_config=speech_config)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    # Initialize an empty AudioSegment object for accumulating audio data
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    combined_audio = AudioSegment.empty()
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    # Process the text file and perform speech synthesis
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    with open(&amp;#39;.&#x2F;{v}&amp;#39;.format(v=small_text_file)) as f:
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        text = f.read()
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        lines = text.split(&amp;quot;. &amp;quot;)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        for i, line in enumerate(lines):
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;            result = speech_synthesizer.speak_text_async(line + &amp;quot;.&amp;quot;).get()
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;            
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;            if result.reason == speechsdk.ResultReason.SynthesizingAudioCompleted:
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;                audio_chunk = AudioSegment(
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;                    data=bytes(result.audio_data),
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;                    sample_width=2,
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;                    frame_rate=16000,
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;                    channels=1
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;                )
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;                combined_audio += audio_chunk
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;            elif result.reason == speechsdk.ResultReason.Canceled:
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;                cancellation_details = result.cancellation_details
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;                print(f&amp;quot;Speech synthesis canceled: {cancellation_details.reason}&amp;quot;)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;                if cancellation_details.reason == speechsdk.CancellationReason.Error:
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;                    print(f&amp;quot;Error details: {cancellation_details.error_details}&amp;quot;)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    # Generate the output filename
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    to_filter = small_text_file
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    to_filter = &amp;quot;&amp;quot;.join(_ for _ in to_filter if _ in &amp;quot;1234567890&amp;quot;)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    file_name = f&amp;quot;.&#x2F;gold&#x2F;{to_filter}.mp3&amp;quot;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    # Save the accumulated audio data to an mp3 file
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    combined_audio.export(file_name, format=&amp;quot;mp3&amp;quot;)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    print(f&amp;quot;Speech synthesized and the audio was saved to {file_name}&amp;quot;)
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Next, let’s iterate through each of these files and convert them:&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;import os
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;directory = &amp;#39;silver&amp;#39;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;for filename in os.listdir(directory):
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    f = os.path.join(directory, filename)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    size = os.stat(f).st_size
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    if (os.path.isfile(f)) and (size!=0):
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        speech_synthesis_to_mp3_file(f)
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;h2 id=&quot;combining-audio-segments&quot;&gt;Combining Audio Segments&lt;&#x2F;h2&gt;
&lt;p&gt;To make listening easier, we’ll combine all these segments into one audio file:&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;from pydub import AudioSegment
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;import os
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;combined_audio = AudioSegment.empty()
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;file_list = os.listdir(&amp;#39;.&#x2F;gold&amp;#39;)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;sorted_list = sorted(file_list)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;for filename in sorted_list:
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    audiofile = AudioSegment.from_mp3(&amp;#39;.&#x2F;gold&#x2F;{f}&amp;#39;.format(f=filename))
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    combined_audio += audiofile
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;combined_audio.export(&amp;#39;.&#x2F;output&#x2F;final.mp3&amp;#39;, format=&amp;#39;mp3&amp;#39;)
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;h2 id=&quot;cleanup&quot;&gt;Cleanup&lt;&#x2F;h2&gt;
&lt;p&gt;Lastly, it’s always a good practice to clean up any intermediate files to keep your workspace tidy:&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;import os
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;import glob
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;directories = [&amp;#39;.&#x2F;gold&amp;#39;, &amp;#39;.&#x2F;silver&amp;#39;, &amp;#39;.&#x2F;bronze&amp;#39;]
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;for directory in directories:
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    files = glob.glob(directory + &amp;#39;&#x2F;*&amp;#39;)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    for file in files:
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        os.remove(file)
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;h2 id=&quot;wrapping-up&quot;&gt;Wrapping Up&lt;&#x2F;h2&gt;
&lt;p&gt;This process is perfect for turning longer documents or even blog posts into audio content. Whether you’re going for a walk, a run, or just resting your eyes, now you can listen to your content on-the-go.&lt;&#x2F;p&gt;
&lt;p&gt;Remember, the directories used (&lt;code&gt;bronze&lt;&#x2F;code&gt;, &lt;code&gt;silver&lt;&#x2F;code&gt;, &lt;code&gt;gold&lt;&#x2F;code&gt;, and &lt;code&gt;output&lt;&#x2F;code&gt;) are essential for the project’s structure, so ensure they exist in your workspace before running the code.&lt;&#x2F;p&gt;
&lt;p&gt;Happy listening!&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Introduction to Azure IoT Hub and Related Services SDKs</title>
        <published>2022-12-30T08:45:00-06:00</published>
        <updated>2023-08-15T08:18:21-05:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2022/12/30/introduction-to-azure-iot-hub-and-related-services-sdks/"/>
        <id>https://shawndeggans.com/2022/12/30/introduction-to-azure-iot-hub-and-related-services-sdks/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2022/12/30/introduction-to-azure-iot-hub-and-related-services-sdks/">&lt;ol&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;#introduction-to-azure-iot-hub-and-related-services-sdks&quot;&gt;Introduction to Azure IoT Hub and Related Services SDKs&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;#what-are-azure-iot-hub-device-sdks&quot;&gt;What are Azure IoT Hub Device SDKs?&lt;&#x2F;a&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;#a-small-code-example-in-python&quot;&gt;A small code example in Python&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;#what-is-azure-iot-edge&quot;&gt;What is Azure IoT Edge?&lt;&#x2F;a&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;#a-small-code-example&quot;&gt;A small code example&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;#what-about-iot-central&quot;&gt;What about IoT Central?&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;#azure-iot-hub-device-sdks&quot;&gt;Azure IoT Hub Device SDKs&lt;&#x2F;a&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;#overview-of-the-different-device-sdks-available&quot;&gt;Overview of the different device SDKs available&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;#device-sdks-for-specific-programming-languages-and-platforms&quot;&gt;Device SDKs for specific programming languages and platforms&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;#connecting-devices-to-azure-iot-hub-using-the-device-sdks&quot;&gt;Connecting devices to Azure IoT Hub using the device SDKs&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;#azure-iot-hub-service-and-management-sdks&quot;&gt;Azure IoT Hub Service and Management SDKs&lt;&#x2F;a&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;#overview-of-the-different-service-sdks-available&quot;&gt;Overview of the different service SDKs available&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;#service-sdks-for-specific-programming-languages-and-platforms&quot;&gt;Service SDKs for specific programming languages and platforms&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;#using-the-management-sdks-to-communicate-with-devices-and-manage-iot-hub-resources&quot;&gt;Using the management SDKs to communicate with devices and manage IoT Hub resources&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;#azure-iot-services-sdks&quot;&gt;Azure IoT Services SDKs&lt;&#x2F;a&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;#overview-of-the-azure-iot-services-sdks-available&quot;&gt;Overview of the Azure IoT services SDKs available&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;#azure-maps&quot;&gt;Azure Maps&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;#azure-sphere&quot;&gt;Azure Sphere&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;#digital-twins&quot;&gt;Digital Twins&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;#object-anchors&quot;&gt;Object Anchors&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;#remote-rendering&quot;&gt;Remote Rendering&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;#spatial-anchors&quot;&gt;Spatial Anchors&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;#time-series-insights&quot;&gt;Time Series Insights&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;#other-services&quot;&gt;Other Services&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;#choosing-the-right-azure-iot-hub-sdk&quot;&gt;Choosing the Right Azure IoT Hub SDK&lt;&#x2F;a&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;#factors-to-consider-when-choosing-an-azure-iot-hub-sdk&quot;&gt;Factors to consider when choosing an Azure IoT Hub SDK&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;#best-practices-for-using-azure-iot-hub-sdks-in-different-scenarios&quot;&gt;Best practices for using Azure IoT Hub SDKs in different scenarios&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;#conclusion-and-future-directions&quot;&gt;Conclusion and Future Directions&lt;&#x2F;a&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;#the-potential-of-azure-iot-hub-sdks-to-drive-business-value&quot;&gt;The potential of Azure IoT Hub SDKs to drive business value&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;#emerging-trends-and-technologies-in-the-iot-space&quot;&gt;Emerging trends and technologies in the IoT space&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;#closing&quot;&gt;Closing&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;h2 id=&quot;introduction-to-azure-iot-hub-and-related-services-sdks&quot;&gt;Introduction to Azure IoT Hub and Related Services SDKs&lt;&#x2F;h2&gt;
&lt;p&gt;In February 2021, I wrote an article exploring the differences between Azure IoT Hub Devices and Modules. It was well-received and remains one of my most-visited blog posts. Now, with more experience in device and Edge development, I’d like to revisit the topic, but expand it to include other types of Azure IoT SDKs. There have been changes to the Azure IoT Hub device landscape, and I’m better equipped to provide useful information about the various SDKs available.&lt;&#x2F;p&gt;
&lt;p&gt;Microsoft has these divided into three basic SDK types.&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Device SDKs&lt;&#x2F;li&gt;
&lt;li&gt;Service SDKs&lt;&#x2F;li&gt;
&lt;li&gt;Management SDKs&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;To make this as simple as possible, I like to think of the SDKs as serving these purposes:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Device – this code runs on the device either as bare metal or in a container. It represents either a leaf device or an Edge gateway. If it connects to IoT to feed it data, it needs this SDK.&lt;&#x2F;li&gt;
&lt;li&gt;Service – this code enables me to manage my devices with updates or other forms of communication using IoT Hub. This involves administrative tasks, all of which are focused on using the IoT Hub API to interact with the devices.&lt;&#x2F;li&gt;
&lt;li&gt;Management is more complex, since these are SDKs designed to manage your IoT Hub or Hubs. I could use this to monitor my IoT Hub, create or delete Hub instances, and keep track of my shared access policies.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;This document focuses on the SDKs and their updates to match the latest versions of Azure IoT services. Use this as a starting point for further research. If you spot any mistakes or think I’ve missed something important, please let me know in the comments. I’m always open to feedback from my readers. I’m well aware that I make mistakes, and I’m always learning.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;what-are-azure-iot-hub-device-sdks&quot;&gt;What are Azure IoT Hub Device SDKs?&lt;&#x2F;h2&gt;
&lt;p&gt;Azure IoT Hub Device SDKs provide APIs and libraries that allow developers to create applications for IoT devices and connect them to Azure IoT Hub. These SDKs support a wide range of programming languages and platforms, and offer unique sets of features tailored to the language and platform. Common use cases include sending telemetry data, receiving commands, connecting devices using various protocols, authenticating devices, handling messaging, managing device twins, and receiving notifications.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;a-small-code-example-in-python&quot;&gt;A small code example in Python&lt;&#x2F;h3&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;import os
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;from azure.iot.device import IoTHubDeviceClient
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;# Retrieve the connection string for the device from an environment variable
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;conn_str = os.getenv(&amp;quot;IOTHUB_DEVICE_CONNECTION_STRING&amp;quot;)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;# Create an IoT Hub client
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;client = IoTHubDeviceClient.create_from_connection_string(conn_str)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;# Send a message to IoT Hub
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;message = &amp;quot;Hello, I am a device using IoT Hub!&amp;quot;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;client.send_message(message)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;print(&amp;quot;Sent message: {}&amp;quot;.format(message))
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;# Disconnect the client
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;client.disconnect()
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;This code imports the necessary modules from the Azure IoT Hub Device SDK and creates an IoT Hub client. It then sends a message to IoT Hub and disconnects the client when finished.&lt;&#x2F;p&gt;
&lt;p&gt;To use this code, you must have the Azure IoT Hub Device SDK installed and have a connection string for a device registered with IoT Hub.&lt;&#x2F;p&gt;
&lt;p&gt;Unlike many vendor devices, the SDKs present you with the opportunity to create your own IoT devices. You may have heard of IoT Edge, so let’s address what that is now.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;what-is-azure-iot-edge&quot;&gt;What is Azure IoT Edge?&lt;&#x2F;h2&gt;
&lt;p&gt;Azure IoT Edge is a fully managed service that enables developers to deploy cloud intelligence directly onto IoT devices. It allows them to build, deploy, and manage applications that run on edge devices and leverage cloud-based services and data to perform tasks such as data processing, analytics, machine learning, and more.&lt;&#x2F;p&gt;
&lt;p&gt;Azure IoT Edge consists of three main components:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;Edge Modules: Small, lightweight pieces of code that run on edge devices and perform specific tasks. Edge modules can be written in a variety of programming languages, including C#, Java, Python, and more.&lt;&#x2F;li&gt;
&lt;li&gt;IoT Edge Runtime: A lightweight container that runs on edge devices and manages the lifecycle of edge modules. The IoT Edge runtime can be installed on a wide range of operating systems and devices, including Windows, Linux, and various embedded platforms.&lt;&#x2F;li&gt;
&lt;li&gt;Azure IoT Hub: A cloud-based service that acts as the central hub for communication between edge devices and the cloud. IoT Hub provides a secure and scalable platform for managing devices, sending commands and notifications to devices, and receiving telemetry data from devices.&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;Azure IoT Edge enables developers to create and deploy intelligent edge solutions that bring the power of the cloud to the edge of the network. These solutions can perform tasks such as data processing, analytics, machine learning, and more on edge devices, reducing the amount of data that needs to be sent to the cloud and enabling fast decision-making and action. Azure IoT Edge is especially useful for scenarios where latency or connectivity issues make it difficult to rely solely on the cloud for data processing and analysis.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;a-small-code-example&quot;&gt;A small code example&lt;&#x2F;h3&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;import os
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;from azure.iot.edge.module_client import ModuleClient
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;# Create a module client
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;client = ModuleClient.create_from_edge_environment()
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;# Connect the module client to IoT Hub
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;client.connect()
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;# Send a message to IoT Hub
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;message = &amp;quot;Hello from IoT Edge!&amp;quot;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;client.send_message_to_output(&amp;quot;channel1&amp;quot;, message)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;print(&amp;quot;Sent message: {}&amp;quot;.format(message))
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;# Disconnect the module client
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;client.disconnect()
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;This code imports the necessary modules from the Azure IoT Edge Python SDK and creates a module client. It then uses the module client to connect to IoT Hub, send a message, and disconnect.&lt;&#x2F;p&gt;
&lt;p&gt;To use this code, you must have the Azure IoT Edge Python SDK installed and an IoT Edge runtime running on your device. Additionally, an IoT Edge module must be deployed to the device with an output binding named “channel1”.&lt;&#x2F;p&gt;
&lt;p&gt;These are basic approaches to the device and modules, but I wanted to give you an idea of how easy they can be to use. Setting up IoT Edge for development involves some complexity, but the ability to run containerized cloud solutions at the edge makes it worthwhile.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;what-about-iot-central&quot;&gt;&lt;strong&gt;What about IoT Central?&lt;&#x2F;strong&gt;&lt;&#x2F;h3&gt;
&lt;p&gt;Many of the concepts covered in this article are also true or will work with IoT Central. For this article, I’m focusing on IoT Hub. I will have a future article dedicated to IoT Central and it’s SDKs and APIs.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;azure-iot-hub-device-sdks&quot;&gt;Azure IoT Hub Device SDKs&lt;&#x2F;h2&gt;
&lt;p&gt;Azure IoT Hub Device SDKs are software development kits (SDKs) that enable developers to create applications that run on IoT devices and connect them to Azure IoT Hub. These SDKs provide a set of APIs and libraries that allow devices to perform basic and complex IoT device to cloud communications and commands.&lt;&#x2F;p&gt;
&lt;p&gt;Azure IoT Hub supports device SDKs for a wide range of programming languages and platforms, including C, C#, Java, JavaScript, Python, and a few that are platform specific. Each device SDK provides a set of APIs and libraries tailored to the programming language and platform, making it easy for developers to create applications that interact with Azure IoT Hub.&lt;&#x2F;p&gt;
&lt;p&gt;Some common use cases for Azure IoT Hub Device SDKs include:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Sending telemetry data from devices to IoT Hub&lt;&#x2F;li&gt;
&lt;li&gt;Receiving commands from IoT Hub and executing them on devices&lt;&#x2F;li&gt;
&lt;li&gt;Connecting devices to IoT Hub using various protocols, such as MQTT, AMQP, HTTP, and more&lt;&#x2F;li&gt;
&lt;li&gt;Authenticating devices with IoT Hub using various authentication mechanisms, such as shared access signatures (SAS) tokens and X.509 certificates&lt;&#x2F;li&gt;
&lt;li&gt;Handling device-to-cloud and cloud-to-device messaging in a reliable and secure manner&lt;&#x2F;li&gt;
&lt;li&gt;Managing device twins, which are JSON documents that store metadata about devices in IoT Hub&lt;&#x2F;li&gt;
&lt;li&gt;Receiving notifications about device connections, disconnections, and other events from IoT Hub&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;overview-of-the-different-device-sdks-available&quot;&gt;Overview of the different device SDKs available&lt;&#x2F;h3&gt;
&lt;ul&gt;
&lt;li&gt;C: The C Device SDK is a lightweight, portable library that enables C-based devices to connect to Azure IoT Hub and interact with the cloud. It supports various protocols, including MQTT, AMQP, HTTP, and more, and provides APIs for tasks such as sending telemetry data, receiving commands, and authenticating with the IoT Hub.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;#include &amp;lt;stdio.h&amp;gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;#include &amp;lt;stdlib.h&amp;gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;#include &amp;quot;iothub_client.h&amp;quot;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;#include &amp;quot;iothub_message.h&amp;quot;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;#include &amp;quot;azure_c_shared_utility&#x2F;threadapi.h&amp;quot;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;#include &amp;quot;azure_c_shared_utility&#x2F;crt_abstractions.h&amp;quot;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;#include &amp;quot;azure_c_shared_utility&#x2F;platform.h&amp;quot;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;int main(void)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;{
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    &#x2F;&#x2F; Retrieve the connection string for the device from an environment variable
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    char* conn_str = getenv(&amp;quot;IOTHUB_DEVICE_CONNECTION_STRING&amp;quot;);
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    &#x2F;&#x2F; Create an IoT Hub client
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    IOTHUB_CLIENT_HANDLE client = IoTHubClient_CreateFromConnectionString(conn_str);
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    if (client == NULL)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    {
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        (void)printf(&amp;quot;ERROR: iothub_client_create failed\\n&amp;quot;);
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    }
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    else
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    {
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        &#x2F;&#x2F; Send a message to IoT Hub
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        IOTHUB_MESSAGE_HANDLE message = IoTHubMessage_CreateFromString(&amp;quot;Hello, Azure IoT Hub!&amp;quot;);
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        if (IoTHubClient_SendEventAsync(client, message, NULL, NULL) != IOTHUB_CLIENT_OK)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        {
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;            (void)printf(&amp;quot;ERROR: IoTHubClient_SendEventAsync failed\\n&amp;quot;);
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        }
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        else
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        {
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;            (void)printf(&amp;quot;Sent message: Hello, Azure IoT Hub!\\n&amp;quot;);
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        }
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        IoTHubMessage_Destroy(message);
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    }
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    &#x2F;&#x2F; Disconnect the client
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    IoTHubClient_Destroy(client);
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    return 0;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;}
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;This code includes the necessary header files from the Azure IoT Hub C Device SDK and uses them to create an IoT Hub client. It then sends a message to IoT Hub using the client, before disconnecting the client when complete.&lt;&#x2F;p&gt;
&lt;p&gt;To use this code, you must have the Azure IoT Hub C Device SDK installed on your machine and have a connection string for a device registered with IoT Hub.&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;C#: The C# Device SDK is a fully-featured library that enables C#-based devices to connect to Azure IoT Hub and interact with the cloud. It supports various protocols, including MQTT, AMQP, HTTP, and more, and provides APIs for tasks such as sending telemetry data, receiving commands, and authenticating with the IoT Hub. It also includes support for advanced features such as device twins and direct method invocations.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;using Microsoft.Azure.Devices.Client;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;using System;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;using System.Text;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;using System.Threading.Tasks;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;namespace ConsoleApp
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;{
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    class Program
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    {
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        static void Main(string[] args)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        {
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;            &#x2F;&#x2F; Retrieve the connection string for the device from an environment variable
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;            string conn_str = Environment.GetEnvironmentVariable(&amp;quot;IOTHUB_DEVICE_CONNECTION_STRING&amp;quot;);
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;            &#x2F;&#x2F; Create an IoT Hub client
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;            DeviceClient client = DeviceClient.CreateFromConnectionString(conn_str);
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;            &#x2F;&#x2F; Send a message to IoT Hub
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;            string message = &amp;quot;Hello, Azure IoT Hub!&amp;quot;;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;            byte[] message_bytes = Encoding.UTF8.GetBytes(message);
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;            Message iot_hub_message = new Message(message_bytes);
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;            client.SendEventAsync(iot_hub_message).Wait();
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;            Console.WriteLine(&amp;quot;Sent message: {0}&amp;quot;, message);
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;            &#x2F;&#x2F; Disconnect the client
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;            client.CloseAsync().Wait();
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        }
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    }
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;}
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;This code imports the necessary namespaces from the Azure IoT Hub C# Device SDK and creates an IoT Hub client. It then sends a message to IoT Hub, before disconnecting the client.&lt;&#x2F;p&gt;
&lt;p&gt;To use this code, you must install the Azure IoT Hub C# Device SDK on your machine and obtain a connection string for a device registered with IoT Hub.&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Java: The Java Device SDK is a fully-featured library that enables Java-based devices to connect to Azure IoT Hub and interact with the cloud. It supports various protocols, including MQTT, AMQP, HTTP, and more, and provides APIs for tasks such as sending telemetry data, receiving commands, and authenticating with the IoT Hub. It also includes support for advanced features such as device twins and direct method invocations.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;import com.microsoft.azure.sdk.iot.device.DeviceClient;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;import com.microsoft.azure.sdk.iot.device.IotHubClientProtocol;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;import com.microsoft.azure.sdk.iot.device.Message;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;public class Main
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;{
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    public static void main(String[] args) throws Exception
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    {
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        &#x2F;&#x2F; Retrieve the connection string for the device from an environment variable
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        String conn_str = System.getenv(&amp;quot;IOTHUB_DEVICE_CONNECTION_STRING&amp;quot;);
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        &#x2F;&#x2F; Create an IoT Hub client
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        IotHubClientProtocol protocol = IotHubClientProtocol.AMQPS;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        DeviceClient client = new DeviceClient(conn_str, protocol);
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        client.open();
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        &#x2F;&#x2F; Send a message to IoT Hub
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        String message = &amp;quot;Hello!&amp;quot;;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        Message iot_hub_message = new Message(message);
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        client.sendEventAsync(iot_hub_message);
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        System.out.println(&amp;quot;Sent message: &amp;quot; + message);
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        &#x2F;&#x2F; Disconnect the client
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        client.close();
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    }
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;}
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;This code includes the necessary namespaces from the Azure IoT Hub Java Device SDK and uses them to create an IoT Hub client. It then uses the client to connect to IoT Hub, send a message to IoT Hub, and disconnect the client when it’s finished.&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;JavaScript: The JavaScript Device SDK is a fully-featured library that enables JavaScript-based devices to connect to Azure IoT Hub and interact with the cloud. It supports various protocols, including MQTT, AMQP, HTTP, and more, and provides APIs for tasks such as sending telemetry data, receiving commands, and authenticating with the IoT Hub. It also includes support for advanced features such as device twins and direct method invocations.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;const { Client } = require(&amp;#39;azure-iot-device&amp;#39;);
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;&#x2F;&#x2F; Retrieve the connection string for the device from an environment variable
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;const conn_str = process.env.IOTHUB_DEVICE_CONNECTION_STRING;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;&#x2F;&#x2F; Create an IoT Hub client
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;const client = Client.fromConnectionString(conn_str, Client.IotHubTransport);
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;&#x2F;&#x2F; Connect the client
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;client.open((err) =&amp;gt; {
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    if (err) {
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        console.error(&amp;#39;Error opening the client: &amp;#39; + err.message);
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    } else {
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        &#x2F;&#x2F; Send a message to IoT Hub
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        const message = new Message(&amp;#39;Hello, Azure IoT Hub!&amp;#39;);
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        client.sendEvent(message, (send_err) =&amp;gt; {
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;            if (send_err) {
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;                console.error(&amp;#39;Error sending the message: &amp;#39; + send_err.message);
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;            } else {
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;                console.log(&amp;#39;Sent message: &amp;#39; + message.getData());
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;            }
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        });
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    }
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;});
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;This code imports the necessary modules from the Azure IoT Hub JavaScript Device SDK, creating an IoT Hub client. It then connects to IoT Hub and sends a message.&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Python: The Python Device SDK is a fully-featured library that enables Python-based devices to connect to Azure IoT Hub and interact with the cloud. It supports various protocols, including MQTT, AMQP, HTTP, and more, and provides APIs for tasks such as sending telemetry data, receiving commands, and authenticating with the IoT Hub. It also includes support for advanced features such as device twins and direct method invocations.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;import os
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;from azure.iot.edge.module_client import ModuleClient
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;# Create a module client
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;client = ModuleClient.create_from_edge_environment()
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;# Connect the module client to IoT Hub
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;client.connect()
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;# Send a message to IoT Hub
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;message = &amp;quot;Hello from IoT Edge!&amp;quot;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;client.send_message_to_output(&amp;quot;output1&amp;quot;, message)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;print(&amp;quot;Sent message: {}&amp;quot;.format(message))
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;# Disconnect the module client
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;client.disconnect()
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;h3 id=&quot;device-sdks-for-specific-programming-languages-and-platforms&quot;&gt;Device SDKs for specific programming languages and platforms&lt;&#x2F;h3&gt;
&lt;p&gt;&lt;strong&gt;Azure RTOS&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;Azure RTOS (Real-Time Operating System) is a suite of RTOS kernels and middleware components optimized for use with small, resource-constrained devices running on Arm Cortex-M microcontrollers. It provides developers with a robust and scalable platform for building IoT solutions that require real-time performance, low power consumption, and a small footprint.&lt;&#x2F;p&gt;
&lt;p&gt;The Azure RTOS middleware is a set of software components that provide additional functionality and support for developing IoT solutions. These components include:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Networking libraries and protocols such as TCP&#x2F;IP, HTTP, HTTPS, and MQTT, which allow devices to connect to the cloud and other devices over the network.&lt;&#x2F;li&gt;
&lt;li&gt;Security libraries and protocols such as SSL&#x2F;TLS, X.509 certificates, and secure boot, which allow devices to authenticate and encrypt communication with the cloud and other devices.&lt;&#x2F;li&gt;
&lt;li&gt;A file system library that allows devices to store and retrieve data on external storage devices such as SD cards.&lt;&#x2F;li&gt;
&lt;li&gt;The ThreadX RTOS kernel, which provides a lightweight, scalable, and reliable platform for building real-time applications on Arm Cortex-M microcontrollers.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Azure RTOS is available for a variety of Arm Cortex-M microcontrollers, including those from STMicro.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;FreeRTOS&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;FreeRTOS is an open-source real-time operating system (RTOS) for building small, resource-constrained devices for the Internet of Things (IoT). It is designed to be lightweight, scalable, and reliable, offering a range of features and services that are beneficial for constructing IoT solutions, including:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Task scheduling and management&lt;&#x2F;li&gt;
&lt;li&gt;Memory management&lt;&#x2F;li&gt;
&lt;li&gt;Timers and software timers&lt;&#x2F;li&gt;
&lt;li&gt;Inter-task communication and synchronization&lt;&#x2F;li&gt;
&lt;li&gt;Networking libraries and protocols, such as TCP&#x2F;IP, HTTP, and MQTT&lt;&#x2F;li&gt;
&lt;li&gt;Security libraries and protocols, such as SSL&#x2F;TLS, X.509 certificates, and secure boot&lt;&#x2F;li&gt;
&lt;li&gt;File system libraries&lt;&#x2F;li&gt;
&lt;li&gt;Device drivers and middleware components for various hardware peripherals&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;FreeRTOS is available for a wide range of microcontrollers and platforms, including those from Atmel, NXP, and STMicroelectronics. It has a large community of developers and users, and is regularly updated and improved.&lt;&#x2F;p&gt;
&lt;p&gt;Azure IoT provides libraries and tools to connect FreeRTOS-based devices to its services, such as the IoT Hub, IoT Central, and IoT Edge. This enables developers to create IoT solutions that benefit from the scalability, security, and reliability of the Azure cloud.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;Bare Metal (Azure SDK for Embedded C)&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;The Azure SDK for Embedded C is a software development kit (SDK) that enables developers to build IoT solutions using the C programming language and Microsoft Azure cloud services. It provides libraries, tools, and documentation to easily connect C-based devices to Azure IoT services such as IoT Hub, IoT Central, and IoT Edge, and construct IoT solutions that benefit from the scalability, security, and reliability of the Azure cloud.&lt;&#x2F;p&gt;
&lt;p&gt;The SDK supports a variety of microcontrollers and platforms from manufacturers like Atmel, NXP, and STMicroelectronics. It offers support for protocols and features like MQTT, AMQP, HTTP, device twins, and direct method invocations, and provides APIs for tasks like sending telemetry data, receiving commands, and authenticating with Azure IoT services.&lt;&#x2F;p&gt;
&lt;p&gt;The Azure SDK for Embedded C is open source and constantly updated and improved by a community of developers and users. It is lightweight, portable, and easy to use, and can be integrated into various development environments and toolchains.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;connecting-devices-to-azure-iot-hub-using-the-device-sdks&quot;&gt;Connecting devices to Azure IoT Hub using the device SDKs&lt;&#x2F;h3&gt;
&lt;p&gt;To connect a device to Azure IoT Hub using a device SDK, you need to:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;Install the device SDK on your device or development machine. The device SDK provides the necessary libraries and tools to build IoT solutions that can connect to Azure IoT Hub.&lt;&#x2F;li&gt;
&lt;li&gt;Register your device with Azure IoT Hub. This step involves creating a device identity in IoT Hub and obtaining a connection string that uniquely identifies your device. The connection string includes the device’s ID, hub name, and authentication key, and is used to authenticate the device with IoT Hub when it connects.&lt;&#x2F;li&gt;
&lt;li&gt;Use the device SDK to create an IoT Hub client on your device. The IoT Hub client is responsible for establishing and maintaining a connection with IoT Hub, as well as sending and receiving messages.&lt;&#x2F;li&gt;
&lt;li&gt;Use the IoT Hub client to connect to IoT Hub. This typically involves providing the client with the connection string and specifying the protocol to use (such as MQTT or AMQP). The client will then establish a connection with IoT Hub and authenticate using the information in the connection string.&lt;&#x2F;li&gt;
&lt;li&gt;Use the IoT Hub client to send messages to IoT Hub and receive messages from IoT Hub. The device SDK provides APIs for tasks such as sending telemetry data, receiving commands, and interacting with device twins and direct methods.&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;This article provided a basic overview of the device SDKs for the languages and platforms supported for Azure IoT Hub. The example code was meant to give a glimpse of how it works, but not of real world workloads. In most cases, you’ll use the local device libraries to connect to sensors and collect data to send to IoT Hub. This usually requires developing an asynchronous listener to capture the telemetry data and send it in a message to IoT Hub. This functionality is beyond the scope of this article, but I am working on a newer set of Agriculture code for one of my devices. I will post it here soon, which will provide a more complete solution to device development on a Raspberry Pi.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;azure-iot-hub-service-and-management-sdks&quot;&gt;Azure IoT Hub Service and Management SDKs&lt;&#x2F;h2&gt;
&lt;p&gt;The Azure IoT Hub Service SDKs are a set of software development kits (SDKs) that enable developers to build applications that interact with Azure IoT Hub. They provide APIs and libraries in various programming languages and platforms, allowing developers to create, manage, and interact with devices and other resources in IoT Hub. The SDKs are available for .NET, Java, Node.js, Python, and Go, and offer functions such as sending and receiving messages, creating and updating devices, managing device twins and direct methods, and monitoring device health and status.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;overview-of-the-different-service-sdks-available&quot;&gt;Overview of the different service SDKs available&lt;&#x2F;h3&gt;
&lt;p&gt;The Azure IoT Hub Service SDKs are a set of software development kits (SDKs) that enable developers to build applications that interact with Azure IoT Hub. They provide APIs and libraries in various programming languages and platforms, allowing developers to create, manage, and interact with devices and other resources in IoT Hub. From the choices, it’s clear that these SDKs are designed to supplement or amplify the capabilities of IoT Hub.&lt;&#x2F;p&gt;
&lt;p&gt;These are just a few of the possible uses for the Service SDK:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Sending and receiving messages to and from devices&lt;&#x2F;li&gt;
&lt;li&gt;Creating, updating, and deleting devices in IoT Hub&lt;&#x2F;li&gt;
&lt;li&gt;Managing device twins and direct methods&lt;&#x2F;li&gt;
&lt;li&gt;Monitoring the health and status of devices and other resources in IoT Hub&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;A couple of specific use cases I can imagine are:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;An integration with an application or an enterprise system that is not available through the standard IoT Hub integration channels.&lt;&#x2F;li&gt;
&lt;li&gt;Updating device digital twins is a good use of the SDK, especially for automated processes&lt;&#x2F;li&gt;
&lt;li&gt;Device Registry is particularly useful when dealing with a large number of devices. Automating the process is highly recommended. I will go into more detail about this in a future blog post.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;The Azure IoT Hub Service SDKs are available for a variety of programming languages and platforms, such as:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;.NET: The Azure IoT Hub .NET Service SDK&lt;&#x2F;li&gt;
&lt;li&gt;Java: The Azure IoT Hub Java Service SDK&lt;&#x2F;li&gt;
&lt;li&gt;Node.js: The Azure IoT Hub Node.js Service SDK&lt;&#x2F;li&gt;
&lt;li&gt;Python: The Azure IoT Hub Python Service SDK&lt;&#x2F;li&gt;
&lt;li&gt;Go: The Azure IoT Hub Go Service SDK&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;service-sdks-for-specific-programming-languages-and-platforms&quot;&gt;Service SDKs for specific programming languages and platforms&lt;&#x2F;h3&gt;
&lt;ul&gt;
&lt;li&gt;.NET: The Azure IoT Hub .NET Service SDK&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;This is likely the library that most traditional Microsoft developers will gravitate toward. It’s definitely a well-developed, highly supported library. This library has been migrated to&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;Azure&#x2F;azure-iot-sdk-csharp&quot;&gt;https:&#x2F;&#x2F;github.com&#x2F;Azure&#x2F;azure-iot-sdk-csharp&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;The Azure IoT SDK for C# is a software development kit that enables developers to build IoT solutions using C# and Microsoft Azure cloud services. It provides libraries, tools, and documentation to connect C#-based devices and applications to Azure IoT services, and includes support for a variety of microcontrollers and protocols. The SDK is open source and designed to be lightweight, portable, and easy to use.&lt;&#x2F;p&gt;
&lt;p&gt;I’m not including code sample here, because they tend to be a bit larger. However, I think it’s just as important to work with the service SDKs as the device SDKs. You’ll find they make your administrative work easier.&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Java: The Azure IoT Hub Java Service SDK&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;The Java Service SDK offers many of the same functions as the .Net library. It includes the following samples to complete tasks related to device management, data processing and analytics, and integration and orchestration:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Device management: Create, update, and delete devices in IoT Hub, manage device twins, and use direct methods.&lt;&#x2F;li&gt;
&lt;li&gt;Data processing and analytics: Receive telemetry data from devices in IoT Hub, process and analyze the data, and trigger alerts or create reports.&lt;&#x2F;li&gt;
&lt;li&gt;Integration and orchestration: Integrate IoT Hub with other systems and services, such as enterprise applications or cloud platforms, and build complex workflows and processes that span multiple devices and services.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;Azure&#x2F;azure-iot-sdk-java&#x2F;tree&#x2F;main&#x2F;service&#x2F;iot-service-samples&quot;&gt;azure-iot-sdk-java&#x2F;service&#x2F;iot-service-samples at main · Azure&#x2F;azure-iot-sdk-java&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;JavaScript: Azure SDK for JS&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;The IoT Hub Service SDK for Node.js doesn’t appear to have code for the IoT Hub service, yet. However, the JavaScript is still available. It has many of the same functionality as the other SDKs. One thing to note is that many of these are in TypeScript and it appears that there are more samples available here. So if you’re looking for a functionality that doesn’t exists in the other samples, you may want to search through these code examples:&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;Azure&#x2F;azure-sdk-for-js&#x2F;tree&#x2F;main&#x2F;sdk&#x2F;iothub&#x2F;arm-iothub&#x2F;samples-dev&quot;&gt;azure-sdk-for-js&#x2F;sdk&#x2F;iothub&#x2F;arm-iothub&#x2F;samples-dev at main · Azure&#x2F;azure-sdk-for-js&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Python: The Azure IoT Hub Python Service SDK&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;The Azure IoT Hub Python library is here:&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;Azure&#x2F;azure-iot-hub-python&quot;&gt;https:&#x2F;&#x2F;github.com&#x2F;Azure&#x2F;azure-iot-hub-python&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;It has many of the same functionality as the other library. I would say that the Client library is a bit more robust than the library for IoT Hub, but most of the functionality you’ll want exists. There are also plenty of examples to get you started. And one of the things I love about Python is how much you can accomplish with so little code:&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;# -------------------------------------------------------------------------
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;# Copyright (c) Microsoft Corporation. All rights reserved.
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;# Licensed under the MIT License. See License.txt in the project root for
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;# license information.
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;# --------------------------------------------------------------------------
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;import os
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;import msrest
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;from azure.iot.hub import DigitalTwinClient
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;iothub_connection_str = os.getenv(&amp;quot;IOTHUB_CONNECTION_STRING&amp;quot;)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;device_id = os.getenv(&amp;quot;IOTHUB_DEVICE_ID&amp;quot;)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;try:
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    # Create DigitalTwinClient
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    digital_twin_client = DigitalTwinClient.from_connection_string(iothub_connection_str)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    # Get digital twin and retrieve the modelId from it
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    digital_twin = digital_twin_client.get_digital_twin(device_id)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    if digital_twin:
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        print(digital_twin)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        print(&amp;quot;Model Id: &amp;quot; + digital_twin[&amp;quot;$metadata&amp;quot;][&amp;quot;$model&amp;quot;])
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    else:
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        print(&amp;quot;No digital_twin found&amp;quot;)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;except msrest.exceptions.HttpOperationError as ex:
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    print(&amp;quot;HttpOperationError error {0}&amp;quot;.format(ex.response.text))
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;except Exception as exc:
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    print(&amp;quot;Unexpected error {0}&amp;quot;.format(exc))
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;except KeyboardInterrupt:
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    print(&amp;quot;{} stopped&amp;quot;.format(__file__))
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;finally:
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    print(&amp;quot;{} finished&amp;quot;.format(__file__))
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;ul&gt;
&lt;li&gt;Go: Azure SDK for Go&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;To my knowledge, there is no official Microsoft sponsored IoT Hub or Client library for GO. At the time of this writing, the services supported are:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Azure Blob Storage&lt;&#x2F;li&gt;
&lt;li&gt;Azure Functions&lt;&#x2F;li&gt;
&lt;li&gt;Azure Container Registry&lt;&#x2F;li&gt;
&lt;li&gt;Azure Container Instance&lt;&#x2F;li&gt;
&lt;li&gt;Azure Kubernetes Service&lt;&#x2F;li&gt;
&lt;li&gt;Azure Virtual Machines&lt;&#x2F;li&gt;
&lt;li&gt;Azure Key Vault&lt;&#x2F;li&gt;
&lt;li&gt;And Azure Cognitive Service&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;However, the success of Go as a Cloud Native language has prompted an Azure Go SDK. There is a version that appears to have been created here:&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;amenzhinsky&#x2F;iothub&quot;&gt;https:&#x2F;&#x2F;github.com&#x2F;amenzhinsky&#x2F;iothub&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;There is code for Device and Service here with very few samples, but it’s probably enough to get someone started:&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;package main
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;import (
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;	&amp;quot;context&amp;quot;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;	&amp;quot;fmt&amp;quot;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;	&amp;quot;log&amp;quot;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;	&amp;quot;os&amp;quot;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;	&amp;quot;github.com&#x2F;amenzhinsky&#x2F;iothub&#x2F;iotservice&amp;quot;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;func main() {
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;	c, err := iotservice.NewFromConnectionString(
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;		os.Getenv(&amp;quot;IOTHUB_SERVICE_CONNECTION_STRING&amp;quot;),
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;	)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;	if err != nil {
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;		log.Fatal(err)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;	}
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;	&#x2F;&#x2F; subscribe to device-to-cloud events
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;	log.Fatal(c.SubscribeEvents(context.Background(), func(msg *iotservice.Event) error {
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;		fmt.Printf(&amp;quot;%q sends %q&amp;quot;, msg.ConnectionDeviceID, msg.Payload)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;		return nil
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;	}))
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;}
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;h3 id=&quot;using-the-management-sdks-to-communicate-with-devices-and-manage-iot-hub-resources&quot;&gt;Using the management SDKs to communicate with devices and manage IoT Hub resources&lt;&#x2F;h3&gt;
&lt;p&gt;Here, I want to discuss some unique ways to use the Azure IoT Hub Management SDKs to work with IoT Hub. The SDKs provide APIs and libraries that enable developers to manage and operate IoT Hub, such as creating and deleting instances, setting and querying properties and quotas, managing shared access policies, monitoring usage and diagnostics, and performing maintenance tasks like repairing or backing up IoT Hub. The SDKs are available for .NET, Python, and Node.js, and can be used on Windows, macOS, and Linux.&lt;&#x2F;p&gt;
&lt;p&gt;I don’t think the average IoT developer will be too concerned with these SDKs. However, if you work in an organization with multiple IoT hubs and millions of devices, these packages could be useful. Additionally, if you want to build products that use IoT Hub as a base service, then you should definitely look into these SDKs.&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Azure SDK for .Net IoT Management&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;To get down to more detail, because I think it’s important to look at the detail for this particular SDK, here’s what’s delivered in the primary IoT Hub client for management. This piece of code is what I’m reviewing:&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;Azure&#x2F;azure-sdk-for-net&#x2F;blob&#x2F;main&#x2F;sdk&#x2F;iothub&#x2F;Microsoft.Azure.Management.IotHub&#x2F;src&#x2F;Generated&#x2F;IotHubClient.cs&quot;&gt;azure-sdk-for-net&#x2F;IotHubClient.cs at main · Azure&#x2F;azure-sdk-for-net&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;The code is a part of the Azure IoT Hub .NET Management SDK, which is a set of libraries and tools for building .NET applications that manage and operate Azure IoT Hub.&lt;&#x2F;p&gt;
&lt;p&gt;The file, &lt;strong&gt;&lt;code&gt;IotHubClient.cs&lt;&#x2F;code&gt;&lt;&#x2F;strong&gt;, contains the implementation of the &lt;strong&gt;&lt;code&gt;IotHubClient&lt;&#x2F;code&gt;&lt;&#x2F;strong&gt; class, which is a client object that provides a set of methods and properties for interacting with the Azure IoT Hub service. The &lt;strong&gt;&lt;code&gt;IotHubClient&lt;&#x2F;code&gt;&lt;&#x2F;strong&gt; class is part of the generated code for the Azure Management Libraries for .NET, which is a set of libraries that provide a consistent, easy-to-use, and high-level API for accessing Azure cloud services.&lt;&#x2F;p&gt;
&lt;p&gt;The &lt;strong&gt;&lt;code&gt;IotHubClient&lt;&#x2F;code&gt;&lt;&#x2F;strong&gt; class is used to perform various tasks related to managing and operating an IoT Hub instance, such as:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Creating and deleting IoT Hub instances&lt;&#x2F;li&gt;
&lt;li&gt;Setting and querying IoT Hub properties and quotas&lt;&#x2F;li&gt;
&lt;li&gt;Managing IoT Hub shared access policies&lt;&#x2F;li&gt;
&lt;li&gt;Monitoring IoT Hub usage and diagnostics&lt;&#x2F;li&gt;
&lt;li&gt;Performing maintenance tasks such as repairing or backing up IoT Hub&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;The &lt;strong&gt;&lt;code&gt;IotHubClient&lt;&#x2F;code&gt;&lt;&#x2F;strong&gt; class exposes a set of methods that correspond to the different operations that can be performed on an IoT Hub instance. For example, the &lt;strong&gt;&lt;code&gt;IotHubClient.CreateOrUpdateAsync&lt;&#x2F;code&gt;&lt;&#x2F;strong&gt; method is used to create or update an IoT Hub instance, and the &lt;strong&gt;&lt;code&gt;IotHubClient.GetAsync&lt;&#x2F;code&gt;&lt;&#x2F;strong&gt; method is used to retrieve the properties of an IoT Hub instance.&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Azure SDK for Java – &lt;strong&gt;Azure Resource Manager IotHub client library for Java&lt;&#x2F;strong&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;I believe this is a better library than the .Net version. I provides more capabilities and samples.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;Azure&#x2F;azure-sdk-for-java&#x2F;tree&#x2F;main&#x2F;sdk&#x2F;iothub&#x2F;azure-resourcemanager-iothub&quot;&gt;azure-sdk-for-java&#x2F;sdk&#x2F;iothub&#x2F;azure-resourcemanager-iothub at main · Azure&#x2F;azure-sdk-for-java&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;The Java library has many of the same features as other libraries. It is based on the Azure Resource Manager Java library, so if you are already familiar with it, using the IoT Hub Management Library should be straightforward.&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Azure iotHub client library for JavaScript&lt;&#x2F;strong&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;This is the same library as the Service library, which makes sense. It explains why the Service library seems larger than the other service libraries. This is also built on top of the Azure Resource Management.&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Azure SDK for Python – Azure Management IoT Hbu&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;This library is a bit more like the .Net library. You enter with an IoT Hub Client and access you capabilities that way. It offers most of the same capabilities of the other libraries.&lt;&#x2F;p&gt;
&lt;p&gt;Overall, these libraries offer similar capabilities. Java and JavaScript have had more development, but the .Net and Python versions are still useful. Additionally, the API provides many management capabilities. If the SDKs don’t meet your needs, you can use Azure Resource Manager to manage IoT Hub.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;azure-iot-services-sdks&quot;&gt;Azure IoT Services SDKs&lt;&#x2F;h2&gt;
&lt;p&gt;Azure IoT SDKs provide a range of tools and services for building secure, connected, and location-aware IoT applications and solutions. This section will cover the basics of these products.&lt;&#x2F;p&gt;
&lt;p&gt;Azure Maps, Azure Sphere, Azure Digital Twins, Azure Object Anchors, and Azure Remote Rendering are all included in the Azure IoT resources. Each of these offers unique features and capabilities to enable the development of IoT applications and solutions.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;overview-of-the-azure-iot-services-sdks-available&quot;&gt;Overview of the Azure IoT services SDKs available&lt;&#x2F;h3&gt;
&lt;h3 id=&quot;azure-maps&quot;&gt;&lt;strong&gt;Azure Maps&lt;&#x2F;strong&gt;&lt;&#x2F;h3&gt;
&lt;p&gt;Azure Maps is a cloud-based mapping and location platform that provides a range of tools and services for building location-based applications and solutions. It is part of the Azure IoT resources, as it can be used to build location-aware IoT applications and solutions that incorporate geospatial data and functionality.&lt;&#x2F;p&gt;
&lt;p&gt;Some of its key features and capabilities include:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;Map rendering: Azure Maps offers 2D and 3D maps, street maps, satellite imagery, and terrain maps, which can be rendered and displayed in web-based, mobile, and embedded formats.&lt;&#x2F;li&gt;
&lt;li&gt;Geocoding and reverse geocoding: Convert addresses and location coordinates into geographic locations, and vice versa.&lt;&#x2F;li&gt;
&lt;li&gt;Routing and navigation: Calculate routes and directions between two or more locations.&lt;&#x2F;li&gt;
&lt;li&gt;Location services: Geofencing, location search, and real-time traffic data for building location-based applications.&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;Overall, Azure Maps is a powerful and flexible platform for building location-based applications and solutions, especially for IoT scenarios.&lt;&#x2F;p&gt;
&lt;p&gt;Azure maps provides four separate SDKs to help developers:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;REST SDK&lt;&#x2F;li&gt;
&lt;li&gt;Web SDK (JavaScript)&lt;&#x2F;li&gt;
&lt;li&gt;Android SDK (Java or Kotlin)&lt;&#x2F;li&gt;
&lt;li&gt;iOS (Swift)&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;azure&#x2F;azure-maps&#x2F;&quot;&gt;Azure Maps Documentation&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;h3 id=&quot;azure-sphere&quot;&gt;Azure Sphere&lt;&#x2F;h3&gt;
&lt;p&gt;Azure Sphere is a secure and connected microcontroller platform designed for building Internet of Things (IoT) applications and solutions. It is part of the Azure IoT resources, providing a range of tools and technologies to build and deploy secure, connected IoT devices.&lt;&#x2F;p&gt;
&lt;p&gt;Key features and capabilities of Azure Sphere include:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;Security: Azure Sphere is designed to provide a high level of security for IoT devices. It features a custom-built Linux operating system and a hardware-based security module that provides secure boot, trusted execution, and hardware-level isolation.&lt;&#x2F;li&gt;
&lt;li&gt;Connectivity: Azure Sphere supports various connectivity options, including Wi-Fi and cellular, allowing devices to connect to the internet and communicate with other devices and systems.&lt;&#x2F;li&gt;
&lt;li&gt;Development tools: Azure Sphere includes a software development kit (SDK), libraries and APIs, and integration with Azure IoT Hub and other Azure services, making it easier to build and deploy IoT applications and solutions.&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;Overall, Azure Sphere is an excellent platform for building and deploying secure, connected IoT devices, especially in scenarios where security and connectivity are paramount. Azure Sphere comes with a complete development kit. There are two basic SDKs, a Windows and a Linux version. The only supported programming language for Sphere appears to be C, which makes sense considering it’s designed for embedded development.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;digital-twins&quot;&gt;Digital Twins&lt;&#x2F;h3&gt;
&lt;p&gt;Azure Digital Twins is different from the device digital twin discussed in this article. It is a cloud-based platform that enables you to construct digital twin models of physical spaces, systems, and assets. A digital twin is a digital representation of a physical object or environment that reflects its real-world characteristics and behavior.&lt;&#x2F;p&gt;
&lt;p&gt;Azure Digital Twins is part of the Azure IoT resources, providing tools and capabilities to build and deploy IoT applications and solutions that incorporate digital twin models. Key features and capabilities of Azure Digital Twins include:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;Data modeling and integration: Create a digital twin model by defining objects and properties that represent physical objects and features in the environment, as well as the relationships between them. Integrate data from external sources, such as sensors, devices, and systems, into the digital twin model.&lt;&#x2F;li&gt;
&lt;li&gt;Data storage and querying: Store and query data within the digital twin model. Use various data types and formats to represent data in the digital twin, and use SQL-like queries to retrieve and analyze the data.&lt;&#x2F;li&gt;
&lt;li&gt;Behaviors and logic: Define behaviors and logic in the digital twin model, using tools such as Azure Functions and Azure Stream Analytics. This enables the digital twin to respond to events and conditions in real-time, and perform actions or calculations based on the data in the digital twin.&lt;&#x2F;li&gt;
&lt;li&gt;Visualization and exploration: Use the Azure Digital Twins portal, Azure Grafana, or the Azure Digital Twins REST API to view and interact with the digital twin.&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;Overall, Azure Digital Twins is a powerful and flexible platform for creating and managing digital twin models, and enabling a wide range of use cases and scenarios in the IoT space.&lt;&#x2F;p&gt;
&lt;p&gt;Azure Digital Twins comes with control plane APIs, data plane APIs, and SDKs for managing instances and its elements. The SDKs available are for .NET (C#), Java, JavaScript, Python, and Go.&lt;&#x2F;p&gt;
&lt;p&gt;I plan to cover Azure Digital Twins in much greater detail in the future. I’m working on a small book on the subject for Solution Architects. I think it’s one of the most interesting technologies available today. I don’t think we’ve scratched the surface of its potential.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;object-anchors&quot;&gt;Object Anchors&lt;&#x2F;h3&gt;
&lt;p&gt;Azure Object Anchors is a service that allows you to create, manage, and interact with digital representations of physical objects in mixed reality applications. It is included in the Azure IoT resources as it can be used to build IoT applications and solutions with mixed reality features.&lt;&#x2F;p&gt;
&lt;p&gt;Some of the key features and capabilities of Azure Object Anchors include:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;Object recognition: Azure Object Anchors can recognize and track physical objects in real-time using machine learning algorithms and computer vision techniques. This enables you to create digital representations of physical objects that can be displayed in mixed reality applications.&lt;&#x2F;li&gt;
&lt;li&gt;Digital twin creation: Azure Object Anchors allows you to create digital twin models of physical objects, which can reflect the real-world characteristics and behavior of the objects. You can define the properties and relationships of the objects in the digital twin model, and integrate data from external sources such as sensors and devices.&lt;&#x2F;li&gt;
&lt;li&gt;Mixed reality integration: Azure Object Anchors can be integrated with mixed reality platforms and tools, such as HoloLens and Unity, allowing you to build mixed reality applications that incorporate the digital twin models created with Azure Object Anchors.&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;Azure Object Anchors is a powerful platform for building mixed reality applications and solutions that incorporate digital representations of physical objects, particularly in IoT scenarios. Development is built around the Unity game development platform and the Hololens device, though not necessarily restricted to them. The SDKs available are a Conversion SDK for .NET designed to turn existing 3D model assets into Unity Digital Twin objects, as well as Runtime SDKs for Unity and Hololens. If you plan to include Augmented Reality into your IoT solution, Azure Object Anchors is a great option.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;remote-rendering&quot;&gt;Remote Rendering&lt;&#x2F;h3&gt;
&lt;p&gt;Azure Remote Rendering is a cloud-based service that enables high-quality 3D graphics and visualization to be rendered in real-time, using the power and scale of the cloud. It is included in the Azure IoT resources because it can be used to build IoT applications and solutions that incorporate 3D graphics and visualization, and that require real-time rendering at scale.&lt;&#x2F;p&gt;
&lt;p&gt;Key features and capabilities of Azure Remote Rendering include:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;3D graphics rendering: Azure Remote Rendering offers a range of tools and technologies for rendering high-quality 3D graphics, such as support for various 3D file formats, realistic lighting and materials, and advanced rendering techniques like ray tracing.&lt;&#x2F;li&gt;
&lt;li&gt;Real-time rendering: Azure Remote Rendering is designed to support real-time rendering of 3D graphics, even at high resolutions and frame rates. This is useful for applications and solutions that need to display dynamic, interactive 3D graphics in real-time.&lt;&#x2F;li&gt;
&lt;li&gt;Cloud-based rendering: Azure Remote Rendering leverages the power and scale of the cloud to enable high-performance rendering of 3D graphics. This is beneficial for applications and solutions that need to support large numbers of users or devices, or that need to process large volumes of data.&lt;&#x2F;li&gt;
&lt;li&gt;Integration with other Azure services: Azure Remote Rendering can be integrated with other Azure services, such as Azure IoT Hub and Azure Stream Analytics, which allows for the building of IoT applications and solutions that incorporate 3D graphics and visualization.&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;Overall, Azure Remote Rendering is an effective platform for building applications and solutions that incorporate 3D graphics and visualization, and that require real-time rendering at scale. It is particularly suitable for use in IoT scenarios where 3D graphics and visualization are important.&lt;&#x2F;p&gt;
&lt;p&gt;Developing for this service requires making use of the existing REST APIs. Those are:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Azure Mixed Reality Resource Management REST API&lt;&#x2F;li&gt;
&lt;li&gt;Remote Rendering REST API&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;There is an extensive Microsoft.Azure.RemoteRendering API library available for C#.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;spatial-anchors&quot;&gt;Spatial Anchors&lt;&#x2F;h3&gt;
&lt;p&gt;Azure Spatial Anchors is a service that enables you to create and manage digital anchors in physical spaces. It can be used to build IoT applications and solutions that incorporate location-based functionality and support mixed reality scenarios. I think one of the best examples of this technology that many people are probably familiar with is the mobile game Pokemon Go. This massive multi-player platform allows gamers to track, capture, train, and battle fantasy creatures in a mixed-reality environment.&lt;&#x2F;p&gt;
&lt;p&gt;Its key features and capabilities include:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;Digital anchor creation: You can define the properties and relationships of the anchors in the digital model, and integrate data from external sources such as sensors and devices.&lt;&#x2F;li&gt;
&lt;li&gt;Mixed reality integration: Azure Spatial Anchors can be integrated with mixed reality platforms and tools, such as HoloLens and Unity.&lt;&#x2F;li&gt;
&lt;li&gt;Real-time anchor tracking: It supports real-time tracking of the digital anchors, allowing you to update the location and orientation of the anchors in the mixed reality application in real-time.&lt;&#x2F;li&gt;
&lt;li&gt;Cloud-based anchor management: It provides a cloud-based platform for managing the digital anchors, which is useful for applications and solutions that need to support large numbers of users or devices, or handle large volumes of data.&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;Overall, Azure Spatial Anchors is a powerful platform for building mixed reality applications and solutions that incorporate location-based functionality. It is especially suitable for IoT scenarios where mixed reality and location-based functionality are important.&lt;&#x2F;p&gt;
&lt;p&gt;There are multiple Spatial Anchors SDKs:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;SDK for Unity&lt;&#x2F;li&gt;
&lt;li&gt;SDK for iOS Objective-C&lt;&#x2F;li&gt;
&lt;li&gt;SDK for Android Java&lt;&#x2F;li&gt;
&lt;li&gt;SDK for Android NDK&lt;&#x2F;li&gt;
&lt;li&gt;SDK for HoloLens C++&#x2F;WinRT&lt;&#x2F;li&gt;
&lt;li&gt;Azure CLI&lt;&#x2F;li&gt;
&lt;li&gt;Azure Powershell&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;There are multiple samples to work through to learn this resource. Again, this is another one of the family of resources that helps bring real world data to life in the digital world.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;time-series-insights&quot;&gt;Time Series Insights&lt;&#x2F;h3&gt;
&lt;p&gt;Azure Time Series Insights is a cloud-based platform that allows you to store, visualize, and analyze time series data in real-time. It is included in the Azure IoT resources because it can be used to build IoT applications and solutions that need to process, analyze, and visualize large volumes of time series data in real-time.&lt;&#x2F;p&gt;
&lt;p&gt;Some of its key features and capabilities include:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;Time series data storage: Azure Time Series Insights provides a scalable and highly available data store for storing time series data. It can handle large volumes of data and supports a variety of data types and formats.&lt;&#x2F;li&gt;
&lt;li&gt;Real-time data visualization: Azure Time Series Insights offers a range of visualization tools and interfaces that allow you to view and analyze time series data in real-time. You can use the Azure Time Series Insights portal, Azure Grafana, or the Azure Time Series Insights REST API to visualize and explore the data.&lt;&#x2F;li&gt;
&lt;li&gt;Query and analysis: Azure Time Series Insights provides a query language and a range of analytical functions that allow you to perform complex queries and analysis on the time series data. This can be useful for applications and solutions that need advanced analysis.&lt;&#x2F;li&gt;
&lt;li&gt;Integration with other Azure services: Azure Time Series Insights can be integrated with other Azure services, such as Azure IoT Hub and Azure Stream Analytics, to build IoT applications and solutions that incorporate time series data and analysis.&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;Overall, Azure Time Series Insights is a powerful platform for building IoT applications and solutions that need to process, analyze, and visualize large volumes of time series data in real-time. It is particularly well-suited for scenarios where real-time data analysis and visualization are important.&lt;&#x2F;p&gt;
&lt;p&gt;Azure Time Series Insights and Azure Data Explorer are both cloud-based platforms designed to store, process, and analyze large volumes of data in real-time. However, there are key differences between the two.&lt;&#x2F;p&gt;
&lt;p&gt;Data types and formats: Azure Time Series Insights is designed for time series data, which is data collected and recorded over time at regular intervals. Azure Data Explorer is more general-purpose, and can handle structured and unstructured data.&lt;&#x2F;p&gt;
&lt;p&gt;Query language: Azure Time Series Insights uses Kusto Query Language (KQL) for time series data. Azure Data Explorer also uses KQL, but it is more flexible and can query a wider variety of data types and formats.&lt;&#x2F;p&gt;
&lt;p&gt;Visualization: Both platforms offer visualization tools and interfaces for viewing and exploring the data. Azure Time Series Insights is more specialized for time series data, and provides visualization options specifically designed for it.&lt;&#x2F;p&gt;
&lt;p&gt;Integration with other Azure services: Both platforms can integrate with Azure IoT Hub and Azure Stream Analytics, but the specific integration options and capabilities may vary.&lt;&#x2F;p&gt;
&lt;p&gt;Overall, Azure Time Series Insights is specialized for time series data, while Azure Data Explorer is more general-purpose.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;other-services&quot;&gt;Other Services&lt;&#x2F;h3&gt;
&lt;p&gt;There are additional services that don’t fit into the IoT resources category, but are often used with Azure IoT Hub to fulfill the backend data processing needs of an IoT platform. These include:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Azure Functions&lt;&#x2F;li&gt;
&lt;li&gt;Azure Event Hubs&lt;&#x2F;li&gt;
&lt;li&gt;Azure Synapse&lt;&#x2F;li&gt;
&lt;li&gt;Azure Storage&lt;&#x2F;li&gt;
&lt;li&gt;Azure Databricks&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;choosing-the-right-azure-iot-hub-sdk&quot;&gt;Choosing the Right Azure IoT Hub SDK&lt;&#x2F;h2&gt;
&lt;p&gt;Azure IoT Hub SDKs are available for multiple languages, platforms, protocols, and devices, and should be chosen based on the specific needs of the IoT solution. Best practices for using the SDKs include using the most recent version, following the recommended architecture, using the async programming model, and using secure communication protocols. Message routing, device twins, and device identities and keys should also be used to optimize the performance and security of the solution.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;factors-to-consider-when-choosing-an-azure-iot-hub-sdk&quot;&gt;Factors to consider when choosing an Azure IoT Hub SDK&lt;&#x2F;h3&gt;
&lt;p&gt;Consider several factors when selecting the right Azure IoT Hub SDK:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;Language support: Choose an SDK that supports the programming language you are using for your IoT solution. Azure IoT Hub SDKs are available for C, C#, Java, Node.js, and Python.&lt;&#x2F;li&gt;
&lt;li&gt;Platform support: Consider the platform you are using for your IoT solution. Azure IoT Hub SDKs are available for Windows, Linux, and MacOS.&lt;&#x2F;li&gt;
&lt;li&gt;Protocol support: Choose an SDK that supports the protocol you are using for communication between your IoT devices and the cloud. Azure IoT Hub supports MQTT, AMQP, and HTTP.&lt;&#x2F;li&gt;
&lt;li&gt;Device support: Consider the type of device you are using and choose an SDK that supports the necessary features and capabilities. For example, if you need secure communication, make sure the SDK you choose supports secure communication protocols.&lt;&#x2F;li&gt;
&lt;li&gt;Ecosystem integration: If you are building an IoT solution that integrates with other Azure services or third-party tools, choose an SDK with the necessary integration capabilities.&lt;&#x2F;li&gt;
&lt;li&gt;Ease of use: Consider the learning curve and documentation associated with the SDK. Choose an SDK that is easy to use and has clear documentation to help you get started quickly.&lt;&#x2F;li&gt;
&lt;li&gt;Development environment: Consider the development environment you are using, and choose an SDK that is compatible with your environment.&lt;&#x2F;li&gt;
&lt;li&gt;Performance: Consider the performance needs of your IoT solution and choose an SDK that can meet those needs.&lt;&#x2F;li&gt;
&lt;li&gt;Cost: Consider the cost of the SDK and whether it fits within your budget.&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;h3 id=&quot;best-practices-for-using-azure-iot-hub-sdks-in-different-scenarios&quot;&gt;Best practices for using Azure IoT Hub SDKs in different scenarios&lt;&#x2F;h3&gt;
&lt;p&gt;Make sure to use the most recent version of the Azure IoT Hub SDKs to take advantage of new features and improvements. Follow the recommended architecture to ensure that your solution is scalable, reliable, and secure. Use the async programming model to use non-blocking code and optimize performance. Secure communication protocols, such as TLS, should be used to protect the data transmitted between devices and the cloud. Device-to-cloud messages should be used for critical data that needs to be stored and analyzed. Cloud-to-device messages can be used to control devices or send commands. Message routing can be used to filter and route messages based on the content of the message or the device that sent it, helping to scale the IoT solution and process messages more efficiently. Device twins allow for managing the state of devices and synchronizing their state with the cloud. Finally, device identities and keys should be used securely and protected from unauthorized access.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;conclusion-and-future-directions&quot;&gt;Conclusion and Future Directions&lt;&#x2F;h2&gt;
&lt;h3 id=&quot;the-potential-of-azure-iot-hub-sdks-to-drive-business-value&quot;&gt;The potential of Azure IoT Hub SDKs to drive business value&lt;&#x2F;h3&gt;
&lt;p&gt;Azure IoT Hub SDKs offer several potentials to drive business value:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;Improve efficiency and productivity: Automate processes, gather real-time data, and enable remote monitoring and control with IoT solutions built using Azure IoT Hub.&lt;&#x2F;li&gt;
&lt;li&gt;Increase customer satisfaction: Better understand and meet customer needs, leading to increased satisfaction and loyalty.&lt;&#x2F;li&gt;
&lt;li&gt;Enhance decision making: Collect and analyze real-time data from IoT devices to make more informed decisions and improve operations.&lt;&#x2F;li&gt;
&lt;li&gt;Improve asset management: Track and monitor the performance and maintenance of assets, leading to improved asset utilization and reduced downtime.&lt;&#x2F;li&gt;
&lt;li&gt;Generate new revenue streams: Offer new products and services, create new business models, and open up new revenue streams with IoT solutions.&lt;&#x2F;li&gt;
&lt;li&gt;Reduce costs: Optimize resource usage, improve maintenance schedules, and automate processes with IoT solutions.&lt;&#x2F;li&gt;
&lt;li&gt;Increase competitiveness: Give businesses a competitive edge by providing them with a way to differentiate themselves and offer unique value to their customers.&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;h3 id=&quot;emerging-trends-and-technologies-in-the-iot-space&quot;&gt;Emerging trends and technologies in the IoT space&lt;&#x2F;h3&gt;
&lt;p&gt;Edge computing involves processing data closer to the source of the data, reducing latency, improving performance, and reducing the amount of data sent to the cloud. 5G networks are enabling faster and more reliable IoT connectivity, enabling new use cases and applications. Artificial intelligence and machine learning are being integrated into IoT solutions, making them more intelligent and autonomous, with the ability to learn and adapt. Blockchain technology is being used to improve security, traceability, and trust. The IoT is being applied in healthcare for remote monitoring, diagnostics, and treatment (IoMT). It is also being used in industrial settings, improving efficiency, maintenance, and safety (IIoT). Smart cities are being created with the IoT, enabling improved public services, transportation, and environmental sustainability. Augmented reality and virtual reality are being integrated into IoT applications, creating immersive and interactive experiences.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;closing&quot;&gt;Closing&lt;&#x2F;h2&gt;
&lt;p&gt;Azure IoT Hub Device SDKs are software development kits that enable developers to create applications that run on IoT devices and connect them to Azure IoT Hub. These SDKs provide a set of APIs and libraries that allow devices to perform basic and complex IoT device-to-cloud communications and commands, and support a wide range of programming languages and platforms. Common use cases include sending telemetry data, receiving commands, connecting devices using various protocols, authenticating devices, handling messaging, managing device twins, and receiving notifications.&lt;&#x2F;p&gt;
&lt;p&gt;Azure IoT Edge is a fully managed service that enables developers to deploy cloud intelligence directly onto IoT devices. It consists of edge modules, an IoT Edge runtime, and Azure IoT Hub. This allows developers to create and deploy intelligent edge solutions that bring the power of the cloud to the edge of the network.&lt;&#x2F;p&gt;
&lt;p&gt;This article has presented some of the major SDKs related to IoT and some of the related Azure IoT resources. It brings these resources together to show the array of options available to the Azure IoT developer. If a favorite was left out, please leave a comment. It could be a subject of a future post.&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>AutoML and Domain Driven Design</title>
        <published>2022-12-27T18:33:49-06:00</published>
        <updated>2023-08-15T08:18:21-05:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2022/12/27/automl-and-domain-driven-design/"/>
        <id>https://shawndeggans.com/2022/12/27/automl-and-domain-driven-design/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2022/12/27/automl-and-domain-driven-design/">&lt;ol&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;27&#x2F;automl-and-domain-driven-design&#x2F;#introduction-to-automl&quot;&gt;Introduction to AutoML&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;27&#x2F;automl-and-domain-driven-design&#x2F;#a-quick-overview-of-domain-driven-design-for-software-development&quot;&gt;A Quick Overview of Domain-Driven Design for Software Development&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;27&#x2F;automl-and-domain-driven-design&#x2F;#a-use-case-a-machine-learning-model-to-diagnose-the-flu&quot;&gt;A Use Case: A Machine Learning Model to Diagnose the Flu&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;27&#x2F;automl-and-domain-driven-design&#x2F;#ddd-and-automl&quot;&gt;DDD and AutoML&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;&lt;audio controls=&quot;&quot; src=&quot;&#x2F;wp-content&#x2F;uploads&#x2F;2023&#x2F;08&#x2F;fad15-automl_and_domain_driven_design_sdeggans.mp3&quot;&gt;&lt;&#x2F;audio&gt;&lt;&#x2F;p&gt;
&lt;p&gt;Can Domain-Driven Design (DDD) improve AutoML implementations? I believe it can, as many Machine Learning experiments involve the same problem-solving approaches used in software development.&lt;&#x2F;p&gt;
&lt;p&gt;This article provides a brief overview of AutoML and no-code development. It then discusses the most common approach to DDD for software development. With a specific use case in mind, I’ll walk through a scenario with AutoML as the tactical architecture. I’ll explain how DDD should be used to make strategic and tactical decisions regarding AutoML development.&lt;&#x2F;p&gt;
&lt;p&gt;By the end, you’ll have a basic understanding of AutoML and DDD. You’ll also understand how to apply DDD as a framework to build the right ML solution for the domain problem with organizational stakeholders.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;introduction-to-automl&quot;&gt;&lt;strong&gt;Introduction to AutoML&lt;&#x2F;strong&gt;&lt;&#x2F;h2&gt;
&lt;p&gt;AutoML is the process of automating the tasks of applying machine learning to real-world problems, according to Wikipedia. So, what is the use case for no-code AutoML?&lt;&#x2F;p&gt;
&lt;p&gt;Many organizations struggle to move beyond the proof-of-concept stage. This can be due to a lack of staff or data estate to support the efforts, the technical complexity of building out the infrastructure to support machine learning in production, or an unclear definition of the business objectives they wish to meet in the problem space.&lt;&#x2F;p&gt;
&lt;p&gt;AutoML helps reduce the risk of failure by providing cloud-native, low- or no-code tools to guide users through the process of curating a dataset and deploying a model. No-code development has enabled organizations to reach their goals without the need for experts. Popular platforms like Microsoft’s Power Platform, Zoho Creator, Airtable, BettyBlocks, and Salesforce have made no-code development a regular part of an organization’s IT toolset. This puts development tools closer to domain experts, allowing organizations to meet their objectives without the usual IT project overhead.&lt;&#x2F;p&gt;
&lt;p&gt;Critics of the no-code movement point to limited capabilities compared to traditional software development, dependency on vendor-specific systems, lack of control, poor scalability, and potential security risks. However, some organizations may find these risks worth the opportunities and solutions that no-code provides.&lt;&#x2F;p&gt;
&lt;p&gt;AutoML has both critics and champions. Organizations should be aware that AutoML comes with tradeoffs alongside its benefits. Champions of AutoML will point to the following advantages over traditional machine learning development processes:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Accessibility: AutoML requires minimal knowledge of machine learning concepts and techniques, so you don’t need a data scientist or data engineer to guide you through the process.&lt;&#x2F;li&gt;
&lt;li&gt;Collaboration: Platforms like AutoML, Databricks, and Amazon SafeMaker Studio enable data collaboration in one platform, allowing teams to share data, models, and results with each other.&lt;&#x2F;li&gt;
&lt;li&gt;Consistency: Automating the optimization of models reduces the chances of human error, improving the consistency of machine learning model results.&lt;&#x2F;li&gt;
&lt;li&gt;Customization: Platforms like Azure ML and Amazon SageMaker Studio make it easy to customize machine learning environments and set specific requirements for models and parameters.&lt;&#x2F;li&gt;
&lt;li&gt;Efficiency: AutoML addresses faster ways to preprocess data, select the correct model, and tune hyperparameters, reducing tedious and time-consuming tasks.&lt;&#x2F;li&gt;
&lt;li&gt;Scalability: AutoML platforms are typically built on cloud architecture, making it easier to handle large datasets and complex problems.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Critics of AutoML warn that using it instead of traditional machine learning could lead to dependence on data quality, ethical concerns, lack of control, lack of interpretability, and lack of transparency.&lt;&#x2F;p&gt;
&lt;p&gt;Data quality is essential: many AutoML platforms require clean data with no issues. Without data engineers or a data quality process, it’s unlikely to have clean data. Poor data quality or noisy data can result in inaccurate models.&lt;&#x2F;p&gt;
&lt;p&gt;Ethical considerations must also be taken into account. Algorithms may perpetuate existing biases and discrimination if the data used to train them is unbalanced or biased.&lt;&#x2F;p&gt;
&lt;p&gt;AutoML’s abstraction of the complexities of model creation is beneficial, but it also means users can’t control what happens during the pipeline process. If the algorithms developed from AutoML are difficult to understand, organizations may not have insight into how decisions are being made, and may unknowingly release models with flawed biases.&lt;&#x2F;p&gt;
&lt;p&gt;Without understanding how the model is making decisions, it’s hard to fully grasp the strengths and weaknesses of a model, leading to a lack of transparency.&lt;&#x2F;p&gt;
&lt;p&gt;Additionally, the models generated from AutoML may not be able to handle specialized problems or reach the performance expected of modern ML models.&lt;&#x2F;p&gt;
&lt;p&gt;AutoML is a process of automating the tasks of applying machine learning to real-world problems. It offers cloud native, low to no-code tools that help guide users from a curated dataset to a deployed model. There are benefits and tradeoffs to using AutoML, such as accessibility, collaboration, customization, scalability, and efficiency, but also potential ethical concerns, lack of control, interpretability, transparency, and limited capabilities. Is there a way that we can apply a common, and well-established framework that helps us better exploit the positive elements of AutoML while reducing the negative side-effects brought up by its critiques? I believe we can, and I think Eric Evans’ approach to creating a ubiquitous language for the software development team and the domain experts within an organization is the best place to start.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;a-quick-overview-of-domain-driven-design-for-software-development&quot;&gt;&lt;strong&gt;A Quick Overview of Domain-Driven Design for Software Development&lt;&#x2F;strong&gt;&lt;&#x2F;h2&gt;
&lt;p&gt;DDD is a software development practice that focuses on understanding and modeling the complex domains that systems operate in. It emphasizes the importance of gaining a deep understanding of the problem domain and using this knowledge to guide system design. DDD is a flexible practice based on principles and concepts rather than rigid rules. I use DDD because, as a developer, it encourages me to think more about the domain problem and desired business outcomes than on the technical approach to creating software and infrastructure. It’s a lightweight way of building a shared language with someone using a common language. The best example of this I found was in the book &lt;em&gt;Architecture Patterns with Python&lt;&#x2F;em&gt; by O’Reilly Media.&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;Imagine that you, our unfortunate reader, were suddenly transported light years away from Earth aboard an alien spaceship with your friends and family and had to figure out, from first principles, how to navigate home.&lt;&#x2F;p&gt;
&lt;p&gt;In your first few days, you might just push buttons randomly, but soon you’d learn which buttons did what, so that you could give one another instructions. “Press the red button near the flashing doohickey and then throw that big lever over by the radar gizmo,” you might say.&lt;&#x2F;p&gt;
&lt;p&gt;Within a couple of weeks, you’d become more precise as you adopted words to describe the ship’s functions: “Increase oxygen levels in cargo bay three” or “turn on the little thrusters.” After a few months, you’d have adopted language for entire complex processes: “Start landing sequence” or “prepare for warp.” This process would happen quite naturally, without any formal effort to build a shared glossary.&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;I love that this example shows the natural process of discovery and how it creates a shared understanding of the spaceship’s behavior. DDD is a big topic, so I won’t try to cover it all here. The important thing to understand is that DDD is meant to be practiced. It’s a process based on discussions and drives towards building deep, shared knowledge about a specific problem.&lt;&#x2F;p&gt;
&lt;p&gt;Why do I believe that someone wishing to learn machine learning, even as an AutoML user, should begin their own DDD practice? I would point to these key concepts of DDD:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;Bounded context: Isolate and well-define a specific part of the problem domain to manage complexity and prevent misunderstandings between different parts of the domain model. Avoid “boiling the ocean” and taking on more work than can be managed. Bounded context can represent a team, line of business, department, set of related services, data elements, or parameters.&lt;&#x2F;li&gt;
&lt;li&gt;Domain expert: Someone with a deep understanding of the problem domain who can provide valuable insights and guidance to the development team. Without access to domain expert, it’s difficult to build a solution of real value.&lt;&#x2F;li&gt;
&lt;li&gt;Domain model: Representation of the key concepts and relationships in the problem domain, expressed in a shared language. Not an exact replica of reality, but captures the essence of what makes the organization’s model unique.&lt;&#x2F;li&gt;
&lt;li&gt;Event storming: Collaborative technique to identify and model key events and processes in the problem domain. Uncovers hidden complexity and ensures the domain model reflects the needs of the business.&lt;&#x2F;li&gt;
&lt;li&gt;Ubiquitous language: Shared language used by all members of the development team to communicate about the problem domain. Ensures everyone is using the same terminology and concepts.&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;Why would an AutoML developer want to know DDD?&lt;&#x2F;p&gt;
&lt;p&gt;DDD encourages the use of domain-specific language and concepts in modeling, which can make it easier for domain experts to understand and interpret the results of the models. It also emphasizes the importance of understanding the business context and domain-specific knowledge when solving problems. This can help AutoML developers to build more accurate and effective models.&lt;&#x2F;p&gt;
&lt;p&gt;DDD provides a common language and set of concepts that can help data scientists communicate more effectively with domain experts and other stakeholders. It also emphasizes the importance of designing solutions that are maintainable and adaptable over time, helping AutoML developers to build models that are more robust and resilient to change.&lt;&#x2F;p&gt;
&lt;p&gt;Finally, DDD encourages collaboration between domain experts and technical experts, which can help AutoML developers to better understand the problem they are trying to solve and the impact their solutions will have on the business.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;a-use-case-a-machine-learning-model-to-diagnose-the-flu&quot;&gt;&lt;strong&gt;A Use Case: A Machine Learning Model to Diagnose the Flu&lt;&#x2F;strong&gt;&lt;&#x2F;h2&gt;
&lt;p&gt;I have explored how AutoML and Domain-Driven Design can be used together as a framework to help AutoML developers. Our aim is to take advantage of AutoML’s positive aspects while minimizing its negative tradeoffs. I have discussed why an AutoML developer might choose to use DDD as a framework, so in this section I will explain how to implement the process.&lt;&#x2F;p&gt;
&lt;p&gt;I have chosen a relatively simple use case, one that has been extensively studied in terms of building classifiers for the problem domain. Therefore, I will take a basic approach to a non-novel problem, focusing on the DDD process rather than the complexity of the problem domain.&lt;&#x2F;p&gt;
&lt;p&gt;Using domain-driven design (DDD) to build a machine learning model to help diagnose patients with the flu could involve the following steps:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;Identify the bounded context: The first step would be to identify the bounded context, or specific part of the problem domain, that the model will operate in. In this case, the bounded context might be the process of diagnosing patients with the flu. A conversation with the people making the request for a solution can help establish a scope and general goals. Additionally, tools like Simon Wardley’s Wardley Mapping and Teresa Torres’ Opportunity Solution Trees can uncover what type of business outcomes the organization is attempting to address and the service or supply chain associated with meeting customer needs. Questions such as what the requesters expected outcomes are from a solution that can diagnose patients who have the flu, if it will lessen time in a waiting room, or if it will make patient intake faster should be asked.&lt;&#x2F;li&gt;
&lt;li&gt;Identify the domain experts: The development team should then identify domain experts who have a deep understanding of the problem domain and can provide valuable insights and guidance. These domain experts might include medical professionals who are experienced in diagnosing and treating patients with the flu. The goal is to establish clarity around vocabulary, expected behaviors, and begin to build a vision for the existing strategic, business systems.&lt;&#x2F;li&gt;
&lt;li&gt;Define the ubiquitous language: The development team should work with the domain experts to define a shared language, or ubiquitous language, that everyone can use to communicate about the problem domain. This might include defining key terms and concepts related to the flu and its symptoms.&lt;&#x2F;li&gt;
&lt;li&gt;Conduct event storming: The development team should use a collaborative technique called event storming to identify and model the key events and processes involved in diagnosing patients with the flu. This might include identifying the symptoms that are most indicative of the flu and the tests that are typically used to diagnose it. A large whiteboard or a shared online collaboration tool can be used to define domain events, commands, policies, and other important elements that make up a working system.&lt;&#x2F;li&gt;
&lt;li&gt;Build the domain model: Using the insights and knowledge gained through event storming, the development team should build a domain model that represents the key concepts and relationships in the problem domain. This might include building a model that predicts the likelihood of a patient having the flu based on their symptoms and test results.&lt;&#x2F;li&gt;
&lt;li&gt;Use AutoML to build and tune the machine learning model: The development team should then use automated machine learning (AutoML) to build and tune the machine learning model. This might involve selecting an appropriate model type, preprocessing the data, and optimizing the hyperparameters. The AutoML user should build a better understanding of the type of settings they want to establish for their model. The type of model should address the primary problem type uncovered during the DDD process. If it wasn’t, the AutoML developer should return to additional sessions with the domain experts to tune and solidify the design of the solution.&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;Overall, by applying DDD principles to the development of the machine learning model, the development team can create a model that is closely aligned with the business needs and can evolve and adapt over time. DDD is not just a process to follow when planning the project, but one to continue throughout the development and deployment of the solution. Involve domain experts in the ML model’s lifecycle as long as it creates value.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;ddd-and-automl&quot;&gt;&lt;strong&gt;DDD and AutoML&lt;&#x2F;strong&gt;&lt;&#x2F;h2&gt;
&lt;p&gt;AutoML is a process of automating machine learning tasks to solve real-world problems. It offers cloud-native, low- to no-code tools to guide users from a curated dataset to a deployed model. Benefits include accessibility, collaboration, customization, scalability, and efficiency. However, there are potential ethical concerns, lack of control, interpretability, transparency, and limited capabilities.&lt;&#x2F;p&gt;
&lt;p&gt;Domain-Driven Design (DDD) is a software development practice that focuses on understanding and modeling complex organization domains. It encourages developers to think more about the domain problem and desired business outcomes than the tactical approach. DDD is a flexible practice built on principles and concepts, not hard rules. It is a lightweight method of building a common language with domain experts.&lt;&#x2F;p&gt;
&lt;p&gt;Does this mean DDD is right for every AutoML endeavor? Not necessarily. When experimenting with data and working with light predictions, bringing the framework of DDD is likely overkill. But when working with complex domains, like healthcare or modern manufacturing, involving domain experts is common. DDD is useful for conducting valuable discussions, capturing important vocabulary, and uncovering unique domain behaviors. It is a tool to include in the professional’s toolbox, even when working with low- or no-code solutions. Understanding how the organization will use the solution to meet desired outcomes is essential for success. DDD helps bridge the gap between desired outcomes and machine learning models.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;&#x2F;wp-content&#x2F;uploads&#x2F;2023&#x2F;08&#x2F;c7e3c-automl_and_domain_driven_design_sdeggans.docx.pdf&quot;&gt;AutoML_and_Domain_Driven_Design_sdeggans.docx&lt;&#x2F;a&gt;&lt;a href=&quot;&#x2F;wp-content&#x2F;uploads&#x2F;2023&#x2F;08&#x2F;c7e3c-automl_and_domain_driven_design_sdeggans.docx.pdf&quot;&gt;Download&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Let’s Learn about Camel K</title>
        <published>2022-12-13T13:40:17-06:00</published>
        <updated>2023-08-15T08:18:21-05:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2022/12/13/lets-learn-about-camel-k/"/>
        <id>https://shawndeggans.com/2022/12/13/lets-learn-about-camel-k/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2022/12/13/lets-learn-about-camel-k/">&lt;ol&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;13&#x2F;lets-learn-about-camel-k&#x2F;#let-s-learn-about-camel-k&quot;&gt;Let’s learn about Camel k&lt;&#x2F;a&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;13&#x2F;lets-learn-about-camel-k&#x2F;#what-is-camel&quot;&gt;What is Camel?&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;13&#x2F;lets-learn-about-camel-k&#x2F;#is-there-a-difference-between-camel-and-camel-k&quot;&gt;Is there a difference between Camel and Camel K?&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;13&#x2F;lets-learn-about-camel-k&#x2F;#why-use-apache-camel&quot;&gt;Why use Apache Camel?&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;13&#x2F;lets-learn-about-camel-k&#x2F;#why-not-just-directly-connect-the-two-systems-together&quot;&gt;Why not just directly connect the two systems together?&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;13&#x2F;lets-learn-about-camel-k&#x2F;#ready-to-learn&quot;&gt;Ready to learn!&lt;&#x2F;a&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;13&#x2F;lets-learn-about-camel-k&#x2F;#routes&quot;&gt;Routes&lt;&#x2F;a&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;13&#x2F;lets-learn-about-camel-k&#x2F;#drag-and-drop-gui&quot;&gt;Drag and Drop GUI&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;13&#x2F;lets-learn-about-camel-k&#x2F;#introducing-kaoto&quot;&gt;Introducing Kaoto&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;13&#x2F;lets-learn-about-camel-k&#x2F;#routes-and-integration-patterns&quot;&gt;Routes and Integration Patterns&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;13&#x2F;lets-learn-about-camel-k&#x2F;#the-big-k&quot;&gt;The Big K&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;13&#x2F;lets-learn-about-camel-k&#x2F;#camel-k-and-knative&quot;&gt;Camel K and Knative&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;13&#x2F;lets-learn-about-camel-k&#x2F;#camel-k-and-quarkus&quot;&gt;Camel K and Quarkus&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;13&#x2F;lets-learn-about-camel-k&#x2F;#next-steps&quot;&gt;Next Steps&lt;&#x2F;a&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;shawndeggans.com&#x2F;2022&#x2F;12&#x2F;13&#x2F;lets-learn-about-camel-k&#x2F;#download-this-article&quot;&gt;Download this article&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;h1 id=&quot;let-s-learn-about-camel-k&quot;&gt;Let’s learn about Camel k&lt;&#x2F;h1&gt;
&lt;hr &#x2F;&gt;
&lt;p&gt;There are multiple cloud and serverless solutions available for integration. Some of these are proprietary products like Microsoft BizTalk, Azure Logic Apps, or Dell’s Boomi.&lt;&#x2F;p&gt;
&lt;p&gt;There are hybrid options, like Saleforce’s Mulesoft, which has a lighter, open source version, but the real functionality is in the licensed version. Then there are a few truly open source solutions, like Apache ServiceMix or Apache Synapse (not to be confused with Azure Synapse).&lt;&#x2F;p&gt;
&lt;p&gt;We’re covering Camel K today, because it looks like an integration winner in the open source community. ServiceMix looked like an interesting competitor to Mulesoft, but it doesn’t seem to be as active as Camel K.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;what-is-camel&quot;&gt;What is Camel?&lt;&#x2F;h2&gt;
&lt;p&gt;Apache Camel is an enterprise integration framework based on the famous Enterprise Integration Patterns codified by Gregor Hohpe and Bobby Woolf in their book, &lt;em&gt;Enterprise Integration Patterns: Designing, Building, and Deploying Messaging Solutions&lt;&#x2F;em&gt;&lt;&#x2F;p&gt;
&lt;p&gt;I’ve been waiting forever for a second edition of that book, but for the most part, that’s not necessary. I first learned the ins-and-outs of distributed systems from that book, and I would still recommend it as required reading today for cloud architects.&lt;&#x2F;p&gt;
&lt;p&gt;I won’t dive into the discipline and the craft needed to be a software integrator, but the fact that Camel focuses on these concepts and patterns makes a developer’s job much easier.&lt;&#x2F;p&gt;
&lt;p&gt;Camel is a small library designed to work with pluggable connectors. There are hundreds of pluggable connector choices for existing, known APIs. And like any good pluggable system, you can create your own plug-ins.&lt;&#x2F;p&gt;
&lt;p&gt;You can create routing and mediation rules in a variety of JVM languages, like Java, Groovy, and Kotlin. There’s also the option to use XML and YAML if you’re into that sort of thing (no judgement!).&lt;&#x2F;p&gt;
&lt;h2 id=&quot;is-there-a-difference-between-camel-and-camel-k&quot;&gt;Is there a difference between Camel and Camel K?&lt;&#x2F;h2&gt;
&lt;p&gt;It’s a native version of Apache Camel designed to run containerized on Kubernetes or Microservices. Basically, this is the serverless version of Camel.&lt;&#x2F;p&gt;
&lt;p&gt;Which is one of the reasons I believe it has thrived more than a product like ServiceMix.&lt;&#x2F;p&gt;
&lt;p&gt;The good news! If you are familiar with Camel, Camel K will just work. If you’ve written code in Camel DSL, that code can run on Kubernetes or OpenShift.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;why-use-apache-camel&quot;&gt;Why use Apache Camel?&lt;&#x2F;h2&gt;
&lt;p&gt;I’ve been in IT long enough that my career is no longer carded at the bar when it wants to buy a beer. One practice that never seems to go away is integration. It’s the glue that holds everything together.&lt;&#x2F;p&gt;
&lt;p&gt;As someone working in the technology field, having a minimum understanding and respect for the challenges of integrating disparate systems is necessary. No matter what platform you build on, at some point your platform will need to interface with some other systems.&lt;&#x2F;p&gt;
&lt;p&gt;It’s best to understand the fundamentals of integration if you want successfully operating technology systems that bring multiple chains of value together for your customers.&lt;&#x2F;p&gt;
&lt;p&gt;Camel is happiest as the connection between two or more systems. It allows you to define a Camel Route. The Camel Route allows you to make decisions about what you do with data coming into the route, what type of processing that might need to be done to that data, and what that data needs to look like before it’s sent to the other system.&lt;&#x2F;p&gt;
&lt;p&gt;And let me be clear, that data can be almost anything. It could be an event from a piece of manufacturing machinery, it could be a command from one system to another, or it could be the communication between two microservices.&lt;&#x2F;p&gt;
&lt;p&gt;The enterprise integration patterns were designed to help establish what actually happens to a message or data between two or more systems.&lt;&#x2F;p&gt;
&lt;p&gt;As you can probably imagine, having a system between two other systems that allows you to modify the data or take action on that data is a pretty powerful tool.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;why-not-just-directly-connect-the-two-systems-together&quot;&gt;Why not just directly connect the two systems together?&lt;&#x2F;h2&gt;
&lt;p&gt;There are times when this might not be a bad solution. Context is important when building technology solutions. Point-to-point connections aren’t always evil.&lt;&#x2F;p&gt;
&lt;p&gt;However, when you get to the point where you have more than two systems that need to exchange data or messaging, you start to run into a problem. Keeping up with messages, source systems, and data transformations can get painful.&lt;&#x2F;p&gt;
&lt;p&gt;When things get painful, it’s time to use a tool to help stop that pain.&lt;&#x2F;p&gt;
&lt;p&gt;Camel is excellent for this. It’s exceptionally flexible, provides multiple patterns from manipulating XML or JSON files to working directly with cloud services.&lt;&#x2F;p&gt;
&lt;h1 id=&quot;ready-to-learn&quot;&gt;Ready to learn!&lt;&#x2F;h1&gt;
&lt;hr &#x2F;&gt;
&lt;p&gt;Let’s do this! Here’s where we start.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;routes&quot;&gt;Routes&lt;&#x2F;h2&gt;
&lt;p&gt;Remember the integration patterns I discussed earlier? Well, this is where we start putting those to work.&lt;&#x2F;p&gt;
&lt;p&gt;Camel Routes are designed with a Domain Specific Language using a JVM programming language like Java, Kotlin, or Groovy. And you can also define these in YAML or XML.&lt;&#x2F;p&gt;
&lt;p&gt;If you are familiar with working on Mulesoft code under the hood, those ugly XML routes will be familiar.&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;&amp;lt;routes xmlns=&amp;quot;&amp;lt;http:&#x2F;&#x2F;camel.apache.org&#x2F;schema&#x2F;spring&amp;gt;&amp;quot;&amp;gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    &amp;lt;route&amp;gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        &amp;lt;from uri=&amp;quot;timer:tick&amp;quot;&#x2F;&amp;gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        &amp;lt;setBody&amp;gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;            &amp;lt;constant&amp;gt;Hello Camel K!&amp;lt;&#x2F;constant&amp;gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;         &amp;lt;&#x2F;setBody&amp;gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        &amp;lt;to uri=&amp;quot;log:info&amp;quot;&#x2F;&amp;gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    &amp;lt;&#x2F;route&amp;gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;&amp;lt;&#x2F;routes&amp;gt;
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;That’s not too bad. And ideally you want to keep these routes short and concise. If your routing logic starts to look scary, it’s probably time to write code.&lt;&#x2F;p&gt;
&lt;p&gt;I don’t want to dive too far into code here. This article’s goal is to just give you a quick overview, but I do want to show you how easy this is using Java.&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;import org.apache.camel.builder.RouteBuilder;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;public class Example extends RouteBuilder {
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    @Override
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    public void configure() throws Exception {
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        from(&amp;quot;timer:tick&amp;quot;)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;            .setBody()
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;              .constant(&amp;quot;Hello Camel K!&amp;quot;)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;            .to(&amp;quot;log:info&amp;quot;);
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    }
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;}
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Ok, so what if you come from the Mulesoft world or one of these other integration platforms that offer a visual interface to make this work? Let’s be honest, if you’ve used Azure Logic Apps, Make, or Zapier, you probably want a similar experience.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;drag-and-drop-gui&quot;&gt;Drag and Drop GUI&lt;&#x2F;h3&gt;
&lt;p&gt;I don’t want to jump too far ahead, but there is a solution for the low-code folks. And let’s face it, seeing a visual representation of flows is much easier to work with than code.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;introducing-kaoto&quot;&gt;Introducing Kaoto&lt;&#x2F;h3&gt;
&lt;p&gt;There’s a lot to Kaoto. I want to keep this brief, but I do want to assure those who are used to working with visual tools that you aren’t losing that functionality. For the engineers in the room, Kaoto won’t increase the footprint of the deployed code.&lt;&#x2F;p&gt;
&lt;p&gt;Why is using Kaoto a good idea?&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;It’s Cloud Native and works with Camel K&lt;&#x2F;li&gt;
&lt;li&gt;We can extend it if needed&lt;&#x2F;li&gt;
&lt;li&gt;It’s not locked in No Code, we can switch back to code if we need to&lt;&#x2F;li&gt;
&lt;li&gt;It’s Open Source, so it will only cost you the time to learn it&lt;&#x2F;li&gt;
&lt;li&gt;You can run it in Docker – I’m a big fan of doing all my development in containers, so this is always a plus for me&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;routes-and-integration-patterns&quot;&gt;Routes and Integration Patterns&lt;&#x2F;h3&gt;
&lt;p&gt;There are well over 300 connection points available for Camel. Many of these are common like JDBC, REST, SOAP. But there are also more specific connectors, like Slack, gRPC, Google Mail, WordPress, RabbitMQ, etc.&lt;&#x2F;p&gt;
&lt;p&gt;Many of the connectors you are used to seeing in commercial products are available in Camel. If you don’t find something you need, you can create your own connector.&lt;&#x2F;p&gt;
&lt;p&gt;There are also integration patterns for almost any situation, and the patterns can build connected and built upon to create messaging pipelines.&lt;&#x2F;p&gt;
&lt;p&gt;I won’t go into each pattern, but they fit within these categories:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Messaging Systems, like a message, a message channel, or message endpoint&lt;&#x2F;li&gt;
&lt;li&gt;Messaging Channel, like a point-to-point channel, dead letter channel, message bus&lt;&#x2F;li&gt;
&lt;li&gt;Message Construction, like return address, message expiration, and event message&lt;&#x2F;li&gt;
&lt;li&gt;Message Routing, like splitter, scatter-gather, and process manager&lt;&#x2F;li&gt;
&lt;li&gt;Message Transformation, like content enricher, claim check, and validate&lt;&#x2F;li&gt;
&lt;li&gt;Messaging Endpoints, like message dispatcher, idempotent consumer, and messaging gateway&lt;&#x2F;li&gt;
&lt;li&gt;System Management, like detour, message history, and step&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;That is just a short collection of the patterns and their categories. It’s well worth any developers time to read through these and understand the problems in integration that they address. As a bonus, familiarizing yourself with integration patterns will make you a better programmer and more adept at designing solutions for the cloud.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;the-big-k&quot;&gt;The Big K&lt;&#x2F;h2&gt;
&lt;p&gt;Camel K allows us to run Camel in Kubernetes. Why is this important?&lt;&#x2F;p&gt;
&lt;p&gt;First, you’ll want to understand that Camel K isn’t just Camel, it’s everything Camel can do, but it’s written in Go. The original Camel is a Java product. Nothing necessarily wrong with Java and the JVM, but it does tend to have a bigger footprint than Go. Go eats less memory. Eating less memory is good for the cloud.&lt;&#x2F;p&gt;
&lt;p&gt;It also doesn’t need the surrounding infrastructure that Camel requires. Camel can run almost anywhere the JVM is supported. Spring Boot is a good way of hosting Camel. And yes, you could containerize that and run it in Kubernetes.&lt;&#x2F;p&gt;
&lt;p&gt;However, Camel K was born for Kubernetes and containers. And there is a custom Kubernetes resource designed for Camel. This means that from a developer’s standpoint, you just need to write your code locally, and then use the Kamel CLI to push your changes to the cloud.&lt;&#x2F;p&gt;
&lt;p&gt;Now, you might want a more defined DevOps process, but the idea is that there is far less friction between the code written and the code that runs in production.&lt;&#x2F;p&gt;
&lt;p&gt;The basic loop is as follows:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;You change your integration code&lt;&#x2F;li&gt;
&lt;li&gt;You commit your changes to the cloud&lt;&#x2F;li&gt;
&lt;li&gt;The custom integration resource notifies a Camel K operator&lt;&#x2F;li&gt;
&lt;li&gt;The operator pushes the changes to the running pods&lt;&#x2F;li&gt;
&lt;li&gt;Go back to step 1&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;h2 id=&quot;camel-k-and-knative&quot;&gt;Camel K and Knative&lt;&#x2F;h2&gt;
&lt;p&gt;What is Knative, and why do I want to use it with Camel k?&lt;&#x2F;p&gt;
&lt;p&gt;Knative is an extension of Kubernetes. It enables Serverless workloads to run on Kubernetes clusters, and provides tools to make building and managing containers easier.&lt;&#x2F;p&gt;
&lt;p&gt;Knative has three primary areas of responsibility:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;Build&lt;&#x2F;li&gt;
&lt;li&gt;Serving&lt;&#x2F;li&gt;
&lt;li&gt;Eventing&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;The idea behind Serverless is that it should just work, and it should just work well in a variety of situations. For instance, it should scale up automatically when workloads increase, and it should scale down automatically when workloads decrease. This is what the serving portion of the solution does.&lt;&#x2F;p&gt;
&lt;p&gt;If you install Camel K on a Kubernetes cluster that already has Knative installed, the Camel K operator will automatically configure itself with a Knative profile. Pretty sweet!&lt;&#x2F;p&gt;
&lt;p&gt;When this in place, instead of just creating a standard Camel K deployment, Knative and the Camel Operator will create a Knative Service, which gives us the serverless experience.&lt;&#x2F;p&gt;
&lt;p&gt;KNative can also help with events. Event-driven architecture using Camel K is a bit too complex for this quick introduction, but I do want to touch on what possibilities this opens up for developers and architects.&lt;&#x2F;p&gt;
&lt;p&gt;Because Knative allows you to add subscription channels that are associated with your integration services, you can now build pipelines that work with events. This event-based system can be backed by Kafka. Managing evens within your Camel K integration service, allows you to also employ common integration patterns.&lt;&#x2F;p&gt;
&lt;p&gt;We can accept event sources from any event producing system. I typically use Mosquitto as my primary MQTT hub, and in this case I could pass all my incoming MQTT message to Camel K and allow it to manage the orchestration of event messages to its various subscribers.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;camel-k-and-quarkus&quot;&gt;Camel K and Quarkus&lt;&#x2F;h2&gt;
&lt;p&gt;What is Quarkus? Think of Quarkus as the new Java Framework with a funny name. Quarkus is a Kubernetes-native Java framework made for GraalVM and HotSpot. It’s also open source and an Apache project.&lt;&#x2F;p&gt;
&lt;p&gt;Why do we want to use it with our Camel K integrations?&lt;&#x2F;p&gt;
&lt;p&gt;Again, one of the things we want from our cloud native solutions is smaller library sizes. The Java Framework was conceived and built in the age of the monolith. Apps usually ran on powerful hardware in data centers, and they ran continuously. The concept of scaling up or down meant adding or removing hardware.&lt;&#x2F;p&gt;
&lt;p&gt;With Kubernetes and cloud solutions, we want small. The smaller, the better. Quarkus gives us that smaller size, so we can scale up or down as needed.&lt;&#x2F;p&gt;
&lt;p&gt;Basically, we’re designing our Java applications to compile much more like Go. It’s a binary now, and we don’t need the JVM.&lt;&#x2F;p&gt;
&lt;h1 id=&quot;next-steps&quot;&gt;Next Steps&lt;&#x2F;h1&gt;
&lt;p&gt;Here are a few great resources for learning more about Camel K and how to use&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;developers.redhat.com&#x2F;topics&#x2F;camel-k&quot;&gt;https:&#x2F;&#x2F;developers.redhat.com&#x2F;topics&#x2F;camel-k&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;camel.apache.org&#x2F;&quot;&gt;https:&#x2F;&#x2F;camel.apache.org&#x2F;&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;apache&#x2F;camel-k&#x2F;tree&#x2F;main&#x2F;examples&quot;&gt;https:&#x2F;&#x2F;github.com&#x2F;apache&#x2F;camel-k&#x2F;tree&#x2F;main&#x2F;examples&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;h3 id=&quot;download-this-article&quot;&gt;Download this article&lt;&#x2F;h3&gt;
&lt;p&gt;let-s-learn-about-camel-k_6398d98eDownload&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>A Journey Toward Better Workshops and Analysis</title>
        <published>2022-10-25T10:20:47-05:00</published>
        <updated>2022-10-25T10:41:25-05:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2022/10/25/a-journey-toward-better-workshops-and-analysis/"/>
        <id>https://shawndeggans.com/2022/10/25/a-journey-toward-better-workshops-and-analysis/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2022/10/25/a-journey-toward-better-workshops-and-analysis/">&lt;p&gt;This post is serving two purposes today. The first is to thank all the experts who reached out to me on Twitter to help point me toward some important tools, research, and talks related to my request for help. A few days ago I reached out to the twitter community with a request:&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;I’m on a journey to learn how to take clients from desired business outcomes to an abstract socio-technical architecture through workshops and conversations.&lt;&#x2F;p&gt;
&lt;p&gt;DDD, Design Thinking, Wardley Maps, and Theory of Constraints are on my radar.&lt;&#x2F;p&gt;
&lt;p&gt;Anything else I should consider?&lt;&#x2F;p&gt;
&lt;p&gt;— Shawn Deggans (@SDeggans) &lt;a href=&quot;https:&#x2F;&#x2F;twitter.com&#x2F;SDeggans&#x2F;status&#x2F;1584254418114867200?ref_src=twsrc%5Etfw&quot;&gt;October 23, 2022&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;platform.twitter.com&#x2F;widgets.js&quot;&gt;https:&#x2F;&#x2F;platform.twitter.com&#x2F;widgets.js&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;I received a flood of great advice and resources that I’ll go through in this post.&lt;&#x2F;p&gt;
&lt;p&gt;My second purpose for this post is to announce that I’m working on some of my own workshops. Workshops were one of the few meeting types I enjoyed while working at a consulting firm. Done correctly, they’re a wonderful way to work collaboratively with clients and partners. I was fortunate enough to attend and participate in many successful workshops. I also had the opportunity to run and create workshops.&lt;&#x2F;p&gt;
&lt;p&gt;The firm did have their own in-house developed approaches. Many of these were either based on Microsoft’s recommended technical workshops, like the Cloud Adoption Framework, or Human Centered Design approaches.&lt;&#x2F;p&gt;
&lt;p&gt;There’s nothing wrong with these workshops, but I always struggled with connecting the workshops directly with the client’s needs. If you know me, I’m never happy going along with something that doesn’t feel like it’s quite the right fit.&lt;&#x2F;p&gt;
&lt;p&gt;I’ve been on a type of journey, where I’m taking many of the things I’ve learned from Eric Evan’s Domain-Driven Design, from the burgeoning Sociotechnical Systems Theory, and a handful of other disciplines to create something that’s uniquely mine. My approach won’t be too far off from what’s regularly practiced in DDD modeling sessions, but I am using what I learn from these other disciplines to inform my own.&lt;&#x2F;p&gt;
&lt;p&gt;My goal isn’t to recreate the wheel. I see these as a handful of tools that help with a continuing conversation. The conversation explores ideas about systems design, operations, development, workplace improvement, processes that create results. I want to help clients go from desired outcomes to working systems. The best way I’ve discovered to do this is through directed conversations. I believe, great, collaborative conversations and workshops help achieve that goal.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;resources&quot;&gt;Resources&lt;&#x2F;h2&gt;
&lt;p&gt;If you’re interested in this same type of journey, I’ll share the resources that were shared with me on Twitter.&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;I came across this video that looks like a good start: &lt;a href=&quot;https:&#x2F;&#x2F;t.co&#x2F;pRCzRFg8IY&quot;&gt;https:&#x2F;&#x2F;t.co&#x2F;pRCzRFg8IY&lt;&#x2F;a&gt; from &lt;a href=&quot;https:&#x2F;&#x2F;twitter.com&#x2F;emgsilva?ref_src=twsrc%5Etfw&quot;&gt;@emgsilva&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;— Shawn Deggans (@SDeggans) &lt;a href=&quot;https:&#x2F;&#x2F;twitter.com&#x2F;SDeggans&#x2F;status&#x2F;1584596513354702848?ref_src=twsrc%5Etfw&quot;&gt;October 24, 2022&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;platform.twitter.com&#x2F;widgets.js&quot;&gt;https:&#x2F;&#x2F;platform.twitter.com&#x2F;widgets.js&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;Here’s the video mentioned in my Tweet:&lt;&#x2F;p&gt;
&lt;iframe class=&quot;youtube-player&quot; title=&quot;YouTube video player&quot; width=&quot;560&quot; height=&quot;315&quot; src=&quot;https:&#x2F;&#x2F;www.youtube.com&#x2F;embed&#x2F;ekMPm78KFj0?version=3&amp;amp;rel=1&amp;amp;showsearch=0&amp;amp;showinfo=1&amp;amp;iv_load_policy=1&amp;amp;fs=1&amp;amp;hl=en&amp;amp;autohide=2&amp;amp;wmode=transparent&quot; allowfullscreen=&quot;true&quot; style=&quot;border:0;&quot; sandbox=&quot;allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox&quot;&gt;&lt;&#x2F;iframe&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;twitter.com&#x2F;ruthmalan?ref_src=twsrc%5Etfw&quot;&gt;@ruthmalan&lt;&#x2F;a&gt; tweets, workshops and her workshop book are a huge source of materials and synthesis of ideas that are extremely rich on these topics of sociotechnical systems design, leadership and architecture.&lt;&#x2F;p&gt;
&lt;p&gt;— Eduardo da Silva (@emgsilva) &lt;a href=&quot;https:&#x2F;&#x2F;twitter.com&#x2F;emgsilva&#x2F;status&#x2F;1584614663349600256?ref_src=twsrc%5Etfw&quot;&gt;October 24, 2022&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;platform.twitter.com&#x2F;widgets.js&quot;&gt;https:&#x2F;&#x2F;platform.twitter.com&#x2F;widgets.js&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;Ruth Malan has a small mountain of information I’ll need to work through. I can’t wait. You can find Ruth’s work here: &lt;a href=&quot;https:&#x2F;&#x2F;www.ruthmalan.com&#x2F;&quot;&gt;https:&#x2F;&#x2F;www.ruthmalan.com&#x2F;&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;(Free) ebook on Decisions and Technical Leadership&lt;a href=&quot;https:&#x2F;&#x2F;t.co&#x2F;fXuqgpv8km&quot;&gt;https:&#x2F;&#x2F;t.co&#x2F;fXuqgpv8km&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;— VisArch (@ruthmalan) &lt;a href=&quot;https:&#x2F;&#x2F;twitter.com&#x2F;ruthmalan&#x2F;status&#x2F;1164298042239066112?ref_src=twsrc%5Etfw&quot;&gt;August 21, 2019&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;platform.twitter.com&#x2F;widgets.js&quot;&gt;https:&#x2F;&#x2F;platform.twitter.com&#x2F;widgets.js&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;Eduardo da Silva provided additional information on his works, as well.&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;All my writings and talks on Sociotechnical Systems Evolution &amp;amp; Architecture can be found here 👇🏼… And there are more to come ☺️&lt;a href=&quot;https:&#x2F;&#x2F;t.co&#x2F;m1AnofTsOi&quot;&gt;https:&#x2F;&#x2F;t.co&#x2F;m1AnofTsOi&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;— Eduardo da Silva (@emgsilva) &lt;a href=&quot;https:&#x2F;&#x2F;twitter.com&#x2F;emgsilva&#x2F;status&#x2F;1584626667473240065?ref_src=twsrc%5Etfw&quot;&gt;October 24, 2022&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;platform.twitter.com&#x2F;widgets.js&quot;&gt;https:&#x2F;&#x2F;platform.twitter.com&#x2F;widgets.js&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;For Eduardo’s consulting services on these topics, you can find more information on his webpage here: &lt;a href=&quot;https:&#x2F;&#x2F;esilva.net&#x2F;consulting&#x2F;&quot;&gt;https:&#x2F;&#x2F;esilva.net&#x2F;consulting&#x2F;&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;twitter.com&#x2F;al94781?ref_src=twsrc%5Etfw&quot;&gt;@al94781&lt;&#x2F;a&gt; synthesis to approaching distributed decision making using ideas such as advice process are opening doors to have more scalable and robust ways to approach architecture&lt;a href=&quot;https:&#x2F;&#x2F;t.co&#x2F;kfaxC8Hd8F&quot;&gt;https:&#x2F;&#x2F;t.co&#x2F;kfaxC8Hd8F&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;— Eduardo da Silva (@emgsilva) &lt;a href=&quot;https:&#x2F;&#x2F;twitter.com&#x2F;emgsilva&#x2F;status&#x2F;1584613353820856320?ref_src=twsrc%5Etfw&quot;&gt;October 24, 2022&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;platform.twitter.com&#x2F;widgets.js&quot;&gt;https:&#x2F;&#x2F;platform.twitter.com&#x2F;widgets.js&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;Additionally, Krisztina left some excellent links to Domain-Driven Design resources. DDD is one of the disciplines that has continued to grow. For its age, it’s really held up, and it provide a great set of tools for building common understanding about systems from those who build the systems and those who derive value from those systems.&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;and if you are done with everything Eduardo suggested you, you can start picking staff on &lt;a href=&quot;https:&#x2F;&#x2F;t.co&#x2F;4iHwZdjHSs&quot;&gt;https:&#x2F;&#x2F;t.co&#x2F;4iHwZdjHSs&lt;&#x2F;a&gt; 😀&lt;&#x2F;p&gt;
&lt;p&gt;— Krisztina 🇪🇺 🌎 (@YellowBrickC) &lt;a href=&quot;https:&#x2F;&#x2F;twitter.com&#x2F;YellowBrickC&#x2F;status&#x2F;1584623955188514818?ref_src=twsrc%5Etfw&quot;&gt;October 24, 2022&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;platform.twitter.com&#x2F;widgets.js&quot;&gt;https:&#x2F;&#x2F;platform.twitter.com&#x2F;widgets.js&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;Eduardo also introduced me to the work of Trond Hjorteland. Trond and I apparently have the same appreciation for post-punk&#x2F;gothic rock and we share a birthday – I mean, the exact birthday, which is always a little weird.&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;twitter.com&#x2F;trondhjort?ref_src=twsrc%5Etfw&quot;&gt;@trondhjort&lt;&#x2F;a&gt; insights on the rich literature from open systems theory are also bringing up excellent points for approaching the design of sociotechnical system!&lt;&#x2F;p&gt;
&lt;p&gt;— Eduardo da Silva (@emgsilva) &lt;a href=&quot;https:&#x2F;&#x2F;twitter.com&#x2F;emgsilva&#x2F;status&#x2F;1584612410627100672?ref_src=twsrc%5Etfw&quot;&gt;October 24, 2022&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;platform.twitter.com&#x2F;widgets.js&quot;&gt;https:&#x2F;&#x2F;platform.twitter.com&#x2F;widgets.js&lt;&#x2F;a&gt;&lt;iframe class=&quot;youtube-player&quot; title=&quot;YouTube video player&quot; width=&quot;560&quot; height=&quot;315&quot; src=&quot;https:&#x2F;&#x2F;www.youtube.com&#x2F;embed&#x2F;l9z8DMvDMBw?version=3&amp;amp;rel=1&amp;amp;showsearch=0&amp;amp;showinfo=1&amp;amp;iv_load_policy=1&amp;amp;fs=1&amp;amp;hl=en&amp;amp;autohide=2&amp;amp;wmode=transparent&quot; allowfullscreen=&quot;true&quot; style=&quot;border:0;&quot; sandbox=&quot;allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox&quot;&gt;&lt;&#x2F;iframe&gt;&lt;&#x2F;p&gt;
&lt;p&gt;To close things out:&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;twitter.com&#x2F;suksr?ref_src=twsrc%5Etfw&quot;&gt;@suksr&lt;&#x2F;a&gt; work and materials (incl. upcoming book) are also great at connecting many dots in these topics, including Wardley Mapping, DDD and &lt;a href=&quot;https:&#x2F;&#x2F;twitter.com&#x2F;TeamTopologies?ref_src=twsrc%5Etfw&quot;&gt;@TeamTopologies&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;— Eduardo da Silva (@emgsilva) &lt;a href=&quot;https:&#x2F;&#x2F;twitter.com&#x2F;emgsilva&#x2F;status&#x2F;1584611694168326144?ref_src=twsrc%5Etfw&quot;&gt;October 24, 2022&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;platform.twitter.com&#x2F;widgets.js&quot;&gt;https:&#x2F;&#x2F;platform.twitter.com&#x2F;widgets.js&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;I have read the Team Topologies book and I love it. Thoughts and concepts from this book will definitely find a place in my processes. From what I can see, DDD modeling has already pointed out where it fits nicely when exploring Bounded Context. I’ve pre-ordered Susanne Kaiser’s book Adaptive Systems With Domain-Driven Design, Wardley Mapping, and Team Topologies: Architecture for Flow (Addison-Wesley Signature Vernon). I can’t wait to read it.&lt;&#x2F;p&gt;
&lt;p&gt;Here’s a clip where Susanne discusses the subject of her book:&lt;&#x2F;p&gt;
&lt;iframe class=&quot;youtube-player&quot; title=&quot;YouTube video player&quot; width=&quot;560&quot; height=&quot;315&quot; src=&quot;https:&#x2F;&#x2F;www.youtube.com&#x2F;embed&#x2F;qKLnlaWKkb4?version=3&amp;amp;rel=1&amp;amp;showsearch=0&amp;amp;showinfo=1&amp;amp;iv_load_policy=1&amp;amp;fs=1&amp;amp;hl=en&amp;amp;autohide=2&amp;amp;wmode=transparent&quot; allowfullscreen=&quot;true&quot; style=&quot;border:0;&quot; sandbox=&quot;allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox&quot;&gt;&lt;&#x2F;iframe&gt;
&lt;h2 id=&quot;more-to-come&quot;&gt;More to come…&lt;&#x2F;h2&gt;
&lt;p&gt;There’s a lot more to this collection of disciplines. I didn’t even touch on Gene Kim, DevOps, Dr. Goldratt’s Theory of Constraints, and so much more.&lt;&#x2F;p&gt;
&lt;p&gt;However, much of what I’m seeing here is that my love for DDD isn’t misplaced. It’s a great foundation to continue to build from. So I’ll likely reread my big blue book soon, follow up on all this material, and find better ways to delivery amazing systems to generate value for their users.&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Matter: a Unifying Standard for Home Devices or Hype?</title>
        <published>2022-10-12T06:18:05+06:00</published>
        <updated>2022-10-12T06:18:05-05:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2022/10/12/matter-iot-standard/"/>
        <id>https://shawndeggans.com/2022/10/12/matter-iot-standard/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2022/10/12/matter-iot-standard/">&lt;p&gt;In this short article I want to discuss the release of the recent standard, Matter, formally CHIP (Project Connected Home over IP). Will we have a consumer device communication standard that’s ideal for the smart home or are we looking at yet another standard that will further complicate IoT for the our smart appliances?&lt;&#x2F;p&gt;
&lt;p&gt;Matter was parented by the Connectivity Standards Alliance and release to the world this month. Version 1 is available now for review by manufacturers, developers, and anyone curious about this new means of device communications.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;csa-iot.org&#x2F;developer-resource&#x2F;specifications-download-request&#x2F;&quot;&gt;https:&#x2F;&#x2F;csa-iot.org&#x2F;developer-resource&#x2F;specifications-download-request&#x2F;&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;The goal of this standard is to make interoperability among home devices easier. And because the standard has backing from Samsung, Google, Apple, and a large number of other organizations with interest in the home device market, there appears to be a fair chance the standard will stick.&lt;&#x2F;p&gt;
&lt;p&gt;The promise seems to be less hassle for the user. When you purchase a product that adheres to the Matter standard, you should be able to easily connect and integrate with other devices in your home using that standard.&lt;&#x2F;p&gt;
&lt;p&gt;But what about security? Even at this moment, I can connect to my neighbor’s TV from my iPad if I wanted to. How do we make sure that these devices are safe, even for those who aren’t the most technically skilled?&lt;&#x2F;p&gt;
&lt;p&gt;According to their security white paper, Matter follows five security tenets:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Comprehensive – they use a layered approach&lt;&#x2F;li&gt;
&lt;li&gt;Strong – they use well-tested, strong cryptography&lt;&#x2F;li&gt;
&lt;li&gt;Easy – security should improve ease of use, or decrease it&lt;&#x2F;li&gt;
&lt;li&gt;Resilient – protect, detect, recover&lt;&#x2F;li&gt;
&lt;li&gt;Agile – able to respond quickly to threats&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;How easily will this be adopted by the developers? I did take a look at the source code and libraries. It’s written in C++, so it should be fast. And there appear to be libraries for most of your common development boards, chipsets, and MCUs. I think that’s good sign. You can see the repo here:&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;project-chip&#x2F;connectedhomeip&quot;&gt;https:&#x2F;&#x2F;github.com&#x2F;project-chip&#x2F;connectedhomeip&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;So is it a viable standard or is it hype?&lt;&#x2F;p&gt;
&lt;p&gt;Matter was a long time in the making. And it’s creation required manufacturing rivals like Google, Apple, and Samsung to sit across from each other at a table and agree on one direction to take device communication. The standard was just released this month and the official launch is on November 3rd. There are already a large group of early adopters prepared to launch products. Some of your appliances under the Christmas Tree this year might be Matter compatible.&lt;&#x2F;p&gt;
&lt;p&gt;I think it’s safe to say that Matter isn’t just hype. It looks to be a great way for devices to communicate easily on a home network using common IP methods and options like WiFi and a new protocol called Thread. Maybe this time next year we’ll see more IoT innovation in our homes because of better device interoperability.&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Personal Post on My Continuing Journey with IoT Edge Computing</title>
        <published>2022-09-21T00:53:46+06:00</published>
        <updated>2023-08-15T08:18:21-05:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2022/09/21/personal-post-on-my-continuing-journey-with-iot-edge-computing/"/>
        <id>https://shawndeggans.com/2022/09/21/personal-post-on-my-continuing-journey-with-iot-edge-computing/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2022/09/21/personal-post-on-my-continuing-journey-with-iot-edge-computing/">&lt;h2 id=&quot;i-made-the-biggest-career-change-of-my-life-recently&quot;&gt;&lt;strong&gt;I made the biggest career change of my life recently.&lt;&#x2F;strong&gt;&lt;&#x2F;h2&gt;
&lt;p&gt;I left the consulting firm I had been employed with for the past four years. It wasn’t an easy decision. I gave up a technical leadership role, I left a lot of people who I loved working with, and I gave up the security of a regular paycheck.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;what-was-behind-my-decision&quot;&gt;&lt;strong&gt;What was behind my decision?&lt;&#x2F;strong&gt;&lt;&#x2F;h3&gt;
&lt;p&gt;Focus.&lt;&#x2F;p&gt;
&lt;p&gt;Focus was my primary reason for leaving. Two years ago I began a journey to learn and apply everything I would need to know to be a competent IoT Edge Architect. I began that journey with the hopes that my career would be heavily focused on helping organizations solve interesting problems using modern data analytics, IoT systems, and containerized machine learning on the edge.&lt;&#x2F;p&gt;
&lt;p&gt;That never really happened. I had the occasional opportunity to work with machine learning, Kubernetes, and some advanced analytics, but the bulk of interesting data work was done by other people while I focused on platform development.&lt;&#x2F;p&gt;
&lt;p&gt;I didn’t allow those IoT skills to go static though, because I did the occasional side work with partners focused on IoT, but my day job always came first. It reached the point that the day job wouldn’t allow time for anything other than the day job. I didn’t want those IoT skills to go stale, so I had to make the difficult decision. Do I stay where I am and try to be happy or do I pursue the career working with the technology I know actually moves the needle for organizations?&lt;&#x2F;p&gt;
&lt;h3 id=&quot;so-here-i-am-completely-independent-ready-to-focus&quot;&gt;So here I am, completely independent. Ready to focus.&lt;&#x2F;h3&gt;
&lt;p&gt;I got pretty good with infrastructure deployment and DevOps, so that’s the majority of the work the firm put me on. And they put me on a lot of it. Systems architecture and design became my everything for a while. Let me be clear that there’s absolutely nothing wrong with systems design work. It can be incredibly rewarding. It’s actually a big part of IoT Edge development. It just became clear to me that I was never going to have the opportunity to help build anything interesting on the infrastructure I was creating.&lt;&#x2F;p&gt;
&lt;p&gt;During my time with the firm, I went from a senior application developer to a cloud systems architect. It took me four years to make it happen, but it was definitely a necessary milestone for the next stage of my journey.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;what-is-the-next-stage-of-my-journey&quot;&gt;&lt;strong&gt;What is the next stage of my journey?&lt;&#x2F;strong&gt;&lt;&#x2F;h3&gt;
&lt;p&gt;I’m returning my focus to IoT Edge computing.&lt;&#x2F;p&gt;
&lt;p&gt;What I want to do for my career is implement edge and IoT systems from multiple types of systems to multiple cloud and server solutions using modern communication systems, analytics, and security. I mean, for something that’s supposed to be a &lt;em&gt;focus&lt;&#x2F;em&gt;, that’s pretty broad. However, it all fits together nicely for certain, specialized use cases.&lt;&#x2F;p&gt;
&lt;p&gt;I have a lot of experience and a few certifications in Azure, so I have no plans to walk away from Azure any time soon, but I’ve had the opportunity to work with a few other products like &lt;a href=&quot;https:&#x2F;&#x2F;www.influxdata.com&#x2F;&quot;&gt;InfluxDB&lt;&#x2F;a&gt;, &lt;a href=&quot;https:&#x2F;&#x2F;www.milesight-iot.com&#x2F;&quot;&gt;Milesight&lt;&#x2F;a&gt;, &lt;a href=&quot;https:&#x2F;&#x2F;www.chirpstack.io&#x2F;&quot;&gt;Chirpstack&lt;&#x2F;a&gt;, &lt;a href=&quot;https:&#x2F;&#x2F;mosquitto.org&#x2F;&quot;&gt;Eclipse Mosquitto&lt;&#x2F;a&gt;, and I don’t want to limit myself to one cloud or one set of solutions. Much of my focus moving forward will be more on the &lt;a href=&quot;https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;azure&#x2F;iot-edge&#x2F;about-iot-edge?view=iotedge-1.4&quot;&gt;IoT Edge System Design&lt;&#x2F;a&gt;. The theory, the best practices, the understanding of why certain technologies are used over other technologies.&lt;&#x2F;p&gt;
&lt;p&gt;Basically, in order to improve my IoT Edge expertise, I need to say no to a lot of other types of work. Am I capable of helping an organization migrate all their SQL data systems from on-premises to the cloud? Yes, it’s completely within my wheelhouse. Could I build a distributed e-commerce solution using .Net applications in Docker containers for high availability using the best security Azure has to offer? Yes, also within my skillset. Will I take on any of that work? No. I won’t. And that’s the point I’ve reached in my career. I’m going to be very selective about the type of work I take on, and the type of clients who I work with.&lt;&#x2F;p&gt;
&lt;p&gt;That’s my goal. Focus. Be one of the best.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;what-can-you-expect-from-this-blog&quot;&gt;&lt;strong&gt;What can you expect from this blog?&lt;&#x2F;strong&gt;&lt;&#x2F;h3&gt;
&lt;p&gt;It won’t change too much, but I will create more content. I do like doing technical deep dives, so you will see more of these. I also like to explore use cases. You’ll see more of that, especially in the &lt;a href=&quot;https:&#x2F;&#x2F;farmtechsociety.org&#x2F;controlled-environment-agriculture-cea&#x2F;&quot;&gt;Controlled Environment Agriculture&lt;&#x2F;a&gt; industry. I believe this is an area that will need more help as our environment undergoes more changes in the coming years. If we want food in the future, we will need to know how to control our environments in a way that is economical and sustainable.&lt;&#x2F;p&gt;
&lt;p&gt;I will also write more about IoT architectures for multiple clouds and scenarios. sensors, endpoints, and power management. I want to look at how &lt;a href=&quot;https:&#x2F;&#x2F;www.historyofdatascience.com&#x2F;claude-shannon&#x2F;&quot;&gt;Claude Shannon’s Information Theory&lt;&#x2F;a&gt; shapes the way we communicate between the cloud and devices. I will probably write far more about networking than you want to read, but it’s an area that I used to hate that I’ve now grown unreasonably in love with. Obviously, lots of discussion around Edge Computing, protocols, Fog computing, &lt;a href=&quot;&#x2F;2022&#x2F;04&#x2F;27&#x2F;are-we-ready-for-the-xr-cloud&#x2F;&quot;&gt;Augmented Reality&lt;&#x2F;a&gt;, &lt;a href=&quot;&#x2F;2021&#x2F;07&#x2F;14&#x2F;how-do-you-use-ai-to-improve-reliability&#x2F;&quot;&gt;Machine Learning&lt;&#x2F;a&gt;, &lt;a href=&quot;&#x2F;2021&#x2F;09&#x2F;23&#x2F;operationalize-machine-learning-for-manufacturing&#x2F;&quot;&gt;MLOPs&lt;&#x2F;a&gt;, DevOps, EdgeOps, and of course security.&lt;&#x2F;p&gt;
&lt;p&gt;That’s the technical side, but I also want to start working more with the community. DFW, Texas has quite the community of IoT organizations and engineers. I hope to connect with these individuals and organizations and capture some of ways I can help them, or they help me and record those outcomes here.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;what-about-money&quot;&gt;&lt;strong&gt;What about money?&lt;&#x2F;strong&gt;&lt;&#x2F;h3&gt;
&lt;p&gt;Ah, yes. I do actually have bills to pay. So I will need to make money. Luckily, I’m in the financial position that I don’t necessarily need to earn a fulltime income immediately. I’m also fortunate enough to have work from one of my business partners that fits directly within my goals. We’re building an InfluxDB for some time series data and using Pandas to build some forecasting. I’ve also had my own LLC for a few years now, so the business side of things won’t be a hurdle.&lt;&#x2F;p&gt;
&lt;p&gt;But I do have additional plans. Next month I’m presenting a few ways that we can partner together, if you are interesting in working on an IoT Edge project. I’m opening my calendar to a small group of people for bookings through my company called, “Green Nanny LLC.” That’s a name you’ll see me mention more in the future as I build it out to its full intention.&lt;&#x2F;p&gt;
&lt;p&gt;Here are just a few of the services I’ll offer:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Assessments – are you ready for IoT Edge? Do you know what it is and how it applies to modern, distributed solutions? What does it look like, operationally? This helps you make better decisions and pick a direction for next steps.&lt;&#x2F;li&gt;
&lt;li&gt;Architecture design sessions – let’s think through the art of the possible using machine learning, IoT, and modern data analytics. What does your future system need to look like to support edge workloads?&lt;&#x2F;li&gt;
&lt;li&gt;Briefings – if we were to implement a project, what would it take? Do you need a proof-of-value to start or are you ready for a well-architected IoT solution?&lt;&#x2F;li&gt;
&lt;li&gt;Implementations- how can I help your team implement an IoT Edge solution?&lt;&#x2F;li&gt;
&lt;li&gt;POV – let’s see if we can create a proof of value in a very short period of time?&lt;&#x2F;li&gt;
&lt;li&gt;Team training – how can I help your team learn how to implement IoT Edge?&lt;&#x2F;li&gt;
&lt;li&gt;Well-architected review and recommendations- can we improve your existing solution? Do you need help with reliability, cost optimization, security, operational excellence, or performance?&lt;&#x2F;li&gt;
&lt;li&gt;Managed Service – what are some options for managing your IoT products using a managed services provider? I don’t provide this service myself, but I still have many connections who can help make this a reality.&lt;&#x2F;li&gt;
&lt;li&gt;Retainer – Do you just need someone with a lot of IoT Edge knowledge to bounce questions off of? Not sure where you want to start on your own IoT Edge journey, but would like a guide?&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;i-m-excited-for-the-future&quot;&gt;I’m excited for the future&lt;&#x2F;h3&gt;
&lt;p&gt;I think and feel that I made the right decision for this move at the right time. My skills as an Azure Architect have put me in an excellent position to transition into something more specialized. The consulting work I did with the firm clarified the type of work I like to do, and the type of work that I’m good at. I see a lot of promise in my area of focus and a lot of financial opportunity for myself, my partners, and the clients who I will serve.&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Are We Ready for the XR Cloud?</title>
        <published>2022-04-27T20:07:48+06:00</published>
        <updated>2022-04-27T20:07:48-05:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2022/04/27/are-we-ready-for-the-xr-cloud/"/>
        <id>https://shawndeggans.com/2022/04/27/are-we-ready-for-the-xr-cloud/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2022/04/27/are-we-ready-for-the-xr-cloud/">&lt;h2 id=&quot;what-is-the-xr-cloud&quot;&gt;What is the XR Cloud?&lt;&#x2F;h2&gt;
&lt;p&gt;To answer this question, I have to define XR. XR is extended reality. It’s actually a term that encompasses Augmented Reality, Virtual Reality, and Mixed Reality. These are all technologies that alter our perception of reality in one way or another. Most people associate these technologies with bulky headsets and memes of people punching their televisions because they think they’re in a real fight with a virtual character.&lt;&#x2F;p&gt;
&lt;p&gt;I believe I’m using the term correctly when I state that XR is the portal to spatial computing. Ok, so what is spatial computing?&lt;&#x2F;p&gt;
&lt;p&gt;As complex as it sounds, spatial computing is a relatively simple concept. In fact, if you’ve ever used Google Maps or played Pokémon Go on your mobile device, you’ve already started using spatial computing. Let’s get the definition from the person who coined the phrase.&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;human interaction with a machine in which the machine retains and manipulates referents to real objects and spaces&lt;&#x2F;p&gt;
&lt;p&gt;Simon Greenwold&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;I’m defining an XR Cloud as a platform as a service that helps developers make XR possible with minimal effort. To me, this looks a lot like the IoT Edge development loop, with the exception that we’re sending out real-time changes to the XR devices. Or are we? I think we can probably learn a lot from the gaming development world here. Do we choose to create a fat client? A large executable that resides on the device and only sends small bits of telemetry to the cloud would allow for faster execution at the device. However, there are cloud streaming services that stream games. The clients on these are smaller and can often provide similar execution speed as the fat client. Many of these problems have been solved, so building out a XR cloud doesn’t seem outside the realm of possibility.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;is-it-already-here&quot;&gt;Is it Already Here?&lt;&#x2F;h2&gt;
&lt;p&gt;Sort of. There are a few groups working to make this happen.&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;Open AR Cloud’s mission is to drive the development of open and interoperable spatial computing technology, data and standards to connect the physical and digital worlds for the benefit of all.&lt;&#x2F;p&gt;
&lt;p&gt;Open AR Cloud&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;www.openarcloud.org&#x2F;&quot;&gt;https:&#x2F;&#x2F;www.openarcloud.org&#x2F;&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;Though it’s focused on AR, this could still be a good solution for an overall XR platform. Personally, I like the open-source approach for a platform like this. It will likely allow us developers to avoid vendor lock in, as well as participate in the development of the platform. At the moment, there are eleven different working groups tackling the challenges that come with an AR cloud.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;arcloud.pretiaar.com&#x2F;&quot;&gt;https:&#x2F;&#x2F;arcloud.pretiaar.com&#x2F;&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;Pretia has created a platform meant to make AR development easy. This looks a lot like gaming development, which will probably make up the backbone of early XR development. Gaming has tackled the issues around multiple people sharing space, both physically and virtually. And libraries like Unity have editors that work well with 3D objects and real spaces.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;www.augmented.city&#x2F;&quot;&gt;https:&#x2F;&#x2F;www.augmented.city&#x2F;&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;Augmented.City is an augmented reality cloud &amp;amp; platform ecosystem that allows you to capture, enrich with data, and visualize it on location in basically any device.&lt;&#x2F;p&gt;
&lt;p&gt;Augmented city&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;This is an interesting approach that seems to take full advantage of the Digital Twins concept. This platform takes your city (if it has been mapped) and allows you to add content to the map. This feels more like a testbed, at the moment, but I can see the potential. Mapping physical objects in real spaces will be a challenge, for a while. There’s probably some sort of NFT angle that could be played here to get people to be the first to scan a thing. But from a data asset side, this creates all sorts of interesting opportunities.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;at-the-start-of-a-thing&quot;&gt;At the Start of a Thing&lt;&#x2F;h2&gt;
&lt;p&gt;It’s fun to be at the start of a movement or technology. Especially when you can see the potential. You can call this the Metaverse, MX, or just client&#x2F;server with extra steps, but there is definitely a confluence of technology here to help with digital transformation. It’s definitely a journey I’m interested in exploring, and I’ll probably do more of it in this space over the next couple of years.&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>What is Edge Analytics</title>
        <published>2022-03-22T09:57:47+06:00</published>
        <updated>2022-03-22T09:57:47-05:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2022/03/22/what-is-edge-analytics-learn-how-edge-analytics-differs-from-traditional-means-of-processing-iot-data/"/>
        <id>https://shawndeggans.com/2022/03/22/what-is-edge-analytics-learn-how-edge-analytics-differs-from-traditional-means-of-processing-iot-data/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2022/03/22/what-is-edge-analytics-learn-how-edge-analytics-differs-from-traditional-means-of-processing-iot-data/">&lt;hr &#x2F;&gt;
&lt;p&gt;When it comes to Internet of Things, much of the focus is on the “Things.” Devices are the lead guitarists and singers of the IoT world. After all, devices are what we interact with. We wear them, we use them as little handheld computers, and they make normally dumb objects smarter.&lt;&#x2F;p&gt;
&lt;p&gt;When you’re on your learning journey as a newbie to the IoT world these tend to be your real focus. You buy an Arduino or a Raspberry PI and you get to hacking. It’s not until you mature on your journey that you realize the value of the data and understand what analytics can do for your solutions.&lt;&#x2F;p&gt;
&lt;p&gt;Now you have devices gathering telemetry and you have smart devices making intelligent decisions closer to the places where it matters.&lt;&#x2F;p&gt;
&lt;p&gt;Azure IoT Edge has been the ideal tool for implementing Edge Analytics for a few years now. Azure provides an entire architecture to help gather analytics data, process the data, and turn it into intelligent code to push down to Edge compatible devices, like a Raspberry PI.&lt;&#x2F;p&gt;
&lt;p&gt;To put edge analytics into context with most data analysis and processing systems, it’s important to consider the earlier phases of IoT. Even before the popularity of cloud computing there was IoT. In fact, manufacturers have been gathering telemetry data from machines for more than forty years. It wasn’t called IoT back then, because there really wasn’t our version of the internet back then. Most telemetry was gathered using wired systems and the data was stored directly onto servers that sat on the factory floor.&lt;&#x2F;p&gt;
&lt;p&gt;As IoT evolved it moved from this client server model to a client cloud model. In both of these cases, discovering insights in the data required the data processing to be managed far from the device. Devices just stupidly sent telemetry and any intelligence was either done at the server or the cloud. Automated control systems managed working directly with the operator or machinery.&lt;&#x2F;p&gt;
&lt;p&gt;Edge analytics allows for us to shorten that cycle. By pushing intelligence down to the device, we now have the option to react to telemetry as it’s gathered from the source. This allows a machine to shut itself off without needing a connection to a server or the cloud. Working with the data directly on the device provides a few other benefits as well, like reduced data transfer to the cloud, greater security for sensitive data, and more automated behaviors from devices.&lt;&#x2F;p&gt;
&lt;p&gt;The primary purpose of collecting any type of data is to derive actionable insights from that data. Azure provides a number of tools for accomplishing these tasks, but there are a few things it’s important to understand if you want to make the most of your data and your overall IoT systems.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;standard-iot-solutions-and-edge-iot-solutions&quot;&gt;Standard IoT Solutions and Edge IoT Solutions&lt;&#x2F;h2&gt;
&lt;p&gt;I touched on the evolution of IoT solutions earlier in this article, but I want to make it clear that you rarely jump directly into an edge solution architecture. You normally start with the foundation for an edge solution, but like any good modern development process, you take incremental steps to arrive at your solution.&lt;&#x2F;p&gt;
&lt;p&gt;An early phase of capturing data and processing that data in the cloud will look more like our old client server model. Devices send telemetry data to the cloud where it’s captured in a data storage resource like Azure Data Lake. Data engineers and machine learning engineers use the data to derive insights (typically using time-series forecasting) and produce either static code or ML models to make the data actionable. A cloud service like Event Grid is called from the code to take some type of action like sending an alert to a machine operator or firing off some type of automated system.&lt;&#x2F;p&gt;
&lt;p&gt;This is an acceptable model when you’re working with very few devices and only a handful of models.&lt;&#x2F;p&gt;
&lt;p&gt;But what happens when your have hundreds or thousands of devices and models? Azure can definitely handle the data load, but do you want to shoulder that expense? And what about delays that are inherent to all distributed systems? Can you afford for your machine operator to not receive an important maintenance alert on a machine?&lt;&#x2F;p&gt;
&lt;p&gt;As your evolve you will eventually move from the traditional IoT platform to an IoT edge solution, like Azure IoT Edge.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;azure-iot-edge-architecture&quot;&gt;Azure IoT Edge Architecture&lt;&#x2F;h3&gt;
&lt;p&gt;To deploy and develop edge analytics solutions you’ll need an architecture designed for edge analytics. Azure provides two primary IoT platforms for Azure IoT Edge.&lt;&#x2F;p&gt;
&lt;p&gt;Azure IoT Central is designed to be the perfect place to begin your IoT journey. And Azure IoT Hub, is the next step on your Azure IoT path when you have a more mature IoT practice and many more devices to manage.&lt;&#x2F;p&gt;
&lt;p&gt;The typical architecture for edge IoT solutions is an edge device, and edge gateway, and the cloud IoT solution. Deployment and device management is typically handled at the cloud, but because you can now perform edge device chaining, it is possible to accomplish some of these tasks from parent edge devices.&lt;&#x2F;p&gt;
&lt;p&gt;As a developer of IoT edge solutions, there are a handful tools you’ll want to understand. I won’t go into detail, but containers, Azure IoT Hub or Central Client SDKs, and Device Twins are a good place to start.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;key-points-to-remember&quot;&gt;Key Points to Remember&lt;&#x2F;h3&gt;
&lt;ul&gt;
&lt;li&gt;Edge analytics allow you to improve security, reduce latency, and save on cloud costs&lt;&#x2F;li&gt;
&lt;li&gt;Edge analytics development is typically an incremental development process that evolves from traditional IoT solutions to edge solutions&lt;&#x2F;li&gt;
&lt;li&gt;Edge analytics requires a specific type of architecture and Azure provides his in two different platforms; Azure IoT Central for beginning your IoT journey and Azure IoT Hub for more practiced IoT development teams&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>The Smart Factory for Brewers isn’t Just for the Big Brewers; is Your Independent Brewery Ready for IoT, AI, and the Cloud?</title>
        <published>2021-12-06T20:02:46+06:00</published>
        <updated>2021-12-06T20:02:46-06:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2021/12/06/the-smart-factory-for-brewers-isnt-just-for-the-big-brewers-is-your-independent-brewery-ready-for-iot-ai-and-the-cloud/"/>
        <id>https://shawndeggans.com/2021/12/06/the-smart-factory-for-brewers-isnt-just-for-the-big-brewers-is-your-independent-brewery-ready-for-iot-ai-and-the-cloud/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2021/12/06/the-smart-factory-for-brewers-isnt-just-for-the-big-brewers-is-your-independent-brewery-ready-for-iot-ai-and-the-cloud/">&lt;p&gt;Wouldn’t it be great if every beer bottle that left your brewery met with your exacting quality standards, if overflowing and excessive foaming were yesterday’s problem, and not a persistent, wasteful expense?&lt;&#x2F;p&gt;
&lt;p&gt;What if you could be consistently proactive in your quality control process, and not reactive to cases of returned beer and disappointed customers?&lt;&#x2F;p&gt;
&lt;p&gt;Independent breweries like Sugar Creek Brewing faced just such a problem, and according to &lt;a href=&quot;https:&#x2F;&#x2F;www.forbes.com&#x2F;sites&#x2F;lanabandoim&#x2F;2019&#x2F;07&#x2F;24&#x2F;brewery-uses-ai-and-iot-technology-to-improve-the-quality-of-beer&#x2F;?sh=2acc79b04a98&quot;&gt;this Forbes article&lt;&#x2F;a&gt;, the problem cost the brewery $30,000 a month.&lt;&#x2F;p&gt;
&lt;p&gt;Independent, hand-crafted breweries are discovering what manufacturers have understood for decades. You can measure product quality with IoT. But many breweries, like Sugar Creek Brewing, are using AI to predict quality issues before they happen allowing brewers to proactively manage the quality of their beer.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;the-smart-factory-for-the-independent-brewery&quot;&gt;The Smart Factory for the Independent Brewery&lt;&#x2F;h2&gt;
&lt;p&gt;The smart factory for breweries is here. Connecting your brewery with IoT devices capable of streaming real-time data to the cloud, analyzing that data with AI, and creating a responsive feedback loop that your employees can use to consistently improve the brewing process is no longer a tool meant only for the larger brewers with immense IT teams and budgets.&lt;&#x2F;p&gt;
&lt;p&gt;To help pinpoint the specific causes of overflow and excessive foaming during the brewing and bottling processes, you can connect your equipment with embedded flow meters and sensors that allow you to collect a high volume of accurate data on pressure, temperature, pH balance, carbonation, fill time and more.&lt;&#x2F;p&gt;
&lt;p&gt;By collecting all this data and applying the correct analytics, you can discover insights about your operations, improve efficiency, stop equipment bottlenecks, and help your employees accomplish their daily tasks.&lt;&#x2F;p&gt;
&lt;p&gt;Working around high-pressure tanks presents big risks to employees working on the production line. With the right pressure sensors on every kettle, still, brewing pump, and with object detection in place, the factory floor can become a much safer place to work, as production managers can track performance issues that could lead to serious injuries.&lt;&#x2F;p&gt;
&lt;p&gt;The fermentation process is the heart of the brewery factory. What if you could get constant feedback on this process without opening that tank?&lt;&#x2F;p&gt;
&lt;h2 id=&quot;breweries-see-a-return-on-their-investment-with-ai-and-iot&quot;&gt;Breweries See a Return on their Investment with AI and IoT&lt;&#x2F;h2&gt;
&lt;p&gt;Not only does the Smart Factory for Breweries improve efficiency, beer quality, and employee safety, but it also helps improve your brewery’s financials.&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Save on returns from poor quality products&lt;&#x2F;li&gt;
&lt;li&gt;Reduce waste of materials for bad batches&lt;&#x2F;li&gt;
&lt;li&gt;Fully use capital equipment&lt;&#x2F;li&gt;
&lt;li&gt;Protect the health and safety of employees and customers&lt;&#x2F;li&gt;
&lt;li&gt;Reduce energy use&lt;&#x2F;li&gt;
&lt;li&gt;Monitor and track batches effectively for compliance and regulations&lt;&#x2F;li&gt;
&lt;li&gt;Save on parts and repairs using AI predictive maintenance&lt;&#x2F;li&gt;
&lt;li&gt;Control inventory with RFID tracking&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;The cloud has allowed the cost of analytics systems to drop significantly, and many IoT platforms can right-size their solutions to fit with your consumption, giving you the option to ease into your IoT and AI journey affordably.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;connecting-kpis-as-a-measure-of-success&quot;&gt;Connecting KPIs as a Measure of Success&lt;&#x2F;h2&gt;
&lt;p&gt;As a brewer, you’ll want goals and specific metrics tied to your Smart Factory for Breweries. Some of these include the following depending on your solution approach:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Equipment downtime for repairs&lt;&#x2F;li&gt;
&lt;li&gt;Predictive cleaning schedule vs set schedule&lt;&#x2F;li&gt;
&lt;li&gt;Returns from retailers because of quality&lt;&#x2F;li&gt;
&lt;li&gt;Bbl brewed per hour&lt;&#x2F;li&gt;
&lt;li&gt;Bbl packaged per hour&lt;&#x2F;li&gt;
&lt;li&gt;Bbl lost per hour&lt;&#x2F;li&gt;
&lt;li&gt;Bbl to energy costs&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;your-business-processes-will-need-to-adapt&quot;&gt;Your Business Processes will Need to Adapt&lt;&#x2F;h2&gt;
&lt;p&gt;There are daily processes undertaken in the brewery that add to waste and risk contamination. The typical small brewery will draw liquid from the tanks daily to check for quality, consistency, and the state of the fermentation process. This is the process of monitoring specific gravity. It’s not a great process when managed manually, because only checking once or twice a day isn’t likely to catch a problem quickly enough, and with each test the product is exposed to possible contamination.&lt;&#x2F;p&gt;
&lt;p&gt;To reduce the risk of contamination and increase regular monitoring, it makes sense to add a sensor to the tank to collect data. The data collected from the tank can then inform operations.&lt;&#x2F;p&gt;
&lt;p&gt;But how is this continuous monitoring done on large tanks that are usually made of copper or industrial steel? This is where it helps to understand the problem and find the right IoT device for the job. In this case, low energy Bluetooth devices floated in the liquid can communicate with gateways positioned nearby. This allows IoT to completely replace a manual process, as well as do a better job of monitoring for regular consistency.&lt;&#x2F;p&gt;
&lt;p&gt;This is why it’s important to work directly with a partner who can help match the right product with the situation. A great partner will learn your business processes and won’t be afraid to point out where your business process will need to adapt to fit with the innovation the technology brings.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;a-use-case-automate-the-manual-method-of-measuring-specific-gravity&quot;&gt;A Use Case: Automate the Manual Method of Measuring Specific Gravity&lt;&#x2F;h2&gt;
&lt;p&gt;Brewers are well aware of how this process works, but for this use case I’ll summarize it:&lt;&#x2F;p&gt;
&lt;p&gt;Specific gravity will indicate the stage of fermentation. Brewers use this measurement to determine the state of fermentation—is it on track, done, or perhaps stuck. Yeast can stop consuming sugar too early, and when this happens the brewer needs to take steps to save the batch. This is one of the reasons continuous monitoring is required for the modern brewery. The sooner you’re aware of a stalled batch, the sooner you can undo the damage.&lt;&#x2F;p&gt;
&lt;p&gt;This is typically measured using the manual method described above. The actual measurement is looking at the liquid’s density in comparison to water. As beer ferments and coverts sugars to alcohol and gas, the specific gravity falls and the liquid gets less dense. Eventually, there are few sugars left and the fermentation process slowly stops.&lt;&#x2F;p&gt;
&lt;p&gt;It’s clear to see why putting a machine in charge of monitoring this process consistently helps improve this task.&lt;&#x2F;p&gt;
&lt;p&gt;But what does this look like, technically? Are there tools and systems in place today to make this easy to install and monitor without risking batches of beer or installing expensive equipment?&lt;&#x2F;p&gt;
&lt;h2 id=&quot;tilt-pro-bluetooth-and-iot-central&quot;&gt;Tilt Pro, Bluetooth, and IoT Central&lt;&#x2F;h2&gt;
&lt;p&gt;If we focus on one particular use case, like measuring specific gravity, there are a number of ways to accomplish this, but the following architecture is one that I recommend. This architecture is built for a small brewery with just a few fermentation tanks. It uses off-the-shelf devices and requires minimum programming to get the solution up-and-running. But it also has room to grow into a robust platform for managing more than just fermentation monitoring.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;FERMENTATION TANKS&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;The assumption is that you’re using industry standard fermentation tanks. These are, without a doubt, a challenge for electronics equipment. Most are made of steel or copper, which means that they basically act like a Faraday Shield capable of blocking or dampening signals.&lt;&#x2F;p&gt;
&lt;p&gt;Some IoT devices will not work in this situation. So either you need a wired solution or something clever like the &lt;a href=&quot;https:&#x2F;&#x2F;tilthydrometer.com&#x2F;&quot;&gt;Tilt Hydrometer&lt;&#x2F;a&gt;. When I first discovered this device I thought that perhaps it was a toy for homebrewers. Surely, nothing as low in price as this device could have professional applications, right? Well, after reviewing the device and seeing it’s capabilities on paper, I’m willing to include it in this architecture.&lt;&#x2F;p&gt;
&lt;p&gt;Especially, backed up by a custom device to work with the iBeacon signal generated from the Tilt. For this architecture, I’m recommending the Tilt Pro. The standard Tilt device might be adequate, but I think it’s worth the extra money for the added battery life and sensor capabilities.&lt;&#x2F;p&gt;
&lt;p&gt;The Tilt device goes inside the tank, but it’s enclosed in a protective shell. Cleaning and care instructions are available on their website. Here’s the marketing breakdown on the device:&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;At 3x the volume and weight of our original Tilt hydrometer, the Tilt Pro’s larger size allows us to more than double the battery life with preinstalled Energizer® AA lithium batteries that will keep it powered for 3 to 5 years depending on use. So much time you may forget your Tilt actually runs on a battery! The extra size and weight comes with an extra bonus: improved specific gravity stability at high krausen so you will see a steadier read-out on your iPhone, Android, or Raspberry Pi. In addition, we have boosted range with a high-gain antenna that in testing increased range by 20% vs. our original Tilt. Now you can see your Tilt through thicker heads of foam and heavier stainless steel walls. To top it off we’ve included the extra decimal of precision available from the sensors and to the read-out so there are now decimal degrees Fahrenheit as well as higher resolution Celsius. Specific gravity now reads out to the 10,000th place (for example 1.0000). You can now see fermentation activity dropping less than a brewer’s point per day. In all we’ve made several adjustments we believe the craft beer professional (and serious home brewer) is sure to appreciate.&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;The Tilt’s cloud backend is basically writing data to Google Sheets. We definitely don’t want to write our data to Google Sheets. No offense to Google Sheets. It’s a great app for many purposes, but we want something a bit more robust. I also do not want a mobile app. I want a device dedicated to capturing the Bluetooth signal, converting the raw message from that signal to MQTT, and delivering that to a server on the Brewery’s internal network.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;DATA FLOW FROM TANKS TO EDGE GATEWAY&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;The basic flow of data from tank to IoT gateway looks like the following:&lt;&#x2F;p&gt;
&lt;p&gt;The Tilt is a one-way leaf device and it’s tightly coupled to a nearby Raspberry Pi Zero W. By nearby, I mean as close to the tank as possible, other than inside of it.&lt;&#x2F;p&gt;
&lt;p&gt;The Pi gives us a lot of development options. We could, if we wanted to, connect the Pi directly to Azure IoT Central. This would make it a gateway device. It would still need a WiFi router or hub to connect to, but it could manage two way communication with IoT Central.&lt;&#x2F;p&gt;
&lt;p&gt;For this architecture, though, I want to couple a Pi with each Tilt. Considering that the cost of each device is minimal and the power you get when you add a more robust gateway, like the &lt;a href=&quot;https:&#x2F;&#x2F;www.ectron.com&#x2F;product&#x2F;edge-computer-ect-eci&#x2F;&quot;&gt;Ectron Edge Computer ECT-ECI&lt;&#x2F;a&gt;, this allows us to remain technically small and simple, but with the option of applying more sophisticated Edge Patterns.&lt;&#x2F;p&gt;
&lt;p&gt;For instance, there might come a future date when I want to I want to deploy machine learning modules to the Pi. These modules could be specific to each tank’s beer, allowing brewers the ability to monitor for different types of beer.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;THE ARCHITECTURE&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;The following is our more robust design.&lt;&#x2F;p&gt;
&lt;p&gt;I want to continue with the idea that this is just a proof-of-concept set with one use case. However, I’ve expanded out to manage three different tanks. Each tank as been coupled with its own Tilt device, Raspberry Pi Zero W, and all three of these connect to the Ectron Edge Computer.&lt;&#x2F;p&gt;
&lt;p&gt;Where we start to flesh out the solution, is when we collect the data in the cloud. Here we’re using Azure’s IoT Central, but we could just as easily use any other cloud IoT platform. I like IoT Central because it’s quick to get an app up-and-running, it makes device management simple, and includes all the analytics you need to prove out an IoT POC.&lt;&#x2F;p&gt;
&lt;p&gt;It’s also scalable, so building out to more devices and more use cases is easy. IoT Central is meant for smaller to mid-sized IoT projects, but it can still support multiple organizations in production scenarios.&lt;&#x2F;p&gt;
&lt;p&gt;When you start to work with more than one million devices, though, IoT Hub, AWS IoT SiteWise, or Google’s IoT Core are better choices. Though I designed this with Azure in mind, the Gateway is flexible enough to work with any cloud backend IoT service.&lt;&#x2F;p&gt;
&lt;p&gt;A couple of future use cases we could explore once this platform is built:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Use Machine Learning to predict fermentation stages for specific beers&lt;&#x2F;li&gt;
&lt;li&gt;Use time series analysis to detect anomalies in the brewing process&lt;&#x2F;li&gt;
&lt;li&gt;Collect data specific to certain recipes, build guidelines and intelligent monitoring around these recipes, and alert Brew Masters to tanks that drift outside the confines of the established guidelines&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;who-do-i-need-to-put-this-solution-into-place&quot;&gt;Who do I need to put this solution into place?&lt;&#x2F;h3&gt;
&lt;p&gt;The team to build this out could be relatively small. One person with the right skills could build this entire solution, but what skills will they need?&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;The Tilt devices are relatively complete. As an off-the-shelf solution they provide a lot of flexibility. To work with this device, you’ll need to understand how to collect Bluetooth Beacon data. Lucky for us, Tilt includes a link to work with this data from their website’s FAQ. &lt;a href=&quot;https:&#x2F;&#x2F;kvurd.com&#x2F;blog&#x2F;tilt-hydrometer-ibeacon-data-format&#x2F;&quot;&gt;&lt;&#x2F;a&gt;&lt;a href=&quot;https:&#x2F;&#x2F;kvurd.com&#x2F;blog&#x2F;tilt-hydrometer-ibeacon-data-format&#x2F;&quot;&gt;https:&#x2F;&#x2F;kvurd.com&#x2F;blog&#x2F;tilt-hydrometer-ibeacon-data-format&#x2F;&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;Creating the coupled Pi Zero will pose a slightly bigger challenge. This isn’t an out-of-the-box solution, but it isn’t undiscovered country either. Basically, we want to run Containerd and the IoT Edge Modules on the device. This will allow us to deploy to the Pi as though it were an Edge Device. We could also use the IoT Central SDKs to create a basic device and send data. We have a few choices here but ideally, you want to capture the BLE message, format it to something that best fits the use case, and then wrap that in an MQTT message to send to IoT Central.&lt;&#x2F;li&gt;
&lt;li&gt;The Edge Gateway is probably one of the easier pieces to implement. This article covers the process, so I won’t dive into it here: &lt;a href=&quot;https:&#x2F;&#x2F;docs.microsoft.com&#x2F;en-us&#x2F;azure&#x2F;iot-edge&#x2F;how-to-connect-downstream-iot-edge-device?view=iotedge-2020-11&amp;amp;tabs=azure-portal&quot;&gt;&lt;&#x2F;a&gt;&lt;a href=&quot;https:&#x2F;&#x2F;docs.microsoft.com&#x2F;en-us&#x2F;azure&#x2F;iot-edge&#x2F;how-to-connect-downstream-iot-edge-device?view=iotedge-2020-11&amp;amp;tabs=azure-portal&quot;&gt;https:&#x2F;&#x2F;docs.microsoft.com&#x2F;en-us&#x2F;azure&#x2F;iot-edge&#x2F;how-to-connect-downstream-iot-edge-device?view=iotedge-2020-11&amp;amp;tabs=azure-portal&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;Setting up the Edge Gateway and devices in IoT Central, is also trivial, but that might be a different person completing the set up than the device developer.&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;Basically, if you have someone with experience developing IoT Edge modules, lite Python programming skills, and IoT Central administration basics, you could have a solution up-and-running quickly.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;is-this-secure&quot;&gt;Is this Secure?&lt;&#x2F;h3&gt;
&lt;p&gt;If you keep the signals within the brewery on their own dedicated network and authenticate the devices through IoT Central, it should be secure. The real trick here is to make sure you provide a separate network on your brewery floor from the rest of the company’s network. For instance, many breweries are also open to the public for dining and tours. You don’t want the public to even be able to see the brewery floor network, much less access it from their devices.&lt;&#x2F;p&gt;
&lt;p&gt;In this scenario, the endpoints for IoT Central are the only exposed URLs. You can protect these with device authentication. Logging into IoT Central as an administrator would be protected by Azure Active Directory using MFA.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;what-about-my-data-is-it-backed-up&quot;&gt;What about my data? Is it backed up?&lt;&#x2F;h3&gt;
&lt;p&gt;IoT Central only stores about 30 days worth of data, but there are means of integrating storage solutions with your IoT Central App. This isn’t reflected in this architecture, but at a minimum I would recommend adding an Azure Storage Account to retain messages. You’ll likely want this data for future data science and trend analysis.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;what-if-i-have-more-than-one-brewery&quot;&gt;What if I have more than one brewery?&lt;&#x2F;h3&gt;
&lt;p&gt;This solution isn’t designed for extreme robustness or resilience. I definitely put this solution in the category of proof-of-concept or minimal viable product. If you set this up, and you like your initial tests, and you feel like this is something that could expand to multiple physical locations, IoT Central can definitely handle this up to 1 million devices. If your device requirements look like they will spread beyond that number, it’s time to consider Azure’s IoT Hub solution with a more complete Azure Analytics backend. Synapse or Databricks with Azure Time Series Insights make great additions to this type of architecture.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;how-do-i-manage-this-environment&quot;&gt;How do I manage this environment&lt;&#x2F;h3&gt;
&lt;p&gt;As long as this is kept small, it’s probably ideal for a single developer or administrator. IoT Central has a few built in roles that the administrator or App owner can assign to users so they have access to dashboards. At a minimal, I would consider these roles in IoT Central:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Application Administrator can manage and control every part of the application – give this role to someone in your IT operations department&lt;&#x2F;li&gt;
&lt;li&gt;App builder has many of the same abilities as the Admin, with the exception that they can’t make administration changes or connect to data exports&lt;&#x2F;li&gt;
&lt;li&gt;The Operator role is ideal for someone who needs to monitor device health and status. This is for anyone working the brewery floor&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Those are basic roles. If you begin to build your solution out to multiple locations, these can be defined as Organizations. If I own a brewery in three different cities in my state, I might have my Fort Worth brewery, my Dallas brewery, and my Austin brewery. I would separate those by Organization and assign the above roles to users in those areas.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;what-can-i-do-with-this-platform-once-it-s-up-and-running&quot;&gt;What can I do with this platform, once it’s up-and-running?&lt;&#x2F;h3&gt;
&lt;p&gt;IoT Central comes with many tools needed to run operational IoT.&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Robust Dashboards that can be customized for many different views&lt;&#x2F;li&gt;
&lt;li&gt;Device life-cycle management and Gateway management&lt;&#x2F;li&gt;
&lt;li&gt;Rules triggered based on telemetry with built in messaging to email, webhook, Azure Monitor Action Groups, Microsoft Power Automate, and Microsoft Azure Logic Apps&lt;&#x2F;li&gt;
&lt;li&gt;Time-series Analytics allows you to create and save queries&lt;&#x2F;li&gt;
&lt;li&gt;Run jobs on device groups that can send commands to devices or change device properties&lt;&#x2F;li&gt;
&lt;li&gt;Build and store device templates&lt;&#x2F;li&gt;
&lt;li&gt;Export to multiple data sources&lt;&#x2F;li&gt;
&lt;li&gt;Complete administration of the app, the users, and pricing&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;In addition to the IoT Central benefits, you can build upon the IoT Edge devices by integrating device specific logic or machine learning models.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;if-i-have-an-it-team-will-they-need-a-lot-of-training&quot;&gt;If I have an IT team, will they need a lot of training?&lt;&#x2F;h3&gt;
&lt;p&gt;Perhaps, if they aren’t familiar with IoT. However, Azure does make some of this fairly easy. It helps to work with a partner who understands how to make cloud solutions operational. Knowing and understanding the burdens and responsibilities of a lights-on operations team will help your partner understand what things the team needs to monitor for and integrate into your team’s existing playbooks and operations procedures.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;i-m-interested-to-see-how-iot-can-help-my-brewery&quot;&gt;I’m interested to see how IoT can help my brewery&lt;&#x2F;h2&gt;
&lt;p&gt;If you aren’t already using IoT in your brewery, it’s important to understand that there is a learning curve. As I’ve outlined here, it takes some time to understand how the technology can help you and how you might need to adapt to the technology. If you have the right partner, this can be a smooth transition. There are definitely some key stages I think a partner should walk you through before you make a large financial commitment.&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;Be careful with any solution that appears to be a one-size fits all. Your brewery is unique. Your product is unique. You didn’t become an independent, craft brewer because you wanted to mimic a certain company with the initials of AB. So AB’s amazing, multi-million dollar IT solution probably isn’t right for you.&lt;&#x2F;li&gt;
&lt;li&gt;This isn’t a quick, one-and-done project. IoT is a journey best taken in measured steps. The right partner is going to understand that process and they will help guide you along the path.&lt;&#x2F;li&gt;
&lt;li&gt;The right partner takes a wholistic view of you, your brewery, and cares about your bigger picture goals. Selling gadgets is great, if all you do is sell gadgets, but a solutions partner wants to make sure you have the right gadget for your needs.&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;h3 id=&quot;solution-visioning&quot;&gt;Solution Visioning&lt;&#x2F;h3&gt;
&lt;p&gt;Expect a couple of workshops from your solution partner. Believe it or not, these aren’t just a way to make more money off of you. These are a necessary part of the process. A partner needs to learn about you, your business, your aspirations and your challenges. These envisioning workshops are a way to achieve that.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;architectural-understanding&quot;&gt;Architectural Understanding&lt;&#x2F;h3&gt;
&lt;p&gt;A good partner will want to understand your network topology, but also your enterprise architecture. Not just the technical systems, but your policies, procedures, your team structure, and even your company culture.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;pocs-and-pilots&quot;&gt;POCs and Pilots&lt;&#x2F;h3&gt;
&lt;p&gt;Smaller, measured steps into a bigger picture solution is a great way to learn, without breaking the bank. The days of huge, multi-year projects only to deliver a technical nightmare that doesn’t meet your needs is gone. Be ready to work with a partner willing to take small steps toward bigger goals.&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Limit your use case to one single point of value&lt;&#x2F;li&gt;
&lt;li&gt;Limit your scope to one particular area of the brewery&lt;&#x2F;li&gt;
&lt;li&gt;Time-box your efforts. Don’t make the mistake of trying to enforce an artificial deadline, but don’t get mired in complexity.&lt;&#x2F;li&gt;
&lt;li&gt;A POC won’t be production ready, but it will be testable with real-world scenarios&lt;&#x2F;li&gt;
&lt;li&gt;Take this opportunity to learn and try to avoid assumptions&lt;&#x2F;li&gt;
&lt;li&gt;It might require multiple POCs to arrive at a worthwhile pilot&lt;&#x2F;li&gt;
&lt;li&gt;It will require your time, the time of your staff, and your feedback—you can’t hand off your standard operating procedures and expect a bespoke solution to your particular needs&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;how-do-we-make-this-production-ready&quot;&gt;How do we make this production ready?&lt;&#x2F;h3&gt;
&lt;p&gt;When you’re prepared to take this solution to production, there are a few factors to consider.&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;How do we reach zero-trust security with this platform? Are our users authenticating using MFA. Does each user have the least privileges possible? Are my devices hardened against tampering? Are my Edge devices loaded with security modules?&lt;&#x2F;li&gt;
&lt;li&gt;Do I have system oversight? Is there the appropriate level of logging and log monitoring in place? Are there alert groups established in Azure. Are these alert groups receiving alerts from IoT Central, devices, and any other backend analytics systems?&lt;&#x2F;li&gt;
&lt;li&gt;Is data backed up securely? Is access to this data limited to integrated systems? Is access to the data monitored?&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;There are other considerations like building out staging layers for developers and testers. A more complete security monitoring tool like Microsoft Defender for Cloud should be a consideration. Hiring penetration testers to test your security is also a good idea.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;teaching-your-team-how-the-system-works&quot;&gt;Teaching your team how the system works&lt;&#x2F;h3&gt;
&lt;p&gt;Hopefully your team has been involved from the beginning. A good IoT integration partner will talk to the brewery floor crew during development and system installation, get their feedback for alerts and dashboards, and familiarize everyone with the systems as it’s built.&lt;&#x2F;p&gt;
&lt;p&gt;Good formal training for the brewer floor will be something a partner can provide. Delivering this training in documentation, video, and one-on-one sessions is the typical method for handing off a production system. As your system grows and matures, you’ll eventually want staff trainers who have made your technical solutions part of your floor’s standard operating procedures.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;what-if-i-need-continued-help-after-the-solution-is-built&quot;&gt;What if I need continued help after the solution is built?&lt;&#x2F;h3&gt;
&lt;p&gt;Let your partner supplement your time with ongoing support and monitoring. Many IoT developers and integrators either have a managed service team or they outsource that job to a trusted partner. If you don’t have the IT staff to manage and monitor your solution, your IoT partner should be able to provide one for you at an affordable rate.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;who-do-i-include-in-partner-meetings&quot;&gt;Who do I include in partner meetings?&lt;&#x2F;h2&gt;
&lt;p&gt;Independent brewers tend to keep the company lean. Titles like CEO, CTO, and CFO might not exist. That’s not a problem. The people who need to be at the table are decision makers, financiers, brewery operations experts, and trusted advisers.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;are-you-available-to-help-us&quot;&gt;Are you available to help us?&lt;&#x2F;h2&gt;
&lt;p&gt;Yes, as a certified Azure IoT specialist and AI Engineer with twenty years of IT experience, I’m in the ideal place to help with this exact type of solution. I’m a strong advocate of cloud transformation. I’ve helped large and small organizations transform their operations using Azure and Big Data analytics platforms. I’d love the opportunity to work with a brewery interested in exploring how IoT could improve their operations and save them thousands of dollars a month.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;what-are-the-next-steps&quot;&gt;What are the next steps?&lt;&#x2F;h2&gt;
&lt;p&gt;Are you happy with your current brewery floor operations? Now that you know there are better ways to brew beer, can you continue to operate the same way moving forward? Inertia is difficult to break, but one thing that helps is a clear decision. Is a Smart Factory for Breweries something you’re ready to take on? Or can you continue on your present path?&lt;&#x2F;p&gt;
&lt;p&gt;When it comes to these type of decisions, it’s usually best to start small. This is one of the reasons I’m an advocate of the POC. With a small equipment investment, an Azure subscription that only charges based on consumption, and a hands-on consultant who can take you through every step of the process, it’s easier now than ever before to test your ideas without breaking the bank.&lt;&#x2F;p&gt;
&lt;p&gt;The cloud, IoT, and AI are tools that brewers use to improve operations, innovate, and save money. If you’re interested in seeing if this is the right path for your brewery, I’m here to help.&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Do IoT Edge Systems Obey Conway’s Law?</title>
        <published>2021-11-28T04:18:00+06:00</published>
        <updated>2021-11-28T04:18:00-06:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2021/11/28/do-iot-edge-systems-obey-conways-law/"/>
        <id>https://shawndeggans.com/2021/11/28/do-iot-edge-systems-obey-conways-law/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2021/11/28/do-iot-edge-systems-obey-conways-law/">&lt;h3 id=&quot;conway-s-law-and-the-shape-of-organizations&quot;&gt;Conway’s Law and the Shape of Organizations&lt;&#x2F;h3&gt;
&lt;p&gt;If you aren’t familiar with Conway’s Law, it’s an adage introduced in 1968 by author and computer programmer Melvin Conway.&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;Any organization that designs a system (defined broadly) will produce a design whose structure is a copy of the organization’s communication structure. – Melvin E. Conway&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;There have been numerous variations of this law over the years, but they all basically boil down to the same ideas. If you have a large, monolithic organization with a top-down, command-and-control hierarchy, you’re information systems will reflect this type of structure. If you have an organization built of loosely-coupled, agile teams, your information system will reflect this type of structure.&lt;&#x2F;p&gt;
&lt;p&gt;I won’t go into the pros and cons of these different organization structures, other than to say that they each have their purpose. Things get tricky when one attempts to play in the other’s playground. Nimble innovation teams do not do well when faced with difficult domains that require many policies and procedures to meet regulation and compliance. Large monolithic organizations tend to break agile practitioners against rocks, kill their spirits, and then claim that agile practices don’t work. Of course not, innovation can’t happen in a commodity environment. It’s nearly impossible. And attempting to innovate with highly regulated fields is asking for headaches.&lt;&#x2F;p&gt;
&lt;p&gt;The general understanding of most system architects is that if you want a different type of information system, you need a different type of organization. Break down your monolith organization into smaller agile teams and your software will better reflect this.&lt;&#x2F;p&gt;
&lt;p&gt;But what happens if you can change the information channels? Conway’s law was based on the idea that communication channels are what define the architecture of the organization. What if those communication channels are no longer limited to the senses of individuals and teams within the organization? What if the organization itself, not just the people within, begins to develop its own sense and intelligence? Does Conway’s Law still apply? My initial thoughts are yes, but I want to dive into “why?”&lt;&#x2F;p&gt;
&lt;h3 id=&quot;the-challenge-to-innovate&quot;&gt;The Challenge to Innovate&lt;&#x2F;h3&gt;
&lt;p&gt;What are the challenges that organizations face today when they want to undergo a digital transformation, or agile transformation, or whatever you want to call it? Well, to start, I think these organizations need to ask themselves why they think this transformation is necessary?&lt;&#x2F;p&gt;
&lt;p&gt;Of the organizations I’ve been involved with, the problem is often silos, and the push for change is rarely coming from the executive level, but from lower-level teams who have been tasked with taking on innovation. The request for innovation comes from the top, but there’s rarely any real room made in the organization for this innovation to take place. It’s almost as though some leaders think innovation just pops into existence.&lt;&#x2F;p&gt;
&lt;p&gt;The thinking is that these lower level portions of the organization can just implement agile transformation on their own, without the need for cross functional communications or any changes from leadership. Leadership’s dashboards are set with metrics that fit their view of the organization and any attempt to steer away from that is often met with pushback.&lt;&#x2F;p&gt;
&lt;p&gt;And though many CTO’s job descriptions includes ‘innovation’ as a requirement of their position, if the choice is between keeping the team focused on “lights-on” activities that continue to produce business value or directing budget and resources on a nebulous “innovation,” strategy, well, they’ll keep the lights on. That’s a no-brainer. CTOs are fired because of operational failures, not because they didn’t invent the next Facebook for the manufacturing industry.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;what-are-teams-really&quot;&gt;What are teams, really?&lt;&#x2F;h3&gt;
&lt;p&gt;Siloed departments are often thought of as teams, but that is a misnomer, because these siloed departmental “teams,” are not fully autonomous. For a team to truly function as an innovation center, they need autonomy.&lt;&#x2F;p&gt;
&lt;p&gt;For example, let’s say I’m the marketing director for my organization. I have a team of marketing professionals, but I don’t have access to the technology team—the IT department has better things to do, like create dashboards for the executives. I need to manage websites, social media, email marketing. My team includes designers who work on Macs and they produce great looking image-based assets. A few of my team members even know enough HTML and JavaScript that they can create an impressive landing page. However, they don’t have direct access to the web servers and other services that help provide my marketing platform. Without building out my own shadow IT department, I won’t be able to hit some of the innovation goals on my bosses’ lists. Mobile App? Maybe we can outsource it, but what if we need data from the company’s central database? How will that even work? As the marketing director, how much am I supposed to know and understand about the underlying technology? How much should my team know? Can I bring in consultants to help or will that kill my regular marketing budget?&lt;&#x2F;p&gt;
&lt;p&gt;Siloed departments are not the type of teams who can deliver on innovation. They can deliver, but it better be within some scope of expectation. And scope of expectation is a hard conversation to have with some executives.&lt;&#x2F;p&gt;
&lt;p&gt;So how then do we take my situation, revise my organization, and make my marketing department a center for innovation?&lt;&#x2F;p&gt;
&lt;h3 id=&quot;we-reverse-conway-s-law&quot;&gt;We reverse Conway’s Law.&lt;&#x2F;h3&gt;
&lt;p&gt;If my department’s goal is to become an innovation center in marketing, I’ll need a far greater understanding of my organization as a whole. Most importantly, I’ll need an understanding of our customers, how we service our customer’s needs, and what tasks and systems go into servicing those needs. I won’t go into great detail on how that’s done here, but I will direct you to Wardley Mapping. It’s the perfect place to start if you don’t actually know where you are.&lt;&#x2F;p&gt;
&lt;iframe loading=&quot;lazy&quot; class=&quot;wp-embedded-content&quot; sandbox=&quot;allow-scripts&quot; security=&quot;restricted&quot; style=&quot;position: absolute; visibility: hidden;&quot; title=&quot;“Learn Wardley Mapping” — Learn Wardley Mapping&quot; src=&quot;https:&#x2F;&#x2F;learnwardleymapping.com&#x2F;embed&#x2F;#?secret=d8qM0fsy2q#?secret=iYUF8UZGxB&quot; width=&quot;500&quot; height=&quot;282&quot; frameborder=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; scrolling=&quot;no&quot;&gt;&lt;&#x2F;iframe&gt;
&lt;p&gt;Once I understand where my department best services our customers’ needs, and I know what I can outsource, leave to more mature teams internally, and where I need to innovate, I can now build a team around that innovation. That team could include data engineers to help build data capture systems for analytics, mobile app developers to build out a new mobile platform for direct communication with customers, a chatbot to manage answering frequent questions on social media sites. I will need a budget, I’ll need a feedback loop that tells me I’m on the right path. I’ll need direct conversations with customers.&lt;&#x2F;p&gt;
&lt;p&gt;I no longer have a traditional marketing team. I now have an innovation team that takes on marketing challenges. And not all of these challenges are necessarily technology related. Depending on the customer, it’s possible I might need guidance in the form of better human-centered design specialists, design-thinkers, and maybe even an embedded entrepreneur. Once you focus on what you need to deliver to the customer, and you truly understand what you need to deliver to your customer, because their voice and the data is telling you what to deliver, you have a much different team—and that team will need to be dynamic. It will change as your needs change.&lt;&#x2F;p&gt;
&lt;p&gt;Now I have a team that can innovate, because I’m focusing on capturing feedback from my customers with my websites, my mobile apps, and my social network. Valuable feedback comes back into my department in the form of data. My team can analyze data and gain insights that it feeds to other teams within the organization. This in turn helps our services, which helps are customers, and I now have a means of measuring my team’s value.&lt;&#x2F;p&gt;
&lt;p&gt;I haven’t addressed how IoT fits into this. I’ll do that now, but first I’ll need to explain what a sense-enabled company is and how it works.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;iot-ai-aren-t-new-but-they-are-finally-finding-their-business-value&quot;&gt;IoT &amp;amp; AI aren’t new, but they are finally finding their business value&lt;&#x2F;h3&gt;
&lt;p&gt;We’re beginning to build an understanding that the old way of forming organizations to do work is not always the best way to build companies who want to remain agile in times of uncertainty or beat their competition with strategic innovation.&lt;&#x2F;p&gt;
&lt;p&gt;Team topology is the true enterprise architecture. Not IT systems. IT systems will never dictate the communication structure of an organization, it will always be the reverse. Humans will go around the rules of the IT technocracy to complete critical business tasks. Ticket systems are ignored if you know a person in the IT department who you can call to fix the problem, because the problem is stopping a mission critical operation and needs to be repaired NOW!&lt;&#x2F;p&gt;
&lt;p&gt;Is this still valid with the addition of extra-sensory perception—and I don’t mean psychics here, but devices that perform as extra eyes, ears, noses, and sometimes senses that are beyond human detection—and even more recently, have taken on the added role of predictors and decision makers?&lt;&#x2F;p&gt;
&lt;p&gt;I won’t discuss deeply what IoT Edge is in this post. Feel free to see some of my other articles here for more context around its capabilities:&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;atomic-temporary-167008516.wpcomstaging.com&#x2F;2021&#x2F;02&#x2F;08&#x2F;device-vs-module-a-somewhat-deep-dive-into-the-differences-between-azure-iot-hub-devices-and-modules&#x2F;&quot;&gt;https:&#x2F;&#x2F;atomic-temporary-167008516.wpcomstaging.com&#x2F;2021&#x2F;02&#x2F;08&#x2F;device-vs-module-a-somewhat-deep-dive-into-the-differences-between-azure-iot-hub-devices-and-modules&#x2F;&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;atomic-temporary-167008516.wpcomstaging.com&#x2F;2021&#x2F;07&#x2F;14&#x2F;how-do-you-use-ai-to-improve-reliability&#x2F;&quot;&gt;https:&#x2F;&#x2F;atomic-temporary-167008516.wpcomstaging.com&#x2F;2021&#x2F;07&#x2F;14&#x2F;how-do-you-use-ai-to-improve-reliability&#x2F;&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;h3 id=&quot;iot-in-the-monolithic-organization&quot;&gt;IoT in the Monolithic Organization&lt;&#x2F;h3&gt;
&lt;p&gt;IoT is not new. Manufacturers were capturing telemetry from industrial equipment (often referred to as operational technology) long before the internet as we understand it was a thing. These telemetry gathering devices tended to be embedded in the equipment, hardwired, and worked on proprietary protocols. Capturing the data was&#x2F;is managed by factory floor devices called Historians and telemetry was processed in batches. Alerting was all local and tended to be difficult to program. IoT has evolved from the technology of the early days, but it remains similar in function to the older telemetry generating and gathering systems.&lt;&#x2F;p&gt;
&lt;p&gt;And this type of telemetry was fine when your goal was keeping expensive machinery running. That is the goal of many industrial IoT systems today, but that’s not necessarily the goal of many manufacturers. Like most industries, they’ve had to adjust to landscape of manufacturing.&lt;&#x2F;p&gt;
&lt;p&gt;However, when IoT is limited to a siloed department, it’s use is primarily limited within the bounds of that department’s ability to communicate. IoT extends the senses of that department, but the data still isn’t necessarily feeding anyone outside the organization’s communication structure. IoT, when used primarily as a tool within a silo, will likely continue to operate within that silo, and there’s one simple reason for that – IoT is not autonomous. It is merely an extension of the devices and people of that department, so it makes sense that it’s just as siloed as the people.&lt;&#x2F;p&gt;
&lt;p&gt;Let me try to play the Devil’s Advocate here. What about Data Warehouses? Won’t my time-series data end up in a data warehouse? Isn’t that moving beyond the silo?&lt;&#x2F;p&gt;
&lt;p&gt;Okay, so the data might not actually stay on the factory floor in the historian, but is it building a true feedback loop for innovation? No, usually it isn’t. That data is normally used to plan predictive maintenance models, efficiency systems, and possible fill a chart on a dashboard. It’s not so much used to feed the loop, but to burn on the information radiator. So does this data produce value directly for the customer? Not really.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;patterns-of-iot-and-team-topology&quot;&gt;Patterns of IoT and Team Topology&lt;&#x2F;h3&gt;
&lt;p&gt;Recent reports show a greater uptick in IoT and AI innovation projects within organizations. However, they still have many of the same challenges of deriving value from these investments. Could it be that their siloed structures are holding them back?&lt;&#x2F;p&gt;
&lt;p&gt;As the number of AI and data experts increase, many industries still want to relegate these individuals to their IT department—the IT department that is far more focused on operational stability than they are on innovation. Which is understandable, most IT departments are given the mandate to keep things operational. Experimentation sounds like a terrible idea when your job depends on security, stability, reliability, you know… known-knowns, absolutely not unknown-unkowns. Keep those machine learning experiments on your laptop using exports from the data warehouse, but don’t you dare try to bring one of those little beasts into production.&lt;&#x2F;p&gt;
&lt;p&gt;So is it any wonder that traditional monolithic organizations who focus on commodity offerings have a difficult time with a data and AI team – a team whose primary focus is on experimentation. Add IoT, a platform often seen as a security nightmare by traditional IT departments, to the mix and you get even more pushback. When you try to tell them that you want to actually take those experimental machine learning models and push them out to IoT device… well, just expect a lot of laughter. Not laughter with you, I’m afraid.&lt;&#x2F;p&gt;
&lt;p&gt;The lack of AI and IoT success doesn’t tend to be with the technology, but with the team structures inside an organization. Again, Conway’s Law comes into effect here. Your information systems will look like your organization. If your organization’s IT department is built like a battleship, don’t expect it to behave like a fleet of speedboats.&lt;&#x2F;p&gt;
&lt;p&gt;So what if an organization wants to reverse Conway’s Law and build teams for Data, AI, and IoT?&lt;&#x2F;p&gt;
&lt;p&gt;I believe that’s the real solution. If an organization wants to implement IoT and AI, they must first recognize a real value for it in their customer value chain. They must then understand how this fits – can that value be supplied by a outsourced product or team? Is a minimal solution ideal for them, like an IoT platform? Or do they need to build a custom implementation with ML on the edge?&lt;&#x2F;p&gt;
&lt;p&gt;I’ve touched on members needed for an AI development team, but I haven’t touched on the concept of Team Topology for innovation teams. I think I’ll do that for a future post.&lt;&#x2F;p&gt;
&lt;p&gt;For now I think it’s safe to say that IoT and AI do follow along with Conway’s Law. However, to get the greatest use out of AI and IoT, monolithic organizations with siloed departments probably need to rethink their structure and team topology.&lt;&#x2F;p&gt;
&lt;p&gt;In my future article I’ll work out what an IoT Edge development team looks like, how it would work as an agency-based team within an organization, and what its innovation stack looks like.&lt;&#x2F;p&gt;
&lt;p&gt;Until then, thanks for reading!&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>I Read and Summarized the 3rd Edition of IoT Signals So You Don’t Have to</title>
        <published>2021-10-27T19:10:43+06:00</published>
        <updated>2021-10-27T19:18:59-05:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2021/10/27/i-read-and-summarized-the-3rd-edition-of-iot-signals-so-you-dont-have-to/"/>
        <id>https://shawndeggans.com/2021/10/27/i-read-and-summarized-the-3rd-edition-of-iot-signals-so-you-dont-have-to/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2021/10/27/i-read-and-summarized-the-3rd-edition-of-iot-signals-so-you-dont-have-to/">&lt;p&gt;A report built based on survey data taken by the company named, ‘hypothesis’. This is a combined effort between Microsoft and Hypothesis to capture the most current state of IoT from the view of business leaders in certain sectors; manufacturing, energy, mobility, and smart places.&lt;&#x2F;p&gt;
&lt;p&gt;The survey was multi-national and the report includes data captured from in-depth interviews.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;things-to-know-about-iot-in-2021&quot;&gt;Things to know about IoT in 2021&lt;&#x2F;h2&gt;
&lt;p&gt;The following are high-level conclusions drawn from the interviews and survey data:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;IoT continues to drive organizations toward a more productive future&lt;&#x2F;li&gt;
&lt;li&gt;COVID-19 has accelerated IoT strategies and fueled business growth&lt;&#x2F;li&gt;
&lt;li&gt;AI, Edge Computing, and Digital Twins are essential to advance IoT strategies&lt;&#x2F;li&gt;
&lt;li&gt;Although IoT projects are maturing, technological complexity persists&lt;&#x2F;li&gt;
&lt;li&gt;Organizations are keeping a close eye on data security&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;who-they-talked-to&quot;&gt;Who they talked to&lt;&#x2F;h2&gt;
&lt;ul&gt;
&lt;li&gt;Business decision makers, developers, and IT decision makers who work at enterprise-size companies with greater than 1k employees
&lt;ul&gt;
&lt;li&gt;71% were familiar with IoT&lt;&#x2F;li&gt;
&lt;li&gt;95% of those familiar, have influence and decision making power on IoT strategies
&lt;ul&gt;
&lt;li&gt;10% of those familiar were not in adoption of IoT&lt;&#x2F;li&gt;
&lt;li&gt;90% of those familiar were in adoption of IoT&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;overall-research-learnings&quot;&gt;Overall Research Learnings&lt;&#x2F;h2&gt;
&lt;h3 id=&quot;big-picture&quot;&gt;Big Picture&lt;&#x2F;h3&gt;
&lt;p&gt;This year, IoT continues to be widely adopted. 90% of organizations surveyed are IoT adopters. IoT projects can be categorized into four stages:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Learn&lt;&#x2F;li&gt;
&lt;li&gt;Trial &#x2F; Proof of Concept&lt;&#x2F;li&gt;
&lt;li&gt;Purchase&lt;&#x2F;li&gt;
&lt;li&gt;Use&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Of the 90%, at least 82% have a project that reached the “use” stage.&lt;&#x2F;p&gt;
&lt;p&gt;The state of most projects overall:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;29% in Learn&lt;&#x2F;li&gt;
&lt;li&gt;25% in Trial &#x2F; POC&lt;&#x2F;li&gt;
&lt;li&gt;22% in Purchase&lt;&#x2F;li&gt;
&lt;li&gt;25% in Use&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;IoT adoption and value globally (Australia, Italy, and the US lead as primary adopters)&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;90% of the surveyed leaders in countries fitting criteria are adopters&lt;&#x2F;li&gt;
&lt;li&gt;25% have projects in use&lt;&#x2F;li&gt;
&lt;li&gt;Average time to reach “use” is 12 months&lt;&#x2F;li&gt;
&lt;li&gt;66% plan to use IoT more in the next 2 years&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;IoT Adoption and Value by Industry&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Manufacturing
&lt;ul&gt;
&lt;li&gt;91% of the surveyed leaders in countries fitting criteria are adopters&lt;&#x2F;li&gt;
&lt;li&gt;26% have projects in use&lt;&#x2F;li&gt;
&lt;li&gt;Average time to reach “use” is 13 months&lt;&#x2F;li&gt;
&lt;li&gt;68% plan to use IoT more in the next 2 years&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;Energy
&lt;ul&gt;
&lt;li&gt;85% of the surveyed leaders in countries fitting criteria are adopters&lt;&#x2F;li&gt;
&lt;li&gt;22% have projects in use&lt;&#x2F;li&gt;
&lt;li&gt;Average time to reach “use” is 15 months&lt;&#x2F;li&gt;
&lt;li&gt;61% plan to use IoT more in the next 2 years&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;Mobility
&lt;ul&gt;
&lt;li&gt;91% of the surveyed leaders in countries fitting criteria are adopters&lt;&#x2F;li&gt;
&lt;li&gt;23% have projects in use&lt;&#x2F;li&gt;
&lt;li&gt;Average time to reach “use” is 14 months&lt;&#x2F;li&gt;
&lt;li&gt;61% plan to use IoT more in the next 2 years&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;Smart Places
&lt;ul&gt;
&lt;li&gt;94% of the surveyed leaders in countries fitting criteria are adopters&lt;&#x2F;li&gt;
&lt;li&gt;24% have projects in use&lt;&#x2F;li&gt;
&lt;li&gt;Average time to reach “use” is 13 months&lt;&#x2F;li&gt;
&lt;li&gt;69% plan to use IoT more in the next 2 years&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;why-adopt-iot&quot;&gt;Why Adopt IoT&lt;&#x2F;h3&gt;
&lt;p&gt;Overall Top 5 reasons:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Quality Assurance : 43%&lt;&#x2F;li&gt;
&lt;li&gt;Cloud Security: 42%&lt;&#x2F;li&gt;
&lt;li&gt;Device and Asset Security: 40%&lt;&#x2F;li&gt;
&lt;li&gt;Operations Optimization: 40%&lt;&#x2F;li&gt;
&lt;li&gt;Employee Productivity: 35%&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;&lt;em&gt;The report includes evidence that those companies who employ IoT to improve products and service see a higher increase in overall ROI.&lt;&#x2F;em&gt;&lt;&#x2F;p&gt;
&lt;p&gt;Manufacturing Top 5:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Quality and compliance&lt;&#x2F;li&gt;
&lt;li&gt;Industrial automation&lt;&#x2F;li&gt;
&lt;li&gt;Production flow monitoring&lt;&#x2F;li&gt;
&lt;li&gt;Production planning and scheduling&lt;&#x2F;li&gt;
&lt;li&gt;Supply chain and logistics&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Energy (Power and Utilities) Top 5:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Smart grid automation&lt;&#x2F;li&gt;
&lt;li&gt;Grid asset maintenance&lt;&#x2F;li&gt;
&lt;li&gt;Remote infrastructure maintenance&lt;&#x2F;li&gt;
&lt;li&gt;Smart metering&lt;&#x2F;li&gt;
&lt;li&gt;Workplace safety&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Energy (Oil and Gas)&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Workplace safety&lt;&#x2F;li&gt;
&lt;li&gt;Employee safety&lt;&#x2F;li&gt;
&lt;li&gt;Remote infrastructure maintenance&lt;&#x2F;li&gt;
&lt;li&gt;Emissions monitoring and reduction&lt;&#x2F;li&gt;
&lt;li&gt;Asset and predictive maintenance&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Mobility&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Inventory tracking and warehousing&lt;&#x2F;li&gt;
&lt;li&gt;Manufacturing operation efficiency&lt;&#x2F;li&gt;
&lt;li&gt;Surveillance and safety&lt;&#x2F;li&gt;
&lt;li&gt;Remote commands&lt;&#x2F;li&gt;
&lt;li&gt;Fleet management&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Smart places&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Productivity enablement and workplace analysis&lt;&#x2F;li&gt;
&lt;li&gt;Building safety&lt;&#x2F;li&gt;
&lt;li&gt;Predictive maintenance&lt;&#x2F;li&gt;
&lt;li&gt;Regulations and compliance management&lt;&#x2F;li&gt;
&lt;li&gt;Space management and optimization&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;benefits-of-iot&quot;&gt;Benefits of IoT&lt;&#x2F;h3&gt;
&lt;p&gt;Top 5 benefits organizations are reaping from IoT&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Increases in efficiency of operations&lt;&#x2F;li&gt;
&lt;li&gt;Improved safety conditions&lt;&#x2F;li&gt;
&lt;li&gt;Allows employees to be more productive&lt;&#x2F;li&gt;
&lt;li&gt;Allows for better optimization of tools and equipment&lt;&#x2F;li&gt;
&lt;li&gt;Reduces chance for human error&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Common measures of success in IoT&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Quality&lt;&#x2F;li&gt;
&lt;li&gt;Security&lt;&#x2F;li&gt;
&lt;li&gt;Production Efficiency&lt;&#x2F;li&gt;
&lt;li&gt;Reliability&lt;&#x2F;li&gt;
&lt;li&gt;Cost efficiency&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Less common measures of success&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;More informed decision making&lt;&#x2F;li&gt;
&lt;li&gt;Direct impact on increased revenue&lt;&#x2F;li&gt;
&lt;li&gt;Sustainability&lt;&#x2F;li&gt;
&lt;li&gt;% of project deployed using IoT&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;challenges-of-iot&quot;&gt;Challenges of IoT&lt;&#x2F;h3&gt;
&lt;p&gt;Top 5&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Still implementing our current solution&lt;&#x2F;li&gt;
&lt;li&gt;Security risk isn’t worth it&lt;&#x2F;li&gt;
&lt;li&gt;Want to work out existing and future challenges before adding or using IoT more&lt;&#x2F;li&gt;
&lt;li&gt;Too complex to implement because of technology demands&lt;&#x2F;li&gt;
&lt;li&gt;Too complex to implement because of business transformation needed&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Top 5 reasons POCs fail&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;High cost of scaling&lt;&#x2F;li&gt;
&lt;li&gt;Lack of necessary technology&lt;&#x2F;li&gt;
&lt;li&gt;Pilots demonstrate unclear business value or ROI&lt;&#x2F;li&gt;
&lt;li&gt;Too many platforms to test&lt;&#x2F;li&gt;
&lt;li&gt;Pilot takes too long to deploy&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Top 5 security concerns&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Ensuring data privacy&lt;&#x2F;li&gt;
&lt;li&gt;Ensuring network-level security&lt;&#x2F;li&gt;
&lt;li&gt;Security endpoints for each IoT device&lt;&#x2F;li&gt;
&lt;li&gt;Tracking and managing each IoT device&lt;&#x2F;li&gt;
&lt;li&gt;Making sure all existing software is updated&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;The report includes a section on best practices, and notes that despite security being a big concern, very few are implementing these best practices:&lt;&#x2F;p&gt;
&lt;p&gt;Top 5 best practices&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Assume breaches at every level of IoT project&lt;&#x2F;li&gt;
&lt;li&gt;Analyze dataflows for anomalies and breaches&lt;&#x2F;li&gt;
&lt;li&gt;Define trust boundaries between components&lt;&#x2F;li&gt;
&lt;li&gt;Implement least privileged access&lt;&#x2F;li&gt;
&lt;li&gt;Monitoring 3rd party dependencies for common vulnerabilities&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;iot-implementation-strategy&quot;&gt;IoT Implementation Strategy&lt;&#x2F;h3&gt;
&lt;p&gt;Most of the companies surveyed prefer to work with outsourced resources to implement their IoT strategy. They do prefer bespoke solutions.&lt;&#x2F;p&gt;
&lt;p&gt;Those who outsource see these positive benefits:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Increases efficiency of operations&lt;&#x2F;li&gt;
&lt;li&gt;Improves safety conditions&lt;&#x2F;li&gt;
&lt;li&gt;Reduces changes for human error&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Those who do not outsource tend to hit these challenges:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Too complex to implement because of business transformation needed&lt;&#x2F;li&gt;
&lt;li&gt;Too long to implement&lt;&#x2F;li&gt;
&lt;li&gt;No buy-in from senior leadership&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;sustainability&quot;&gt;Sustainability&lt;&#x2F;h3&gt;
&lt;p&gt;Companies with more near-term zero carbon footprint goals are more motivated to implement IoT to help than those who have a longer range target.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;impact-of-covid-19&quot;&gt;Impact of COVID-19&lt;&#x2F;h3&gt;
&lt;p&gt;When asked if C-19 was an influence in investing:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;44% more investment&lt;&#x2F;li&gt;
&lt;li&gt;41% stay the same&lt;&#x2F;li&gt;
&lt;li&gt;7% less&lt;&#x2F;li&gt;
&lt;li&gt;4% too early to tell&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;emerging-technologies&quot;&gt;Emerging Technologies&lt;&#x2F;h2&gt;
&lt;p&gt;Those who are adopting IoT are more likely to adopt other innovative technology associated with IoT:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Digital Twins&lt;&#x2F;li&gt;
&lt;li&gt;Edge Computing&lt;&#x2F;li&gt;
&lt;li&gt;AI at the Edge&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;This is collectively known as AI Edge&lt;&#x2F;p&gt;
&lt;h3 id=&quot;ai-implementation&quot;&gt;AI Implementation&lt;&#x2F;h3&gt;
&lt;p&gt;84% Have a strategy:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;31% are implementing&lt;&#x2F;li&gt;
&lt;li&gt;26% developed, but not implemented&lt;&#x2F;li&gt;
&lt;li&gt;26% developing&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;16% do not have a strategy&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;11% want to develop&lt;&#x2F;li&gt;
&lt;li&gt;5% have no plans&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;79% of respondents claim that AI is a core or secondary component of their overall IoT strategy&lt;&#x2F;p&gt;
&lt;p&gt;Top 5 reasons for AI in IoT Adoption:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Predictive maintenance&lt;&#x2F;li&gt;
&lt;li&gt;Prescriptive maintenance&lt;&#x2F;li&gt;
&lt;li&gt;User experience&lt;&#x2F;li&gt;
&lt;li&gt;Visual image recognition and interpretation&lt;&#x2F;li&gt;
&lt;li&gt;Natural language recognition and processing&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Top 5 Barriers to using AI within IoT&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Too complex to scale&lt;&#x2F;li&gt;
&lt;li&gt;Lack of infrastructure&lt;&#x2F;li&gt;
&lt;li&gt;Lack of technical knowledge&lt;&#x2F;li&gt;
&lt;li&gt;Implementing AI would be too complex&lt;&#x2F;li&gt;
&lt;li&gt;Lack of trained personnel&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;ai-adoption-and-value-by-industry&quot;&gt;AI Adoption and Value by Industry&lt;&#x2F;h3&gt;
&lt;p&gt;Total:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;84% – have an AI strategy&lt;&#x2F;li&gt;
&lt;li&gt;31% – Implementing&lt;&#x2F;li&gt;
&lt;li&gt;26% – developed&lt;&#x2F;li&gt;
&lt;li&gt;26% – developing&lt;&#x2F;li&gt;
&lt;li&gt;79% – use AI in IoT solution&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Manufacturing:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;84% – have an AI strategy&lt;&#x2F;li&gt;
&lt;li&gt;31% – Implementing&lt;&#x2F;li&gt;
&lt;li&gt;23% – developed&lt;&#x2F;li&gt;
&lt;li&gt;30% – developing&lt;&#x2F;li&gt;
&lt;li&gt;83% – use AI in IoT solution&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Energy&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;90% – have an AI strategy&lt;&#x2F;li&gt;
&lt;li&gt;26% – Implementing&lt;&#x2F;li&gt;
&lt;li&gt;28% – developed&lt;&#x2F;li&gt;
&lt;li&gt;36% – developing&lt;&#x2F;li&gt;
&lt;li&gt;89% – use AI in IoT solution&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Mobility&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;81% – have an AI strategy&lt;&#x2F;li&gt;
&lt;li&gt;36% – Implementing&lt;&#x2F;li&gt;
&lt;li&gt;25% – developed&lt;&#x2F;li&gt;
&lt;li&gt;20% – developing&lt;&#x2F;li&gt;
&lt;li&gt;85% – use AI in IoT solution&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Smart Places&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;88% – have an AI strategy&lt;&#x2F;li&gt;
&lt;li&gt;39% – Implementing&lt;&#x2F;li&gt;
&lt;li&gt;28% – developed&lt;&#x2F;li&gt;
&lt;li&gt;21% – developing&lt;&#x2F;li&gt;
&lt;li&gt;75% – use AI in IoT solution&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;edge-computing&quot;&gt;Edge Computing&lt;&#x2F;h3&gt;
&lt;p&gt;Edge Computing Implementation Progress&lt;&#x2F;p&gt;
&lt;p&gt;79% have a strategy:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;29% implementing&lt;&#x2F;li&gt;
&lt;li&gt;26% developed but not implemented&lt;&#x2F;li&gt;
&lt;li&gt;24% developing&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;21% do not have a strategy:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;15% want to develop&lt;&#x2F;li&gt;
&lt;li&gt;6% have not plans&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;81% Edge Computing as a core or secondary component:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;42% Core&lt;&#x2F;li&gt;
&lt;li&gt;39% Secondary&lt;&#x2F;li&gt;
&lt;li&gt;18% Considering, not yet adopted&lt;&#x2F;li&gt;
&lt;li&gt;1% not considering&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Top 5 Reasons to adopt Edge Computing&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Cloud security&lt;&#x2F;li&gt;
&lt;li&gt;Device and asset security&lt;&#x2F;li&gt;
&lt;li&gt;Quality assurance&lt;&#x2F;li&gt;
&lt;li&gt;Securing the physical environment&lt;&#x2F;li&gt;
&lt;li&gt;Operations Optimization&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Top 5 barriers to adoption&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Lack of architectural guidance&lt;&#x2F;li&gt;
&lt;li&gt;Lack of trained personnel&lt;&#x2F;li&gt;
&lt;li&gt;Lack of infrastructure&lt;&#x2F;li&gt;
&lt;li&gt;Difficulty managing security&lt;&#x2F;li&gt;
&lt;li&gt;Lack of clarity on edge hardware choices&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;edge-computing-adoption-and-value-by-industry&quot;&gt;Edge Computing Adoption and Value by Industry&lt;&#x2F;h3&gt;
&lt;p&gt;Total:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;79% – Have Edge Computing strategy&lt;&#x2F;li&gt;
&lt;li&gt;29% – implementing&lt;&#x2F;li&gt;
&lt;li&gt;26% – developed&lt;&#x2F;li&gt;
&lt;li&gt;24% – developing&lt;&#x2F;li&gt;
&lt;li&gt;81% – Use Edge Computing in IoT Solutions&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Manufacturing:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;83% – Have Edge Computing strategy&lt;&#x2F;li&gt;
&lt;li&gt;37% – implementing&lt;&#x2F;li&gt;
&lt;li&gt;28% – developed&lt;&#x2F;li&gt;
&lt;li&gt;18% – developing&lt;&#x2F;li&gt;
&lt;li&gt;77% – Use Edge Computing in IoT Solutions&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Energy:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;85% – Have Edge Computing strategy&lt;&#x2F;li&gt;
&lt;li&gt;38% – implementing&lt;&#x2F;li&gt;
&lt;li&gt;25% – developed&lt;&#x2F;li&gt;
&lt;li&gt;23% – developing&lt;&#x2F;li&gt;
&lt;li&gt;85% – Use Edge Computing in IoT Solutions&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Mobility:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;85% – Have Edge Computing strategy&lt;&#x2F;li&gt;
&lt;li&gt;18% – implementing&lt;&#x2F;li&gt;
&lt;li&gt;30% – developed&lt;&#x2F;li&gt;
&lt;li&gt;37% – developing&lt;&#x2F;li&gt;
&lt;li&gt;88% – Use Edge Computing in IoT Solutions&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Smart Places:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;85% – Have Edge Computing strategy&lt;&#x2F;li&gt;
&lt;li&gt;29% – implementing&lt;&#x2F;li&gt;
&lt;li&gt;26% – developed&lt;&#x2F;li&gt;
&lt;li&gt;30% – developing&lt;&#x2F;li&gt;
&lt;li&gt;83% – Use Edge Computing in IoT Solutions&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;digital-twins&quot;&gt;Digital Twins&lt;&#x2F;h2&gt;
&lt;p&gt;77% have a strategy:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;24% implementing&lt;&#x2F;li&gt;
&lt;li&gt;29% developed, but not implemented&lt;&#x2F;li&gt;
&lt;li&gt;24% developing&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;23% do not have a strategy:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;14% want to develop&lt;&#x2F;li&gt;
&lt;li&gt;9% have no plans&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;81% Use and Impact of DT on IoT Solutions&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;41% feature as core component&lt;&#x2F;li&gt;
&lt;li&gt;40% feature as secondary component&lt;&#x2F;li&gt;
&lt;li&gt;18% considering, but not yet adopted&lt;&#x2F;li&gt;
&lt;li&gt;1% not considering&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Top 5 benefits of using DT within IoT:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Improve overall quality&lt;&#x2F;li&gt;
&lt;li&gt;Increase revenue&lt;&#x2F;li&gt;
&lt;li&gt;Reduce operations costs&lt;&#x2F;li&gt;
&lt;li&gt;Enhance warranty cost and services&lt;&#x2F;li&gt;
&lt;li&gt;Reduce time to market for a new product&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Top 5 barriers:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Challenges managing the value of data collected&lt;&#x2F;li&gt;
&lt;li&gt;Complexity of systems needed to handle digital twins&lt;&#x2F;li&gt;
&lt;li&gt;Integration challenges&lt;&#x2F;li&gt;
&lt;li&gt;Lack of trained personnel&lt;&#x2F;li&gt;
&lt;li&gt;Challenges modeling the environment&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;digital-twins-adoption-and-value-by-industry&quot;&gt;Digital Twins Adoption and Value by Industry&lt;&#x2F;h3&gt;
&lt;p&gt;Total:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;77% – have a DT strategy&lt;&#x2F;li&gt;
&lt;li&gt;24% – implementing&lt;&#x2F;li&gt;
&lt;li&gt;29% – developed&lt;&#x2F;li&gt;
&lt;li&gt;24% – developing&lt;&#x2F;li&gt;
&lt;li&gt;81% – use DT in IoT solution&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Manufacturing:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;79% – have a DT strategy&lt;&#x2F;li&gt;
&lt;li&gt;31% – implementing&lt;&#x2F;li&gt;
&lt;li&gt;25% – developed&lt;&#x2F;li&gt;
&lt;li&gt;23% – developing&lt;&#x2F;li&gt;
&lt;li&gt;86% – use DT in IoT solution&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Energy:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;79% – have a DT strategy&lt;&#x2F;li&gt;
&lt;li&gt;26% – implementing&lt;&#x2F;li&gt;
&lt;li&gt;29% – developed&lt;&#x2F;li&gt;
&lt;li&gt;24% – developing&lt;&#x2F;li&gt;
&lt;li&gt;82% – use DT in IoT solution&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Mobility:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;76% – have a DT strategy&lt;&#x2F;li&gt;
&lt;li&gt;15% – implementing&lt;&#x2F;li&gt;
&lt;li&gt;39% – developed&lt;&#x2F;li&gt;
&lt;li&gt;23% – developing&lt;&#x2F;li&gt;
&lt;li&gt;77% – use DT in IoT solution&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Smart Places&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;82% – have a DT strategy&lt;&#x2F;li&gt;
&lt;li&gt;27% – implementing&lt;&#x2F;li&gt;
&lt;li&gt;35% – developed&lt;&#x2F;li&gt;
&lt;li&gt;22% – developing&lt;&#x2F;li&gt;
&lt;li&gt;85% – use DT in IoT solution&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;by-industry&quot;&gt;By Industry&lt;&#x2F;h2&gt;
&lt;h3 id=&quot;smart-places&quot;&gt;Smart Places&lt;&#x2F;h3&gt;
&lt;p&gt;94% IoT Adopters&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;27% – learn&lt;&#x2F;li&gt;
&lt;li&gt;25% – POC&lt;&#x2F;li&gt;
&lt;li&gt;25% – Purchase&lt;&#x2F;li&gt;
&lt;li&gt;24% – Use&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Top Benefits:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Increase the efficiency of operations&lt;&#x2F;li&gt;
&lt;li&gt;Improves safety conditions&lt;&#x2F;li&gt;
&lt;li&gt;Allows for better optimization of tools and equipment&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Top 5 reasons for adoption:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Productivity enablement&lt;&#x2F;li&gt;
&lt;li&gt;Building safety&lt;&#x2F;li&gt;
&lt;li&gt;Predictive maintenance&lt;&#x2F;li&gt;
&lt;li&gt;Space management and optimization&lt;&#x2F;li&gt;
&lt;li&gt;Regulation and compliance management&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Top 5 challenges&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Still implementing current solution&lt;&#x2F;li&gt;
&lt;li&gt;Security risk isn’t worth it&lt;&#x2F;li&gt;
&lt;li&gt;Too complex to implement because of the need for business transformation&lt;&#x2F;li&gt;
&lt;li&gt;Want to work out exiting and future challenges before adding or using&lt;&#x2F;li&gt;
&lt;li&gt;Too complex to implement because of technology demands&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;manufacturing&quot;&gt;Manufacturing&lt;&#x2F;h3&gt;
&lt;p&gt;91% IoT Adopters&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;27% – Learn&lt;&#x2F;li&gt;
&lt;li&gt;26% – POC&lt;&#x2F;li&gt;
&lt;li&gt;21% – Purchase&lt;&#x2F;li&gt;
&lt;li&gt;26% – Use&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Top Benefits&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Increases the efficiency of operations&lt;&#x2F;li&gt;
&lt;li&gt;Increases production capacity&lt;&#x2F;li&gt;
&lt;li&gt;Reduces chance for human error&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Top 5 Reasons for Adoption:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Quality and compliance&lt;&#x2F;li&gt;
&lt;li&gt;Industrial automation&lt;&#x2F;li&gt;
&lt;li&gt;Production flow monitoring&lt;&#x2F;li&gt;
&lt;li&gt;Production planning and scheduling&lt;&#x2F;li&gt;
&lt;li&gt;Supply chain and logistics&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Top 5 Challenges to using IoT more&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Still implementing current solution&lt;&#x2F;li&gt;
&lt;li&gt;Too complex to implement because of technology demands&lt;&#x2F;li&gt;
&lt;li&gt;Security risk isn’t worth it&lt;&#x2F;li&gt;
&lt;li&gt;Want to work out challenges before adding or using IoT more&lt;&#x2F;li&gt;
&lt;li&gt;Don’t have human resources to implement or manage&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;mobility&quot;&gt;Mobility&lt;&#x2F;h3&gt;
&lt;p&gt;91% IoT Adopters:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;30% – Learn&lt;&#x2F;li&gt;
&lt;li&gt;26% – POC&lt;&#x2F;li&gt;
&lt;li&gt;21% – Purchase&lt;&#x2F;li&gt;
&lt;li&gt;23% – Use&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Top benefits of IoT:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Increase efficiency of operations&lt;&#x2F;li&gt;
&lt;li&gt;Allows employees to be more productive&lt;&#x2F;li&gt;
&lt;li&gt;Improves safety conditions and increases production capacity&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Top 5 Reasons for Adoption&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Inventory tracking and warehousing&lt;&#x2F;li&gt;
&lt;li&gt;Manufacturing operations efficiency&lt;&#x2F;li&gt;
&lt;li&gt;Surveillance and safety&lt;&#x2F;li&gt;
&lt;li&gt;Remote commands&lt;&#x2F;li&gt;
&lt;li&gt;Fleet management&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Top 5 challenges to using IoT More:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Want to work out challenges before adding or using IoT more&lt;&#x2F;li&gt;
&lt;li&gt;Too complex to implement because of technology demands&lt;&#x2F;li&gt;
&lt;li&gt;Still implementing our current solutions&lt;&#x2F;li&gt;
&lt;li&gt;Security risk isn’t worth it&lt;&#x2F;li&gt;
&lt;li&gt;Too complex to implement because of business transformation needed&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;energy&quot;&gt;Energy&lt;&#x2F;h3&gt;
&lt;p&gt;&lt;strong&gt;80% IoT Adopters (Power and Utilities)&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;28% – Learn&lt;&#x2F;li&gt;
&lt;li&gt;26% – POC&lt;&#x2F;li&gt;
&lt;li&gt;23% – Purchase&lt;&#x2F;li&gt;
&lt;li&gt;23% – Use&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Top Benefits&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Increase the efficiency of operations&lt;&#x2F;li&gt;
&lt;li&gt;Increases production capacity&lt;&#x2F;li&gt;
&lt;li&gt;Allows employees to be more productive&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Top 5 reasons for adoption:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Smart grid automation&lt;&#x2F;li&gt;
&lt;li&gt;Grid asset maintenance&lt;&#x2F;li&gt;
&lt;li&gt;Remote infrastructure maintenance&lt;&#x2F;li&gt;
&lt;li&gt;Smart metering&lt;&#x2F;li&gt;
&lt;li&gt;Workplace safety&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Top Challenges:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Too complex because of technology demands&lt;&#x2F;li&gt;
&lt;li&gt;Security risk isn’t worth it&lt;&#x2F;li&gt;
&lt;li&gt;don’t have human resources to implement and manage&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;&lt;strong&gt;94% IoT Adopters (Oil &amp;amp; Gas)&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;28% – Learn&lt;&#x2F;li&gt;
&lt;li&gt;27% – POC&lt;&#x2F;li&gt;
&lt;li&gt;24% – Purchase&lt;&#x2F;li&gt;
&lt;li&gt;20% – Use&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Top Benefits&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Increase customer satisfaction&lt;&#x2F;li&gt;
&lt;li&gt;Improves business decision-making&lt;&#x2F;li&gt;
&lt;li&gt;Increases production capacity and the efficiency of operations&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Top 5 reasons for adoption:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Workplace safety&lt;&#x2F;li&gt;
&lt;li&gt;Employee satisfaction&lt;&#x2F;li&gt;
&lt;li&gt;Remote infrastructure maintenance&lt;&#x2F;li&gt;
&lt;li&gt;Emissions monitoring and reduciton&lt;&#x2F;li&gt;
&lt;li&gt;Asset and predictive maintenance&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Top challenges:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Lack of technical knowledge&lt;&#x2F;li&gt;
&lt;li&gt;Don’t know enough&lt;&#x2F;li&gt;
&lt;li&gt;Too complex to implement because of business transformation needed&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;final-thoughts&quot;&gt;Final Thoughts&lt;&#x2F;h2&gt;
&lt;p&gt;Things worth noting:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;IoT is not going away, in fact more money, time, and investment goes into it each year&lt;&#x2F;li&gt;
&lt;li&gt;Most organizations are looking to add AI, Edge Computing, and Digital Twins to their solutions&lt;&#x2F;li&gt;
&lt;li&gt;May organizations are outsourcing their IoT work and seeing more benefits because of this&lt;&#x2F;li&gt;
&lt;li&gt;Top challenges are around knowledge, skill, security, and implementation at scale&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;azure.microsoft.com&#x2F;en-us&#x2F;iot&#x2F;signals&#x2F;&quot;&gt;The original report&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Operationalize Machine Learning for Manufacturing</title>
        <published>2021-09-23T18:51:42+06:00</published>
        <updated>2022-03-22T07:45:00-05:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2021/09/23/operationalize-machine-learning-for-manufacturing/"/>
        <id>https://shawndeggans.com/2021/09/23/operationalize-machine-learning-for-manufacturing/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2021/09/23/operationalize-machine-learning-for-manufacturing/">&lt;p&gt;The “Smart” manufacturing revolution is here. It’s proved its effectiveness in Predictive Maintenance, Quality Control, Logistics and Inventory, Product Development, Cybersecurity, and paired with IoT it expands into Robotics, Control Systems, and Digital Twins.&lt;&#x2F;p&gt;
&lt;p&gt;Manufacturers who want to build a data science team and operationalize machine learning models for must build an MLOPs practice. And by must, I mean this is essential, not optional. I’ve seen what happens when a team is built of unskilled engineers and attempts to take shortcuts on the journey to put machine learning into production without MLOPs and Responsible AI.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;why-do-you-need-mlops&quot;&gt;Why do you need MLOPs?&lt;&#x2F;h2&gt;
&lt;p&gt;First, I think it’s important to understand the benefits of machine learning to manufacturers. I’ve already touched on some of the areas where Machine Learning is helpful. But let’s talk about the value that MLOPs brings to your organization.&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;It helps to reduce the risk of data science by making the work of scientists more transparent, trackable, and understandable. When coupled with a Responsible AI governance policy, MLOPs can help manufacturing leaders understand the risks of the models running in their environments.&lt;&#x2F;li&gt;
&lt;li&gt;Generate greater, long-term value. Modern software development has taught us that development doesn’t end with production. Systems must be monitored to ensure they are meeting the needs of the business, even as that business shifts and changes under market pressures. Machine Learning is no different. In fact, models must be reviewed and maintained in some type of regular cadence. Unlike software, that is relatively static in nature, an ML model is code with data. As data changes, so must the model. It is an evolving system and must be observed and maintained even after production deployment.&lt;&#x2F;li&gt;
&lt;li&gt;Scaling is one of the big problems of ML. It’s fairly easy to monitor one or two models in production manually, but once you scale to hundreds, even thousands of models, you will need systems in place to support the required maintenance of models.&lt;&#x2F;li&gt;
&lt;li&gt;Maintenance is another thing to consider. Models must be updated. Sometimes many times a day. This means a delivery pipeline from initial hypothesis to production that is fast, scalable, and includes all the required tests and metrics gathering systems needed to monitor and control the lifecycle of the model.&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;h2 id=&quot;the-machine-learning-lifecycle-and-why-it-s-challenging&quot;&gt;The Machine Learning Lifecycle and Why It’s Challenging&lt;&#x2F;h2&gt;
&lt;p&gt;I’m not going to dive into the Machine Learning Lifecycle in this article, but I will point out a few areas where that make it challenging to a manufacturer’s traditional IT department.&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Data is a dependency. Very few ML models are of any value without a powerful data system to provide data for the learning portion of machine learning. Manufacturers often have data. Lots of data, in fact. Many manufacturers have been collecting telemetry data from operational technology for many years. But often that data is locked away in proprietary systems or behind multiple firewalls. There are tools to work with systems on-premises. Many data scientists are happy building experiments on their laptop. But this doesn’t scale to larger datasets or working with streaming data. Ideally, some type of lambda architecture will be needed to gather, prepare, and process the data for the machine learning process. Often, it’s preferred that this system be in the cloud where it’s accessible to entire teams and data engineers and leverage the compute power of the cloud to build and operationalize ML models.&lt;&#x2F;li&gt;
&lt;li&gt;Domain language issues. Data science brings a whole new set of tools and ideas to the traditional IT department. Data scientists are rarely software developers. They work in Notebooks and use programming languages like R, Python, and Julia. If you’re IT department isn’t used to the tooling and the processes of working with these tools, transferring from a Jupyter Notebook to an inferencing endpoint hosted on Kubernetes might be a challenge for your IT department.&lt;&#x2F;li&gt;
&lt;li&gt;Again, data scientists are not programmers. There are some who can program, but the code they tend to write is in support of training and testing ML models. It’s not generally written to be robust enough to standup to the type of software requirements demanded from a microservice. Your data scientists will likely need support from engineers who understand the deployment side of data science. You will need a team of people to help support your ML journey.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;mlops-and-devops&quot;&gt;MLOPs and DevOps&lt;&#x2F;h2&gt;
&lt;p&gt;MLOPs and DevOps do have a lot in common. They both focus on some of the same things, so if you already have a robust DevOps process in place in your organization, taking on MLOPs will be less of a challenge. However, if your IT department has never heard of DevOps, you might be in for a harder journey than expected.&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;DevOps is a proponent of automation. The idea is to reduce the friction from software development to production deployment by adding systems that automate the manual steps of the software deployment process. MLOPs has these same goals.&lt;&#x2F;li&gt;
&lt;li&gt;DevOps is a teams practice built on trust within the teams. This includes increased collaboration, communication, and an overall understanding from all the teams of the service life-cycle. Developers understand the requirements and rigors of operations and do their best to bake in what’s needed to support operations members of their team. Operations understand the business value of new features and systems and know how to monitor telemetry and systems to ensure risks are minimized. MLOPs has some of these same ideas, with an even greater emphasis on monitoring the model in production.&lt;&#x2F;li&gt;
&lt;li&gt;Both MLOPs and DevOps prioritize the concept of continuous deployment, experimentation, observability, and resilient systems.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;The big difference between these two systems:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;DevOps tends to deliver code&lt;&#x2F;li&gt;
&lt;li&gt;MLOPs delivers code and data&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;use-mlops-to-reduce-risk&quot;&gt;Use MLOPs to Reduce Risk&lt;&#x2F;h2&gt;
&lt;p&gt;MLOPs can help protect you from risks associated with Machine Learning. As a practice, MLOPs encourages many of the same things that DevOps does, like teamwork, open and honest visibility into work, standard operating procedures, and a break in dependencies from traditional siloed IT operations.&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Personnel dependency risks. What if your data scientist leaves the organization? Can you hire someone to take over that role?&lt;&#x2F;li&gt;
&lt;li&gt;Model accuracy can reduce over time. Without the systems in place to monitor models and the system in place to quickly deploy new models, you might find that you’re systems are compromised because they are delivering bad predictions or they are responding incorrectly to certain events.&lt;&#x2F;li&gt;
&lt;li&gt;What if there is a high dependency on the model and it’s not available? When systems are dependent on the accuracy of a model and that model isn’t available, could it bring production to halt? Or worse, put people’s lives at risk? These are all considerations that must be made when evaluating putting an ML Model into production.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;taking-on-mlops&quot;&gt;Taking on MLOPs&lt;&#x2F;h2&gt;
&lt;p&gt;MLOPS is not free. There are operational costs associated with the practice. This is not a cost you can avoid. Too much depends on the accuracy of your models, especially in a production environment to take on the risks without the assurances that a good MLOPs practice brings to manufacturers.&lt;&#x2F;p&gt;
&lt;p&gt;Here are the important things to remember:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Pushing a model to production is not a final step. It’s one step in the life-cycle of a model.&lt;&#x2F;li&gt;
&lt;li&gt;Monitor the model performance and make sure it’s meeting the accuracy requirements expected&lt;&#x2F;li&gt;
&lt;li&gt;Use Responsible AI practices
&lt;ul&gt;
&lt;li&gt;Intentionality&lt;&#x2F;li&gt;
&lt;li&gt;Accountability&lt;&#x2F;li&gt;
&lt;li&gt;Fairness&lt;&#x2F;li&gt;
&lt;li&gt;Privacy&lt;&#x2F;li&gt;
&lt;li&gt;Security&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;Again, MLOPs is not optional, nice to have, or an afterthought. If you are releasing models to production, you must start an MLOPs practice.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Azure IoT Central Now Features Organizations</title>
        <published>2021-09-11T23:05:20+06:00</published>
        <updated>2022-03-22T07:43:52-05:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2021/09/11/azure-iot-central-now-features-organizations/"/>
        <id>https://shawndeggans.com/2021/09/11/azure-iot-central-now-features-organizations/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2021/09/11/azure-iot-central-now-features-organizations/">&lt;h2 id=&quot;now-you-can-use-iot-central-as-a-multi-tenant-hub&quot;&gt;Now you can use IoT Central as a multi-tenant hub&lt;&#x2F;h2&gt;
&lt;p&gt;Azure IoT Central now supports multi-tenant. What does this mean? It means that you as the application administrator can now manage your devices, device groups, and users under different organizations. This gives you the ability to either segment off portions of your organization or allow multiple organizations to use the same IoT Central application.&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;Azure IoT Central now supports multi-tenant. Segment your organization or allow multiple organizations to use your app.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;http:&#x2F;&#x2F;twitter.com&#x2F;share?&amp;amp;text=Azure%20IoT%20Central%20now%20supports%20multi-tenant.%20Segment%20your%20organization%20or%20allow%20multiple%20organizations%20to%20use%20your%20app.&amp;amp;url=http%3A%2F%2Fshawndeggans.com%2F2021%2F09%2F11%2Fazure-iot-central-now-features-organizations%2F&quot;&gt;Tweet&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;What does this look like practically?&lt;&#x2F;p&gt;
&lt;p&gt;Building mltitenant solutions for… your organization&lt;&#x2F;p&gt;
&lt;p&gt;Customers in this scenario are looking for an IoT platform that allows them to provide a factory view to device managers and operators that is local to that factory. For instance, a factory operator at the West plant only sees their devices, device groups, and users. However, an administrator has visibility into all plant activity. The old way to make this work in IoT Central was to template the app and release multiple versions of it, or to use device groups as a means of organizing devices that belong to a different location. Now you can build the application once, and invite multiple locations or organizations to the application. This can also make IoT Central a manage services platform.&lt;&#x2F;p&gt;
&lt;p&gt;Building multitenant solutions for… your customers.&lt;&#x2F;p&gt;
&lt;p&gt;How is this done in IoT Central?&lt;&#x2F;p&gt;
&lt;p&gt;Devices continue to send their IoT data to a central endpoint, but on the cloud the data is segmented based on organizations.&lt;&#x2F;p&gt;
&lt;p&gt;There are three concepts at play:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Organizations – conceptually, it’s a container or folder where you send your device data&lt;&#x2F;li&gt;
&lt;li&gt;Organizations – allow for parent child relationships – parent company and child companies&lt;&#x2F;li&gt;
&lt;li&gt;Users – you assign users and their role or context to that organization&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Personally, I’m excited about the opportunities that this offers platform developers. Smaller and mid-sized factories could share the same app and platform, but segment their data by building, zones, or even machines. This allows local operators the ability to focus on the data that is meaningful to them.&lt;&#x2F;p&gt;
&lt;iframe loading=&quot;lazy&quot; class=&quot;youtube-player&quot; title=&quot;YouTube video player&quot; width=&quot;640&quot; height=&quot;360&quot; src=&quot;https:&#x2F;&#x2F;www.youtube.com&#x2F;embed&#x2F;uuVrosZOD8E?version=3&amp;amp;rel=1&amp;amp;showsearch=0&amp;amp;showinfo=1&amp;amp;iv_load_policy=1&amp;amp;fs=1&amp;amp;hl=en&amp;amp;autohide=2&amp;amp;wmode=transparent&quot; allowfullscreen=&quot;true&quot; style=&quot;border:0;&quot; sandbox=&quot;allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox&quot;&gt;&lt;&#x2F;iframe&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>How do you use AI to improve reliability?</title>
        <published>2021-07-14T18:43:33+06:00</published>
        <updated>2022-03-22T07:43:29-05:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2021/07/14/how-do-you-use-ai-to-improve-reliability/"/>
        <id>https://shawndeggans.com/2021/07/14/how-do-you-use-ai-to-improve-reliability/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2021/07/14/how-do-you-use-ai-to-improve-reliability/">&lt;p&gt;If you’re an IT service provider, systems reliability is one of the concerns high on your lists. Back in my earlier days of development I worked for a medium sized electronics parts company. They had the unique business model of selling very small parts, like transistors and capacitors as individual parts. Back before the whole Maker movement took hold, it used to be nearly impossible to buy these small parts without buying a giant spool. The manufacturer of these parts wanted them sold by the hundreds and thousands, not ten or twenty.&lt;&#x2F;p&gt;
&lt;p&gt;So the website we maintained sold thousands of such electronics and tools all over the world. We would even buy bulk from China, and then turn around and sell the individual parts back to China with a significant markup. All that to say, site reliability was a huge concern. Enough so that one day when the site was down, the president of the company came to our little development corner and passed back-and-forth while we did all we could to get our beast of a monolithic .NET version 2 web application to behave under a high traffic load.&lt;&#x2F;p&gt;
&lt;p&gt;I learned the true value of systems reliability that day. The president and CEO of the company raced Porsches. He loved Porsches. We had pictures of Porsches all over the executive area of the company. I think he had at least two or three that were his regular drive and likely the same number modified for racing. Porsches were his thing. So when he told us that with each half hour the site was down we were costing as much as a brand new Porsche–I think it was more like, “you guys are literally crashing a brand new Porsche into the wall every thirty minutes this site is down,” we understood the severity of our failing application.&lt;&#x2F;p&gt;
&lt;p&gt;Photo by Supreet on &lt;a href=&quot;https:&#x2F;&#x2F;www.pexels.com&#x2F;photo&#x2F;light-traffic-sunset-car-7900346&#x2F;&quot;&gt;Pexels.com&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;It was then that the value and importance of site reliability really solidified in my mind. It’s something as a solutions developer that I’m regularly taking into account with my designs. But can an AI help me do a better a job? Can I make a system even better by adding AI to the systems?&lt;&#x2F;p&gt;
&lt;p&gt;W&lt;strong&gt;hat is AIOps? Isn’t it the same as MLOPs or DevOps or Triceratops?&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;AIOps is basically Artificial Intelligence for IT operations. Basically, enterprise systems create a lot of data with all their various logs and system events. These logs are sometimes centralized, if you have a unified logging strategy, but most of the time the logs are in different servers, in the cloud, on-premises, and even on IoT and Edge devices. The goal of AIOps is to use that data to produce a view of your assets with a goal toward seeing its dependencies, it’s processes, its failures, and get an overall idea of how the asset’s performance could be improved.&lt;&#x2F;p&gt;
&lt;p&gt;AIOps can help by automating common tasks, recognizing serious issues, and streamlining communication between the different areas of responsibility within organizations. Sounds magical? Where do I get an AIOPs? Can I just plug it in and start getting these benefits?&lt;&#x2F;p&gt;
&lt;p&gt;Well, not quite. Like many of the best solutions in IT, it’s not a switch that you can just turn on or a box that you can just add to your network. Just like DevOps, AIOps is a journey. It’s a discipline. It’s a process. I know, nothing is ever as easy as it seems it should be, but the value to AIOps for some organizations does outweigh the drawback.&lt;&#x2F;p&gt;
&lt;p&gt;Photo by Alex Knight on &lt;a href=&quot;https:&#x2F;&#x2F;www.pexels.com&#x2F;photo&#x2F;high-angle-photo-of-robot-2599244&#x2F;&quot;&gt;Pexels.com&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;Where does AIOps fit within an operations team?&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;AIOps can help out in the following areas of your organization:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Systems&lt;&#x2F;li&gt;
&lt;li&gt;DevOps&lt;&#x2F;li&gt;
&lt;li&gt;Customer Support&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;For systems, the most common use is for hardware systems failure predictions. For most of us in the cloud this is something we don’t generally consider. But if you’re using a hybrid model and still have some of those old rack mounted servers running important mission critical jobs, using AIOps for hardware failure prediction is likely something you’ll care about. AIOps can also help with device and systems provisioning. Managing VM pools and container clusters based on website traffic or workloads is easily within the grasp of a machine learning algorithm.&lt;&#x2F;p&gt;
&lt;p&gt;DevOps is probably one of the first places to start experimenting with AIOps. Using AI to aid in deployments, especially if you have hundreds of rollouts of software a day, can help detect anomalies and catch latent issues. Anomaly detection comes into play for your monitoring strategy, and AI is the perfect partner to help with incident management. If any of these are your pain points, you might need to add an AI to your DevOps team.&lt;&#x2F;p&gt;
&lt;p&gt;And of course for customer experience issues around site and system failures, there are bots, decision support systems, and automated communications options that provide greater detail than just a simple alert.&lt;&#x2F;p&gt;
&lt;p&gt;This is just a high level overview of some of the possible solutions. There are hundreds of ways that AI can not only help your IT operations teams, but reach deeper into your business operations. AI help monitor industrial equipment for failures, retail systems for security and compliance, and can help with supply chain optimization.&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Azure Speech Service and Speech Devices SDK</title>
        <published>2021-06-01T17:21:24+06:00</published>
        <updated>2022-03-22T07:43:05-05:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2021/06/01/azure-speech-service-and-speech-devices-sdk/"/>
        <id>https://shawndeggans.com/2021/06/01/azure-speech-service-and-speech-devices-sdk/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2021/06/01/azure-speech-service-and-speech-devices-sdk/">&lt;p&gt;Microsoft Build 2021 has come to a close. This year, like last year, was held virtually giving developers from everywhere an opportunity to participate in the event. There are lots of new goodies for the AI Edge developer and engineer. One of the more interesting is the &lt;a href=&quot;https:&#x2F;&#x2F;speech.microsoft.com&#x2F;portal&quot;&gt;Speech Service&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;These no-code studios have become a common way of working with many of Microsoft’s products. Thankfully, we continue to get SDKs. The no-code studios are definitely a welcomed addition, but the SDKs seem to be the place where you can do the really cool stuff–like put things on devices.&lt;&#x2F;p&gt;
&lt;p&gt;And Speech Services has a Speech Devices SDK.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;what-is-the-speech-devices-sdk&quot;&gt;What is the Speech Devices SDK?&lt;&#x2F;h3&gt;
&lt;p&gt;The Speech Devices SDK consumes the Speech SDK, which is the development kit that exposes many of the Speech service capabilities. There are currently 7 different versions available to cover the major languages. I won’t go into detail on what you can do with the SDK, but it generally covers scenarios like:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Text-to-speech&lt;&#x2F;li&gt;
&lt;li&gt;Voice assistants&lt;&#x2F;li&gt;
&lt;li&gt;Keyword recognition&lt;&#x2F;li&gt;
&lt;li&gt;Transcription&lt;&#x2F;li&gt;
&lt;li&gt;Call center transcription&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;The Speech Devices SDK allows the developer to use these scenarios on devices that have a microphone array. The example device is the &lt;a href=&quot;http:&#x2F;&#x2F;ddk.roobo.com&#x2F;&quot;&gt;ROOBO Dev Kit&lt;&#x2F;a&gt;. However, there are other options and I’m sure it won’t be long before someone has a DYI solution running on the more common Maker platforms like Raspberry Pi or Arduino.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;what-are-the-business-applications&quot;&gt;What are the business applications?&lt;&#x2F;h3&gt;
&lt;p&gt;Wow, there are many. I can see this being the voice and ears of an environment. Smart buildings that respond to commands. Intelligent conference room assistants that pickup on keywords and queue related data for display on view monitors. Transcription services. Drive thru food ordering.&lt;&#x2F;p&gt;
&lt;p&gt;That doesn’t even touch on the various integration options. About this time last year I worked on a personal project. I wanted to created a smart bot to help answer questions related to property rental. I used the Bot Framework Composer and the Q&amp;amp;A service to create a great solution. It worked as expected, but when I tried to tie it into a phone solution it was less than optimal. My hope is that this allows us to give speech and hearing to bots. Speech enabled apps bring a new level of accessibility to solutions.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;how-do-i-get-started&quot;&gt;How do I get started?&lt;&#x2F;h3&gt;
&lt;p&gt;There are 7 Quickstarts to help get you rolling:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;docs.microsoft.com&#x2F;en-us&#x2F;azure&#x2F;cognitive-services&#x2F;speech-service&#x2F;get-started-speech-to-text&quot;&gt;Recognize speech from a microphone&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;docs.microsoft.com&#x2F;en-us&#x2F;azure&#x2F;cognitive-services&#x2F;speech-service&#x2F;get-started-speech-to-text&quot;&gt;Recognize speech from a file&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;docs.microsoft.com&#x2F;en-us&#x2F;azure&#x2F;cognitive-services&#x2F;speech-service&#x2F;batch-transcription&quot;&gt;Recognize speech from an Azure Blob&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;docs.microsoft.com&#x2F;en-us&#x2F;azure&#x2F;cognitive-services&#x2F;speech-service&#x2F;get-started-speech-translation&quot;&gt;Translate speech to text&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;docs.microsoft.com&#x2F;en-us&#x2F;azure&#x2F;cognitive-services&#x2F;speech-service&#x2F;get-started-text-to-speech&quot;&gt;Synthesize text to an audio device&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;docs.microsoft.com&#x2F;en-us&#x2F;azure&#x2F;cognitive-services&#x2F;speech-service&#x2F;get-started-text-to-speech&quot;&gt;Synthesize text to a file&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;docs.microsoft.com&#x2F;en-us&#x2F;azure&#x2F;cognitive-services&#x2F;speech-service&#x2F;get-started-intent-recognition&quot;&gt;Recognize Intent&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;And of course Microsoft has made &lt;a href=&quot;https:&#x2F;&#x2F;docs.microsoft.com&#x2F;en-us&#x2F;learn&#x2F;browse&#x2F;?terms=speech&amp;amp;products=azure&quot;&gt;Learning modules&lt;&#x2F;a&gt; available.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;closing-thoughts&quot;&gt;Closing thoughts&lt;&#x2F;h3&gt;
&lt;p&gt;As always, I think it’s important to remember that these are powerful tools. This falls under the Cognitive Services family and needs to be applied with the &lt;a href=&quot;https:&#x2F;&#x2F;www.microsoft.com&#x2F;en-us&#x2F;ai&#x2F;responsible-ai?activetab=pivot1%3aprimaryr6&quot;&gt;responsible use of AI&lt;&#x2F;a&gt;. The ability to add speech to apps isn’t new technology. but Speech services seems to abstract away some of the harder work of putting this into a production scenario. I can see many applications for this service.&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Why IoT Central?</title>
        <published>2021-03-25T09:25:34+06:00</published>
        <updated>2022-03-22T07:42:37-05:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2021/03/25/why-iot-central/"/>
        <id>https://shawndeggans.com/2021/03/25/why-iot-central/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2021/03/25/why-iot-central/">&lt;h2 id=&quot;my-first-experience-with-iot-central&quot;&gt;My first experience with IoT Central&lt;&#x2F;h2&gt;
&lt;p&gt;Microsoft has multiple tools and services designed for IoT.&lt;&#x2F;p&gt;
&lt;p&gt;After Ignite this year it’s clear that Microsoft has dedicated a sizable investment of time and people to expanding its IoT reach. I’ve worked quite a bit with IoT Hub, Event Hub, and Azure Functions to capture telemetry data, so when I first heard about IoT Central I thought, why would I want to play with a toy version of all the bigger tools when there’s already so much on offer in Azure?&lt;&#x2F;p&gt;
&lt;p&gt;Well, I was wrong. IoT Central is far from a toy. It’s an amazing platform perfectly designed as an entry into IoT application development. I had an opportunity to work with IoT Central for our Catapult Modern Data Culture Summit and I came away with insights that I hope will show you the potential of this powerful platform.&lt;&#x2F;p&gt;
&lt;p&gt;It’s clear that no-code and low-code solutions are rising in popularity. The Microsoft Power Platform has risen to the status of the fourth cloud platform for Microsoft along with Azure, 365, and Dynamics. IoT Central is to IoT development as Power Platform is to application development. IoT Central features the same type of ease to entry and offers many of the same UI goodies developers come to expect from the Power Platform.&lt;&#x2F;p&gt;
&lt;p&gt;I’ll dive into the various pieces of IoT Central and discuss my experiences. My goal was to develop an adequate demonstration aimed at the small to midsize business interested in applying IoT to their operations. I wanted to focus on smaller organizations because I believe there’s a misconception that IoT is really only for large companies with huge budgets and a small army of IoT and data specialists. That’s not to say that IoT Central doesn’t require some technical knowledge, but the barrier to entry and the operational overhead is much smaller. If I could prove to small and midsize organization leaders that IoT Central could give them the same type of insights and observability that larger organizations achieve, but on a much smaller budget, I saw that as a great way to bring more IoT work to Catapult. It’s my opinion that almost any organization can use IoT and AI to strengthen operations, gain insights, and continuously implement total quality improvement. Could IoT Central help me prove this?&lt;&#x2F;p&gt;
&lt;h3 id=&quot;what-is-iot-central&quot;&gt;What is IoT Central?&lt;&#x2F;h3&gt;
&lt;p&gt;Microsoft describes IoT Central as, “IoT Central is an IoT application platform that reduces the burden and cost of developing, managing, and maintaining enterprise-grade IoT solutions.” Unlike Microsoft’s other IoT tools, IoT Central is a web application. You log in through your IoT Central portal and create apps. These apps represent IoT solutions. By solutions, I mean a single app provides everything you need to achieve a robust IoT implementation. From the devices to the backend data, you can use a single IoT Central app to provide enterprise level products to market.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;users-roles&quot;&gt;Users &amp;amp; Roles&lt;&#x2F;h3&gt;
&lt;p&gt;IoT Central’s user management is built around a few specific roles. The documentation refers to these as personas. When planning out your implementation it’s helpful to keep in mind the type of people you’ll need to help you perform the various tasks required by IoT Central to be truly operational. You won’t need an army of specialists, but you will need a team of individuals willing to fulfill certain responsibilities.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;em&gt;The solution builder&lt;&#x2F;em&gt; is primarily responsible for creating the app, configuring the rules and actions, setting up integrations with other services, and customizing the application for the rest of the various users.&lt;&#x2F;p&gt;
&lt;p&gt;The &lt;em&gt;operator&lt;&#x2F;em&gt; is your device manager. This person manages the devices attached to the application.&lt;&#x2F;p&gt;
&lt;p&gt;The &lt;em&gt;administrat&lt;&#x2F;em&gt;or is responsible for adding users and assigning roles and permissions.&lt;&#x2F;p&gt;
&lt;p&gt;The &lt;em&gt;device developer&lt;&#x2F;em&gt; is responsible for writing the code that runs on the device or IoT Edge module connected to your app.&lt;&#x2F;p&gt;
&lt;p&gt;As a solution builder I found I could do everything I needed to build, deploy, and manage my IoT Central app. I could see this as a lone wolf development position at a very small company. In fact, if you’re considering an IoT solo-entrepreneur effort, IoT Central is probably a great platform to start with.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;creating-the-app&quot;&gt;Creating the App&lt;&#x2F;h3&gt;
&lt;p&gt;To get started, you need to log into the &lt;a href=&quot;https:&#x2F;&#x2F;apps.azureiotcentral.com&#x2F;&quot;&gt;IoT Central portal&lt;&#x2F;a&gt;. In the latest version I’m working in you are greeted with a landing page describing the service. There’s also a menu with three basic items:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Home&lt;&#x2F;li&gt;
&lt;li&gt;Build&lt;&#x2F;li&gt;
&lt;li&gt;My apps&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Use build if you want to start an app. One thing I found most interesting were the number of templates. You can select certain solution templates based on the industries of Retail, Energy, Government, and Healthcare. Each of these presents patterns fitting for common IoT solutions. You also have the option of creating a custom app, which is where I started.&lt;&#x2F;p&gt;
&lt;p&gt;I had an idea to use a bakery vending machine as my example. My fictional company has four bakery vending machines scattered around Texas. One in Houston, Dallas, Austin, and Fort Worth. The idea was to use IoT Central is a management platform for my various vending machines. I wanted to see the following basic data:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Number of sales during the telemetry time period (every 15 minutes)&lt;&#x2F;li&gt;
&lt;li&gt;High and low temperature of the machine&lt;&#x2F;li&gt;
&lt;li&gt;If the machine had been serviced that day&lt;&#x2F;li&gt;
&lt;li&gt;Where the machine was located&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;One thing this demo taught me is that it’s a lot of work to prepare for a fascinating IoT demonstration. I not only needed to create simulation data and IoT device simulators for this demo, but I also needed to plan out business operations. They were actually much more complex than what I went with. I had intended to add trucks, schedule stops by fictional employees to refill the vending machines, oh lots of different things were in the works. However, time got the best of me and I had to settle for generating data for the machines and pretending some additional elements were in place.&lt;&#x2F;p&gt;
&lt;p&gt;One day in the near future I’ll spend more time creating a fictional IoT business, but what I created served my needs well enough for the demo.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;creating-devices&quot;&gt;Creating Devices&lt;&#x2F;h3&gt;
&lt;p&gt;Unlike IoT Hub where you add a device and then assign that device ID to an actual physical device, IoT Central gives you a number of options that start at the device template creation stage. From here you can:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Design the device template in IoT Central and then implement its device model in the device code.&lt;&#x2F;li&gt;
&lt;li&gt;Create a device model using VS Code and publish the model to a repository. Implement your device code from the model and connect your device to your IoT Central app. IoT central will find the device model from the repository and create a single device template for you.&lt;&#x2F;li&gt;
&lt;li&gt;Create a device model using VS Code. Implement the device code from the model. Manually import the device model into your IoT Central app and then add any cloud properties, customizations, and dashboard your IoT Central app needs.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;I went with the first option and created a template manually in the portal. The second choice looks like the better way to do it, and I might try that in the future. I did create a number of customizations. For instance, I ended up adding the latitude and longitude values as cloud parameters so that I could see those on a device dashboard.&lt;&#x2F;p&gt;
&lt;h4 id=&quot;simulating-the-devices&quot;&gt;Simulating the devices&lt;&#x2F;h4&gt;
&lt;p&gt;I had initially wanted to use my MXChip as a device, but setting that up became non-trivial. I was just learning about the system and didn’t really have a firm understanding of how to do it. And once I started, I thought it would be a better demonstration if I had more than one device. Here’s what my code looked like:&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;from dotenv import load_dotenv
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;import sys, asyncio, os, json, time
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;from iotc import (
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    IOTCConnectType,
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    IOTCLogLevel,
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    IOTCEvents,
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    Command,
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    CredentialsCache,
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    Storage,
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;from iotc.aio import IoTCClient
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;from random import randint, uniform
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;load_dotenv()
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;def getPurchaseAmount():
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    return randint(1,5)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;def getTemperature():
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    return round(uniform(8.88, 16.66))
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;# Load the device connection values
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;DEVICE_ID_AUSTIN = os.environ.get(&amp;quot;DEVICE_ID_AUSTIN&amp;quot;)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;ID_SCOPE_AUSTIN = os.environ.get(&amp;quot;ID_SCOPE_AUSTIN&amp;quot;)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;PRIMARY_KEY_AUSTIN = os.environ.get(&amp;quot;PRIMARY_KEY_AUSTIN&amp;quot;)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;austin_client = IoTCClient(
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    DEVICE_ID_AUSTIN,
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    ID_SCOPE_AUSTIN,
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    IOTCConnectType.IOTC_CONNECT_DEVICE_KEY,
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    PRIMARY_KEY_AUSTIN,
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    None,
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    None
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;async def sendAustinTelemetry():
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    await austin_client.connect()
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    while austin_client.is_connected():
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        print(&amp;quot;client connected {}&amp;quot;.format(austin_client._device_client.connected))
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        await austin_client.send_telemetry(
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;            {
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;                &amp;quot;CakeInventoryFilled&amp;quot;: 0,
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;                &amp;quot;CakeInventoryPurchased&amp;quot;: getPurchaseAmount(),
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;                &amp;quot;FridgeTemperature&amp;quot;: getTemperature(),
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;                &amp;quot;LocationLatitude&amp;quot;: 30.26715,
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;                &amp;quot;LocationLongitude&amp;quot;: -95.36327
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;            }
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        )
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;        await asyncio.sleep(900)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;async def main():
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    await sendAustinTelemetry()
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;asyncio.run(main())
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;I used the IoTC library to make this easy. And it was. Creating the code for an IoT Central app for basic telemetry is trivial. However, I didn’t dive into cloud-to-device messaging. It would have been nice to have the ability to send a message to the machine to tell it to reset its internal inventory counter. I have more learning to do around integrating the operations side of IoT Central with a more sophisticated IoT Device. But I can definitely see the potential here.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;customization-dashboards-rules-and-telemetry-data&quot;&gt;Customization, Dashboards, Rules, and Telemetry Data&lt;&#x2F;h3&gt;
&lt;p&gt;IoT Central includes a lot of tools you would need to develop yourself if you went with the traditional Azure IoT suite. You might still want to build these tools, but there was enough in IoT Central that I think you could cover the majority of your operations needs from the portal.&lt;&#x2F;p&gt;
&lt;p&gt;I explored a number of different dashboard options from device specific dashboards to sales and inventory dashboards. I was able to drag and drop tiles to represent specific telemetry or cloud parameters. If you are familiar with Power BI tiles or Azure portal tiles, you’ll recognize these UI elements. Understanding how they work is fairly intuitive. There’s not a lot of flexibility here, but if you need more than the standard set of time, you can always route data to Power BI.&lt;&#x2F;p&gt;
&lt;p&gt;You can track telemetry and add rules around the inbound data. I practiced by setting alerts based on high or low temperatures. This worked ok, but it’s by no means the sort of thing I would need to predictive analytics or something more sophisticated. If you want something more than visuals built around incoming data or custom parameters, you’ll want to integrate IoT Central with other services.&lt;&#x2F;p&gt;
&lt;p&gt;And that’s probably some of the best news. Integrating with other services is relatively easy. I connected my app to Event Hubs and captured data to send to a Stream Analytics Job. This allowed me to build a Power BI dashboard. But with a Stream Analytics Job I would perform much more elaborate rules and queries on the incoming data. You could also use the IoT Central API to build mobile apps, custom integration with lines of business like an inventory system or a telematics solution, or perform more sophisticated device management. However, I want to be clear that you don’t necessarily need to do these things. For my fictional scenario, there was really no need to create any sort of integration. I could have managed my vending machines and the surrounding services from IoT Central alone.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;what-about-iot-edge-and-ai&quot;&gt;What about IoT Edge and AI?&lt;&#x2F;h3&gt;
&lt;p&gt;I chose to stick with simple devices for my demonstration, but IoT Central definitely supports IoT Edge deployment. IoT Central treats these devices as Edge Gateways and as IoT Edge devices. IoT Central models an IoT Edge device as follows:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Every IoT Edge device template has a capability model&lt;&#x2F;li&gt;
&lt;li&gt;For each custom module in the deployment manifest, a module capability model is generated&lt;&#x2F;li&gt;
&lt;li&gt;A relationship is established between each module capability model and device model&lt;&#x2F;li&gt;
&lt;li&gt;A module capability model implements one or more module interfaces&lt;&#x2F;li&gt;
&lt;li&gt;Each module interface contains telemetry, properties, and commands&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;I like this approach to creating a device shadow that represents the IoT Edge device. It’s a good reason to implement IoT Edge devices on IoT Central.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;closing-thoughts&quot;&gt;Closing thoughts&lt;&#x2F;h3&gt;
&lt;p&gt;When I first learned of IoT Central I didn’t get it. Why create a suite of Azure IoT services, and then turn around and create a little version of all these things crammed into a web app? Well, I get it now. IoT Central is far from a toy and doesn’t diminish any of the other IoT tools and services that Microsoft has to offer. If anything, It adds to that collection. I plan to explore more applications in IoT Central in the future. I’m considering it for my backyard garden’s automated irrigation system, because with so few devices and so little data, it basically cots me nothing.&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>AI Edge Engineering at University of Oxford</title>
        <published>2021-03-08T16:36:50+06:00</published>
        <updated>2022-03-22T07:35:51-05:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2021/03/08/ai-edge-engineering-at-university-of-oxford/"/>
        <id>https://shawndeggans.com/2021/03/08/ai-edge-engineering-at-university-of-oxford/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2021/03/08/ai-edge-engineering-at-university-of-oxford/">&lt;p&gt;This week I’m wrapping up a continuing education course from Oxford focused on the approaches and tools of the AI Edge Engineering discipline. I’m overwhelmed with how much I’ve learned and how much I still have to learn. Without a doubt, this course will help set the direction of my career moving forward.&lt;&#x2F;p&gt;
&lt;p&gt;I wasn’t new to the concept of AI Edge Engineering. Before entering the course I had already passed my AZ-220 and AI-100. Two certifications I saw as fundamental to practicing AEE on the Azure platform. These certifications focus on Azure’s IoT tools with the AZ-220 and Azure’s AI services and Machine Learning tools with AI-100. It’s important to note that the AI-100 primarily focuses on applying existing AI in solutions. It only covers Data Science from a high level; you might be expected to understand what clustering, categorizing, and regression are, but you aren’t expected to build them from scratch or use any DS tools to build them for the certification test. That’s appropriate for a 100 level certification. Despite having these certifications, I wasn’t ready for the depth we would take on in the course in such a short period.&lt;&#x2F;p&gt;
&lt;p&gt;Luckily, the course used cohort learning as a mechanism to complete some of the more challenging projects. Our group efforts afforded us the opportunity to trade opinions, approaches, and skills to achieve project deliverables. This is also a skill in the AEE field. Few people will have all the skills needed to apply artificial intelligence at the edge. This means that organizations who wish to use AEE will need to team members who have varied specialized skills and knowledge of the bigger picture of AEE. Our projects made this very clear to me.&lt;&#x2F;p&gt;
&lt;p&gt;I won’t go into detail on what we learned and how we learned it, because much of that is the IP of the course and Oxford, but I will say that we dived deep in the following general areas:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;The basic concepts of delivering AI to the edge using IoT and Edge platforms&lt;&#x2F;li&gt;
&lt;li&gt;Cloud- all the clouds (Azure, AWS, GCS)&lt;&#x2F;li&gt;
&lt;li&gt;Cloud concepts like PaaS, SaaS, and Cloud Native Services&lt;&#x2F;li&gt;
&lt;li&gt;All the big pieces of Machine Learning and Machine Learning concepts&lt;&#x2F;li&gt;
&lt;li&gt;5G networks&lt;&#x2F;li&gt;
&lt;li&gt;Device design and development&lt;&#x2F;li&gt;
&lt;li&gt;DevOps, MLOPS, and even AIOPs&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;That doesn’t even cover all the guest lectures and insights into AI and AEE application demonstrated. And without the fantastic instruction of course director Ajit Jaokar and his amazing team of tutors and instructors, we wouldn’t have been able to learn so much in such a short period of time. Ajit’s passion for this specialty was clear in every class, which made it a joy to attend. It was definitely worth waking up at 3 AM to attend a class remotely just to spend the time with others who have such a strong appreciation for this burgeoning discipline. This course succeeds because of the people behind it. I have to include the choice of students as well in that success. My study group was full of passionate, knowledgeable, curious, and delightful professionals. We plan to stay in contact well after the course ends. I expect to see amazing accomplishments from their careers.&lt;&#x2F;p&gt;
&lt;p&gt;We wrap up the course on Tuesday and submit all our final homework projects over the next couple of months. I won’t be officially done with the course until May. However, I won’t ever consider myself officially done with AEE, from a learning perspective. I’m taking what I’ve learned from Oxford and building a continuing learning track to master most of the concepts covered in the course.&lt;&#x2F;p&gt;
&lt;p&gt;It’s even clearer to me now that the engineering skills of delivering greater levels of intelligence closer to the source of events and data, so that they may act upon those events and data is a skillset that will be in higher demand in the coming years. I believe this course has helped me to begin building a better roadmap toward mastery of AI Edge Engineering.&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Thoughts on Azure Bicep</title>
        <published>2021-02-11T21:20:37+06:00</published>
        <updated>2022-03-22T07:35:33-05:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2021/02/11/thoughts-on-azure-bicep/"/>
        <id>https://shawndeggans.com/2021/02/11/thoughts-on-azure-bicep/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2021/02/11/thoughts-on-azure-bicep/">&lt;p&gt;In my continueing efforts to learn on paper, I took a few minutes this morning to explore the differences between Bicep and a few other Infrastructure as Code tools I’ve worked with. Again, this isn’t a formal bit of writing, just some thoughts on paper inspired by a discussion from last week’s Modern Data Platform discussion and meeting.&lt;&#x2F;p&gt;
&lt;p&gt;TLDR; I look at Bicep and compare its promise to my own past experience with IaC and decide that moving forward it’s definitely the IaC direction that I want to take.&lt;&#x2F;p&gt;
&lt;p&gt;Bicep is Microsoft’s newest answer to Infrastructure as Code on Azure. Bicep isn’t a replacement for ARM, but a DSL (Domain Specific Language) that helps developers build ARM templates quicker and easier. There are multiple ways to create IaC for Azure, including Powershell, the Azure CLI, and Azure SDKs, but in one way or another all of these use Azure’s API and ARM in some capacity. A number of MVPs have created an impressive array of “Best Practices,” templates and put these out in the world for the rest of us to use, like Azure Quick Templates – &lt;a href=&quot;https:&#x2F;&#x2F;azure.microsoft.com&#x2F;en-us&#x2F;resources&#x2F;templates&#x2F;?WT.mc_id=appsonazure-techcommunity-juyoo&quot;&gt;https:&#x2F;&#x2F;azure.microsoft.com&#x2F;en-us&#x2F;resources&#x2F;templates&#x2F;?WT.mc_id=appsonazure-techcommunity-juyoo&lt;&#x2F;a&gt; . However, we as developer rarely use a template out of the box. We normally launch our favorite editor and start hacking away at the templates, which can be a problem if you for a brace, bracket, or comma. Bicep hopes to reduce some of this frustration.&lt;&#x2F;p&gt;
&lt;p&gt;But what about existing IaC solutions like Terraform? Terraform has a lot of support built into Azure. It even has its own section on Azure docs – &lt;a href=&quot;https:&#x2F;&#x2F;docs.microsoft.com&#x2F;en-us&#x2F;azure&#x2F;developer&#x2F;terraform&#x2F;&quot;&gt;https:&#x2F;&#x2F;docs.microsoft.com&#x2F;en-us&#x2F;azure&#x2F;developer&#x2F;terraform&#x2F;&lt;&#x2F;a&gt;. It’s open source and has a support for many Azure cloud native services &lt;a href=&quot;https:&#x2F;&#x2F;registry.terraform.io&#x2F;providers&#x2F;hashicorp&#x2F;azurerm&#x2F;latest&#x2F;docs&quot;&gt;https:&#x2F;&#x2F;registry.terraform.io&#x2F;providers&#x2F;hashicorp&#x2F;azurerm&#x2F;latest&#x2F;docs&lt;&#x2F;a&gt;. It’s presently one of the most popular ways to work with IaC on the market. It’s definitely not a bad solution.&lt;&#x2F;p&gt;
&lt;p&gt;If I were a DevOps engineer or a solutions developer who exclusively worked with Azure, I would definitely consider investing in Bicep over other solutions for some of the project’s stated goals (&lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;Azure&#x2F;bicep&quot;&gt;https:&#x2F;&#x2F;github.com&#x2F;Azure&#x2F;bicep&lt;&#x2F;a&gt;) – &lt;em&gt;my comments in italics&lt;&#x2F;em&gt;:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Best possible language for describing, validating, and deploying infrastructure to Azure—&lt;em&gt;very domain specific, so no overhead for AWS and GCP here&lt;&#x2F;em&gt;&lt;&#x2F;li&gt;
&lt;li&gt;The language should provide a &lt;strong&gt;Transparent Abstraction&lt;&#x2F;strong&gt; for the underlying platform. There must be no “onboarding step” to enable it to new a resource &lt;code&gt;type&lt;&#x2F;code&gt; and or &lt;code&gt;apiVersion&lt;&#x2F;code&gt; in Bicep. &lt;em&gt;I believe this means Day 0 support. If it’s in Azure GA, you can create it.&lt;&#x2F;em&gt;&lt;&#x2F;li&gt;
&lt;li&gt;Code should be easy to learn and understand at a glance. &lt;em&gt;It looks a lot like JavaScript to me, which is great. These days I prefer Python, but I can live with something that is more like JavaScript than anything that is like YAML.&lt;&#x2F;em&gt;&lt;&#x2F;li&gt;
&lt;li&gt;Code reuse – &lt;em&gt;Woot! No more copying and pasting ARM template bits parts to build large infrastructure.&lt;&#x2F;em&gt;&lt;&#x2F;li&gt;
&lt;li&gt;Resource discoverability and validation – &lt;em&gt;how about a drop down of available VM sizes for your specific region? Yeah, I think that’s what they’re talking about here. Validation should also stop me from attempting to do things like attempting to create a private storage account without a VNET or the new private endpoints.&lt;&#x2F;em&gt;&lt;&#x2F;li&gt;
&lt;li&gt;Syntactically valid code – &lt;em&gt;I hope this means linting support and some type of local tests that can run in the deployment pipeline. That would be awesome&lt;&#x2F;em&gt;.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;With Terraform, I could face a delay for new Azure services and functionality. Not a big deal for many engineers working in mature environments that aren’t interested in the latest and greatest, but for some of us who are creating the newest thing the moment it hits preview, this is a godsend.&lt;&#x2F;p&gt;
&lt;p&gt;I love having better validation. I’ll admit it, I’m a sloppy coder sometimes. I miss things. Import things. Like regions. Oh, I’ll have every tag any department has ever asked for, but I’ll put it in the wrong region or even completely forget the region. Having this type of support will be great. I’m not sure how much of this you get from Terraform. Pulumi actually has a really nice test process that it goes through and catches some of these issues, but I have had it pass my test phase, but still cause a corrupted deployment. Granted, it was in Databricks and I had set up something wrong, but it wasn’t the validation experience I was hoping for.&lt;&#x2F;p&gt;
&lt;p&gt;Which leads me to developer tools. Like many of you, my favorite development environment these days is VS Code. Code has great support for ARM templates, but it’s still not easy to work with. Having a healthy set of Bicep extensions and seeing the community embrace and add to these extensions will be something worth looking forward to.&lt;&#x2F;p&gt;
&lt;p&gt;What about system state? I know with Pulumi and with Terraform I need to have some sort of state file that represent the current state of the environment. I haven’t actually seen any documentation that discusses state, but I didn’t see anything in the set up process for development that mentioned needing a state file. So it’s possible that Azure is the state (which kind of makes sense,) or it’s hidden somewhere inside Azure, like the Azure Resource Manager. Please feel free to add a comment pointing me to this information if you know it.&lt;&#x2F;p&gt;
&lt;p&gt;Both Bicep and Terraform appear to have Modules, but they are different. Terraform modules are more about grouping similar items together for reuse. Let’s say that I regularly create a resource group that includes Azure ML, and Data Lake G2, Azure Data Factory, and a Cosmos DB. A Terraform module could group all those things together for a single deployment—big maybe here, because I’ve never attempted that particular configuration in Terraform. A Bicep module appears to be more like a programmer’s concept of a module. It’s an abstraction meant for reuse. Bicep has a single file module, which looks to me like a single file written to represent a single resource. Like I might make a file called, &lt;code&gt;az-rg-data-science-cosmos.bicep&lt;&#x2F;code&gt; to hold me Cosmos DB. It also has a concept called Directory-based Module, which looks a lot more like Terraform’s definition of a module. This is just a directory of bicep files meant to represent a larger collection of resources.&lt;&#x2F;p&gt;
&lt;p&gt;I’m really just scratching the surface here for what’s possible in Bicep. It’s still in its early stages of development and I’m ready to ditch all my other tools to focus on Bicep. When you are like me and you only work in one cloud environment, using a general cloud tool like Terraform doesn’t necessarily make sense.&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Device VS Module: A Somewhat Deep Dive into the Differences Between Azure IoT Hub Devices and Modules</title>
        <published>2021-02-08T07:59:10+06:00</published>
        <updated>2022-12-30T11:14:36-06:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2021/02/08/device-vs-module-a-somewhat-deep-dive-into-the-differences-between-azure-iot-hub-devices-and-modules/"/>
        <id>https://shawndeggans.com/2021/02/08/device-vs-module-a-somewhat-deep-dive-into-the-differences-between-azure-iot-hub-devices-and-modules/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2021/02/08/device-vs-module-a-somewhat-deep-dive-into-the-differences-between-azure-iot-hub-devices-and-modules/">&lt;p&gt;What’s the real difference between an IoT Hub Module and an IoT Hub Device? What is an IoT Hub module and what is an IoT Hub device according to the development team? And why would I choose one over the other?&lt;&#x2F;p&gt;
&lt;p&gt;In this exploratory article I want to attempt to answer these questions for myself and other developers. This is one of those articles to help solidify my own understanding, as well as anyone else who comes across my blog. In other words, if you read something and think it needs correction, please, please, please correct me. If you want to discuss it, I’m open to that, as well. I’m always a student and always open to learning. And it’s an exploratory article, so don’t expect it to be succinct or completely organized. I’ll do my best to keep things clear, but I might jump around a bit. Basically, this is me thinking on paper and attempting to best organize my notes on these topics into something digestible to the reader.&lt;&#x2F;p&gt;
&lt;p&gt;Let’s dive in.&lt;&#x2F;p&gt;
&lt;p&gt;The first thing to understand is that there is a plethora of IoT Hub SDKs. They split into two primary categories:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Devices&lt;&#x2F;li&gt;
&lt;li&gt;Services&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;There are Azure IoT Hub Device SDKS, and there are Azure IoT Hub Service SDKs. I’m more interested in the device SDKs for this exploration, but it doesn’t hurt to touch on what the service SDKs offer.&lt;&#x2F;p&gt;
&lt;p&gt;The Azure IoT service SDKs contain code to facilitate building applications that interact directly with IoT Hub to manage devices and security.&lt;&#x2F;p&gt;
&lt;p&gt;Basically, if you need help managing the operations of IoT hub using software, these SDKs are the tool for you. That’s an interesting topic and I do want to eventually develop some tools in this area, but I won’t dive any deeper into the service SDK in this article.&lt;&#x2F;p&gt;
&lt;p&gt;That leaves us with the other branch, Azure IoT Hub Device SDKs:&lt;&#x2F;p&gt;
&lt;p&gt;The Microsoft Azure IoT device SDKs contain code that facilitates building applications that connect to and are managed by Azure IoT Hub services.&lt;&#x2F;p&gt;
&lt;p&gt;This is the area that I want to explore. Once I’ve drilled down this far, I still have a few choices. There are at the time of this article’s writing seven different device SDKs.&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Azure IoT Hub device SDK for .Net&lt;&#x2F;li&gt;
&lt;li&gt;Azure IoT Hub device SDK for Embedded C (ANSI C – C99)&lt;&#x2F;li&gt;
&lt;li&gt;Azure IoT Hub device SDK for C (ANSI C – C99)&lt;&#x2F;li&gt;
&lt;li&gt;Azure IoT Hub device SDK for Java&lt;&#x2F;li&gt;
&lt;li&gt;Azure IoT Hub device SDK for Node.js&lt;&#x2F;li&gt;
&lt;li&gt;Azure IoT Hub device SDK for Python&lt;&#x2F;li&gt;
&lt;li&gt;Azure IoT Hub device SDK for iOS&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;That’s a lot of different language and framework choices. For this article, I’m going to focus on Python. Python, C, and C++ appear to be the languages of choice for the majority of IoT device developers. I think Python is the more approachable for developers like me who are more generalists than specialists, but I tell you what (Hank Hill voice) that SDK for Embedded C looks like a lot of fun. Working more with MCUs (Microcontroller Units) is definitely in my future, but right now I just want to be able to conquer the simple things, like an Arduino or Raspberry PI. I’ll stick with Python for now.&lt;&#x2F;p&gt;
&lt;p&gt;I guess that’s a use case clearly established. If you are looking to develop embedded device code, code that needs to run on very little memory on a very tiny device, you want to use the SDK for Embedded C.&lt;&#x2F;p&gt;
&lt;p&gt;This would probably be a great device to develop on for developers looking to create low-power IoT devices that use an MCU:&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;www.microchip.com&#x2F;developmenttools&#x2F;ProductDetails&#x2F;AC164164&quot;&gt;PIC-IoT WG Development Board&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;I’ll clarify further that this is not meant to be a step-by-step tutorial. I will include code snippets, I might even try a few things out on my little MXCHIP IoT DevKit, but I primarily want to focus on the use cases of devices VS modules.&lt;&#x2F;p&gt;
&lt;p&gt;Back on focus, let’s examine the actual Azure IoT Hub device SDK for Python. First, I’ll look at the API, and then I’ll dive into the actual source code.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;The API&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;docs.microsoft.com&#x2F;en-us&#x2F;python&#x2F;api&#x2F;azure-iot-device&#x2F;?view=azure-python#packages&quot;&gt;azure-iot-device package&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;The API is simple. It has one primary package, which is ‘device’. The device package has a couple of interesting things worth looking at. First, there are synchronous and asynchronous packages. So why are there two different versions? Why do we need both an async and a sync version of certain operations in the client SDK?&lt;&#x2F;p&gt;
&lt;p&gt;I think I intuitively know the answer to this question. Sync is probably there to support older versions of Python and maybe older technologies that will use the SDK. Async is generally preferred for communication in distributed systems because you don’t want to hold up operations because one of the parties in the communication isn’t responding. Let’s see how correct I am in my thinking.&lt;&#x2F;p&gt;
&lt;p&gt;Who can I ask about this? Well, I’m working in the SDK for an open-source application. Surely, the maintainer of the OSS has guideline for its developers. And it does! I’m turning to the Azure SDK developer’s guide with the hope it can shed some light.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;azure.github.io&#x2F;azure-sdk&#x2F;dotnet_introduction.html#introduction&quot;&gt;.NET Azure SDK Design Guidelines&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;Ah, look! I searched through this document for the term, ‘Async’ and look what I found.&lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;Sync and Async ✅ DO provide both asynchronous and synchronous variants for all service methods. Many developers want to port existing applications to the Cloud. These applications are often synchronous, and the cost of rewriting them to be asynchronous is usually prohibitive. Calling asynchronous APIs from synchronous methods can only be done through a technique called sync-over-async, which can cause deadlocks. The Azure SDK provides synchronous APIs to minimize friction when porting existing application to Azure. ✅ DO ensure that the names of the asynchronous and the synchronous variants differ only by the Async suffix&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;Additionally, the above quote provides a link to a nine year old article that’s still relevant.&lt;&#x2F;p&gt;
&lt;p&gt;Part 1 and 2 of the article on Sync VS Async. These are older articles, but they still hold up.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;devblogs.microsoft.com&#x2F;pfxteam&#x2F;should-i-expose-asynchronous-wrappers-for-synchronous-methods&#x2F;&quot;&gt;Should I expose asynchronous wrappers for synchronous methods? | .NET Parallel Programming&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;devblogs.microsoft.com&#x2F;pfxteam&#x2F;should-i-expose-synchronous-wrappers-for-asynchronous-methods&#x2F;&quot;&gt;Should I expose synchronous wrappers for asynchronous methods? | .NET Parallel Programming&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;There’s a whole rabbit hole here that you can go down if you aren’t familiar with the reasons why you select sync or async in your development. I like the fact that the SDK developers are taking into consideration that some developers can’t easily work with async libraries and they’ve gone to the effort to provide both.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;My takeaway, when you are developing greenfield projects and you won’t use a library that depends on synchronous operations, you should favor asynchronous over synchronous.&lt;&#x2F;strong&gt;&lt;&#x2F;em&gt;&lt;&#x2F;p&gt;
&lt;p&gt;That narrows down what I want to really focus on in the API. I want to focus on the operations that are in the ‘aio’ package. Why is it called, ‘aio’? I’m certain that stands for, Asynchronous I&#x2F;O. I’m confident enough that I don’t think I need to look it up, but someone can correct me if I’m wrong.&lt;&#x2F;p&gt;
&lt;p&gt;The aio package has both modules and classes. The module appears to be patch documentation. There’s only one function in this called:&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;execute_patch_for_async()
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;The documentation reads, “This module provides hard coded patches used to modify items from the libraries. Currently we have to do like this so that we don’t use exec anywhere.”&lt;&#x2F;p&gt;
&lt;p&gt;This appears to be some sort of SDK developer tool. Maybe when we start looking at the source, we’ll get a better idea what it is.&lt;&#x2F;p&gt;
&lt;p&gt;The classes are where the interesting stuff happens. We have 3 basic async classes:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;IoTHubDeviceClient&lt;&#x2F;li&gt;
&lt;li&gt;IoTHubModuleClient&lt;&#x2F;li&gt;
&lt;li&gt;ProvisioningDeviceClient&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Yay! We’re reached a couple of items that match our search. We have a device client and a module client. We also have a provisioning device client, but I think I’ll keep my focus on the first two.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;IoTHubDeviceClient VS IoTHubModuleClient&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;To set focus, I’m trying to discern from the code and documentation related to IoT Hub Device Client and IoT Hub Module Client when one should be selected over the other. As I dive into the code and documentation, I’ll try to uncover these answers.&lt;&#x2F;p&gt;
&lt;p&gt;One thing I haven’t even asked myself, but I am now, is it even fair to expect to find these answers in the API or the code? I don’t know. That might be a bit too philosophical. Should the code clearly communicate its use case intent just by its very existence? We can look at DNA and determine that certain DNA is human while other DNA is a fly, but that might just be because we have the finished product of the DNA to compare. But DNA is more like the completed software designed with an SDK. I guess in our case the SDK is more like RNA. It’s the little factory pumping out DNA. So no, I might not find what I’m looking for by reviewing the SDK, but it’s still worth exploring just from a knowledge gathering standpoint (hey, I warned you that this was an exploratory article).&lt;&#x2F;p&gt;
&lt;p&gt;The IoTHubDeviceClient&lt;&#x2F;p&gt;
&lt;p&gt;This class has the following:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;A constructor&lt;&#x2F;li&gt;
&lt;li&gt;Methods
&lt;ul&gt;
&lt;li&gt;connect&lt;&#x2F;li&gt;
&lt;li&gt;create_from_connection_string&lt;&#x2F;li&gt;
&lt;li&gt;create_from_sastoken&lt;&#x2F;li&gt;
&lt;li&gt;create_from_symmetric_key&lt;&#x2F;li&gt;
&lt;li&gt;create_from_x509_certificate&lt;&#x2F;li&gt;
&lt;li&gt;disconnect&lt;&#x2F;li&gt;
&lt;li&gt;notify_blob_upload_status&lt;&#x2F;li&gt;
&lt;li&gt;patch_twin_reported_properties&lt;&#x2F;li&gt;
&lt;li&gt;receive_message&lt;&#x2F;li&gt;
&lt;li&gt;receive_method_request&lt;&#x2F;li&gt;
&lt;li&gt;receive_twin_desired_properties_patch&lt;&#x2F;li&gt;
&lt;li&gt;send_message&lt;&#x2F;li&gt;
&lt;li&gt;send_method_response&lt;&#x2F;li&gt;
&lt;li&gt;update_sastoken&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;Attributes
&lt;ul&gt;
&lt;li&gt;on_message_received&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;This class has a lot going on, but all of it is related to a device communicating with IoT Hub.&lt;&#x2F;p&gt;
&lt;p&gt;Constructor&lt;&#x2F;p&gt;
&lt;p&gt;How do we build this class? The constructor code looks like this:&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;IoTHubDeviceClient(mqtt_pipeline, http_pipeline)
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;So what is an mqtt_pipeline and http_pipeline? There’s not much in the API documentation in the way of help on this one, so I’m going to go ahead and dive into the source to see what I can find.&lt;&#x2F;p&gt;
&lt;p&gt;Here’s our constructor, and there’s an interesting bit of instruction in there:&lt;&#x2F;p&gt;
&lt;p&gt;def __init__(self, **kwargs):&lt;&#x2F;p&gt;
&lt;p&gt;        “””Initializer for a generic synchronous client.&lt;&#x2F;p&gt;
&lt;p&gt;        This initializer should not be called directly.&lt;&#x2F;p&gt;
&lt;p&gt;        Instead, use one of the ‘create_from_’ classmethods to instantiate&lt;&#x2F;p&gt;
&lt;p&gt;        :param mqtt_pipeline: The MQTTPipeline used for the client&lt;&#x2F;p&gt;
&lt;p&gt;        :type mqtt_pipeline: :class:`azure.iot.device.iothub.pipeline.MQTTPipeline`&lt;&#x2F;p&gt;
&lt;p&gt;        :param http_pipeline: The HTTPPipeline used for the client&lt;&#x2F;p&gt;
&lt;p&gt;        :type http_pipeline: :class:`azure.iot.device.iothub.pipeline.HTTPPipeline`&lt;&#x2F;p&gt;
&lt;p&gt;        “””&lt;&#x2F;p&gt;
&lt;p&gt;        # Depending on the subclass calling this __init__, there could be different arguments,&lt;&#x2F;p&gt;
&lt;p&gt;        # and the super() call could call a different class, due to the different MROs&lt;&#x2F;p&gt;
&lt;p&gt;        # in the class hierarchies of different clients. Thus, args here must be passed along as&lt;&#x2F;p&gt;
&lt;p&gt;        # **kwargs.&lt;&#x2F;p&gt;
&lt;p&gt;        super(GenericIoTHubClient, self).__init__(**kwargs)&lt;&#x2F;p&gt;
&lt;p&gt;        self._inbox_manager = InboxManager(inbox_type=SyncClientInbox)&lt;&#x2F;p&gt;
&lt;p&gt;        self._handler_manager = sync_handler_manager.SyncHandlerManager(self._inbox_manager)&lt;&#x2F;p&gt;
&lt;p&gt;        # Set pipeline handlers&lt;&#x2F;p&gt;
&lt;p&gt;        self._mqtt_pipeline.on_connected = CallableWeakMethod(self, “_on_connected”)&lt;&#x2F;p&gt;
&lt;p&gt;        self._mqtt_pipeline.on_disconnected = CallableWeakMethod(self, “_on_disconnected”)&lt;&#x2F;p&gt;
&lt;p&gt;        self._mqtt_pipeline.on_method_request_received = CallableWeakMethod(&lt;&#x2F;p&gt;
&lt;p&gt;            self._inbox_manager, “route_method_request”&lt;&#x2F;p&gt;
&lt;p&gt;        )&lt;&#x2F;p&gt;
&lt;p&gt;        self._mqtt_pipeline.on_twin_patch_received = CallableWeakMethod(&lt;&#x2F;p&gt;
&lt;p&gt;            self._inbox_manager, “route_twin_patch”&lt;&#x2F;p&gt;
&lt;p&gt;        )&lt;&#x2F;p&gt;
&lt;p&gt;Ok, so clearly, we don’t need to worry about this constructor, because we shouldn’t ever try to create the class directly. Instead, we should always use one of the various connection methods to create the client. This is a good coding practice. The class is useless if it isn’t connected to IoT Hub.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;My takeaway, if you are creating a device using the IoTHubDeviceClient expect to tightly couple it to an IoT Hub using one of the create_from_X methods. The device can’t live without a connection.&lt;&#x2F;strong&gt;&lt;&#x2F;em&gt;&lt;&#x2F;p&gt;
&lt;p&gt;What about disconnecting? Is that handled for us automatically, too or do we need to manage that ourselves?&lt;&#x2F;p&gt;
&lt;p&gt;The API documentation does offer some direction here by stating, “It is recommended that you make sure to call this coroutine when you are completely done with your client instance.”&lt;&#x2F;p&gt;
&lt;p&gt;Yes, we should make the actual disconnection when we’re done with the client.&lt;&#x2F;p&gt;
&lt;p&gt;Let’s explore some of the other methods. I’ll start from the top and start working my way down, skipping over the various connection methods for now.&lt;&#x2F;p&gt;
&lt;p&gt;get_storage_info_for_blob, notify_blob_upload_status&lt;&#x2F;p&gt;
&lt;p&gt;get_storage_info_for_blob(blob_name)&lt;&#x2F;p&gt;
&lt;p&gt;From the documentation, “Sends a POST request over HTTP to an IoTHub endpoint that will return information for uploading via the Azure Storage Account linked to the IoTHub your device is connected to.”&lt;&#x2F;p&gt;
&lt;p&gt;The functionality of this method is covered here:&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;docs.microsoft.com&#x2F;en-us&#x2F;azure&#x2F;iot-hub&#x2F;iot-hub-python-python-file-upload&quot;&gt;Upload files from devices to Azure IoT Hub with Python&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;docs.microsoft.com&#x2F;en-us&#x2F;azure&#x2F;iot-hub&#x2F;iot-hub-devguide-file-upload&quot;&gt;Understand Azure IoT Hub file upload&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;If we have the correct tier of IoT Hub (Free or S1 and above) and an associated blob storage account, we can upload files from the device to the storage account by using the IoT Hub as a broker.&lt;&#x2F;p&gt;
&lt;p&gt;This is ideal for uploading large media files and telemetry batches. This is ideal for use cases that involve devices that are regularly disconnected from the internet or devices that capture large files. Think of a drone capturing soil data through high-definition imaging. Those high-definition images would need to transfer from the drone to a blob storage. And you might have smaller devices that send regular telemetry, but that device might log more data than you require for real time analysis. So that data could be uploaded in batches.&lt;&#x2F;p&gt;
&lt;p&gt;This is one interesting use case that doesn’t require IoT Edge. It can be done with something that is considered just a device.&lt;&#x2F;p&gt;
&lt;p&gt;For the completion of the upload process, we can use notify_blob_upload_status to, “When the upload is complete, the device sends a POST request to the IoT Hub endpoint with information on the status of an upload to blob attempt. This is used by IoT Hub to notify listening clients.”&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;notify_blob_upload_status(correlation_id, is_success, status_code, status_description)
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;patch_twin_reported_properties, receive_twin_desired_properties_patch, and get_twin&lt;&#x2F;p&gt;
&lt;p&gt;A device also has digital twin capabilities. I like what AWS calls this better than digital twin. They call it a device shadow, but either way it’s basically the same thing. A JSON representation of the device that is in both the device’s memory and the IoT Hub.&lt;&#x2F;p&gt;
&lt;p&gt;Device twins are JSON documents that store device state information including metadata, configurations, and conditions. Azure IoT Hub maintains a device twin for each device that you connect to IoT Hub.&lt;&#x2F;p&gt;
&lt;p&gt;There are three primary parts to a device twin document:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;tags&lt;&#x2F;li&gt;
&lt;li&gt;desired properties&lt;&#x2F;li&gt;
&lt;li&gt;reported properties.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;The use case for device twins:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Store device specific metadata in the cloud, like its location or another important device information&lt;&#x2F;li&gt;
&lt;li&gt;Report current device state.&lt;&#x2F;li&gt;
&lt;li&gt;Synchronize the state of long running workflows between the device app and back end apps.&lt;&#x2F;li&gt;
&lt;li&gt;Query your device metadata, configuration, or state.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Example of a device twin:&lt;&#x2F;p&gt;
&lt;p&gt;{&lt;&#x2F;p&gt;
&lt;p&gt;    “deviceId”: “devA”,&lt;&#x2F;p&gt;
&lt;p&gt;    “etag”: “AAAAAAAAAAc=”,&lt;&#x2F;p&gt;
&lt;p&gt;    “status”: “enabled”,&lt;&#x2F;p&gt;
&lt;p&gt;    “statusReason”: “provisioned”,&lt;&#x2F;p&gt;
&lt;p&gt;    “statusUpdateTime”: “0001-01-01T00:00:00”,&lt;&#x2F;p&gt;
&lt;p&gt;    “connectionState”: “connected”,&lt;&#x2F;p&gt;
&lt;p&gt;    “lastActivityTime”: “2015-02-30T16:24:48.789Z”,&lt;&#x2F;p&gt;
&lt;p&gt;    “cloudToDeviceMessageCount”: 0,&lt;&#x2F;p&gt;
&lt;p&gt;    “authenticationType”: “sas”,&lt;&#x2F;p&gt;
&lt;p&gt;    “x509Thumbprint”: {    &lt;&#x2F;p&gt;
&lt;p&gt;        “primaryThumbprint”: null,&lt;&#x2F;p&gt;
&lt;p&gt;        “secondaryThumbprint”: null&lt;&#x2F;p&gt;
&lt;p&gt;    },&lt;&#x2F;p&gt;
&lt;p&gt;    “version”: 2,&lt;&#x2F;p&gt;
&lt;p&gt;    “tags”: {&lt;&#x2F;p&gt;
&lt;p&gt;        “$etag”: “123”,&lt;&#x2F;p&gt;
&lt;p&gt;        “deploymentLocation”: {&lt;&#x2F;p&gt;
&lt;p&gt;            “building”: “43”,&lt;&#x2F;p&gt;
&lt;p&gt;            “floor”: “1”&lt;&#x2F;p&gt;
&lt;p&gt;        }&lt;&#x2F;p&gt;
&lt;p&gt;    },&lt;&#x2F;p&gt;
&lt;p&gt;    “properties”: {&lt;&#x2F;p&gt;
&lt;p&gt;        “desired”: {&lt;&#x2F;p&gt;
&lt;p&gt;            “telemetryConfig”: {&lt;&#x2F;p&gt;
&lt;p&gt;                “sendFrequency”: “5m”&lt;&#x2F;p&gt;
&lt;p&gt;            },&lt;&#x2F;p&gt;
&lt;p&gt;            “$metadata” : {…},&lt;&#x2F;p&gt;
&lt;p&gt;            “$version”: 1&lt;&#x2F;p&gt;
&lt;p&gt;        },&lt;&#x2F;p&gt;
&lt;p&gt;        “reported”: {&lt;&#x2F;p&gt;
&lt;p&gt;            “telemetryConfig”: {&lt;&#x2F;p&gt;
&lt;p&gt;                “sendFrequency”: “5m”,&lt;&#x2F;p&gt;
&lt;p&gt;                “status”: “success”&lt;&#x2F;p&gt;
&lt;p&gt;            },&lt;&#x2F;p&gt;
&lt;p&gt;            “batteryLevel”: 55,&lt;&#x2F;p&gt;
&lt;p&gt;            “$metadata” : {…},&lt;&#x2F;p&gt;
&lt;p&gt;            “$version”: 4&lt;&#x2F;p&gt;
&lt;p&gt;        }&lt;&#x2F;p&gt;
&lt;p&gt;    }&lt;&#x2F;p&gt;
&lt;p&gt;}&lt;&#x2F;p&gt;
&lt;p&gt;There’s a lot to the device twin capabilities. I won’t deep dive on it at this point, but the fact that devices support this capability means that devices are very powerful on their own, even without being edge modules. But what’s coming clear here is that we have a very basic client server relationship. The device is the client and, in some cases, the IoT Hub is the server or the gateway to a server.&lt;&#x2F;p&gt;
&lt;p&gt;With that in mind, let’s explore what we can do with the three functions made available to us.&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;get_twin()
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;This returns a complete twin as a JSON dictionary object. It can pull this from either the IoT Hub or an Edge Hub service. I’m not sure exactly what we would do with this data at this time, because I know that we can update device twin settings from the backend. If we needed to update the device settings from the backend, we could modify the desired properties of the device twin. So what might we need to do from the device itself? And what does get_twin() do for us?&lt;&#x2F;p&gt;
&lt;p&gt;According to the documentation, receive_twin_desired_properties_patch has been deprecated in favor of the on_twin_desired_properties_patch_received property. We also have patch_twin_reported_properties which will report properties with the Azure IoT Hub or Azure IoT Edge Hub service. If the service returns an error on the patch operation, this function will raise the appropriate error.&lt;&#x2F;p&gt;
&lt;p&gt;One other thing not mentioned in the SDKs that is important to understanding the “why,” behind device digital twins in the IoT Hub query language for device and module twins, jobs, and message routing.&lt;&#x2F;p&gt;
&lt;p&gt;As an aside, this is an import thing for a developer to learn and understand for working with the Azure IoT Hub suite of tools. It’s rather simple. If you are familiar with other query languages, like SQL or KQL you’ll find it easy to work with.&lt;&#x2F;p&gt;
&lt;p&gt;Taking all of this in, it’s clear that the digital twin methods, the backend query language, and the overall digital twin data object are all about monitoring and maintaining device health.&lt;&#x2F;p&gt;
&lt;p&gt;For instance, this little query is a good example of checking the status for multiple devices:&lt;&#x2F;p&gt;
&lt;p&gt;SELECT properties.reported.telemetryConfig.status AS status,&lt;&#x2F;p&gt;
&lt;p&gt;    COUNT() AS numberOfDevices&lt;&#x2F;p&gt;
&lt;p&gt;  FROM devices&lt;&#x2F;p&gt;
&lt;p&gt;  GROUP BY properties.reported.telemetryConfig.status&lt;&#x2F;p&gt;
&lt;p&gt;This can be done from backend systems in the same way that you would write in-line SQL.&lt;&#x2F;p&gt;
&lt;p&gt;Example in C#&lt;&#x2F;p&gt;
&lt;p&gt;var query = registryManager.CreateQuery(“SELECT * FROM devices”, 100);&lt;&#x2F;p&gt;
&lt;p&gt;while (query.HasMoreResults)&lt;&#x2F;p&gt;
&lt;p&gt;{&lt;&#x2F;p&gt;
&lt;p&gt;    var page = await query.GetNextAsTwinAsync();&lt;&#x2F;p&gt;
&lt;p&gt;    foreach (var twin in page)&lt;&#x2F;p&gt;
&lt;p&gt;    {&lt;&#x2F;p&gt;
&lt;p&gt;        &#x2F;&#x2F; do work on twin object&lt;&#x2F;p&gt;
&lt;p&gt;    }&lt;&#x2F;p&gt;
&lt;p&gt;}&lt;&#x2F;p&gt;
&lt;p&gt;I’m seeing plenty of applications for device health, monitoring, and automation jobs. Again, very powerful capabilities that doesn’t seem to make devices a second-class citizen.&lt;&#x2F;p&gt;
&lt;p&gt;The potential of what could be done from the device side doesn’t seem too limited, either.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;Messaging&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;Here we are. The biggest and probably most important part of an IoT device’s job. Messaging.&lt;&#x2F;p&gt;
&lt;p&gt;Sending and receiving messages.&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;send_message(message)
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Sends a message to the default events endpoint on the Azure IoT Hub or Azure IoT Edge Hub instance. If the connection to the service has not previously been opened by a call to connect, this function will open the connection before sending the event.&lt;&#x2F;p&gt;
&lt;p&gt;The Message is a separate class that’s part of the azure.iot.device package. It won’t hurt to touch on it here, since it’s the thing we’re using as a primary means of transport. The Message object appears to be shared by both devices and modules, if that’s not the case I’ll probably know better when I dive into modules.&lt;&#x2F;p&gt;
&lt;p&gt;Like the Device class, the Message class also has a constructor, a set of variables, and a few methods. It makes sense to dive into those while we’re here to get a better understanding of what the Message class gives us.&lt;&#x2F;p&gt;
&lt;p&gt;The message constructor:&lt;&#x2F;p&gt;
&lt;p&gt;Message(data, message_id=None, content_encoding=None, content_type=None, output_name=None)&lt;&#x2F;p&gt;
&lt;p&gt;Unlike the device constructor, we clearly do want to set this ourselves in order to hydrate the class with the appropriate content needed to create a message.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;Variables&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;data – data that constitutes the payload.&lt;&#x2F;p&gt;
&lt;p&gt;custom_properties – Dictionary of custom message properties. The keys and the values of these properties will always be string.&lt;&#x2F;p&gt;
&lt;p&gt;id – A user-settable identifier for the message sued for request-reply patterns. Format: A case-sensitive string (up to 128 characters long) of ASCII 7-bit alphanumeric characters + {‘-‘, ‘:’, ‘.’, ‘+’, ‘%’, ‘_’, ‘#’, ‘*’, ‘?’, ‘!’, ‘(‘, ‘)’, ‘,’, ‘=’, ‘@’, ‘;’, ‘$’, ”’}&lt;&#x2F;p&gt;
&lt;p&gt;expiry_time_utc – Date and time of message expiration in UTC format.&lt;&#x2F;p&gt;
&lt;p&gt;correlation_id – A property in a response message that typically contains the message_id of the request, in request-reply patterns.&lt;&#x2F;p&gt;
&lt;p&gt;user_id – An ID to specify the origin of the messages.&lt;&#x2F;p&gt;
&lt;p&gt;content_encoding – Content encoding of the message data. Can be ‘utf-8’, ‘utf-16’, or ‘utf-32’&lt;&#x2F;p&gt;
&lt;p&gt;content-type – Content type property used to route messages with the message-body. Can be ‘application&#x2F;json’&lt;&#x2F;p&gt;
&lt;p&gt;output_name Name of the output that the message is being sent to.&lt;&#x2F;p&gt;
&lt;p&gt;input_name Name of the input that the message was received on.&lt;&#x2F;p&gt;
&lt;p&gt;There are only two methods.&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;get_size()
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;This gets the message size.&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;set_as_security_message()
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;This is listed as a provisional API. But it should set the message as a secure message.&lt;&#x2F;p&gt;
&lt;p&gt;So to return to our device analysis, the above is what is sent when we make the call to the send_message(message) method.&lt;&#x2F;p&gt;
&lt;p&gt;There are four specific exceptions that can be handled for the send_message(message) method.&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;CredentialError&lt;&#x2F;li&gt;
&lt;li&gt;ConnectionFailedError&lt;&#x2F;li&gt;
&lt;li&gt;ConnectionDroppedError&lt;&#x2F;li&gt;
&lt;li&gt;ClientError&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;These are self-explanatory.&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;receive_message()
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;This method is deprecated. It’s recommended to use the. on_message_received property to set a handler instead.&lt;&#x2F;p&gt;
&lt;p&gt;This is also the recommended means of responding to a method request. So we won’t cover that here.&lt;&#x2F;p&gt;
&lt;p&gt;send_method_response(method_response)&lt;&#x2F;p&gt;
&lt;p&gt;This method is used to respond to a method request from Azure IoT Hub or Azure IoT Edge Hub.&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;.on_message_received
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;This is the handler function or coroutine that will be called when a message is received. It should take an argument to receive a Message object.&lt;&#x2F;p&gt;
&lt;p&gt;The above represents a cloud-to-device message. Currently, the existing Python code samples I could find referenced the deprecated method. So how do we handle incoming messages? Basically, assign a method to the property that takes a message. That would look like the following.&lt;&#x2F;p&gt;
&lt;p&gt;# this is how I would likely create the handler&lt;&#x2F;p&gt;
&lt;p&gt;def message_received_handler(message):&lt;&#x2F;p&gt;
&lt;p&gt;        print(‘do something with message’ + message.data&lt;&#x2F;p&gt;
&lt;p&gt;# Here s where we set the handler&lt;&#x2F;p&gt;
&lt;p&gt;device_client.on_message_received = message_received_handler&lt;&#x2F;p&gt;
&lt;p&gt;This handler cuts down on the number of methods in the class.&lt;&#x2F;p&gt;
&lt;p&gt;This pretty much covers the device SDK. Next, I want to dive into the Module to see what options we have there. I’ll try not to duplicate areas that are shared by both. What I’m looking for are the areas of the module that really stand out for particular use cases where the device isn’t enough.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;Modules&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;Now it’s time to closely examine the IoTHubModuleClient Class. Much like the device, it’s described as,&lt;&#x2F;p&gt;
&lt;p&gt;An asynchronous module client that connects to an Azure IoT Hub or Azure IoT Edge instance.&lt;&#x2F;p&gt;
&lt;p&gt;And much like the device, it has a constructor, methods, and attributes.&lt;&#x2F;p&gt;
&lt;p&gt;Constructor&lt;&#x2F;p&gt;
&lt;p&gt;One difference I noticed between the device and the module is a creation method titled, create_from_edge_environment. It reads that this allows the class to be created from the IoT Edge environment.&lt;&#x2F;p&gt;
&lt;p&gt;This method can only be run from inside an IoT Edge container, or in a debugging environment configured for Edge development (e.g., Visual Studio, Visual Studio Code)&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;What exactly is the Edge Environment?&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;Ok, so maybe we need to do a little time travelling here. Go back a bit. Let’s go back to the product that superseded IoT Edge. Let’s go back to the Azure IoT Gateway SDK. That’s right, because it had a 90s cool name like, Edge. It was known as Azure IoT Gateway SDK.&lt;&#x2F;p&gt;
&lt;p&gt;I’ve forked a version as close to the original as I could find, just for learning purposes.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;shawndeggans&#x2F;azure-iot-gateway-sdk&quot;&gt;shawndeggans&#x2F;azure-iot-gateway-sdk&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;It’s clear to me from the name that IoT Edge wasn’t really meant to be a device itself, but a gateway for devices to indirectly communicate with the Azure IoT backend. The original documentation includes the following image.&lt;&#x2F;p&gt;
&lt;p&gt;In this original image the Gateway running on on-premises hardware is described as a module pipeline. Also notice that this original version appears to be a one-way trip. There’s device-to-cloud data, but not necessarily cloud-to-device messages.&lt;&#x2F;p&gt;
&lt;p&gt;It’s interesting looking at the early version of IoT Edge. Especially when you take into account what is needed to build a development environment. It appears much simpler. I don’t see Docker&#x2F;Moby anywhere. We seem to be missing some of agents or at least there aren’t called out in the documentation. Overall, it looks to be a nice piece of middleware for working with devices. If its original intent was to be middleware, is it fair to say that it’s still middleware today? Or is it more like middleware that can also be a device?&lt;&#x2F;p&gt;
&lt;p&gt;Let’s continue to see if we can nail down what constitutes the IoT Edge environment. If we go by the origin project, the IoT Edge environment is a “module pipeline,” that accomplishes your specific scenario. Is that still the case?&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;What is Azure IoT Edge&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;Microsoft has this defined in the Azure Docs.&lt;&#x2F;p&gt;
&lt;p&gt;Azure IoT Edge moves cloud analytics and custom business logic to devices so that your organization can focus on business insights instead of data management. Scale out your IoT solution by packaging your business logic into standard containers, then you can deploy those containers to any of your devices and monitor it all from the cloud.&lt;&#x2F;p&gt;
&lt;p&gt;That does not sound like actual devices, but more things that would be on a server or in the cloud. Analytics is basically using data and math to answer business (domain specific) question. This is shaping up to sound a lot more like an environment or an operating system than a device.&lt;&#x2F;p&gt;
&lt;p&gt;Azure IoT Edge is made up of three primary components:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;IoT Edge Modules&lt;&#x2F;li&gt;
&lt;li&gt;IoT Edge Runtime&lt;&#x2F;li&gt;
&lt;li&gt;A Cloud-based Interface&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;IoT Modules are containers. Basically, these are Docker files that contain Azure services, third-party services, or our own custom applications. This brings us back to the actual SDK, which doesn’t mention anything about Docker (or Moby as the case is for the IoT Edge Environment), but judging by some of the methods (which I will dive into later), they are not necessarily meant to be the terminus of the solution, but they should support the responsibility of middleware.&lt;&#x2F;p&gt;
&lt;p&gt;What about the IoT Edge Runtime? Does it still hold up with the earlier definition of a “pipeline of modules”?&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;IoT Edge Runtime&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;The Azure IoT Edge runtime enables custom and cloud logic on IoT Edge devices. The runtime sits on the IoT Edge device and performs management and communication operations.&lt;&#x2F;p&gt;
&lt;p&gt;Hmm, this does sound a bit like an operating system or an orchestration piece. Here are some of its responsibilities:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Installs and updates workloads on the device.&lt;&#x2F;li&gt;
&lt;li&gt;Maintains Azure IoT Edge security standards on the device.&lt;&#x2F;li&gt;
&lt;li&gt;Ensures that IoT Edge modules are always running.&lt;&#x2F;li&gt;
&lt;li&gt;Reports module health to the cloud for remote monitoring.&lt;&#x2F;li&gt;
&lt;li&gt;Manages communication between downstream leaf devices (what I want to call Actual Devices) and an IoT Edge device (or what I would rather call a Gateway or middleware), between modules on an IoT Edge device, and between an IoT Edge device and the cloud.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;I think this might have been an early point of confusion for me. The documentation continues to call IoT Edge modules running within the IoT Edge runtime a “device”. I realize it can be a device, but it’s so much more. To me, this is more a server than a client.&lt;&#x2F;p&gt;
&lt;p&gt;Here’s an image from the documentation that shows what look like robot arms (devices) sending telemetry to the Azure IoT Edge runtime, and later to the cloud using IoT Hub as a gateway.&lt;&#x2F;p&gt;
&lt;p&gt;IoT Edge cloud&lt;&#x2F;p&gt;
&lt;p&gt;This basically refers to the backend systems and the overall operation of managing a fleet of IoT devices. Azure offers several possible solutions for this backend work with IoT Hub being the queen bee of the hive and IoT Central being a very close second.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;Back to IoTHubModuleClient Class&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;Ok, that was a bit of a rabbit hole, but I think it was necessary to put things in perspective. Microsoft approaches the IoT Edge devices as actual devices, because they clearly can be, but they can also be hubs, gateways, storage, queues, etc.. This flexibility can make it difficult for someone learning all of this to implement the correct solution when deciding how to approach solution engineering IoT architectures.&lt;&#x2F;p&gt;
&lt;p&gt;The module has many of the same connection abilities as the device, with the exception of the ability to connect within an environment.&lt;&#x2F;p&gt;
&lt;p&gt;There are also different types of methods within the module that point to this duality. Let’s see if we can pick those apart and determine if they are device-like methods, middleware-like methods, or both?&lt;&#x2F;p&gt;
&lt;p&gt;As far as the Digital Twins methods are concerned, they appear to be identical to the device Digital Twin methods. It even has the same deprecation status on the message receiving end. So I think we can just consider these universal.&lt;&#x2F;p&gt;
&lt;p&gt;invoke_method is probably the first one that looks like middleware.&lt;&#x2F;p&gt;
&lt;p&gt;Invoke a method from your client onto a device or module client, and receive the response to the method call.&lt;&#x2F;p&gt;
&lt;p&gt;invoke_method(method_params, device_id, module_id=None)&lt;&#x2F;p&gt;
&lt;p&gt;Clearly this is designed for one module to be able to call a method on either a device or another module. It’s directly addressed, so I assume this is handled by the runtime.&lt;&#x2F;p&gt;
&lt;p&gt;send_message_to_output(message, output_name)&lt;&#x2F;p&gt;
&lt;p&gt;Sends an event&#x2F;message to the given module output. These are outgoing events and are meant to be “output events” If the connection to the service has not previously been opened by a call to connect, this function will open the connection before sending the event.&lt;&#x2F;p&gt;
&lt;p&gt;This is another method that only exists in the IoT Hub Module Client. The output that this refers to is the output channel on IoT Hub.&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;update_sastoken(sastoken)
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Update the client’s SAS Token used for authentication, then reauthorizes the connection. This API can only be used if the client was initially created with a SAS Token. Note also that this API may return before the reauthorization&#x2F;reconnection is completed. This means that some errors that may occur as part of the reconnection could occur in the background and will not be raised by this method.&lt;&#x2F;p&gt;
&lt;p&gt;This is only on the IoT Edge module and allows a call to the device to update the SAS Token, if it was created with a SAS Token. This is useful for managing security key rotation.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;My closing opinion&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;Despite much of my earlier confusion around devices and modules, I think it’s very clear to me now when one should be selected over the other.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;Devices&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;Use the Azure IoT Hub Device SDK when you want to create a device that will primarily serve as a data collection tool. This can actually be a fairly sophisticated piece of code but remember that it has a singular purpose. For instance, right now I’m creating a device for a Raspberry Pi that is collecting moisture for a plant. That’s not an IoT Edge Module. It doesn’t need to be. It just needs to run on the Pi and send telemetry to Azure IoT Hub. It doesn’t need AI, it doesn’t need event processing, no business logic, and no interaction with other devices other than IoT Hub. In my opinion, this is the ideal use case for a device and not a module.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;Modules&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;When I want to bring some functionality of the cloud down to a device to make it faster, easier to work with in a disconnected state, or to work with AI, I will use the Azure IoT Hub Module SDK to create an Azure IoT Edge device. I still don’t like calling it a device but keeping these basic ideas in mind will help build clarity around my future architectures. I do have some plans to put IoT Edge into service using a model built from a ML project. And I want to use Azure Blob Storage on the Edge, so there’s a good use case.&lt;&#x2F;p&gt;
&lt;p&gt;Overall, I think the Azure IoT platform is wonderful. I love working with it. I always feel like I’m just scratching the surface of its capabilities, but there’s a lot to learn and some of it can be confusing for the IoT beginner. I hope my long winding exploration has been helpful. Expect future explorations like this. I know it’s a little raw, but it does allow me to get my complete thoughts down and come to working conclusions.&lt;&#x2F;p&gt;
&lt;hr &#x2F;&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;atomic-temporary-167008516.wpcomstaging.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;&quot;&gt;https:&#x2F;&#x2F;atomic-temporary-167008516.wpcomstaging.com&#x2F;2022&#x2F;12&#x2F;30&#x2F;introduction-to-azure-iot-hub-and-related-services-sdks&#x2F;&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>The AI Edge Talent Stack</title>
        <published>2020-12-15T08:19:00+00:00</published>
        <updated>2022-03-22T07:34:19-05:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2020/12/15/the-ai-edge-talent-stack/"/>
        <id>https://shawndeggans.com/2020/12/15/the-ai-edge-talent-stack/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2020/12/15/the-ai-edge-talent-stack/">&lt;h2 id=&quot;building-a-talent-stack&quot;&gt;Building a Talent Stack&lt;&#x2F;h2&gt;
&lt;p&gt;Last week I started my studies with the Oxford continuing education course, &lt;a href=&quot;https:&#x2F;&#x2F;conted.ox.ac.uk&#x2F;courses&#x2F;artificial-intelligence-cloud-and-edge-implementations&quot;&gt;Artificial Intelligence: Cloud and Edge Implementations (online)&lt;&#x2F;a&gt;. For me to attend this class, I have to wake up at 3 am on Saturday morning, but so far that little sacrafice has been well worth it. What I’m hoping to get out of this course are a few key skills. First, I want a better understanding of data science taught from people who know it, practice it, and apply it to real world scenarios. Recognizing cats and hot dogs is a good start, but I want AI that helps people to derive greater value from their existing information systems. Additionally, I want to take my IoT skills to the next level. And of course these things come together to build the AI Edge MLOPs process.&lt;&#x2F;p&gt;
&lt;p&gt;I was recently introduced to the concept of a &lt;a href=&quot;https:&#x2F;&#x2F;productlessons.substack.com&#x2F;p&#x2F;how-to-develop-your-talent-stack&quot;&gt;Talent Stack&lt;&#x2F;a&gt; from Linda Zhang’s blog and it’s something I’ve been unknowingly building over the last year. I’m seeing that stack start to look like the following:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;IoT device programming&lt;&#x2F;li&gt;
&lt;li&gt;IoT networking&lt;&#x2F;li&gt;
&lt;li&gt;IoT cloud architecture&lt;&#x2F;li&gt;
&lt;li&gt;Lambda data architectures&lt;&#x2F;li&gt;
&lt;li&gt;Data analysis&lt;&#x2F;li&gt;
&lt;li&gt;Machine Learning&lt;&#x2F;li&gt;
&lt;li&gt;Orchestrated container management (k8s)&lt;&#x2F;li&gt;
&lt;li&gt;Python, Scala, and Apache Spark&lt;&#x2F;li&gt;
&lt;li&gt;MLOPs&lt;&#x2F;li&gt;
&lt;li&gt;Reactive Engineering&lt;&#x2F;li&gt;
&lt;li&gt;Domain Driven Design (Event Storming)&lt;&#x2F;li&gt;
&lt;li&gt;Systems Thinking&lt;&#x2F;li&gt;
&lt;li&gt;Wardely Mapping&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;The Oxford course touches many of those areas where I want to build skills.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;what-does-this-stack-do&quot;&gt;What does this stack do?&lt;&#x2F;h2&gt;
&lt;p&gt;It’s clear that technology is pushing us away from direct interaction with a single machine, like a mobile device or a laptop, and closer toward an environment of conntected devices. I don’t belive that traditional user interfaces will necessarily go away, but their role in capturing data will be deminished when AI on devices allow us to better communicate with smart objects around us. We will likely always use some type of mobile device, and we will likely always have some type of personal computer powerful enough to perform more demanding tasks, but when we can we will interact with smart devices.&lt;&#x2F;p&gt;
&lt;p&gt;I believe these smart devices will be found in the places we work, where we shop, and where we exercise our leisure. Businesses, cities, and the entertainment industry will need people who are skilled in building safe, secure, unbiased (but perhaps opinionated,) AI and integrating these AI with cloud computing, fog computing, and using digital twins for real objects to interact with reality.&lt;&#x2F;p&gt;
&lt;p&gt;To help add value to this new world I’m learning all the skills necessary to help teams and businesses achieve these goals. This is an area where I see a lot of potential for growth.&lt;&#x2F;p&gt;
&lt;p&gt;As I grow on this journey I want to help other developers who are interested in taking on these new challenges. I’m focusing some of my future blog posts on this subject so that we can start building a community around the concepts related to AI Edge Engineering. As that matures, I’ll share more of what that will look like. Until then, keep reading to follow along on my adventure.&lt;&#x2F;p&gt;
&lt;p&gt;Photo by Matt Hardy on &lt;a href=&quot;https:&#x2F;&#x2F;www.pexels.com&#x2F;photo&#x2F;shallow-focus-photo-of-road-2624031&#x2F;&quot;&gt;Pexels.com&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Thoughts on the Powel Water Leakage Case Study</title>
        <published>2020-12-07T08:11:00+00:00</published>
        <updated>2022-03-22T07:33:55-05:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2020/12/07/thoughts-on-the-powel-water-leakage-case-study/"/>
        <id>https://shawndeggans.com/2020/12/07/thoughts-on-the-powel-water-leakage-case-study/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2020/12/07/thoughts-on-the-powel-water-leakage-case-study/">&lt;p&gt;Microsoft makes available many business and technical case studies based on their tools and services. I like to read through these to see how other companies have taken the challenges that IoT and cloud development present their industry specific problems.&lt;&#x2F;p&gt;
&lt;p&gt;My goal is usually to find some reusable process, approach, or thinking that I can add to my own toolbox. My latest reads were these two articles related to the municipalities in Norway that were wasting water through leakage in their water delivery systems.&lt;&#x2F;p&gt;
&lt;p&gt;The first is the basic case study that you can read here:&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;microsoft.github.io&#x2F;techcasestudies&#x2F;iot&#x2F;2016&#x2F;11&#x2F;29&#x2F;Powel.html&quot;&gt;Using IoT to detect water leakages with Powel&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;Basically, this is your standard monitoring IoT pattern with some ML anomaly detection baked in to help alert operators of possible leaks. The team did face a few unique challenges in developing this solution.&lt;&#x2F;p&gt;
&lt;p&gt;SCADA systems&lt;&#x2F;p&gt;
&lt;p&gt;Most of the telemetry device data came from SCADA (supervisory control and data acquisition), which I did a little of my own research on to get a better understanding of these types of systems actually work in municipal water suppliers.&lt;&#x2F;p&gt;
&lt;p&gt;The following gives a pretty good overview:&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;www.waterworld.com&#x2F;technologies&#x2F;article&#x2F;16192417&#x2F;scada-system-monitors-water-transport-distribution-treatment&quot;&gt;StackPath&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;There’s an interesting section in the above article that explains how telemetry data is viewed and how alerts are set up.&lt;&#x2F;p&gt;
&lt;p&gt;“The HMI is configured to alarm on a number of I&#x2F;O point readings. By defining “normal” or “safe” operational states for specific I&#x2F;O points, if conditions ever deviate from those parameters, the control center receives a visual alarm. The alarms are also integrated into a pager system and an on-call operator receives a cell phone message that they acknowledge and handle appropriately.“&lt;&#x2F;p&gt;
&lt;p&gt;To me, this is where the value of connecting a more versatile tool like Azure IoT Hub comes in. How do you go about defining the normal or safe operating parameters?&lt;&#x2F;p&gt;
&lt;p&gt;As is discussed in the DevOps article associated with the Powel use case (the second article I mentioned earlier), you can use machine learning to analyze the data and determine anomalies in the water flow, such as fire hydrant usage, leaks, or other unusual water flow conditions.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;microsoft.github.io&#x2F;techcasestudies&#x2F;iot&#x2F;2016&#x2F;11&#x2F;29&#x2F;Powel.html&quot;&gt;Using IoT to detect water leakages with Powel&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;This case study has a lot to learn from, and here are some of the thoughts I had while reading through.&lt;&#x2F;p&gt;
&lt;p&gt;The Architecture&lt;&#x2F;p&gt;
&lt;p&gt;Overall, I like that Azure IoT is an integration piece to the existing SCADA system. Instead of attempting to replace that investment, the team was able to piggyback on that solution by creating gateways from the SCADA system to Azure IoT Hub and the rest of their Azure platform. Azure here is a supplement to their existing system allowing the team to bring the SCADA system’s telemetry data to be captured, run through data insights, and used to train machine learning to search for the type of anomalies that indicate water leaks.&lt;&#x2F;p&gt;
&lt;p&gt;I like the choice of micro services to provide access to the various slices of the system. They are using an API stack to integrate multiple data views into a Single Page Application for their tenants.&lt;&#x2F;p&gt;
&lt;p&gt;— my suggested next steps&lt;&#x2F;p&gt;
&lt;p&gt;As I read through this I kept thinking that the next steps needs to be to move some of that anomaly detection closer together the source. Unless there’s a pressing need to capture all the SCADA system telemetry, it makes sense to me to convert the SCADA gateways into IoT Edge devices that can host the anomaly detection algorithms outside IoT Hub serving as a filter to block telemetry data that is considered normal.&lt;&#x2F;p&gt;
&lt;p&gt;DevOps&lt;&#x2F;p&gt;
&lt;p&gt;I think there a great tools available to help in the initial planning stage of a big project. Value Stream Mapping and a Hack-a-thon were a great place to start. From these two events the team learned a lot of lessons quickly, which should be the goal at the outset of a large project. Learn fast while building something that informs your stockholders and solidifies your goals.&lt;&#x2F;p&gt;
&lt;p&gt;Discipline in the DevOps approach was another great thing to see the team take on. Security was top of mind, while production first delivery was something the team struggled with, adapting that mindset allowed them to almost double their productivity.&lt;&#x2F;p&gt;
&lt;p&gt;Their Approach to Machine Learning&lt;&#x2F;p&gt;
&lt;p&gt;They used Power BI as their initial data analysis tool. Typically, they would have used Python and visualization tools in a Jupyter notebook to do their data analysis, but this team took advantage of the out-of-box visualization and integration with Stream Analytics Services to make some of their initial decisions.&lt;&#x2F;p&gt;
&lt;p&gt;Machine Learning Studio was their machine learning environment of choice. Using it in combination with Power BI to discover anomalies, experiment with features and algorithms, and produce the solution was a great use of Azure’s IoT suite.&lt;&#x2F;p&gt;
&lt;p&gt;The most amazing thing about this case study is that Powel was able to achieve a tremendous amount of value in as little as 5 days.&lt;&#x2F;p&gt;
&lt;p&gt;My biggest takeaway&lt;&#x2F;p&gt;
&lt;p&gt;1 – Azure IoT plays exceptionally well with others. Gutting a legacy IoT system to replace it with Azure IoT isn’t necessary. Azure IoT could expand your legacy capabilities without losing that initial asset.&lt;&#x2F;p&gt;
&lt;p&gt;2 – Just because you’re developing a fast POC or MVP doesn’t mean you shouldn’t think security and production first. In fact, I want to see what I can use from the initial DevOps list and apply it to my own projects.&lt;&#x2F;p&gt;
&lt;p&gt;This was their DevOps discipline:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Underwent a value stream mapping session to find areas of improvement.&lt;&#x2F;li&gt;
&lt;li&gt;Created a multi-team project with work flowing from one team to the next.&lt;&#x2F;li&gt;
&lt;li&gt;Used a microservice approach to deliver software updates in a “fast ring” style without downtime.&lt;&#x2F;li&gt;
&lt;li&gt;Defined acceptance criteria according to the ISO standards for software quality.&lt;&#x2F;li&gt;
&lt;li&gt;Used the SDL and the Microsoft Threat Modeling tool to assess security risks early.&lt;&#x2F;li&gt;
&lt;li&gt;Architected the code using Domain-Driven Design (DDD) principles.&lt;&#x2F;li&gt;
&lt;li&gt;Used a long-lived feature branching strategy, using Git as source control.&lt;&#x2F;li&gt;
&lt;li&gt;Adhered to the SOLID principles of object-oriented design.&lt;&#x2F;li&gt;
&lt;li&gt;Developed code using a Test-Driven Development (TDD) approach.&lt;&#x2F;li&gt;
&lt;li&gt;Set up an automated build and test pipeline for each component of the solution (CI).&lt;&#x2F;li&gt;
&lt;li&gt;Set up release management (CD+RM).&lt;&#x2F;li&gt;
&lt;li&gt;Used A&#x2F;B testing based on an opt-in policy.&lt;&#x2F;li&gt;
&lt;li&gt;Expected to monitor running applications using Application Insights.&lt;&#x2F;li&gt;
&lt;li&gt;Used Infrastructure as Code.&lt;&#x2F;li&gt;
&lt;li&gt;Used Slack as a collaboration tool between departments.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;We worked long and hard during each day of the hackfest. Everyone was high-spirited and excited about the work, and when Friday afternoon came, we had a working proof of concept (POC) tying in all of the API components with the Web App and output from the Machine Learning algorithm.“&lt;&#x2F;p&gt;
&lt;p&gt;Overall, this was a great case study to learn how Azure can work with existing telemetry gathering networks to bring modern tools and practices to legacy IoT systems.&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Cloud, Fog, and Ambient Computing</title>
        <published>2020-12-05T16:02:49+00:00</published>
        <updated>2022-03-22T07:33:06-05:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2020/12/05/cloud-fog-and-ambient-computing/"/>
        <id>https://shawndeggans.com/2020/12/05/cloud-fog-and-ambient-computing/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2020/12/05/cloud-fog-and-ambient-computing/">&lt;p&gt;This won’t be a long post. I will likely start posting a few more shorter posts that are a bit more personal. This one is about taking that next step. The one that I hope helps with my career growth. Not long ago I passed two major certifications that are within my niche goals. Yes, I have a goal of focusing on a particular career niche and building around it. The niche is AI Edge Engineering. That’s a discipline that combines machine learning, IoT, and DevOps. One of the reasons I’ve tackled this particular area of the solution development world has to do with information flow.&lt;&#x2F;p&gt;
&lt;p&gt;You see, I’ve become convinced that even though we are living in the information age, we still think like people living and working in the industrial age. Our brains are stilled wired for thinking of business as creating a thing of value and selling that thing of value. Though that is still a point of concern, it’s not the way we express modern busines. Modern business information systems isn’t about static data as information. Modern systems should be about information flow, communication flow, and bringing actionable events closer to the source. For that paradigm, we need a new type of information system.&lt;&#x2F;p&gt;
&lt;p&gt;We need more than cloud, and more than fog computing. We need near-realtime ambiant systems. I think we are still a few years from seeing that come into being, but we are definitely on the road, and we’re making great drive time.&lt;&#x2F;p&gt;
&lt;p&gt;What will this new approach to computing do for us? It brings the power of AI to devices that are closer to you. That device could be a wearable, it could be a car, it could be an artificial organ. IoT Edge Engineering is just one discipline on the way toward that new way of working with devices.&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>AZ-220 and AI-100 = AI Edge Engineer</title>
        <published>2020-10-10T16:38:10+00:00</published>
        <updated>2022-03-22T07:27:31-05:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2020/10/10/az-220-and-ai-100-ai-edge-engineer/"/>
        <id>https://shawndeggans.com/2020/10/10/az-220-and-ai-100-ai-edge-engineer/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2020/10/10/az-220-and-ai-100-ai-edge-engineer/">&lt;p&gt;Microsoft doesn’t have an official certification for an AI Edge Engineer yet, but I have a feeling one is on the horizon. The term Edge continues to insert itself into a number of products. There’s even a version of Azure Stack Edge developed specifically for Edge compute devices. If this whole Edge concept is new to you, don’t worry, you’ll hear a lot more about it in the coming years.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;IoT Alone isn’t Enough&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;IoT isn’t new. It’s been with us for 20 years. Longer if you count the many systems developed for the manufacturing and agriculture industries. The idea is to gather telemetry data, things like machine vibrations, humidity levels, or light levels, and send that data to a central data store for processing. The processing tends to involve searching to actionable insights. Can I build a correlation between machine vibration levels and machine breakdowns. If I can, I can add predictive maintenance triggered on vibration. Same goes for watering plants in a field or adjusting light levels in an office building.&lt;&#x2F;p&gt;
&lt;p&gt;IoT is still valid for these operations, however the demand is increasing for devices and intelligent actions that happen closer to the source. Why send constant streams of telemetry data to the cloud when you know the parameters that trigger an event? Why not bring the event trigger closer to the device? And what if you need greater levels of intelligence, like vehicle recognition in a shipping yard or warning zones on drilling platforms that recognize when a human not wearing the appropriate safety attire has crossed into that zone? For these types of situations you need something more sophisticated than the basic telemetry gathering tools. You need devices with the sort of AI typically hosted in the cloud brought to the edge of the cloud. Edge devices. More powerful systems that can serve as telemetry gathering systems, decision systems, and routing gateways. This is what Edge Computing is all about.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;Developing for The Edge&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;Microsoft has developed a suite of tools that make working with edge technologies fairly simple. It’s not outside the realm of possibility that in the next few years Edge developers and Edge Engineers will be in high demand. The technologies used today are IoT Hub, IoT Edge Development kits, Edge enabled devices (which can be as simple as a PC), containers like Docker. Cognitive services like Computer Vision can be loaded onto these devices in the form of modules that are managed by Edge Agents and routed to the cloud or other devices using Edge Hubs and routing. These developers will need an understanding of developing for IoT devices, as well as development for the cloud. Azure provides many services for making this possible. There are services like IoT Hub and the Device Provisioning Service that make managing devices and integration with backend services possible. There’s also a SaaS platform called IoT Central that covers the majority of the use cases for specific industries that want to begin their journey into IoT Edge data processing.&lt;&#x2F;p&gt;
&lt;p&gt;These are the platforms that enable AI at the Edge using Microsoft Azure technologies, but these certainly aren’t the only tools that are taking advantage of this particular pattern. AWS, Google, NVIDIA, and many other manufacturers and services have staked a claim in this burgeoning field.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;A New Type Of DevOps&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;DevOps is the word that has come to replace agile as the term to best describe the marriage of development and operations in the service of quickly delivering working systems to market. MLOPs is a similar term used to describe the process of bringing machine learning and AI to market. I’m not aware of a term specific for Edge development, perhaps EdgeOps should be the label, but what’s important to understand is that for this type of development there is a transformative workflow.&lt;&#x2F;p&gt;
&lt;p&gt;For a greenfield engagement, you probably won’t start with AI. You’ll probably start with telemetry in order to gain insights and develop actionable plans based on the data. This means you need a deployment pipeline that allows a device to go from being a simple hub or gateway for telemetry data to a more sophisticated application platform. Intelligence from the cloud moves from cloud services to Edge containers that are utilized by the Edge devices. This requires an evolutionary Edge network that can grow more responsive and cost effective as the business evolves its goals and strategies around gathered data.&lt;&#x2F;p&gt;
&lt;p&gt;This is an enormous opportunity developers and engineers, as well as value added providers, delivery partners, and definitely the organizations who embrace this new way to capture and manage data and events.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;Why Did I Follow this Path?&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;For most of my career I’ve worked with different organizations that have struggled with their data. There are a large number of anti-pattens deployed by companies that make their data nothing more than a trailing indicator asset. It’s rarely a form of strategic information and even more rarely an active asset helping to shorten the loop between value delivery and cash flow. I decided not too long ago that I wanted the focus of my career to be toward that goal; helping organizations use their systems and data to shorten that loop. This isn’t always a technology solution. Sometimes achieving this goal requires organization change. I’m regularly looking for people, tools, and processes that I can utilize to help deliver on that goal.&lt;&#x2F;p&gt;
&lt;p&gt;Becoming an AI Edge Engineer as well as diving deeper into the world of Data Science seem the natural extension of that goal. If you are interested in exploring this path, you should take a look at Microsoft’s related training materials as well as the Oxford course mentioned on the training page: &lt;a href=&quot;https:&#x2F;&#x2F;docs.microsoft.com&#x2F;en-us&#x2F;learn&#x2F;paths&#x2F;ai-edge-engineer&#x2F;&quot;&gt;https:&#x2F;&#x2F;docs.microsoft.com&#x2F;en-us&#x2F;learn&#x2F;paths&#x2F;ai-edge-engineer&#x2F;&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;Additionally, I’ll continue to post my lab work related to IoT Edge development and my thoughts on how this applies to helping businesses use their data to achieve their financial goals on this blog.&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Basic IoT Edge Development Workflow for Simulated Devices</title>
        <published>2020-09-29T13:29:11+00:00</published>
        <updated>2022-03-22T07:22:30-05:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2020/09/29/basic-iot-edge-development-workflow-for-simulated-devices/"/>
        <id>https://shawndeggans.com/2020/09/29/basic-iot-edge-development-workflow-for-simulated-devices/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2020/09/29/basic-iot-edge-development-workflow-for-simulated-devices/">&lt;p&gt;These are just some initial notes related to the workflow for developing simulated devices. This requires the use of the following tools:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;VS Code
&lt;ul&gt;
&lt;li&gt;Azure IoT Tools&lt;&#x2F;li&gt;
&lt;li&gt;C#&lt;&#x2F;li&gt;
&lt;li&gt;Docker&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;Azure IoT Hub&lt;&#x2F;li&gt;
&lt;li&gt;Azure Container Registry&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;This is the goal. Work locally using VS Code to develop a custom module. Test and debug that module locally using the IoT Edge Simulator. View simulated telemetry in IoT Hub from local code. Publish completed component to Container Registry. Pull code from registry and run in IoT Hub.&lt;&#x2F;p&gt;
&lt;p&gt;The basic flow from system to system looks like this:&lt;&#x2F;p&gt;
&lt;p&gt;This won’t be a complete step-by-step. I’m primarily capturing these notes so that I can improve this workflow. However, if you want to walk through the whole process there is a lab that will take you step-by-step here:&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;microsoftlearning.github.io&#x2F;AZ-220-Microsoft-Azure-IoT-Developer&#x2F;Instructions&#x2F;Labs&#x2F;LAB_AK_13-deploy-and-debug-custom-azure-iot-edge-module.html&quot;&gt;AZ-220-Microsoft-Azure-IoT-Developer&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;h2 id=&quot;step-1-install-azure-iot-edgehub-dev-tools&quot;&gt;Step 1 – Install Azure IoT EdgeHub Dev Tools&lt;&#x2F;h2&gt;
&lt;p&gt;You’ll need Python on your development machine. If you don’t have pip installed, you’ll need that as well. You will need to install the IoT EdgeHub tools using this command:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;plain&quot; class=&quot;language-plain z-code&quot;&gt;&lt;code class=&quot;language-plain&quot; data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;pip install iotedgehubdev
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;More information about the project is located here:&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;pypi.org&#x2F;project&#x2F;iotedgehubdev&#x2F;&quot;&gt;iotedgehubdev&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;h2 id=&quot;step-2-create-an-azure-container-registry&quot;&gt;Step 2 – Create an Azure Container Registry&lt;&#x2F;h2&gt;
&lt;p&gt;Azure Container Registry provides the storage of private Docker images for container deployment. We will need it to provide a place to securely store our docker image.&lt;&#x2F;p&gt;
&lt;p&gt;If you do not already have a container registry, create one in Azure by searching the marketplace for Container Registry. Create one and give it a meaningful name. Use a Standard SKU.&lt;&#x2F;p&gt;
&lt;p&gt;Once it is created you will need to go to settings and Access Keys in order to set it for Administrator mode. Under Admin Users click Enable.&lt;&#x2F;p&gt;
&lt;p&gt;Copy the following values, you will need them:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Login server&lt;&#x2F;li&gt;
&lt;li&gt;Username&lt;&#x2F;li&gt;
&lt;li&gt;Password&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Log into Docker using your new server and credentials:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;plain&quot; class=&quot;language-plain z-code&quot;&gt;&lt;code class=&quot;language-plain&quot; data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;docker login &amp;lt;loginserver&amp;gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;h2 id=&quot;step-3-create-a-custom-edge-module&quot;&gt;Step 3 – Create a Custom Edge Module&lt;&#x2F;h2&gt;
&lt;p&gt;For VS Code there are a few commands you need to get this solution created. In the command palette, enter the command Azure IoT Edge: New and then click the presented Azure IoT Edge: New IoT Edge Solution. Give it a name and select a language (C#, Java, Python). When prompted to name the IoT Edge Module select something meaningful for the device, like RemainingLifeEstimator.&lt;&#x2F;p&gt;
&lt;p&gt;Once this is created, replace the Docker &lt;a href=&quot;http:&#x2F;&#x2F;localhost&quot;&gt;localhost&lt;&#x2F;a&gt; with the address of the Container Registry. It follows a special format:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;plain&quot; class=&quot;language-plain z-code&quot;&gt;&lt;code class=&quot;language-plain&quot; data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;&amp;lt;acr-name&amp;gt;.azurecr.io&#x2F;&amp;lt;module-name&amp;gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Once the new IoT Edge Solution has been created prepare to configure the solution for work.&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;be sure to set the env variables for your container registry username and password&lt;&#x2F;li&gt;
&lt;li&gt;set the default target platform by typing Azure IoT Edge: Set Default Target Platform for Edge Solution*&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;step-4-debug-in-attach-mode-with-iot-edge-simulator&quot;&gt;Step 4 – Debug in Attach Mode with IoT Edge Simulator&lt;&#x2F;h2&gt;
&lt;p&gt;To me this is one of the coolest parts of this solution. You can both test this locally and see the results of it on IoT Hub. This allows you to see that the code you are writing is working as expected from both the device side and the cloud side. It’s worth all the effort to get here.&lt;&#x2F;p&gt;
&lt;p&gt;Create an IoT Edge test device by capturing a connection string from IoT Hub. Go to the IoT Edge portion of the Automatic Device Provision section on the navigation blade. Add an IoT Edge device and give it a good test name. Set it to authenticate with the Symmetric key.&lt;&#x2F;p&gt;
&lt;p&gt;Start testing by right clicking on the deployment.debug.template.json document in your solution. Select the Build and Run IoT Edge Solution in Simulator.&lt;&#x2F;p&gt;
&lt;p&gt;If you haven’t set up the iotedgehubdev first, you will be walked through the process here. Once is is set up you can run and build the project.&lt;&#x2F;p&gt;
&lt;p&gt;Once it is up and running, you can see the telemetry you’ve simulated in the terminal window. Additionally, you can use the following command in the Azure Cloud Shell for your IoT Hub:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;plain&quot; class=&quot;language-plain z-code&quot;&gt;&lt;code class=&quot;language-plain&quot; data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;az iot hub monitor-events --hub-name &amp;quot;&amp;lt;your-iot-hub&amp;gt;&amp;quot;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;You can now debug the module using VS Code debugging tools.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;step-5-deploy-the-iot-edge-solution&quot;&gt;Step 5 – Deploy the IoT Edge Solution&lt;&#x2F;h2&gt;
&lt;p&gt;Publish the module to the Azure Container Registry. Insure that your Container Registry credentials are stored in the .env file.&lt;&#x2F;p&gt;
&lt;p&gt;Right click on the deployment.template.json and then click Build and Push IoT Edge Solution.&lt;&#x2F;p&gt;
&lt;p&gt;At the Azure portal, open your Azure Container Registry service and click your container server.&lt;&#x2F;p&gt;
&lt;p&gt;You should see your container under the repositories. From here you’ll want to grab the repository name and the tag properties. Save these values in the following format somewhere (Notepad)&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;plain&quot; class=&quot;language-plain z-code&quot;&gt;&lt;code class=&quot;language-plain&quot; data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;&amp;lt;repository-name&amp;gt;:&amp;lt;tag&amp;gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Configure an IoT Edge Device to use the module by adding a new IoT Edge device in the IoT Hub. Give a device id that matches the module name. Then set modules and on the modules blade under Container Registry Settings, enter the values for the registry name, address to the login server, and the username and password.&lt;&#x2F;p&gt;
&lt;p&gt;On the Add IoT Edge Module pane, under IoT Edge Module Name, enter the name of your module. Under module settings enter the full uri and tagged name of your module’s docker image:&lt;&#x2F;p&gt;
&lt;pre data-lang=&quot;plain&quot; class=&quot;language-plain z-code&quot;&gt;&lt;code class=&quot;language-plain&quot; data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;&amp;lt;container-registry-login-server&amp;gt;&#x2F;&amp;lt;repository-name&amp;gt;:&amp;lt;tag&amp;gt;
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Add that and then set the module routes. Typically you want a route to the module from other modules and a route to IoT Hub from the module. It could look something like this:&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;www.notion.so&#x2F;fd75e8bbfaf947a09c8f9f7aff511736&quot;&gt;Route Settings&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;Create this and you now have an Edge Module deployed to an IoT Edge Device.&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Create an Azure IoT Security module Twin</title>
        <published>2020-09-22T14:14:00+00:00</published>
        <updated>2022-03-22T07:21:42-05:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2020/09/22/create-an-azure-iot-security-module-twin/"/>
        <id>https://shawndeggans.com/2020/09/22/create-an-azure-iot-security-module-twin/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2020/09/22/create-an-azure-iot-security-module-twin/">&lt;p&gt;What are these things and why do we need them?&lt;&#x2F;p&gt;
&lt;p&gt;The twinning concept is one of the cooler things to come about lately. Not only can you digitally twin IoT or IoT Edge devices, but you can also twin environments, and I’m sure eventually we’ll be twinning all sorts of things like industrial equipment, trains, planes, automobiles. Basically, anything that fog computing devices need to work with can be twinned, including the actual fog computing device.&lt;&#x2F;p&gt;
&lt;p&gt;To understand what a module twin is, we need to also understand what a device twin is and what purpose it serves in Azure’s IoT Hub.&lt;&#x2F;p&gt;
&lt;p&gt;Device Twins are basically json documents that represent a device. They store metadata, configuration information, conditions, and basically represent the state of that device.&lt;&#x2F;p&gt;
&lt;p&gt;One thing to note, this is only available in the Standard tier of IoT Hub (and Free), but not in Basic. That’s because Basic doesn’t provide for two way communication. Basic only allows IoT Hub to receive telemetry data. One way communication. Standard however will allow IoT Hub and the device to maintain two way communication. If you plan to practice building out more sophisticated IoT devices, especially the AIoT or Edge devices, you will need to use Standard tier.&lt;&#x2F;p&gt;
&lt;p&gt;A device twin has this structure:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;Tags&lt;&#x2F;li&gt;
&lt;li&gt;Desired properties&lt;&#x2F;li&gt;
&lt;li&gt;Reported properties&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;And you’ll use the device twins to do the following operations:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;Synchronize workflows between devices and the backend systems&lt;&#x2F;li&gt;
&lt;li&gt;Store device specific meta-data in the cloud&lt;&#x2F;li&gt;
&lt;li&gt;Report on state&lt;&#x2F;li&gt;
&lt;li&gt;Query the device for metadata, state, or configuration&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;There’s recommendations on how that communication should transpire, but I won’t go into that in this post.&lt;&#x2F;p&gt;
&lt;p&gt;It’s just import to remember that device twins store device information that allows the device and the backend to synchronize configuration and conditions and that the solution back end can query long running operations.&lt;&#x2F;p&gt;
&lt;p&gt;Device Twins also have a lifecycle. This is linked to the device identity. Twins are created and deleted when a device identity is created or deleted in the IoT Hub.&lt;&#x2F;p&gt;
&lt;p&gt;The json document includes the following elements; tags, desired properties, reported properties, and device identity properties.&lt;&#x2F;p&gt;
&lt;p&gt;I won’t go into detail on these, but they can be used to manage various aspects of the device. There are also a number of back end operations like; retrieve device by twin id, partially update device twin, replace desired property, replace tags, and get notifications from the device – this is managed with a twinChangeEvent.&lt;&#x2F;p&gt;
&lt;p&gt;Operations that can be performed on a device are&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;Retrieve device twin&lt;&#x2F;li&gt;
&lt;li&gt;Partially update reported properties&lt;&#x2F;li&gt;
&lt;li&gt;Observe desired properties&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;Devices preserve their desired properties when connecting to IoT hub if their device twin version is the same. However, if the version has incremented it will retrieve the full json document to get the desired properties.&lt;&#x2F;p&gt;
&lt;p&gt;How does this relate to module twins in the IoT Hub? What is a module twin?&lt;&#x2F;p&gt;
&lt;p&gt;When you create a device identity and IoT Hub creates a device twin, under that device twin you can create up to 50 module identities.&lt;&#x2F;p&gt;
&lt;p&gt;These represent a sub-section of the device. For instance, if I have a Raspberry Pi with a moisture detector, a light detector, and a temperature detector, I can make these all modules under the device identity I’ve assigned the Raspberry Pi.&lt;&#x2F;p&gt;
&lt;p&gt;Module twins are nearly identical in form and function as their parent device twin. I can also assign different security profiles to a module twin and grant access to it to different groups. This means that certain members of my team can see the moisture information, others can see the temperature, and yet another group could see the light information (probably no real reason to do this in the real world with this particular device, but the capability is there).&lt;&#x2F;p&gt;
&lt;p&gt;How do we create a azureiotsecurity module twin?&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;You can actually create a module batch script that will automatically create module twins any time a new device twin is created.&lt;&#x2F;li&gt;
&lt;li&gt;You can also manually create them.&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;To manually create a new &lt;em&gt;azureiotsecurity&lt;&#x2F;em&gt; module twin for a device use the following instructions:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;In your IoT Hub, locate and select the device you wish to create a security module twin for.&lt;&#x2F;li&gt;
&lt;li&gt;Click on your device, and then on &lt;strong&gt;Add module identity&lt;&#x2F;strong&gt;.&lt;&#x2F;li&gt;
&lt;li&gt;In the &lt;strong&gt;Module Identity Name&lt;&#x2F;strong&gt; field, enter &lt;strong&gt;azureiotsecurity&lt;&#x2F;strong&gt;.&lt;&#x2F;li&gt;
&lt;li&gt;Click &lt;strong&gt;Save&lt;&#x2F;strong&gt;.&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;Boom! That’s all you need to do. When you review your existing modules for the device, you should find on there titled, azureiotsecurity.&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Azure IoT Custom Security Alerts</title>
        <published>2020-09-22T12:38:00+00:00</published>
        <updated>2022-03-22T07:21:08-05:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2020/09/22/azure-iot-custom-security-alerts/"/>
        <id>https://shawndeggans.com/2020/09/22/azure-iot-custom-security-alerts/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2020/09/22/azure-iot-custom-security-alerts/">&lt;p&gt;I love that IoT Hub makes it easy to add custom alerts. You can also manage these alerts for groups of devices, instead of attempting to create them one at a time. These alerts allow you to build specific rules for these groups of devices that best fit the use case of the device.&lt;&#x2F;p&gt;
&lt;p&gt;The following the recommended method for setting these up in the portal. I’m still searching for a way to do this with Azure CLI, but when I find it I’ll post an update.&lt;&#x2F;p&gt;
&lt;p&gt;Because you as the developer will know your devices best and understand what sort of alerts you need to create for your device parameters, Azure Security Center provides a way for you to develop device behavior policies and alerts.&lt;&#x2F;p&gt;
&lt;p&gt;What are security groups?&lt;&#x2F;p&gt;
&lt;p&gt;Security groups are a logical way to maintain devices by tags. You choose how those devices are categorized. It could be by hardware type, region, or whatever best fits your particular domain needs.&lt;&#x2F;p&gt;
&lt;p&gt;This is tagged in the device twin settings under the tags property of “SecurityGroup,” and comes with a value of “Default”&lt;&#x2F;p&gt;
&lt;p&gt;After creating a group, you can assign custom alerts.&lt;&#x2F;p&gt;
&lt;p&gt;How do you customize an alert?&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;On your IoT Hub Security section, open the Settings&lt;&#x2F;li&gt;
&lt;li&gt;Click custom alerts&lt;&#x2F;li&gt;
&lt;li&gt;If you haven’t, create a device security group&lt;&#x2F;li&gt;
&lt;li&gt;Click on the new security group&lt;&#x2F;li&gt;
&lt;li&gt;Click Create custom alert rule&lt;&#x2F;li&gt;
&lt;li&gt;Select a rule from the list&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;You can find a list of customizable security alerts here:&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;docs.microsoft.com&#x2F;en-us&#x2F;azure&#x2F;asc-for-iot&#x2F;concept-customizable-security-alerts&quot;&gt;Customizable security alerts – Azure Security Center for IoT&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;Set your parameters for the rule.&lt;&#x2F;p&gt;
&lt;p&gt;For example, I selected the custom alert for “Login by a local user that isn’t allowed,” and added an email for &lt;a href=&quot;mailto:paul@raspberrypitestdevice.com&quot;&gt;paul@raspberrypitestdevice.com&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;Save the new rule. Continue this process for each group and each rule.&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>What is Azure Security Center for IoT?</title>
        <published>2020-09-19T19:38:40+00:00</published>
        <updated>2022-03-22T07:20:36-05:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2020/09/19/what-is-azure-security-center-for-iot/"/>
        <id>https://shawndeggans.com/2020/09/19/what-is-azure-security-center-for-iot/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2020/09/19/what-is-azure-security-center-for-iot/">&lt;p&gt;IoT is one of the areas that has commonly been the least secure. To remedy this lack in security, Azure has a number of services to processes to help. In this quick overview, I’m going to talk through my experience of setting up the Azure Security Center for IoT.&lt;&#x2F;p&gt;
&lt;p&gt;Here is a good reason for using Azure Security Center for IoT. It provides protection in the form of intelligent threat detection and response across your workloads running on Edge devices, on-premises systems, in Azure, and even in other cloud solutions. It’s the big boss of IoT security, so understanding it is important for your Azure IoT Solutions.&lt;&#x2F;p&gt;
&lt;p&gt;The Sales Pitch: What does it give me?&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;Unified visibility and control&lt;&#x2F;li&gt;
&lt;li&gt;Adaptive threat prevention&lt;&#x2F;li&gt;
&lt;li&gt;Intelligent threat detection and response to that threat detection&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;There are two modes for using Azure Security Center for IoT workflows:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;Enhanced – by turning on Enhanced mode, you will need to install Azure Security Center for IoT device agents on your devices, the agents collect, aggregate, and analyze raw security events from your devices. You have the ability to customize what events you want to see, what events you want sent to the cloud, and how much security data you want to collect.&lt;&#x2F;li&gt;
&lt;li&gt;Built-in – This does not require an agents and does the majority of its analysis in the cloud.&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;Device agents and other applications can use the Azure send security message SDK to send security information into Azure IoT Hub. The Hub picks up the information and forwards it to the Security Center for IoT service.&lt;&#x2F;p&gt;
&lt;p&gt;Create a Log Analytics workspace in Azure Portal&lt;&#x2F;p&gt;
&lt;p&gt;I followed the instructions here:&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;docs.microsoft.com&#x2F;en-us&#x2F;azure&#x2F;azure-monitor&#x2F;learn&#x2F;quick-create-workspace-cli&quot;&gt;Create a Log Analytics workspace using Azure CLI – Azure Monitor&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;p&gt;I also built an IoT Hub&lt;&#x2F;p&gt;
&lt;p&gt;az iot hub create –&amp;lt;RG NAME&amp;gt; –name &amp;lt;IOT HUB NAME&amp;gt; –sku S1 –location southcentralus –partition-count 1&lt;&#x2F;p&gt;
&lt;p&gt;(I’ven been trying to force myself to stick with the Azure CLI as much as possible lately, but feel free to build it in the Portal)&lt;&#x2F;p&gt;
&lt;p&gt;I did use the portal for the following step, because I didn’t see a way to do it through the Azure CLI:&lt;&#x2F;p&gt;
&lt;p&gt;To enable security on your IoT Hub:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;Open your &lt;strong&gt;IoT Hub&lt;&#x2F;strong&gt; in Azure portal.&lt;&#x2F;li&gt;
&lt;li&gt;Under the &lt;strong&gt;Security&lt;&#x2F;strong&gt; menu, click &lt;strong&gt;Secure your IoT solution&lt;&#x2F;strong&gt;.&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;Congratulations! You’ve completed enabling Azure Security Center for IoT on your IoT Hub.&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Passing the AI-100 Exam</title>
        <published>2020-08-16T16:58:16+00:00</published>
        <updated>2022-03-22T07:20:05-05:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2020/08/16/passing-the-ai-100-exam/"/>
        <id>https://shawndeggans.com/2020/08/16/passing-the-ai-100-exam/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2020/08/16/passing-the-ai-100-exam/">&lt;p&gt;I recently passed the &lt;a href=&quot;https:&#x2F;&#x2F;docs.microsoft.com&#x2F;en-us&#x2F;learn&#x2F;certifications&#x2F;exams&#x2F;ai-100&quot;&gt;AI-100 Certification&lt;&#x2F;a&gt; Test from Microsoft and wanted to take the opportunity to discuss my experience studying for the test, passing the test, and finally how I plan to apply what I’ve learned to my larger career journey of helping organizations build better systems.&lt;&#x2F;p&gt;
&lt;p&gt;First, I actually had no intention of taking the AI-100 this soon. I had planned to take it, but I was thinking more along the lines of next year when I had more time to work with more AI projects than I had. My experience was pretty much limited to building out a proof of concept Form Recognizer solution for a client. The opportunity to take the test came up last month when it appeared we needed this particular certification to help unlock a benefit around Microsoft Teams.&lt;&#x2F;p&gt;
&lt;p&gt;Basically, one of our team leads reached out to a handful of us with a request to take it and to take it soon. I committed to a month, hoping that would be enough time to get experience with the material in order to pass.&lt;&#x2F;p&gt;
&lt;p&gt;First, I can’t recommend &lt;a href=&quot;https:&#x2F;&#x2F;linuxacademy.com&#x2F;&quot;&gt;Linux Academy&lt;&#x2F;a&gt; enough. I took the course on that platform by Dan Sasse for the AI-100 and it gave me a great overview of everything I needed to study. The practice test for this course was also excellent for preparing me for the certification.&lt;&#x2F;p&gt;
&lt;p&gt;In addition to Dan’s course, I also worked through a handful of Microsoft’s Learning paths related to Azure Machine Learning Services and Studio. I initially didn’t like ML Studio, but after working with it I began to see the real benefits. These specialized studios are something that have become a trend with Microsoft products. Working with AI you will get used to the various interfaces developed for LUIS, QnA Maker, and so on.&lt;&#x2F;p&gt;
&lt;p&gt;Taking the actual test is always the most nerve wrecking for me. I’ve been developing for years – I’m an old guy in this field – but I still get sweaty palms when faced with these types of tests. So I had to precondition myself before diving in and taking the test. If you are taking the test, I would suggest you do what I did. Take your time.&lt;&#x2F;p&gt;
&lt;p&gt;So here’s my process for taking the test:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;Take your time. Take a few deep breaths before each question.&lt;&#x2F;li&gt;
&lt;li&gt;Read the questions slowly and carefully to make sure you understand exactly what the objective is. Microsoft no longer creates “trick,” questions, but it does sometimes give more detail than needed to discover the answer.&lt;&#x2F;li&gt;
&lt;li&gt;If it’s a multiple choice question, begin with the process of elimination. Be sure you are sure about what answers it is not. That will usually leave you with 2 answers.&lt;&#x2F;li&gt;
&lt;li&gt;If you have any doubts about the answers you’ve selected for the question, mark it for review later. There were at least 2 questions I had marked for review that I was able to change because the answer seemed obvious to me when I reviewed them.&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;Lastly, go into the test with the attitude that everything is going to be fine no matter what. If you pass the test, well that’s great! That was the goal. It means you studied enough to know the subject material and were lucky enough to get the right combination of questions to match your knowledge – yes, I do believe luck has a hand in passing the tests. You can help luck by studying and knowing the materials, but sometimes the questions just don’t align well with your knowledge. Which leads me to the second point; don’t beat yourself up if you fail. Failure is an opportunity to learn. Be sure to look over your results and focus on the areas you did poorly in.&lt;&#x2F;p&gt;
&lt;p&gt;I did great on all my service knowledge, but even though I passed the test I know I have a weakness in deploying AI services. I need to brush up on certain technologies around that part of the discipline.&lt;&#x2F;p&gt;
&lt;p&gt;I count this as a fun certification. You get to work with a lot of cool technology and dive a little into the world of Data Science and Machine Learning. I would encourage anyone who is interested in working with AI to attempt this certification. Even if you don’t plan to be a data scientist, you will likely one day need to work with the output of the data science pipeline—an AI. And Microsoft has given the AI Engineer a lot of great tools to work with.&lt;&#x2F;p&gt;
&lt;p&gt;How do I plan to use this new certification? Well, by developing AI solutions of course. Right now I have a prototype QnA bot created that I’m building out. I only have a web connection created for it now, but the plan is to build it out to other channels like Facebook Messenger, Twilio SMS, and even email. I have also found many uses for the Form Recognizer and the possibilities for LUIS are endless.&lt;&#x2F;p&gt;
&lt;p&gt;Yesterday I even spent the afternoon building out a residential property assessment AI in &lt;a href=&quot;https:&#x2F;&#x2F;www.tensorflow.org&#x2F;&quot;&gt;Tensorflow&lt;&#x2F;a&gt; – yes, and I’m not even a data scientist, so it’s not that hard if you have some development experience and you aren’t too scared of math.&lt;&#x2F;p&gt;
&lt;p&gt;AI will be embedded in everything soon. &lt;a href=&quot;https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Edge_computing&quot;&gt;Edge Computing&lt;&#x2F;a&gt; is on the rise. As a developer, you can’t afford to ignore this sector of the development world. And I think the AI-100 is the perfect way to jump in and start learning more about Artificial Intelligence.&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Building a Data Quality Management Process that Scales : Data Quality Playbook</title>
        <published>2020-07-04T17:42:33+00:00</published>
        <updated>2023-08-15T08:18:22-05:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2020/07/04/building-a-data-quality-management-process-that-scales-data-quality-playbook/"/>
        <id>https://shawndeggans.com/2020/07/04/building-a-data-quality-management-process-that-scales-data-quality-playbook/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2020/07/04/building-a-data-quality-management-process-that-scales-data-quality-playbook/">&lt;p&gt;So far in this series on data quality I’ve covered &lt;a href=&quot;&#x2F;2020&#x2F;05&#x2F;08&#x2F;building-a-data-quality-management-process-that-scales-data-quality-metrics&#x2F;&quot;&gt;Data Quality Metrics&lt;&#x2F;a&gt;, &lt;a href=&quot;&#x2F;2020&#x2F;04&#x2F;27&#x2F;building-a-data-quality-management-process-that-scales-data-quality-or-intelligence-quality&#x2F;&quot;&gt;Data Quality or Intelligence Quality&lt;&#x2F;a&gt;, and &lt;a href=&quot;&#x2F;2020&#x2F;04&#x2F;22&#x2F;building-a-data-quality-management-process-that-scales-the-many-paths-to-quality-data&#x2F;&quot;&gt;The Many Paths to Data Quality&lt;&#x2F;a&gt;. I’m wrapping this series up now with an overall approach to Data Quality Management that Scales for a small or large team. This is more an outline than a complete guide, because I have some great news. I’ll be working with a team to develop out these data quality approaches further. I have had a wonderful opportunity to see some of these ideas practically implemented in an organization I’ve been working with over the past year and a half. However, like any implementation I discovered a lot of room for improvement and some opportunities to shift focus from the ideas I thought were important to ideas that the client thought were important for their customers–this is the way it should work.&lt;&#x2F;p&gt;
&lt;p&gt;What follows is a high-level overview of a playbook that a team could use to implement data quality. This is more of a first draft, and I’ll be honest, I stole a lot of these concepts from the data mining world.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;the-architecture&quot;&gt;The Architecture&lt;&#x2F;h2&gt;
&lt;p&gt;This playbook was designed for a particular type of architecture. The system it was designed for is a batch lambda data system similar to most big data architectures. It makes use of a data ingestion layer, processing layer, and serving layer. A data lake would be ideal, but we were able to accomplish some of our goals using SQL databases. So it’s fairly flexible, but I would encourage separating data processing concerns. Here’s a good example of our approach to data quality.&lt;&#x2F;p&gt;
&lt;p&gt;Our Basic Data Quality Process for Separating “Good” from “Bad” data.&lt;&#x2F;p&gt;
&lt;p&gt;The following is another view of the data pipeline with some of the decision logic in place:&lt;&#x2F;p&gt;
&lt;p&gt;I won’t go into a lot of detail about the diagram, but it covers the basic concepts of ingestion from a raw source that is as similar to the source data as possible, staging that data for processing, processing it using a Databricks job, and then moving it on to Refined data layer for additional business rules processing.&lt;&#x2F;p&gt;
&lt;p&gt;Why separate Data Quality from Business Quality? Wouldn’t it be easier to process them both in the same place?&lt;&#x2F;p&gt;
&lt;p&gt;Perhaps, but it depends on the situation. For instance, our Refined layer for this particular solution is where the business domain entities start to take shape. We could perform that shaping in Databricks, but for our team the consensus was on applying the business rules at the Refined stage. This is one of the joys of working with a distributed data system. You have some flexibility when it comes to where you want to perform your data processing work, but I would recommend sticking with this basic conceptual structure:&lt;&#x2F;p&gt;
&lt;p&gt;Basic Batch Data Processing Layers&lt;&#x2F;p&gt;
&lt;p&gt;These layers allow for the separation of data processing concerns. If you are familiar with functional data engineering, this is the type of architecture that makes that possible. You can follow this conceptual shape using a fully distributed Modern Data Warehouse approach or you can do the same thing in a SQL Server–it depends on your needs and the size of your data. I would recommend that you consult with a Cloud Solutions Architect to help you determine how to right-size your solution. There are trade offs to whatever architecture you chose. So there’s no such thing as a one size fits all architecture.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;loops-and-checklists&quot;&gt;Loops and Checklists&lt;&#x2F;h2&gt;
&lt;p&gt;How we get things done. Many years ago I had the fortune of working with a rock star architect. It was probably a turning point in my career. It was the moment I went from being a below average enterprise developer to someone who gave a damn about my career and the type of solutions I helped produce for my clients. One of the first concepts he taught me was the idea of The Pit of Success.&lt;&#x2F;p&gt;
&lt;iframe loading=&quot;lazy&quot; class=&quot;youtube-player&quot; title=&quot;YouTube video player&quot; width=&quot;640&quot; height=&quot;360&quot; src=&quot;https:&#x2F;&#x2F;www.youtube.com&#x2F;embed&#x2F;US8QG9I1XW0?version=3&amp;amp;rel=1&amp;amp;showsearch=0&amp;amp;showinfo=1&amp;amp;iv_load_policy=1&amp;amp;fs=1&amp;amp;hl=en&amp;amp;autohide=2&amp;amp;wmode=transparent&quot; allowfullscreen=&quot;true&quot; style=&quot;border:0;&quot; sandbox=&quot;allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox&quot;&gt;&lt;&#x2F;iframe&gt;
&lt;p&gt;The first DevOps book I read:&lt;&#x2F;p&gt;
&lt;iframe loading=&quot;lazy&quot; title=&quot;The DevOps Handbook: How to Create World-Class Agility, Reliability, and Security in Technology Organizations&quot; type=&quot;text&#x2F;html&quot; width=&quot;500&quot; height=&quot;550&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;&quot; style=&quot;max-width:100%&quot; src=&quot;https:&#x2F;&#x2F;read.amazon.com&#x2F;kp&#x2F;card?preview=inline&amp;amp;linkCode=kpe&amp;amp;ref_=k4w_oembed_LU9TtRbkrZk54H&amp;amp;asin=B01M9ASFQ3&amp;amp;tag=kpembed-20&quot;&gt;&lt;&#x2F;iframe&gt;
&lt;p&gt;There were a few great concepts I was able to walk away from that particular engagement understanding:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Checklists are your friend&lt;&#x2F;li&gt;
&lt;li&gt;The whiteboard is a great place to discuss architecture and make decisions&lt;&#x2F;li&gt;
&lt;li&gt;A Schema is a contract – be sure you know what you’re doing when you create one&lt;&#x2F;li&gt;
&lt;li&gt;Every developer is his or her own project manager&lt;&#x2F;li&gt;
&lt;li&gt;Being a good developer is way more than writing code&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;There were of course more things that I learned on this journey, but those were the highlights.&lt;&#x2F;p&gt;
&lt;p&gt;What does that have to do with Data Quality? Checklists, guardrails, and the pit of success are all a part of modern process engineering. Ideally, systems inform our decisions and our actions. Reinventing the ways in which we work for every new&lt;br &#x2F;&gt;
data ingestion is incredibly inefficient.&lt;&#x2F;p&gt;
&lt;p&gt;By introducing systems and processes to the workflow of moving data from initial ingestion to the final trusted layer, we free ourselves of the need to decide what to do for each new data source. Following the prescribed process also prevents us from missing a critical step. There will be situations where some steps are not required, but if the step is shortened or ignored it is done so for a documented reason.&lt;&#x2F;p&gt;
&lt;p&gt;In short, we follow the same path as often as possible. We only deviate from the path if there is a clear reason to do so. We practice a process of continuous improvement and adjust our processes to meet better quality–quality is the key here.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;life-cycles-and-process-loops&quot;&gt;Life Cycles and Process Loops&lt;&#x2F;h2&gt;
&lt;p&gt;The system that is proposed here is a repeatable process loop that moves from initial data ingestion to the final staging of data in a trusted layer or data warehouse. The process is made up of four distinct phases with their own milestones and deliverables – in other words, any observer will know when a phase is done or not done based on deliverables, goals met, and quality metrics satisfied.&lt;&#x2F;p&gt;
&lt;p&gt;Any participant in the process will know decisively where they are in the data pipeline’s journey. Each phase has a clear set of goals, methods of achieving those goals through meetings, tasks, and decisions, and deliverables that are tangible to an observer.&lt;&#x2F;p&gt;
&lt;p&gt;The following section goes over the necessary aspects of every phase – even if that phase is very small, each step in the checklist should be considered.&lt;&#x2F;p&gt;
&lt;p&gt;Our overall life cycle breaks down as follows:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Business Understanding&lt;&#x2F;li&gt;
&lt;li&gt;Data Quality Management&lt;&#x2F;li&gt;
&lt;li&gt;Data Warehousing&lt;&#x2F;li&gt;
&lt;li&gt;Data Governance&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Along with the overall life cycle, there are loops within the life cycle for each stage to help build out data quality in a more iterative development process.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;business-understanding&quot;&gt;Business Understanding&lt;&#x2F;h2&gt;
&lt;p&gt;This section outlines the goals, tasks, meetings, and deliverables associated with the business understanding phase of the playbook.&lt;&#x2F;p&gt;
&lt;p&gt;This is the first stage in any new line of data processing, whether that is a line of data from within the target organization or from a partnering organization.&lt;&#x2F;p&gt;
&lt;p&gt;This is the first stage in the recommended life cycle for achieving Data Quality Management for the target organization.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;a-goals&quot;&gt;a) Goals&lt;&#x2F;h2&gt;
&lt;ul&gt;
&lt;li&gt;Determine the key data points and where they will serve in the abstract model&lt;&#x2F;li&gt;
&lt;li&gt;Determine key metrics to data quality success&lt;&#x2F;li&gt;
&lt;li&gt;Identify the relevant data sources, how to access them, how they fit within the the organization’s Data Lake model (structured, unstructured, semi-structured data)&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;b-how-we-do-it&quot;&gt;b) How we do it&lt;&#x2F;h2&gt;
&lt;ul&gt;
&lt;li&gt;Work directly with partners or line of data processing owners to understand and identify the key metrics. What does quality data look like?&lt;&#x2F;li&gt;
&lt;li&gt;Review the abstract model and determine if the data will fit this ideal or if it will require its own modeling.&lt;&#x2F;li&gt;
&lt;li&gt;Discuss timelines, expectations of data quality, and shape of data&lt;&#x2F;li&gt;
&lt;li&gt;Data shape on ingress and egress&lt;&#x2F;li&gt;
&lt;li&gt;What are successful metrics for this data?&lt;&#x2F;li&gt;
&lt;li&gt;Can we run our standard data quality metrics, or do we need to define new quality metrics?&lt;&#x2F;li&gt;
&lt;li&gt;Are the metrics Specific, Measurable, Achievable, Relevant, and Time-bound?&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;c-deliverables&quot;&gt;c) Deliverables&lt;&#x2F;h2&gt;
&lt;ul&gt;
&lt;li&gt;Minimal charter – this is to be updated by the Product Success Manager, Solution Architect, but contribution is welcomed by the whole team. This line of work is also given a feature in the backlog, an identifier, and staff assignments – who to go to for what – and is featured in the common Teams Wiki&lt;&#x2F;li&gt;
&lt;li&gt;Raw Data Sources – team has access to the raw data sources for data provisioning work and data acquisition&lt;&#x2F;li&gt;
&lt;li&gt;Data Dictionaries – Meta data report on the data, its schema, and its recommended Data Quality Metrics generated by tools used for Data Quality Management (Amazon DeeQu or Agile Lab’s DQ)&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;data-quality-management&quot;&gt;Data Quality Management&lt;&#x2F;h2&gt;
&lt;p&gt;This article outlines the phase of the DQM related to the acquisition and understanding of the line of data processing’s data. Use this phase to determine how to best achieve data ingestion, data quality, and date delivery.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;a-goals-1&quot;&gt;a) Goals&lt;&#x2F;h2&gt;
&lt;ul&gt;
&lt;li&gt;Ingest the data and use DQM tools to measure and determine its raw state data quality&lt;&#x2F;li&gt;
&lt;li&gt;Build tests against the assumed metrics determined during the Business Understanding phase&lt;&#x2F;li&gt;
&lt;li&gt;Produce a set of Data Quality Constraints&lt;&#x2F;li&gt;
&lt;li&gt;Set up a data pipeline to score new or regularly refreshed data&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;b-how-we-do-it-1&quot;&gt;b) How we do it&lt;&#x2F;h2&gt;
&lt;p&gt;Ingest the data – stage the data in its RAW section of the Architecture. Initial data processing elements might also need to be developed to support lookup tables, reporting meta data, or housing for “good,” and “bad” data.&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Explore the data to Generate DQM reports based off the DQM tools&lt;&#x2F;li&gt;
&lt;li&gt;Data Architects, Data Analysts, Data Quality Analysts, and Development Engineers meet to determine the best ways technically to meet the data delivery challenges – add tasks to the existing user stories to achieve this quality&lt;&#x2F;li&gt;
&lt;li&gt;Set up the data pipeline – Move data from RAW to refined by applying the knowledge gained from the data exploration&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;c-deliverables-1&quot;&gt;c) Deliverables&lt;&#x2F;h2&gt;
&lt;p&gt;A Data Quality report built off the raw data with clear metrics noted&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Data Quality Cleansing solution – post the data cleansing exercise process&lt;&#x2F;li&gt;
&lt;li&gt;Solution architecture – Any revisions or additions to the standard Batch Lambda Architecture are recorded and documented on the Batch Lambda Team Wiki&lt;&#x2F;li&gt;
&lt;li&gt;Milestone Decision Document – Before the data pipeline is turned on and in regular use, the whole team meets to discuss what has been done, what the data looks like, and what it will take to achieve some of the data quality objectives – at this point it’s fair to discuss if it is valuable to the owner of the line of data processing to continue or abandon the pipeline&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;data-warehousing&quot;&gt;Data Warehousing&lt;&#x2F;h2&gt;
&lt;h2 id=&quot;a-goals-2&quot;&gt;a) Goals&lt;&#x2F;h2&gt;
&lt;ul&gt;
&lt;li&gt;Determine how refined data fits within the data warehouse abstract model&lt;&#x2F;li&gt;
&lt;li&gt;Create the transformation to fit the data warehouse and any meta data related to changes from source systems&lt;&#x2F;li&gt;
&lt;li&gt;Exercise the data warehouse model&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;b-how-we-do-it-2&quot;&gt;b) How we do it&lt;&#x2F;h2&gt;
&lt;ul&gt;
&lt;li&gt;Model the mapping from the refined to the trusted using mapping tools. Discuss and revise target system as required by the feature’s stated metrics and goals.&lt;&#x2F;li&gt;
&lt;li&gt;Transform from the refined layer to the trusted layer using data pipeline built for transformation. This transformation should account for changes in schema by first testing the target schema against the transformation for differences.&lt;&#x2F;li&gt;
&lt;li&gt;Regression test the data warehouse, reports, and systems that depend on the data warehouse&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;c-deliverables-2&quot;&gt;c) Deliverables&lt;&#x2F;h2&gt;
&lt;ul&gt;
&lt;li&gt;Working refined data pipeline with mapping and transformations tested and working&lt;&#x2F;li&gt;
&lt;li&gt;Solution Architecture updated to match the new state of the data warehouse if there were changes&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;data-governance-acceptance&quot;&gt;Data Governance Acceptance&lt;&#x2F;h2&gt;
&lt;h2 id=&quot;a-goals-3&quot;&gt;a) Goals&lt;&#x2F;h2&gt;
&lt;ul&gt;
&lt;li&gt;Finalize project deliverables&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;b-how-we-do-it-3&quot;&gt;b) How we do it&lt;&#x2F;h2&gt;
&lt;ul&gt;
&lt;li&gt;System validation – meet with the Data Operations Team to discuss handoff and to review all changes to the system. Ideally, this should be an ongoing process, because many members of the Data Operations Team can also be members of the DQM and Data Warehouse Team.&lt;&#x2F;li&gt;
&lt;li&gt;Project hand-off – turn responsibility of production operations to the Data Operations Team&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;c-deliverables-3&quot;&gt;c) Deliverables&lt;&#x2F;h2&gt;
&lt;ul&gt;
&lt;li&gt;Solution Document&lt;&#x2F;li&gt;
&lt;li&gt;Configuration settings&lt;&#x2F;li&gt;
&lt;li&gt;Passcode and secret vault access&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h1 id=&quot;roles-with-accountability&quot;&gt;Roles with Accountability&lt;&#x2F;h1&gt;
&lt;p&gt;One of the new ways of thinking in IT relates to the approach to teams and team members. Team members take on and fulfill Roles. Roles have areas of responsibility, common tasks, and goals related to achieving data quality. The following is a break down of some of those possible roles and how they fit into the operation of the playbook:&lt;&#x2F;p&gt;
&lt;h3 id=&quot;data-analyst&quot;&gt;Data Analyst&lt;&#x2F;h3&gt;
&lt;h3 id=&quot;role&quot;&gt;Role&lt;&#x2F;h3&gt;
&lt;ul&gt;
&lt;li&gt;Client or a member of the organization who meets with the DQM team to discuss data metrics and meta data – can be someone already serving as a Business Analyst&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;common-tasks&quot;&gt;Common Tasks&lt;&#x2F;h3&gt;
&lt;ul&gt;
&lt;li&gt;Analyze raw data quality reports to help construct data quality requirements&lt;&#x2F;li&gt;
&lt;li&gt;Update and revise Data Dictionaries&lt;&#x2F;li&gt;
&lt;li&gt;Review refined data&lt;&#x2F;li&gt;
&lt;li&gt;Communicate with business leaders and team leads on the state of organization Data Quality&lt;&#x2F;li&gt;
&lt;li&gt;Build common understanding between organization and partners the importance of Data Quality&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;responsible-for&quot;&gt;Responsible for&lt;&#x2F;h3&gt;
&lt;ul&gt;
&lt;li&gt;Contributing to Data Dictionaries&lt;&#x2F;li&gt;
&lt;li&gt;Communicating non-technical requirements with business and team members associated with data lines of processing&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;quality-analysts&quot;&gt;Quality Analysts&lt;&#x2F;h2&gt;
&lt;h3 id=&quot;role-1&quot;&gt;Role&lt;&#x2F;h3&gt;
&lt;p&gt;IT business analysts or Quality Assurance person who will help shape data quality from the technical perspective&lt;&#x2F;p&gt;
&lt;h3 id=&quot;common-tasks-1&quot;&gt;Common Tasks&lt;&#x2F;h3&gt;
&lt;ul&gt;
&lt;li&gt;Review Raw Data DQM reports to help define data quality metrics based on the line of data processing goals&lt;&#x2F;li&gt;
&lt;li&gt;Help define data quality metrics&lt;&#x2F;li&gt;
&lt;li&gt;Help define the high data quality standards of organization and communicate that to the organization and data teams&lt;&#x2F;li&gt;
&lt;li&gt;Write tests to meet organization data quality metrics&lt;&#x2F;li&gt;
&lt;li&gt;Write tests for data constraints&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;responsible-for-1&quot;&gt;Responsible for&lt;&#x2F;h3&gt;
&lt;ul&gt;
&lt;li&gt;Data quality metrics and expectations are in alignment with the goals of the business and the expectations set during the business analysis phase&lt;&#x2F;li&gt;
&lt;li&gt;Data pipelines adhere to the data quality management expectations set for the specific data line of processing&lt;&#x2F;li&gt;
&lt;li&gt;Pipeline test are in alignment with data quality expectations&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;system-development-engineers&quot;&gt;System Development Engineers&lt;&#x2F;h2&gt;
&lt;h3 id=&quot;role-2&quot;&gt;Role&lt;&#x2F;h3&gt;
&lt;ul&gt;
&lt;li&gt;SQL, ETL, and application developer responsible for turning business data requirements into reusable code that fits within the Batch-Lambda Data Architecture and the general Data Pipeline process&lt;&#x2F;li&gt;
&lt;li&gt;Uses modern DevOps practices to check code into and out of source code&lt;&#x2F;li&gt;
&lt;li&gt;Instructs architects and data analyst on proven practices to achieve data goals and metrics through technology in alignment with the Batch-Lambda Architecture&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;common-tasks-2&quot;&gt;Common Tasks&lt;&#x2F;h3&gt;
&lt;ul&gt;
&lt;li&gt;Writing code required to meet data pipeline objectives&lt;&#x2F;li&gt;
&lt;li&gt;Testing that code and writing automated tests for the code for the DevOps pipeline&lt;&#x2F;li&gt;
&lt;li&gt;Writing clean testable code that adheres to the functional nature of the Batch-Lambda Architecture – is it safe, is it repeatable from raw, and are system decisions singular and centralized as much as possible (Modern Functional Data Engineering – &lt;a href=&quot;https:&#x2F;&#x2F;medium.com&#x2F;@maximebeauchemin&#x2F;functional-data-engineering-a-modern-paradigm-for-batch-data-processing-2327ec32c42a&quot;&gt;https:&#x2F;&#x2F;medium.com&#x2F;@maximebeauchemin&#x2F;functional-data-engineering-a-modern-paradigm-for-batch-data-processing-2327ec32c42a&lt;&#x2F;a&gt;)&lt;&#x2F;li&gt;
&lt;li&gt;Meeting with architects and lead engineer to work out the “how to,” of technical tasks&lt;&#x2F;li&gt;
&lt;li&gt;Working tasks from the backlog and checking in changes to the repository related to those tasks&lt;&#x2F;li&gt;
&lt;li&gt;Code review sessions with architects and engineering leads&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;responsible-for-2&quot;&gt;Responsible for&lt;&#x2F;h3&gt;
&lt;ul&gt;
&lt;li&gt;Delivery of functional code to meet business objectives using the Batch-Lambda Architecture – this could be SQL, Python, or some other language commonly used in modern data pipeline development.&lt;&#x2F;li&gt;
&lt;li&gt;Checking in code and requesting code reviews&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;lead-engineer&quot;&gt;Lead Engineer&lt;&#x2F;h2&gt;
&lt;h3 id=&quot;role-3&quot;&gt;Role&lt;&#x2F;h3&gt;
&lt;p&gt;Responsible for developing infrastructure as code as it relates to the Batch-Lambda Architecture, provision Azure resources as needed, overseeing Azure resource budgets, and insuring environments meet with Service Provider standards and security requirements. Mentoring architects and developers on proven practices to deliver quality data systems built on Azure, like the Batch-Lambda Architecture. Help team to adhere to DevOps practices and help teams to use the Azure DevOps tools.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;common-tasks-3&quot;&gt;Common Tasks&lt;&#x2F;h3&gt;
&lt;ul&gt;
&lt;li&gt;Provisioning Azure Resources&lt;&#x2F;li&gt;
&lt;li&gt;Assigning roles to users&lt;&#x2F;li&gt;
&lt;li&gt;Scripting infrastructure as code and testing the deployment of that code in the CI&#x2F;CD pipeline&lt;&#x2F;li&gt;
&lt;li&gt;Analyzing the technical feasibility of proposed data and solution architecture&lt;&#x2F;li&gt;
&lt;li&gt;Revising documentation to include “how,” certain tasks were done&lt;&#x2F;li&gt;
&lt;li&gt;Creating automation and repeatability wherever possible&lt;&#x2F;li&gt;
&lt;li&gt;Working with the tech team to meet delivery objectives&lt;&#x2F;li&gt;
&lt;li&gt;Code reviews&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;responsible-for-3&quot;&gt;Responsible for&lt;&#x2F;h3&gt;
&lt;ul&gt;
&lt;li&gt;DevOps practice related to the Batch-Lambda Architecture&lt;&#x2F;li&gt;
&lt;li&gt;Batch-Lambda Architecture security&lt;&#x2F;li&gt;
&lt;li&gt;Batch-Lambda Architecture budgeting&lt;&#x2F;li&gt;
&lt;li&gt;Azure DevOps CI&#x2F;CD pipelines and code repositories&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;data-architects&quot;&gt;Data Architects&lt;&#x2F;h2&gt;
&lt;h3 id=&quot;role-4&quot;&gt;Role&lt;&#x2F;h3&gt;
&lt;p&gt;SQL, ETL and application developer focused on translating business needs into Batch-Lambda Architecture in the Azure Cloud environment&lt;&#x2F;p&gt;
&lt;h3 id=&quot;common-tasks-4&quot;&gt;Common Tasks&lt;&#x2F;h3&gt;
&lt;ul&gt;
&lt;li&gt;Work with business, solution architect, engineers, and developers to define the best architecture to fit the needs of the line of data processing.&lt;&#x2F;li&gt;
&lt;li&gt;Reviews solution architecture functional proposals, diagrams, and data requirements to develop a technical solution to meet the business needs.&lt;&#x2F;li&gt;
&lt;li&gt;Instructs Lead Engineer and System Development engineers on the best methods to achieve the technical vision.&lt;&#x2F;li&gt;
&lt;li&gt;Submits minimal documentation and diagrams to solution architect for inclusion in the overall system documentation.&lt;&#x2F;li&gt;
&lt;li&gt;Attends meetings where technical decisions are required&lt;&#x2F;li&gt;
&lt;li&gt;Mentors and instructs team members on the reasoning behind architectural choices.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;responsible-for-4&quot;&gt;Responsible for&lt;&#x2F;h3&gt;
&lt;ul&gt;
&lt;li&gt;Quality checks on built infrastructure&lt;&#x2F;li&gt;
&lt;li&gt;Code reviews&lt;&#x2F;li&gt;
&lt;li&gt;Creating diagrams&lt;&#x2F;li&gt;
&lt;li&gt;Creating proof-of-concept code&lt;&#x2F;li&gt;
&lt;li&gt;Creating working code and scripts to support engineering efforts&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;product-success-manager&quot;&gt;Product Success Manager&lt;&#x2F;h2&gt;
&lt;h3 id=&quot;role-5&quot;&gt;Role&lt;&#x2F;h3&gt;
&lt;p&gt;A product&#x2F;project manager who helps guide the team to remain within scope of the defined iteration, remain on task, and deliver based on the Program Manager’s stated line of data processing goals and metrics&lt;&#x2F;p&gt;
&lt;h3 id=&quot;common-tasks-5&quot;&gt;Common Tasks&lt;&#x2F;h3&gt;
&lt;ul&gt;
&lt;li&gt;Arrange and attend meetings, take notes, guide team to remain within scope of meeting goals&lt;&#x2F;li&gt;
&lt;li&gt;Reporting meetings notes with emphasis on meeting goals, decided means to achieve those goals, and expected deliverables – as well as team assignments&lt;&#x2F;li&gt;
&lt;li&gt;Generate reports showing state of overall project status and line of data processing status for Product Manager&lt;&#x2F;li&gt;
&lt;li&gt;Align with team on proven practices for using Azure DevOps, Microsoft Project, and other project management tools and methodologies for meeting delivery&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;responsible-for-5&quot;&gt;Responsible for&lt;&#x2F;h3&gt;
&lt;ul&gt;
&lt;li&gt;Delivering meeting notes&lt;&#x2F;li&gt;
&lt;li&gt;Product backlog&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;solution-architect&quot;&gt;Solution Architect&lt;&#x2F;h2&gt;
&lt;h3 id=&quot;role-6&quot;&gt;Role&lt;&#x2F;h3&gt;
&lt;p&gt;Works with the business to align technical teams, processes, systems architecture, and tasks to the business objectives&lt;&#x2F;p&gt;
&lt;h3 id=&quot;common-tasks-6&quot;&gt;Common Tasks&lt;&#x2F;h3&gt;
&lt;ul&gt;
&lt;li&gt;Attend most meetings to deeply understand the business problem&lt;&#x2F;li&gt;
&lt;li&gt;Clearly communicate and document the functional business solution with the data teams&lt;&#x2F;li&gt;
&lt;li&gt;Help create a technical architecture with data teams&lt;&#x2F;li&gt;
&lt;li&gt;Help manage the scope of iterations so that teams are on task and able to deliver&lt;&#x2F;li&gt;
&lt;li&gt;Reviews architecture&lt;&#x2F;li&gt;
&lt;li&gt;Reviews code&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;responsible-for-6&quot;&gt;Responsible for&lt;&#x2F;h3&gt;
&lt;ul&gt;
&lt;li&gt;Solution Architecture Documentation&lt;&#x2F;li&gt;
&lt;li&gt;Code reviews&lt;&#x2F;li&gt;
&lt;li&gt;Decision Documents&lt;&#x2F;li&gt;
&lt;li&gt;Revisions to the Batch-Lambda Architecture Playbook&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;program-manager&quot;&gt;Program Manager&lt;&#x2F;h2&gt;
&lt;h3 id=&quot;role-7&quot;&gt;Role&lt;&#x2F;h3&gt;
&lt;p&gt;Directs data teams to achieve business goals utilizing the Batch-Lambda architecture&lt;&#x2F;p&gt;
&lt;h3 id=&quot;common-tasks-7&quot;&gt;Common Tasks&lt;&#x2F;h3&gt;
&lt;ul&gt;
&lt;li&gt;Set line of data processing iteration priority with the team and clearly communicate the overall goals and objectives of each line of data processing – so solutions aren’t over or under engineered to meet delivery expectations&lt;&#x2F;li&gt;
&lt;li&gt;Set clear delivery expectations – “Success will look like this when we’ve achieved all of the following goals…”&lt;&#x2F;li&gt;
&lt;li&gt;Review and approve overall data quality metrics associated with a line of data processing iteration&lt;&#x2F;li&gt;
&lt;li&gt;Set the vision of team excellence and encourage adherence to the line of data processing iteration process&lt;&#x2F;li&gt;
&lt;li&gt;Attend milestone meetings – daily stand up, sprint planning review, backlog grooming, and approve Service Provider estimated User Stories&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h3 id=&quot;responsible-for-7&quot;&gt;Responsible for&lt;&#x2F;h3&gt;
&lt;ul&gt;
&lt;li&gt;Product Backlog Priority&lt;&#x2F;li&gt;
&lt;li&gt;Success of each line of data processing iteration&lt;&#x2F;li&gt;
&lt;li&gt;Overall data quality for each line of data processing iteration&lt;&#x2F;li&gt;
&lt;li&gt;Overall morale and health of the data teams and Batch-Lambda Architecture&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;applying-this-process-at-your-organization&quot;&gt;Applying this Process at Your Organization&lt;&#x2F;h2&gt;
&lt;p&gt;This is definitely a journey worth taking. Issues with data quality account for many failed projects, customer support issues, and the loss of trust from customers. Data quality issues can build a damn in your value streams.&lt;&#x2F;p&gt;
&lt;p&gt;If you would like help or guidance with this journey, please connect with me on &lt;a href=&quot;https:&#x2F;&#x2F;www.linkedin.com&#x2F;in&#x2F;shawn-deggans&#x2F;&quot;&gt;LinkedIn&lt;&#x2F;a&gt; and we can arrange a meeting. We have a skilled team of data systems experts, certified Azure developers and architects, as well as the project delivery experts to help begin and support your data practices.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;additional-data-quality-resources&quot;&gt;Additional Data Quality Resources&lt;&#x2F;h2&gt;
&lt;p&gt;I recently read another great overview of the data quality process on the site &lt;a href=&quot;https:&#x2F;&#x2F;www.toptal.com&#x2F;&quot;&gt;Toptal&lt;&#x2F;a&gt;. Toptal describes itself as, “… an exclusive network of the top freelance software developers, designers, finance experts, product managers, and project managers in the world. Top companies hire Toptal freelancers for their most important projects.”&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;www.toptal.com&#x2F;database&#x2F;data-warehouse-data-quality-process&quot;&gt;https:&#x2F;&#x2F;www.toptal.com&#x2F;database&#x2F;data-warehouse-data-quality-process&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Why I’m Devoting the Rest of My Career to the Concept of Data-Driven Organizations</title>
        <published>2020-06-08T13:18:16+00:00</published>
        <updated>2022-03-22T07:13:22-05:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2020/06/08/why-im-devoting-the-rest-of-my-career-to-the-concept-of-data-driven-organizations/"/>
        <id>https://shawndeggans.com/2020/06/08/why-im-devoting-the-rest-of-my-career-to-the-concept-of-data-driven-organizations/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2020/06/08/why-im-devoting-the-rest-of-my-career-to-the-concept-of-data-driven-organizations/">&lt;p&gt;I’m still working on the Data Quality posts. They will happen. I’m in the process of actually implementing this with a client, so this gives me a lot of material to work with. However, I wanted to just drop a quick post to talk about some of my goals for the rest of the year. You see, I have a kind of unified vision going. I want to become an expert in helping people achieve the Data Driven Organization from soup to nuts.&lt;&#x2F;p&gt;
&lt;p&gt;What is a Data Driven Organization? Basically, this is an organization that uses data to drive organizational decisions. Sounds easy enough, right? Everyone has reports. CEOs read reports. Decisions are made. Yay! Data driven.&lt;&#x2F;p&gt;
&lt;p&gt;It’s both not that easy and just that simple.&lt;&#x2F;p&gt;
&lt;p&gt;It’s not that easy because most organizations aren’t built around being data driven. Most organizations are still trapped in the old “command and control,” mentality built from the early industrial revolution concepts built by Frederick Taylor. Taylorism is the idea that humans are just basically part of the industrial machine. With the right command and control in place, from the top down leadership can achieve organizational goals through command and control.&lt;&#x2F;p&gt;
&lt;p&gt;However, the vast complexity of today’s business environment renders Taylorism as useless. This isn’t a knock on CEOs, but there just isn’t enough business intelligence at the top to adequately command the modern workforce, which includes humans, processes, and machines. What has come to replace Taylorism is a different way of thinking born out of a number of various philosophies.&lt;&#x2F;p&gt;
&lt;p&gt;D. Edwards Deming introduced the industrial world to the “Shewhart Cycle,” which evolved into the Plan-Do-Check-Act process. This thinking changed Japan for the better after WWII leading to the Lean Engineering thinking that we recognize today in so many manufacturing organizations. In the software development world we had our own early awakening in the form of the Agile Manifesto, which has also spawned a number of interesting methods, processes, and ideas to help deliver software that meets an organization’s value goals with greater quality in a timely fashion.&lt;&#x2F;p&gt;
&lt;p&gt;With all these vast improvements that are more than visible in the current business landscape you would think that the concept of Taylorism would be as dead as the steam powered locomotive, but it’s surprising the number of business that still fall into the trap of believing that Command and Control is the only path. I’ve even seen many organizations claim they are adopting “Agile,” when all they are doing is faking agility by taking on some process like SCRUM. SCRUM does not make you agile if you don’t train for agility. Just like wearing sprinter’s shoes doesn’t make me a sprinter. Sprinting regularly, and training to sprint regularly actually makes me a sprinter. The shoes are only a tool to achieve the goals of being a sprinter. They don’t make me the sprinter.&lt;&#x2F;p&gt;
&lt;p&gt;So how then do organizations transform from Taylorism to being a data driven organization?&lt;&#x2F;p&gt;
&lt;p&gt;Well, that’s something I plan to learn myself over the next few years. I’d like to develop an actual framework of people, processes, and tools that are completely focused on applying data driven thinking to value streams. A big focus on this thought project is achieving asset creation based on data gathered through hypothesis and experimentation. Now I’m not a scientist, but luckily for all of us non-scientists, the scientific method isn’t that complicated.&lt;&#x2F;p&gt;
&lt;p&gt;Markets can be studied. Data about their unique aspects can be captured. A hypothesis can be formed from the data–in other words, an organization can make a financial bet that a particular aspect of the market could be true. Money and time budget can be aimed at experiments to prove or disprove the hypothesis. From those experiments assets could be derived from the data. Those assets could fulfill the need of a particular value stream and create revenue.&lt;&#x2F;p&gt;
&lt;p&gt;This is the framework that I want to learn and understand and hopefully become and expert in over the next few years.&lt;&#x2F;p&gt;
&lt;p&gt;This definitely gives this blog a new purpose. As I learn and grow in the areas where I need to focus I will share my findings here. Some of these findings might be notes on books or other people’s articles and findings. Some might actually be a way to achieve some technical goal–like creating an IoT sensor network to gather productivity data. Some of the posts will be thoughts on projects that I believe will add to the framework (such as the Data Quality Method I’m presently working on). Ideally, I will build the framework in the same way that I would hope a data driven organization would build any of its assets–the data driven way. Recursion will be our friend in this process, so expect the framework to change as new insights are discovered.&lt;&#x2F;p&gt;
&lt;p&gt;It’s a big topic and I hope to contribute to its understanding, its usefulness to the IT community, and its usefulness to the market in general.&lt;&#x2F;p&gt;
&lt;p&gt;Personally, I’m tired of seeing waste. I don’t like to see waste in human potential, I don’t like to see organizations wasting their time and their money on projects doomed to failure–and in my 20+ years of development I’ve seen a lot of that waste. I’ve seen tood many projects fail because of bad leadership, bad decision making, and a failure of IT and the business to align on common visions and goals.&lt;&#x2F;p&gt;
&lt;p&gt;I’d like to make it my soul purpose to help ease this pain – yes, I do mean soul purpose and not sole purpose. I want this to be the driving purpose of my career and my life. I believe helping to build this type of framework is one way that I can contribute.&lt;&#x2F;p&gt;
&lt;p&gt;I hope you’ll join my on this journey. I think it will be a fascinating one with lots of room for growth and discovery.&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Building a Data Quality Management Process that Scales : Data Quality Metrics</title>
        <published>2020-05-08T20:57:51+00:00</published>
        <updated>2022-03-22T07:05:15-05:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2020/05/08/building-a-data-quality-management-process-that-scales-data-quality-metrics/"/>
        <id>https://shawndeggans.com/2020/05/08/building-a-data-quality-management-process-that-scales-data-quality-metrics/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2020/05/08/building-a-data-quality-management-process-that-scales-data-quality-metrics/">&lt;p&gt;&lt;strong&gt;I recently completed a guide for a client related to creating data quality metrics. It’s an interesting problem to tackle, because you absolutely need to understand what goals you need to achieve as an organization. Without these goals defined, you can make the mistake of either blanketing your data with far too many metrics or too few. To give you an idea of how many possible data metrics are available, here is a list of possibilities:&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;• Accuracy&lt;br &#x2F;&gt;
• Completeness&lt;br &#x2F;&gt;
• Consistency&lt;br &#x2F;&gt;
• Timeliness&lt;br &#x2F;&gt;
• Currency&lt;br &#x2F;&gt;
• Volatility&lt;br &#x2F;&gt;
• Uniqueness&lt;br &#x2F;&gt;
• Appropriate Amount of Data&lt;br &#x2F;&gt;
• Accessibility&lt;br &#x2F;&gt;
• Credibility&lt;br &#x2F;&gt;
• Interpretability&lt;br &#x2F;&gt;
• Usability&lt;br &#x2F;&gt;
• Derivation of Integrity&lt;br &#x2F;&gt;
• Conciseness&lt;br &#x2F;&gt;
• Maintainability&lt;br &#x2F;&gt;
• Applicability&lt;br &#x2F;&gt;
• Convenience&lt;br &#x2F;&gt;
• Speed&lt;br &#x2F;&gt;
• Comprehensiveness&lt;br &#x2F;&gt;
• Clarity&lt;br &#x2F;&gt;
• Traceability&lt;br &#x2F;&gt;
• Security&lt;br &#x2F;&gt;
• Correctness&lt;br &#x2F;&gt;
• Objectivity&lt;br &#x2F;&gt;
• Relevancy&lt;br &#x2F;&gt;
• Ease of Operation&lt;br &#x2F;&gt;
• Interactivity&lt;&#x2F;p&gt;
&lt;p&gt;The following rather extensive list was taken from &lt;a href=&quot;https:&#x2F;&#x2F;www.researchgate.net&#x2F;publication&#x2F;220565749_Methodologies_for_Data_Quality_Assessment_and_Improvement&quot;&gt;https:&#x2F;&#x2F;www.researchgate.net&#x2F;publication&#x2F;220565749_Methodologies_for_Data_Quality_Assessment_and_Improvement&lt;&#x2F;a&gt;&lt;br &#x2F;&gt;
Attempting to gather metrics on all these possible points would be an exhausting exercise, but from this list you can see how many possible choices are available. What’s important now is selecting a few an putting those metrics into practice.&lt;&#x2F;p&gt;
&lt;p&gt;I’m going to cheat, and just focus on those that the DeeQu library supports. This means we’re going to look for metrics related to the following areas:&lt;&#x2F;p&gt;
&lt;p&gt;• Uniqueness&lt;br &#x2F;&gt;
• Completeness&lt;br &#x2F;&gt;
• Compliance&lt;br &#x2F;&gt;
• Distinctness&lt;&#x2F;p&gt;
&lt;p&gt;These areas of data quality can be clearly defined and tied to a reportable metric or in some cases, more than one metric. Metrics mean dashboards, which makes it easier to bring data owners and contributors into the picture.&lt;&#x2F;p&gt;
&lt;p&gt;Even though there are several Data Quality tools on the market (Great Expectations is one I’m reviewing now), I’ll focus on using Amazon’s DeeQu. Primarily because it’s an Open Source library and it integrates well with modern data tools like Apache Spark. It’s easy to implement and it gives us reports out-of-the-box that meet our needs for metrics.&lt;&#x2F;p&gt;
&lt;p&gt;I won’t go into details on how to set up and use the tool. That’s covered in the library’s example code. However, I will pull a portion of their reference out and use it to help us plan the first step of our data quality process.&lt;&#x2F;p&gt;
&lt;p&gt;How do these fit into the process, though? Well, we want to begin our process by performing an initial run of data analysis. Our first phase should be an attempt to narrow from general data quality to specifics. Data quality can and often does reach from the quality of the data schema (the shape and the primitive data types that make up the general data container,) as well as the data values – this is the intention of the data. In unstructured or semi-structured data, the very shape of a collection of data points can be a data value. Keep these points in mind when considering data quality for your individual systems. However, to keep the scope of this set of articles a little more focused, I’m going to stick with data quality applied to the data values, and not the various possible data schema.&lt;&#x2F;p&gt;
&lt;p&gt;To narrow down from our abstract concept of general data quality to measurable attributes that will help us test our data and build meaningful reports, we need to section off what it is that we’re expecting from our data.&lt;&#x2F;p&gt;
&lt;p&gt;For the initial phase of analysis, I can see a data engineer generating reports and sitting down with an analyst to discuss what metrics are truly important for either the specific dataset or the experiment. I can also see this as a loop of meetings until the data begins to meet with the organization’s ideal data quality objective—and I can see this as a process of learning. Many organizations won’t initially know what type of data quality they want to aspire to, because they haven’t invested the time to analyze their data. This will likely be an ongoing, ever evolving process of learning for both the organization and the data engineering team. Building a process around this learning is valuable.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;Assessing the Data&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;Completeness Metric&lt;&#x2F;strong&gt; – This does dip a little into the world of Intelligence Quality. It’s about the completeness of a record. For instance, if you have a record with a vehicle, that record should include the make, the model, the year it was built, and the vehicle identification number. If one of these elements is missing, the record lacks completeness.&lt;&#x2F;p&gt;
&lt;p&gt;How do we gather metrics on completeness?&lt;&#x2F;p&gt;
&lt;p&gt;DeeQu includes a metric for completeness. It reports on the fraction of non-null values in a column. To measure the completeness of an object represented in the database, an analyst would need to identify the columns needed to make that data set “complete”. This is a case where shaping the data schema to match the DQ rules would probably be worth the extra effort.&lt;&#x2F;p&gt;
&lt;p&gt;Data transformed from the ingested data to match a dataset defined by the business domain could easily be loaded in one or more tables and analyzed for completeness. Datasets that do not meet the completeness strategy could be sent to a bad records table or marked with meta-data related to the failure. It’s important to understand that completeness as a concept is not necessarily limited to the actual “completeness,” function within the library.&lt;&#x2F;p&gt;
&lt;p&gt;Other functions from within the library can be combined to establish a dataset’s completeness. All the data could exist for a dataset, but if one of the values is incorrect, it could mean that the dataset is lacking completeness. This should be considered while establishing metrics for completeness.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;Uniqueness Metric&lt;&#x2F;strong&gt; – Data that represents a specific dataset only appears once in the data system. If there is a record that represents Joe Smith, that records for Joe Smith only appears once. In today’s data systems with multiple stages, like bronze, silver, gold, and platinum, that might not be possible, but it should be something that is aimed for the in the most trusted layer of the data system – for instance, it might be something that’s tested for in the lower stages, but isn’t acceptable in the higher stages that are considered a trusted reporting layer.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;Compliance Metric&lt;&#x2F;strong&gt; – in a structured database with clearly defined datatypes it’s fairly easy to be certain that an integer will be an integer and that a CHAR will be a CHAR, whoever if you have constraints such as, “All values within this column must be between .001234 and .002345,” you’ll need to either write custom functions within your data system to check for these constraints or you’ll need to have a way to check those values for compliance. How many records within the dataset meet the compliance requirements, how many do not?&lt;&#x2F;p&gt;
&lt;p&gt;&lt;strong&gt;Distinctness Metric&lt;&#x2F;strong&gt; – how many values are discrete? DeeQu measures this the fraction of distinct values of a column over the number of all values of a column. If you are looking for an entry that should be generally unique, for instance national identification numbers, but you run across values that are not unique, that could be a reason to trigger a warning.&lt;&#x2F;p&gt;
&lt;p&gt;My code for something like this looks like the following:&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;val verificationResult: VerificationResult = { VerificationSuite()
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;  &#x2F;&#x2F; data to run the verification on
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;  .onData(dataset)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;  &#x2F;&#x2F; define a data quality check
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;  .addCheck(
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;    Check(CheckLevel.Error, &amp;quot;Review Check&amp;quot;) 
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;      .hasSize(_ &amp;gt;= 3000000) &#x2F;&#x2F; at least 3 million rows
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;      .hasMin(&amp;quot;star_rating&amp;quot;, _ == 1.0) &#x2F;&#x2F; min is 1.0
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;      .hasMax(&amp;quot;star_rating&amp;quot;, _ == 5.0) &#x2F;&#x2F; max is 5.0
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;      .isComplete(&amp;quot;review_id&amp;quot;) &#x2F;&#x2F; should never be NULL
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;      .isUnique(&amp;quot;review_id&amp;quot;) &#x2F;&#x2F; should not contain duplicates
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;      .isComplete(&amp;quot;marketplace&amp;quot;) &#x2F;&#x2F; should never be NULL
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;      &#x2F;&#x2F; contains only the listed values
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;      .isContainedIn(&amp;quot;marketplace&amp;quot;, Array(&amp;quot;US&amp;quot;, &amp;quot;UK&amp;quot;, &amp;quot;DE&amp;quot;, &amp;quot;JP&amp;quot;, &amp;quot;FR&amp;quot;))
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;      .isNonNegative(&amp;quot;year&amp;quot;)) &#x2F;&#x2F; should not contain negative values
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;  &#x2F;&#x2F; compute metrics and verify check conditions
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;  .run()
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;}
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;My report looks like this:&lt;&#x2F;p&gt;
&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;name&lt;&#x2F;strong&gt;&lt;&#x2F;td&gt;&lt;td&gt;&lt;strong&gt;instance&lt;&#x2F;strong&gt;&lt;&#x2F;td&gt;&lt;td&gt;&lt;strong&gt;value&lt;&#x2F;strong&gt;&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;&lt;tr&gt;&lt;td&gt;Completeness&lt;&#x2F;td&gt;&lt;td&gt;review_id&lt;&#x2F;td&gt;&lt;td&gt;1&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;&lt;tr&gt;&lt;td&gt;Completeness&lt;&#x2F;td&gt;&lt;td&gt;marketplace&lt;&#x2F;td&gt;&lt;td&gt;1&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;&lt;tr&gt;&lt;td&gt;Compliance&lt;&#x2F;td&gt;&lt;td&gt;marketplace contained in US,UK,DE,JP,FR&lt;&#x2F;td&gt;&lt;td&gt;1&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;&lt;tr&gt;&lt;td&gt;Compliance&lt;&#x2F;td&gt;&lt;td&gt;year is non-negative&lt;&#x2F;td&gt;&lt;td&gt;1&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;&lt;tr&gt;&lt;td&gt;Maximum&lt;&#x2F;td&gt;&lt;td&gt;star_rating&lt;&#x2F;td&gt;&lt;td&gt;5&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;&lt;tr&gt;&lt;td&gt;Minimum&lt;&#x2F;td&gt;&lt;td&gt;star_rating&lt;&#x2F;td&gt;&lt;td&gt;1&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;&lt;tr&gt;&lt;td&gt;Size&lt;&#x2F;td&gt;&lt;td&gt;*&lt;&#x2F;td&gt;&lt;td&gt;3120938&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;&lt;tr&gt;&lt;td&gt;Uniqueness&lt;&#x2F;td&gt;&lt;td&gt;review_id&lt;&#x2F;td&gt;&lt;td&gt;0.99266&lt;&#x2F;td&gt;&lt;&#x2F;tr&gt;&lt;&#x2F;tbody&gt;&lt;&#x2F;table&gt;
&lt;p&gt;Based on what we learn from these reports, we can now go back to our data and make decisions related to how we will start the process for testing our dataset for our new data quality goals.&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Building a Data Quality Management Process that Scales : Data Quality or Intelligence Quality?</title>
        <published>2020-04-27T20:39:00+00:00</published>
        <updated>2022-03-22T07:04:37-05:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2020/04/27/building-a-data-quality-management-process-that-scales-data-quality-or-intelligence-quality/"/>
        <id>https://shawndeggans.com/2020/04/27/building-a-data-quality-management-process-that-scales-data-quality-or-intelligence-quality/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2020/04/27/building-a-data-quality-management-process-that-scales-data-quality-or-intelligence-quality/">&lt;p&gt;How does an organization go about determining data quality? What are the first steps in an overall process to achieve the organizational goals related to data quality? First, before we can answer any of these questions, I think it’s important to agree upon a standard definition of data quality.&lt;&#x2F;p&gt;
&lt;p&gt;Wikipedia gives the following definition – “Data quality refers to the state of qualitative or quantitative pieces of information. There are many definitions of data quality, but data is generally considered high quality if it is “fit for [its] intended uses in operations, decision making and planning”. Moreover, data is deemed of high quality if it correctly represents the real-world construct to which it refers.”&lt;&#x2F;p&gt;
&lt;p&gt;This is where I want to touch on a different term, a term that is often meant for data quality, but most people don’t separate the two. That’s Information Quality.&lt;br &#x2F;&gt;
Information Quality is defined as, “Information quality (IQ) is the quality of the content of information systems. It is often pragmatically defined as: “The fitness for use of the information provided.”. IQ frameworks also provides a tangible approach to assess and measure DQ&#x2F;IQ in a robust and rigorous manner.”&lt;&#x2F;p&gt;
&lt;p&gt;Information Quality is the value of your data in service to your organization’s goals and objectives. Before we start attempting to build a set of processes around improving overall data quality, it’s important to solidify what the expectations are for Information Quality. For our purposes, we’ll stick with the following understanding of Information Quality.&lt;&#x2F;p&gt;
&lt;p&gt;Information Quality should be one of the primary means of determining the performance of business initiatives. Information and Data Quality managed correctly within the goals and guidance of business objectives will primarily be a trailing indicator of where the business is on the journey toward success.&lt;&#x2F;p&gt;
&lt;p&gt;This means that the Information System must be capable of delivering the business the information it needs, when it needs it, and where it needs it, and to the people who need it.&lt;&#x2F;p&gt;
&lt;p&gt;Therefore, it seems that the first step in determining where to focus is to understand the following:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;What portions of my existing data does the business need to see in relation to the stated goals and objectives? This will likely require business analysis to uncover the portions of the system that can lend information to the objective.&lt;&#x2F;p&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;What is the tempo of information delivery? What data ranges are under consideration? When is this information timely to the objectives of the business? For instance, if I need to see property related to the latest sales on homes in a particular area, because my business wants to build new homes in the area, data from three years ago is likely to be of less value than data from three weeks ago. However, if I’m looking at various flood cycle changes to soil on valley farmland, I’ll likely want the last five years data, and not the last five weeks.&lt;&#x2F;p&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;Where do decision makers and stakeholders need to go to view their data – and to a certain extent, where exactly within the view of that data to they need to look? Handing over a massive multi-paged report when the stakeholder needs something that could fit in a short message on a mobile text isn’t helpful. So be sure to clarify where the data needs to reside to help the decision make have what they need when they need it.&lt;&#x2F;p&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;Who needs to see it? This is usually covered in Data Governance and Security, but it’s important to understand who needs to see this data and especially who does not need to see this data.&lt;&#x2F;p&gt;
&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Does this mean that we don’t need to practice data quality standards across our entire system? Not necessarily? There should still be processes in place to ensure that minimal data quality is met. That data needs to be available to pull from at any time—however, the degree to which you enforce rigor should be measured based on the specific business objectives.&lt;&#x2F;p&gt;
&lt;p&gt;For instance, let’s say that our data team’s investment house has just acquired a smaller investment firm. Our data team is now responsible for importing the newly acquired data into our data system. The acquired business used an Oracle database and traditional ETL processes. Our company uses an AWS Data Lake architecture. Does it make sense to import the entire data set from Oracle into our DynamoDM? Probably not. We likely just need the elements from the Oracle database that fir our business goals and objectives. Now, it does make sense to store that historical data in a way that we can easily access it if it seems that data could be of value for future business objectives, for instance in the RAW areas of our data in flat files? Probably.&lt;&#x2F;p&gt;
&lt;p&gt;When a data team has a large collection of data and no guidance from the business on how that data provides value to business decisions, it’s understandable that data teams aren’t clear on where they should focus their efforts. Data teams should work closely with the business to understand the business goals and objectives—likewise, the business must set aside time to clarify with the data team where the value resides within the Information System. This will allow those teams to better understand where they should focus their data and intelligence quality efforts.&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Building a Data Quality Management Process that Scales : The Many Paths to Quality Data</title>
        <published>2020-04-22T21:59:37+00:00</published>
        <updated>2022-03-22T07:04:09-05:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2020/04/22/building-a-data-quality-management-process-that-scales-the-many-paths-to-quality-data/"/>
        <id>https://shawndeggans.com/2020/04/22/building-a-data-quality-management-process-that-scales-the-many-paths-to-quality-data/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2020/04/22/building-a-data-quality-management-process-that-scales-the-many-paths-to-quality-data/">&lt;p&gt;This post describes an opinionated method for achieving data quality within a small organization. There are some pre-qualifiers and assumptions made about the data system architecture and the skill set of the team.&lt;&#x2F;p&gt;
&lt;p&gt;One of the biggest struggles for organizations that rely on data is to achieve an acceptable level of data quality. Steps are taken by everyone from front end developers to ETL engineers to capture what is considered, “clean data,” but there are always exceptions that seem to creep into the data that can throw off reporting, damage organizational reputation, or the time of valuable resources as they track down the source of poor information.&lt;&#x2F;p&gt;
&lt;p&gt;The problem of poor data quality has been addressed by many disciplined approaches. If you have poor data quality and you would like to see some improvement to your data, there is hope. Here are just a few of the strategies and techniques organizations use to improve their data quality.&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Acquisition of new data.&lt;&#x2F;li&gt;
&lt;li&gt;Standardization or normalization of new data&lt;&#x2F;li&gt;
&lt;li&gt;Linking records&lt;&#x2F;li&gt;
&lt;li&gt;Data and Schema Integration&lt;&#x2F;li&gt;
&lt;li&gt;Trusted sources&lt;&#x2F;li&gt;
&lt;li&gt;Process control&lt;&#x2F;li&gt;
&lt;li&gt;Process redesign&lt;&#x2F;li&gt;
&lt;li&gt;Error localization and correction&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Acquisition of new data – the overall quality of data can be improved by importing standard data sets that meet a high quality metric. For instance, common lookup values like regional names, postal codes, or weights and measures can be standardized by replacing existing data that does not meet the organization’s quality standards.&lt;&#x2F;p&gt;
&lt;p&gt;Standardization or normalization of new data – data standards are created by an organizational governing body. Those standards are enforced by replacing the non-standard naming with a standard. For example, all instances of ‘Street’, ‘Str’, or ‘st’ are replaced with ST. ‘Texas’ or ‘Tex’, are replaced with TX.&lt;&#x2F;p&gt;
&lt;p&gt;Linked records – this is a little like aggregating similar data into a more robust object, and then using quality data from those objects to inform the quality of other similar objects. This works well when working with an inventory of similar items, like a database of used cars, single-family homes, or SEO data.&lt;&#x2F;p&gt;
&lt;p&gt;Data and Schema Integration – this is probably the most common, where primitive data types are used as evaluation criteria for data inserted into records. Integer values are enforced and must be positive or negative numbers. Some data systems will even allow you to enforce certain data formats to meet organizational policy or business rules.&lt;&#x2F;p&gt;
&lt;p&gt;Trusted Sources – when dealing with multiple sources of data, it’s often difficult to know which one best represents “good data,” so a single source of truth is developed that informs all other data sources of what constitutes quality data. A record from the trusted source is trusted over what should be the same record in another data source.&lt;&#x2F;p&gt;
&lt;p&gt;Process control – is the way most organizations practice maintaining data quality. A gatekeeper is in charge of checking the data quality, such as an internet web form with input validation or an API with a strictly enforced schema. This often works as long as data continues to only flow through the gateways with these protections.&lt;&#x2F;p&gt;
&lt;p&gt;Process redesign – many organizations face such poor data quality that their only recourse to achieve data quality is to refactor their existing architecture and data capture systems in order to prevent the poor data quality. This might mean replacing legacy systems that cannot enforce process control or building a new type of data system that allows the organization to cleanse the data, which leads us to the system I believe is one many organizations need to consider.&lt;&#x2F;p&gt;
&lt;p&gt;Error localization and correction – this system is focused on analyzing the existing data and checking it for quality. The goal is to identify and eliminate data quality issues by first detecting records that do not meet the organizational standard, and then cleansing that data with scripts or other data sources. This is the system I think most enterprises would benefit most from for the following reasons:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Organizations do not always control the data capture applications that input data into their systems&lt;&#x2F;li&gt;
&lt;li&gt;Organizations often inherit data from other organizations, either through acquisitions or through list purchases–think direct mail companies or organizations that make use of public data sources&lt;&#x2F;li&gt;
&lt;li&gt;Correcting the data incrementally allows an organization to trust their data more over time. There are few data quality fixes that occur over night. It usually takes a team and a process, and the error localization and correction process fits well with teams and processes.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Knowing the many ways to achieve data quality can help an organization begin the journey toward cleaner more reliable data sources with their organization.&lt;&#x2F;p&gt;
&lt;p&gt;In my next post, I’ll dive into the many ways that an organization can analyze their existing data and apply metrics that will help establish data quality goals.&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>The Proof of Concept</title>
        <published>2019-11-07T22:51:30+00:00</published>
        <updated>2022-03-22T07:02:23-05:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://shawndeggans.com/2019/11/07/the-proof-of-concept/"/>
        <id>https://shawndeggans.com/2019/11/07/the-proof-of-concept/</id>
        
        <content type="html" xml:base="https://shawndeggans.com/2019/11/07/the-proof-of-concept/">&lt;p&gt;One valuable tool I wish I had realized was at my disposal earlier in my career is the proof of concept. I remember jumping into large projects intent on implementing the latest and greatest library, only to discover that I couldn’t get it to work because I didn’t really grasp how it worked. Having a smaller space to work out the various ways to implement a framework or a new library is probably one of the easier ways to dive in and start getting your feet wet without the pain of an existing application’s overhead.&lt;&#x2F;p&gt;
&lt;p&gt;Ideally the proof of concept is small enough that you can really exercise the functionality you expect, but also non-trivial enough to prove out that it can meet your specific use case. For instance, I’ve bene playing with feature toggling lately because I need to plug it into an existing monolithic application. Feature toggling isn’t necessarily that difficult when you have a clean architecture and you’re starting from scratch, but when you’re approaching an older codebase that has built up over time and was never designed for feature-based development, you don’t want to just go in there without having first worked out a good plan. In my opinion, the best way to do that is with a proof of concept.&lt;&#x2F;p&gt;
&lt;p&gt;Additionally, it can serve as a roadmap or testing ground when you do finally dive into that larger codebase to start implementing the library or framework. If you get stuck in the big codebase, go back to your POC and play with it. Experiment until you can recreate the roadblock, and then using the POC work your way out of it.&lt;&#x2F;p&gt;
&lt;p&gt;A POC is also an excellent way to communicate your technical intent. You can usually get one created in less than a week (sometimes less than a day) and because it’s small and focused, it gives you an excellent basis for discussion with your development team. It’s usually ideal for a team review because it does exactly what you intend, without all the overhead of the existing solution.&lt;&#x2F;p&gt;
&lt;p&gt;Next time you consider trying out a new framework or library in your existing codebase, think about creating a proof of concept. Even if it is a throwaway program, implementing it will add to your technical knowledge and give you something to reference for the future.&lt;&#x2F;p&gt;
&lt;p&gt;Happy coding!&lt;&#x2F;p&gt;
</content>
        
    </entry>
</feed>
