<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Doug Ware on Medium]]></title>
        <description><![CDATA[Stories by Doug Ware on Medium]]></description>
        <link>https://medium.com/@dougware?source=rss-51c143088c3e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*PmOrdFrxzwK4JXCb.</url>
            <title>Stories by Doug Ware on Medium</title>
            <link>https://medium.com/@dougware?source=rss-51c143088c3e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 23:49:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dougware/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Some Real Performance Numbers from Some Real Azure Functions]]></title>
            <link>https://medium.com/@dougware/some-real-performance-numbers-from-some-real-azure-functions-3a11b57e4606?source=rss-51c143088c3e------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a11b57e4606</guid>
            <category><![CDATA[azure-functions]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Doug Ware]]></dc:creator>
            <pubDate>Tue, 09 Jan 2018 21:26:05 GMT</pubDate>
            <atom:updated>2018-01-09T21:26:05.077Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve been using Azure Functions in <a href="https://github.com/InstantQuick/AzureFunctionsForSharePoint">various production systems</a> since late 2016. If you wonder how real apps perform using a consumption plan with auto-scaling (which means pay as you go based on usage), I have some data for you!</p><p><strong>First up</strong> is the most commonly executed function in my busiest production installation of <a href="https://github.com/InstantQuick/AzureFunctionsForSharePoint"><strong>Azure Functions for SharePoint</strong></a>. The <a href="https://afspdocs.blob.core.windows.net/docs/articles/EventDispatch.html">EventDispatch</a> function receives event notifications from various SharePoint Online tenants for a few different apps. When something of interest happens in a SharePoint site, Microsoft sends the EventDispatch function an HTTP POST request. EventDispatch process this message and drops the result into the Service Bus queue for whatever app that created the event receiver subscription.</p><p>Over the last 8 days or so this function was triggered around 40,000 times a day at an error rate of about 4 per day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zPwGsUfQQWBQ5Cctph2E5Q.png" /></figure><p>SharePoint waits for a response from the event receiver for some events and a user experiences this as a delay when this kind of event fires. Therefore EventDispatch needs to run quickly. One thing people new to Azure Functions sometimes notice is with consumption-based function apps is that functions triggered by web requests are slow during requests that cause Azure to load the function. Fortunately, the traffic to this function is steady. This means that the startup operation happens in a tiny percent of requests and performance is excellent.</p><p>The following charts show what normal traffic looks like. Scouts honor! I opened the Application Insights for this app and took a screenshot of the point in time sometimes there is much more traffic and other times there is much less.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BZYZmfpAJ7wu4_65H-Ri_g.png" /></figure><p>This function app and its associated storage account costs me less around $10 a month. The storage account is around 60% of the total cost and there is room for some optimization.</p><p><strong>Next up</strong> is application specific functionality hosted in a different function app in a different Azure tenant. This particular function app is a bit of a grab bag in terms of individual functions and has a lot of room for improvement in a couple of ways, the least of which is the mingling of a long-running process that introduces a few other issues which are a subject for another day and another post.</p><p>The long running process fires periodically based on scheduled message delivery and that schedule causes all of the messages to begin delivery at the same time subject. On top of that, the way I wrote it is dumb and the job takes much longer to execute than it should. So, during the periods when it runs it forces the function app to scale and load on a lot of servers. The numbers are pretty grim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YstWXxMhkvdnsGEwQlEtAw.png" /></figure><p>That high server count represents instances of the app, and it is wasted consumption that costs money. One thing I have noticed is that instances are slow to unwind.</p><p>Nevertheless, this badly written function inside this grab-bag app still only costs around $45 a month. I haven’t fixed it because the cost is too low to justify fixing it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a11b57e4606" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Happiness Through Gratitude]]></title>
            <link>https://medium.com/@dougware/happiness-through-gratitude-157a444b26b2?source=rss-51c143088c3e------2</link>
            <guid isPermaLink="false">https://medium.com/p/157a444b26b2</guid>
            <category><![CDATA[personal-growth]]></category>
            <category><![CDATA[gratitude]]></category>
            <category><![CDATA[happiness]]></category>
            <dc:creator><![CDATA[Doug Ware]]></dc:creator>
            <pubDate>Fri, 20 Jan 2017 18:05:19 GMT</pubDate>
            <atom:updated>2017-01-20T18:05:19.975Z</atom:updated>
            <content:encoded><![CDATA[<p>Donald Trump was sworn in today as the 45th President of the United States. Many people are upset about this. Many people are saying that this is the worst thing that has ever happened. You know it’s true. You’ve heard them. I’ve heard them.</p><p>When I get sad or pessimistic I try to think about all the things I have to be grateful for. I remind myself that I live in a golden age of miracles.</p><p>It always makes me feel better!</p><p>For example…</p><p>When I was a little boy, my mom taught me to say this prayer at bedtime. You’ve probably heard it.</p><blockquote>Now I lay me down to sleep<br>I pray the Lord my soul to keep<br>If I die before I wake<br>I pray the Lord my soul to take</blockquote><p>Think about it. Does it seem strange to you what this prayer is about? It isn’t ‘thanks for my day’ or even ‘watch over me and keep me safe’.</p><p>The Internet says this prayer is over 300 years old. People have been teaching this prayer to their kids for a very long time.</p><p>For most of that 300+ years it wasn’t uncommon at all for a kid to catch a fever and die in the night.</p><p>People taught their little ones this prayer just in case…</p><p>If you have kids, give them a hug. Be grateful you had them in a time that makes you not even think about it and smile.</p><p>You live in a magical fairy tale world where almost all the kids that are born get to grow up and die of old age.</p><p>P.S. The climate is changing! If the weather is crazy where you live right now, take heart! You probably won’t starve to death this year because of it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=157a444b26b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>