<?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[Webmobix - Medium]]></title>
        <description><![CDATA[We Love What We Do - Medium]]></description>
        <link>https://medium.com/webmobix?source=rss----32937c8db048---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Webmobix - Medium</title>
            <link>https://medium.com/webmobix?source=rss----32937c8db048---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 13:44:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/webmobix" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[MCP Embracing APIs, Not Replacing Them]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/webmobix/mcp-embracing-apis-not-replacing-them-8730d9076092?source=rss----32937c8db048---4"><img src="https://cdn-images-1.medium.com/max/2600/1*10w1Rl085BACdXf0xvUDqA.jpeg" width="3353"></a></p><p class="medium-feed-snippet">In the last month, we&#x2019;ve seen a flurry of &#x201C;expert&#x201D; opinions proclaiming the death of APIs due to the emergence of the Model Context&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/webmobix/mcp-embracing-apis-not-replacing-them-8730d9076092?source=rss----32937c8db048---4">Continue reading on Webmobix »</a></p></div>]]></description>
            <link>https://medium.com/webmobix/mcp-embracing-apis-not-replacing-them-8730d9076092?source=rss----32937c8db048---4</link>
            <guid isPermaLink="false">https://medium.com/p/8730d9076092</guid>
            <category><![CDATA[mcps]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Danny Thuering]]></dc:creator>
            <pubDate>Thu, 03 Apr 2025 09:47:55 GMT</pubDate>
            <atom:updated>2025-04-03T07:43:33.764Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Optimizing Web Images with Hugo]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/webmobix/optimizing-web-images-with-hugo-33c5cae2dc9b?source=rss----32937c8db048---4"><img src="https://cdn-images-1.medium.com/max/1792/1*kEUqi4zeSqhNxYvndUG0jg.jpeg" width="1792"></a></p><p class="medium-feed-snippet">Boosting PageSpeed Scores with Art-Directed Images via Hugo Partials</p><p class="medium-feed-link"><a href="https://medium.com/webmobix/optimizing-web-images-with-hugo-33c5cae2dc9b?source=rss----32937c8db048---4">Continue reading on Webmobix »</a></p></div>]]></description>
            <link>https://medium.com/webmobix/optimizing-web-images-with-hugo-33c5cae2dc9b?source=rss----32937c8db048---4</link>
            <guid isPermaLink="false">https://medium.com/p/33c5cae2dc9b</guid>
            <category><![CDATA[hugo]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Danny Thuering]]></dc:creator>
            <pubDate>Sat, 15 Feb 2025 10:19:50 GMT</pubDate>
            <atom:updated>2025-02-15T10:18:53.824Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Asynchronous Kafka Consumption with Confluent and FastAPI]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/webmobix/asynchronous-kafka-consumption-with-confluent-and-fastapi-4262746d7f56?source=rss----32937c8db048---4"><img src="https://cdn-images-1.medium.com/max/1792/1*GycNkByqoWJpqmhg5t5PqA.png" width="1792"></a></p><p class="medium-feed-snippet">Integrating Confluent&#x2019;s Python library for Kafka with the FastAPI web framework.</p><p class="medium-feed-link"><a href="https://medium.com/webmobix/asynchronous-kafka-consumption-with-confluent-and-fastapi-4262746d7f56?source=rss----32937c8db048---4">Continue reading on Webmobix »</a></p></div>]]></description>
            <link>https://medium.com/webmobix/asynchronous-kafka-consumption-with-confluent-and-fastapi-4262746d7f56?source=rss----32937c8db048---4</link>
            <guid isPermaLink="false">https://medium.com/p/4262746d7f56</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[kafka]]></category>
            <dc:creator><![CDATA[Danny Thuering]]></dc:creator>
            <pubDate>Thu, 28 Nov 2024 09:47:58 GMT</pubDate>
            <atom:updated>2024-11-28T09:28:20.122Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Local Development With an Ingress Proxy and Custom DNS on MacOS]]></title>
            <link>https://medium.com/webmobix/local-development-with-an-ingress-proxy-and-custom-dns-on-macos-b7b06edf37ce?source=rss----32937c8db048---4</link>
            <guid isPermaLink="false">https://medium.com/p/b7b06edf37ce</guid>
            <category><![CDATA[proxy]]></category>
            <category><![CDATA[ingress]]></category>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[local]]></category>
            <dc:creator><![CDATA[Danny Thuering]]></dc:creator>
            <pubDate>Sat, 11 May 2024 17:14:41 GMT</pubDate>
            <atom:updated>2024-05-11T17:14:41.296Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="A developer desperately trying to manage port numbers." src="https://cdn-images-1.medium.com/max/1024/1*FUSBbpvNeMMqq94I96kHCQ.jpeg" /></figure><p>As most developers do, I run the services I am working on the loopback interface on different ports and then open them directly in my browser.</p><p>Although we usually run the production environment in Kubernetes, doing so during development on my MacBook Pro is neither convenient nor comfortable. The extra abstraction layer of having an emulated Linux system running takes too many resources over time.</p><p>Still, I wanted a better development experience, and I have finally made some changes, which I will describe here.</p><h3>Benefits</h3><p>Using an Ingress proxy and custom domains can have multiple benefits.</p><h4>Meaningful Domain Names Are More Intuitive</h4><p>Instead of remembering and using arbitrary port numbers, developers can use descriptive and memorable domain names like “api.local.dev” or “frontend.local.dev”. This reduces cognitive load and makes it easier to remember and share URLs within your team.</p><h4>Clearer Structure</h4><p>Meaningful domain names help outline the structure of your application more clearly.</p><h4>Consistent Environments</h4><p>By using domain names and an Ingress proxy, your local environment mirrors the production setup, where services are often split across different domains and subdomains. This similarity helps catch environment-specific bugs early in the development cycle.</p><h4>Configuration Parity</h4><p>It allows you to use the same configuration for routing and other network behaviors both locally and in production, which can significantly reduce deployment issues and DevOps overhead.</p><h4>Flexible Service Architecture</h4><p>Easily manage and test microservices architecture by assigning each service a subdomain, like “orders.local.dev” and “users.local.dev”. This makes it simpler to develop, test, and understand service boundaries.</p><h4>Security Best Practices</h4><p>Implementing TLS (SSL) locally ensures that you can develop and test HTTPS features early, mirroring the secure protocols used in production. This helps in identifying and fixing protocol-related issues without having to deploy first.</p><h4>Trust and Verification</h4><p>Using self-signed certificates or locally trusted Certificate Authorities (CAs) can help simulate the authentication and authorization flows of your services more realistically.</p><h4>Enhanced Security</h4><p>Using an Ingress proxy allows for better isolation between services, reducing the risk of cross-service interference and increasing security by encapsulating service interaction behind defined APIs.</p><h4>Advanced Traffic Management</h4><p>Configure your proxy to route traffic based on URL paths, such as sending requests that start with “/api/” to your backend service and those starting with “/” to your front-end service. This can be particularly useful for single-page applications that rely on API backends.</p><h4>Testing and Mocks</h4><p>Easily point your application to mock or staging backends for testing external integrations without deploying your code, which is perfect for testing error handling and edge cases.</p><h3>The Installation</h3><p>I chose Traefik for the Ingress proxy and CoreDNS for the custom domain names. Both are easy to install through Homebrew and are small binaries with a small footprint when running.</p><p>Installing these applications using Homebrew is straightforward.</p><pre>brew install traefik<br>brew install coredns</pre><h3>The Configuration</h3><h4>The Preparation</h4><p>Homebrew services run daemons using MacOS &quot;launchd&quot;. When you start a daemon with &quot;<strong>brew services start,&quot;</strong> it copies a &quot;<strong>plist&quot;</strong> configuration file to &quot;<strong>~/Library/LaunchAgents&quot;</strong> that configures the daemon.</p><p>To look at these config files, we must find where Homebrew installs.<br>We can look at these environment variables to get the information.</p><pre>~ env | grep HOMEBREW<br>HOMEBREW_PREFIX=/opt/homebrew<br>HOMEBREW_CELLAR=/opt/homebrew/Cellar<br>HOMEBREW_REPOSITORY=/opt/homebrew</pre><p>When I installed the current version, the &quot;plist&quot; file for the CoreDNS was in the folder of the most recent CoreDNS version.</p><pre>cat $HOMEBREW_CELLAR/coredns/1.11.3/homebrew.mxcl.coredns.plist</pre><p>The part we are interested in is the configuration file location for CoreDNS.</p><pre>&lt;array&gt;<br>  &lt;string&gt;/opt/homebrew/opt/coredns/bin/coredns&lt;/string&gt;<br>  &lt;string&gt;-conf&lt;/string&gt;<br>  &lt;string&gt;/opt/homebrew/etc/coredns/Corefile&lt;/string&gt;<br>&lt;/array&gt;</pre><h4>Configuring CoreDNS</h4><p>The subfolder is usually not created, so we ensure it exists before creating an empty file for our configuration.</p><pre>mkdir -p $HOMEBREW_PREFIX/etc/coredns/<br>touch $HOMEBREW_PREFIX/etc/coredns/Corefile</pre><p>Let&#39;s open the config with our favourite file editor and add the following configuration. I want to add one local domain for a project I am working on. I have chosen the &quot;.home.arpa&quot; top-level domain, defined in <a href="https://datatracker.ietf.org/doc/html/rfc8375">RFC8375</a>, for usage on local networks.</p><pre>home.arpa {<br>  file /opt/homebrew/etc/coredns/db.home.arpa<br>  log<br>  errors<br>}</pre><p>The configuration describes how CoreDNS should serve DNS requests for the &quot;home.arpa&quot; domain from the database file in its config folder.</p><p>The database file is a BIND zone file configuring how our local domain is resolved.</p><pre>$ORIGIN home.arpa.<br>$TTL 1h<br>home.arpa. 3600 IN SOA ns.home.arpa. noc.home.arpa. (<br>    2024051001 ; serial<br>    2h         ; refresh<br>    15m        ; retry<br>    8h         ; expire<br>    4m         ; minimum<br>    )<br><br>IN    NS        ns.home.arpa.<br>ns    IN  A     127.0.0.1<br><br>*     IN  A     127.0.0.1<br>      IN AAAA  ::1</pre><p>I will link a more detailed description of below. We define that all unterminated hostnames should have our domain &quot;home.arpa&quot; added. Then we have a Start of Authority record and a nameserver configuration, and then we define that any host should resolve to the localhost IP as IPv4 and IPv6.</p><p>Finally, we can start CoreDNS.</p><pre>sudo brew services start coredns</pre><p>I am using &quot;sudo&quot; here so that CoreDNS starts automatically when the system is startup.</p><h4>Testing the Name Resolution</h4><p>I am using the dig utility to query our local server for the domain &quot;test.home.arpa&quot; and receive the following answer.</p><pre>~ dig @localhost test.home.arpa<br><br>; &lt;&lt;&gt;&gt; DiG 9.10.6 &lt;&lt;&gt;&gt; @localhost test.home.arpa<br>; (2 servers found)<br>;; global options: +cmd<br>;; Got answer:<br>;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 42696<br>;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1<br>;; WARNING: recursion requested but not available<br><br>;; OPT PSEUDOSECTION:<br>; EDNS: version: 0, flags:; udp: 4096<br>;; QUESTION SECTION:<br>;test.home.arpa.   IN A<br><br>;; ANSWER SECTION:<br>test.home.arpa.  3600 IN A 127.0.0.1<br><br>;; Query time: 3 msec<br>;; SERVER: ::1#53(::1)<br>;; WHEN: Sat May 11 14:06:23 CEST 2024<br>;; MSG SIZE  rcvd: 73</pre><p>The subdomain &quot;test.home.arpa&quot; resolves to our local host address as expected.</p><h4>Enabling the MacOS Resolver</h4><p>When testing the name resolution for my custom domain, I pointed dig explicitly to use localhost as the DNS server. That is not possible when using a browser. Adding our nameserver to the MacOS network configuration is possible, but that has several drawbacks.<br>We have also not configured CoreDNS to forward requests to unknown domains to external servers.<br>I also often switch networks, and some use a landing page where I have to log in before I get access. These usually won&#39;t work when a custom nameserver entry is used, as they use private networks and their DNS server.</p><p>A better way is to use a custom resolver setting. The <a href="http://manpagez.com/man/5/resolver/">manpage</a> has more about it.</p><p>The resolver configurations live in the &quot;/etc/resolver&quot; folder. That folder might not exist, so we must create it as the root user. I am also making an empty configuration file in my home folder for easy editing.</p><pre>sudo mkdir /etc/resolver<br>touch ~/home.arpa</pre><p>Let&#39;s open the configuration file in our favourite editor and add the following content.</p><pre>nameserver 127.0.0.1</pre><p>There is no domain entry so that the filename will be used as the domain. It tells the resolver to use the nameserver at localhost when encountering a domain ending in home.arpa.</p><p>I move the file to its location. To let the resolver refresh, I have to send the HUP signal to the mDNSResponder daemon, and then we can check its configuration.</p><pre>sudo mv ~/home.arpa /etc/resolver/<br>sudo killall -HUP mDNSResponder<br>scutil --dns</pre><p>We will get a long list, including the setting for the home.arpa domain.</p><pre>resolver #8<br>  domain   : home.arpa<br>  search domain[0] : home.arpa<br>  nameserver[0] : 127.0.0.1<br>  flags    : Request A records, Request AAAA records<br>  reach    : 0x00030002 (Reachable,Local Address,Directly Reachable Address)</pre><p>Unfortunately, the dig utility is unaware of the MacOS resolver, but we can use a native tool to test if our name resolution works.</p><pre>~ dscacheutil -q host -a name test.home.arpa<br>name: test.home.arpa<br>ipv6_address: ::1<br><br>name: test.home.arpa<br>ip_address: 127.0.0.1</pre><h4>Configuring Traefik</h4><p>First, I check the launch daemon config file for the location of the config file for Traefik.</p><pre>cat $HOMEBREW_CELLAR/traefik/3.0.0/homebrew.mxcl.traefik.plist</pre><p>The relevant section is this.</p><pre> &lt;array&gt;<br>    &lt;string&gt;/opt/homebrew/opt/traefik/bin/traefik&lt;/string&gt;<br>    &lt;string&gt;--configfile=/opt/homebrew/etc/traefik/traefik.toml&lt;/string&gt;<br> &lt;/array&gt;</pre><p>Like before, I first ensure the directory exists and then create an empty file.</p><pre>mkdir -p /opt/homebrew/etc/traefik<br>touch /opt/homebrew/etc/traefik/traefik.toml</pre><p>A basic configuration for Traefik serving HTTP looks like this.</p><pre>[global]<br>  checkNewVersion = false<br>  sendAnonymousUsage = true<br><br>[api]<br>  insecure = true<br>  dashboard = true<br><br>[entryPoints]<br>  [entryPoints.web]<br>    address = &quot;:80/tcp&quot;<br>    reusePort = true<br>    asDefault = true<br><br>[providers]<br>  [providers.file]<br>    filename = &quot;/opt/homebrew/etc/traefik/traefik-static.yaml&quot;<br>    watch = true</pre><p>Here I define a web entry point that will listen on port 80. The traefik-static.yaml file defines all configurations for routes and services. Changes in that file will be detected and reloaded automatically. Only changes in this config file require restarting Traefik.</p><p>I can now add the empty configuration for the services and start Traefik.</p><pre>/opt/homebrew/etc/traefik/traefik-static.yaml<br>brew services start traefik</pre><p>A configuration can look like this, assuming an application runs on localhost port 3000.</p><pre>http:<br>  routers:<br>    test-backend:<br>      rule: &quot;Host(`test.home.arpa`) &amp;&amp; PathPrefix(`/`) &quot;<br>      service: test-backend<br>      entryPoints: web<br>  services:<br>    test-backend:<br>      loadBalancer:<br>        servers:<br>          - url: &quot;http://127.0.0.1:3000/&quot;</pre><p>Here, a router is defined to forward all traffic from the web entry point with a Host header test.home.arpa to the backend listening on port 3000.</p><p>Traefik should automatically detect the change, and the application should now respond when <a href="http://test.home.arpa/">http://test.home.arpa</a> is opened in the browser.</p><h3>Conclusion</h3><p>While I still have to run all services on different ports on localhost, the actual access in the browser and the configuration of the single services is much more aligned to the production environment.</p><p>Using the single Ingress service allows setting up TLS and the routing of external calls from webhooks trough services like ngrok without having to configure separate endpoints.</p><p>I will explore these options in later articles.</p><p>This was my first technical article and I hope you could follow my thoughts easily and it was helpful. I am looking forward to get feedback from you.</p><p>I am working in a software development company that is currently build a tool to manage requirements. Go and check it out at <a href="https://vanillaround.com/">https://vanillaround.com</a>.</p><h3>Links</h3><ul><li>Traefik Router Configuration: <a href="https://doc.traefik.io/traefik/routing/routers/">https://doc.traefik.io/traefik/routing/routers/</a></li><li>Traefik Services Configuration:<br><a href="https://doc.traefik.io/traefik/routing/services/">https://doc.traefik.io/traefik/routing/services/</a></li><li>CoreDNS Manual:<br><a href="https://coredns.io/manual/toc/">https://coredns.io/manual/toc/</a></li><li>MacOS Resolver Man Page:<br><a href="https://www.manpagez.com/man/5/resolver/">https://www.manpagez.com/man/5/resolver/</a></li><li>MacOS dscacheutil Man Page:<br><a href="https://www.manpagez.com/man/1/dscacheutil/">https://www.manpagez.com/man/1/dscacheutil/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7b06edf37ce" width="1" height="1" alt=""><hr><p><a href="https://medium.com/webmobix/local-development-with-an-ingress-proxy-and-custom-dns-on-macos-b7b06edf37ce">Local Development With an Ingress Proxy and Custom DNS on MacOS</a> was originally published in <a href="https://medium.com/webmobix">Webmobix</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>