<?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 Abhilash Bandari on Medium]]></title>
        <description><![CDATA[Stories by Abhilash Bandari on Medium]]></description>
        <link>https://medium.com/@bandariabhilash0?source=rss-9666ed135d8b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*SKlorbd0Tv8S8wFt145qsg.jpeg</url>
            <title>Stories by Abhilash Bandari on Medium</title>
            <link>https://medium.com/@bandariabhilash0?source=rss-9666ed135d8b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 18:47:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bandariabhilash0/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[Every App Has an Address: A Keyboard-Driven Mac for Production Incidents]]></title>
            <link>https://medium.com/@bandariabhilash0/every-app-has-an-address-a-keyboard-driven-mac-for-production-incidents-7c1a524118d1?source=rss-9666ed135d8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c1a524118d1</guid>
            <category><![CDATA[customisation]]></category>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[macos]]></category>
            <dc:creator><![CDATA[Abhilash Bandari]]></dc:creator>
            <pubDate>Mon, 12 Oct 2026 00:00:12 GMT</pubDate>
            <atom:updated>2026-10-14T13:14:10.143Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’ve been on a production incident call, you know the moment. Someone says “can you pull up the error rate?” and you’re sharing your screen. You press ⌘ Tab a few times, land on the wrong browser, open Mission Control, squint at fourteen thumbnails, and finally find the dashboard behind a Slack window. It takes maybe ten seconds. It feels like a minute, because six people watched you do it.</p><p>The time matters less than the attention. On an incident call, your attention belongs to the problem: what changed, what’s failing, and what to try next. Every moment spent finding a window is a moment not spent on any of that.</p><p>So I set up my Mac so I never have to look for a window. Every app has a fixed place, every place is one keystroke away, and nothing overlaps. This post walks through the setup, shows it on a mock incident, and covers what it took to make it behave on every MacBook, not only mine.</p><h3>What the setup is</h3><p>There are two pieces, both free and open source:</p><p><a href="https://github.com/nikitabobko/AeroSpace">AeroSpace</a> is a tiling window manager. Windows don’t float around; they split the screen between them automatically. You move between them, and between workspaces, with the keyboard. It also launches my most-used apps from hotkeys, so there’s no separate hotkey daemon to install or give permissions to.</p><p><a href="https://github.com/FelixKratz/SketchyBar">SketchyBar</a> replaces the macOS menu bar with one I can configure. It shows the workspaces, which apps are on each one, and the current app. Battery, volume and Wi-Fi sit on the right.</p><p>A single install.sh installs both with Homebrew, links the configs into~/.config with GNU Stow, and undoes everything if any step fails.</p><h3>Every app has an address</h3><p>Most of the speed comes from one simple rule: each app always opens on the same workspace. Terminal goes to 1, Arc to 2, Brave to 3, Slack to 4, Postman to 7. It doesn’t matter how I open the app; AeroSpace sees the new window and moves it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*n5IhrjE48oR5-TX1.png" /></figure><p>Because the places never change, you stop thinking about them. After a while, “show the logs” becomes ⌥ 1 without any decision in between. That is the difference from ⌘ Tab: its order depends on what you used last, so you have to look every time.</p><p>Try it here. Click the demo (or tab to it), then press ⌥ 1 to ⌥ 7:</p><h3>What it looks like on a call</h3><p>Here is the real thing: a mock incident on my machine, recorded with a script that runs the same commands the shortcuts trigger. Before each step, a banner under the bar shows the keys being pressed. The logs, metrics and deploy history are synthetic; I’m not putting a real incident on the internet.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FK54KrSJ1gv4%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DK54KrSJ1gv4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FK54KrSJ1gv4%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/2372b3e6f759bda56a4618b12bf1512f/href">https://medium.com/media/2372b3e6f759bda56a4618b12bf1512f/href</a></iframe><p>About seventy-five seconds of an incident without the mouse: moving between panes, stacking and overlapping them, every app’s workspace, the app launchers, and back to the logs after the rollback.</p><p>A few things that help most when other people are watching:</p><p><strong>Nothing overlaps.</strong> Tiled windows can’t hide behind each other, so when you share your screen, everyone sees the whole log and the whole graph. No one has to say “scroll up, it’s behind the other window”.</p><p><strong>Splits follow the conversation.</strong> Logs, metrics and deploy history share workspace 1, and ⌥ H/J/K/L moves between them. When a line in the logs needs to be wider, ⌥ / stacks them instead of putting them side by side. When you only want one at a time, ⌥ , overlaps them and the same keys flip through the stack.</p><p><strong>Going back is one key.</strong> ⌥ Tab returns to the previous workspace. The most common move on a call is checking the chat and returning to the dashboard, and that is now two key presses with no looking.</p><p><strong>Apps are one key away.</strong> ⌥ A, ⌥ B, ⌥ S and ⌥ P open Arc, Brave, Slack and Postman from anywhere, and the window rules take you straight to their workspace.</p><p><strong>Presenting is one key too.</strong> ⌥ ⇧ Tab sends the current workspace to the other monitor, so the dashboard you&#39;re explaining can go on the big screen while the terminal stays on the laptop.</p><h3>The bar is part of it</h3><p>AeroSpace and SketchyBar are separate programs, so they need a way to talk. When the workspace changes, AeroSpace runs a small command that tells SketchyBar, which then highlights the new workspace and updates the app icons for each one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9hlTIwffZI4eWEPe.png" /></figure><p>The bar also stays quiet unless something needs you. The battery icon only appears below 60%, and Wi-Fi turns grey when you’re offline. During an incident, the last thing I need is a status bar asking for attention it doesn’t deserve.</p><h3>Making it work on every MacBook</h3><p>My first version worked on exactly one laptop: mine. Getting it to work across the MacBook range took more work than writing it did.</p><p><strong>The notch.</strong> MacBooks with a notch keep a strip at the top of the screen that windows can’t use. MacBooks without one, and external monitors, don’t. One fixed gap either hid windows under the bar on one display or left an empty band on the other. AeroSpace allows a different gap for each monitor, so the built-in display and external monitors now get their own values. The installer checks whether your MacBook has a notch and tells you if you need to change one number.</p><p><strong>Intel and Apple Silicon.</strong> Homebrew installs to/opt/homebrew on Apple Silicon and /usr/local on Intel. Apps opened from Finder also get a minimal PATH, so AeroSpace now adds both locations itself instead of assuming one.</p><p><strong>Wi-Fi names.</strong> Since macOS 14.4, scripts without Location Services access can’t read the Wi-Fi network name. The old approach reported you as disconnected while you were online. The bar now goes by whether you have an IP address and finds the Wi-Fi interface instead of assuming en0.</p><p><strong>The bar was leaking processes.</strong> While testing, I found <strong>525 stuck processes</strong> on my own machine. Every app switch made each of the seven workspace items ask AeroSpace for its windows, and now and then the call never returned. A productivity setup with a process leak is a special kind of irony. Now one script updates all seven items with one query, the query has a two-second timeout, and only one update can run at a time.</p><h3>What it costs</h3><p>It isn’t free, and I’d rather say so up front:</p><p><strong>The first few days are slower.</strong> Your hands still reach for the mouse and ⌘ Tab. It&#39;s worth practising on a quiet day, not discovering the shortcuts during an outage.</p><p><strong>Option is taken.</strong> On German, Nordic and some other keyboard layouts, ⌥ plus a letter types characters like @ and [. If you need those, change the modifier for the keys you type with.</p><p><strong>Some apps don’t like tiling.</strong> Small dialogs and some settings windows look odd when tiled. ⌥ ⇧ Space lets a window float.</p><p><strong>Permissions and versions.</strong> AeroSpace needs Accessibility access and macOS 13 or newer.</p><h3>Try it</h3><pre>git clone https://github.com/bandari-abhilash/dotfiles.git cd dotfiles ./install.sh</pre><p>The installer tells you what it’s doing, pauses at the one step that needs you (the Accessibility permission), and rolls everything back if a step fails. ./uninstall.sh removes it all again. Change the app list in aerospace.toml to match your own: the specific apps matter less than each one having a fixed place.</p><p>None of this will fix an outage for you. What it can do is make sure that, while you’re fixing one, your laptop isn’t one more thing in the way.</p><p>The configs, the installer and the demo recording script are all on GitHub: <a href="https://github.com/bandari-abhilash/dotfiles">github.com/bandari-abhilash/dotfiles</a>. If it breaks on your Mac, open an issue and include your model. That’s exactly the kind of bug I want to hear about.</p><p><em>Originally published at </em><a href="https://bandariabhilash.com/blog/keyboard-driven-mac.html"><em>https://bandariabhilash.com</em></a><em> on October 12, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c1a524118d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Two Formats, One Language: Decoding LZO and FAST Market Data in Pure Go]]></title>
            <link>https://medium.com/@bandariabhilash0/two-formats-one-language-decoding-lzo-and-fast-market-data-in-pure-go-b8e301174cf3?source=rss-9666ed135d8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8e301174cf3</guid>
            <category><![CDATA[go]]></category>
            <category><![CDATA[fast]]></category>
            <category><![CDATA[lzo]]></category>
            <category><![CDATA[broadcasting]]></category>
            <category><![CDATA[trading]]></category>
            <dc:creator><![CDATA[Abhilash Bandari]]></dc:creator>
            <pubDate>Fri, 09 Oct 2026 00:00:45 GMT</pubDate>
            <atom:updated>2026-10-09T20:20:54.579Z</atom:updated>
            <content:encoded><![CDATA[<p>Two small decoders, the details that are easy to get almost right, and the benchmarks where C still wins.</p><p>When I joined my current organization and started working with exchange market feeds, different exchanges gave me different problems: one feed needed LZO decompression; another needed FAST decoding. I couldn’t find Go libraries I was comfortable using directly in either feed path. The working solution was a .NET application running on Windows; moving the work into Go appeared to mean wrapping C code with cgo or writing the missing pieces myself. The exchanges kept sending packets either way. Very considerate of them.</p><p>I chose to write them. In our deployment, the feed-processing workload that had used <strong>about 32 CPU cores now uses under one core</strong>, with <strong>RAM below 2 GB</strong>. Those are observations from our system and workload; the standalone decoder benchmarks later in this article measure something different. The production change was large enough to change how we run the feeds.</p><p>The two packages are <a href="https://github.com/bandari-abhilash/fastfix">fastfix</a>, for decoding FAST messages, and <a href="https://github.com/bandari-abhilash/LZO-GO">lzo1z</a>, for LZO decompression. They’re small pieces of different feed handlers, but if either gets a value wrong, everything built on top of it starts from the wrong number.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SKP6nk8FAz4uLjPt.png" /></figure><h3>The gap I kept running into</h3><p>FAST is a compact way to send market data. Instead of repeating every field in every message, it can send a change from a previous value or leave a value implied. It saves bandwidth and gives the decoder some homework: remember the right previous values. The feed’s XML templates also define what those bytes mean.</p><p>On the LZO feed, decompression unpacks a block before the message can be read. This package handles the LZO1Z variant. It is easy to mistake that for the better known LZO1X variant because the formats are closely related. They are not interchangeable. A decoder can even return plausible looking bytes that are wrong, which is the worst kind of wrong: the confident kind.</p><p>Both packages use only the Go standard library. I can inspect the decoding path, test it against encoded data, and build the feed handlers without a C library in the toolchain. Fewer moving parts, fewer surprises during market hours, when customers are watching every tick.</p><h3>Getting LZO decompression right</h3><p>The package is deliberately narrow: it decompresses; it does not compress. The important detail is a match offset that differs from LZO1X. In the source, the LZO1Z value is 0x0700, where LZO1X uses 0x0800. That small difference is enough to make the wrong decoder unsafe to trust for this data. A lot of trouble for a number that fits in one line of code.</p><p>I checked the Go port against compressed vectors generated by the original C library. The tests also cut a valid compressed input at every possible byte and require each incomplete version to fail. If a caller supplies too small an output buffer, the package returns an error instead of writing past it.</p><p>Integration is one call into a buffer you own:</p><pre>import lzo1z &quot;github.com/bandari-abhilash/LZO-GO&quot; <br>dst := make([]byte, 64*1024) <br>// LZO has no length header; size it from your feed&#39;s framing <br>n, err := lzo1z.Decompress(block, dst) <br>if err != nil { <br>  return err // truncated, corrupt, or dst too small; never a silent overrun <br>} <br>handle(dst[:n])</pre><p>Go’s own benchmark, go test -bench . -benchmem on one Apple M5 core, puts the package at roughly 2.5 to 3.2 GB/s. The garbage collector gets the day off: zero allocations per call.</p><pre>BenchmarkDecompress/text-10 2512 ns/op 3181 MB/s 0 B/op 0 allocs/op <br>BenchmarkDecompress/records-10 9327 ns/op 2487 MB/s 0 B/op 0 allocs/op <br>BenchmarkDecompress/large-10 19268 ns/op 3114 MB/s 0 B/op 0 allocs/op</pre><p>Speed still matters less to me than knowing which variant the data actually uses and getting a clear error on damaged input. Fast and wrong is just a quicker way to be wrong.</p><p>I also ran the same LZO1Z blocks through three decoders on an Apple M5: this Go package, Java’s lzo-java, and C’s liblzo2. Each harness checked the complete decompressed output against the original bytes before timing. Higher throughput is faster. Spoiler: Go did not win this one.</p><p>Tables are fine, but tech Twitter has recently agreed that the only honest way to judge performance is to watch balls go left to right. Who am I to argue with a consensus? So I added some balls. <strong>Same numbers, more drama.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R9lDRg5TxLPKSXQ8tA3aUQ.gif" /></figure><p>These are medians of five 300 ms timed runs per decoder, after a 1.5-second warm-up, using preallocated output buffers and the repository’s test vectors. The C and Java harnesses used their safe LZO1Z decoders. On this machine, C was about 3.8 times as fast as Go on the records block; Java was about 1.5 times as fast. The result depends on the input and runtime, as the other two rows show. The <a href="https://bandariabhilash.com/blog/benchmarks/lzo1z/README.md">harnesses and exact measurements</a> are available for inspection.</p><p>Before anyone files Go under “slow”: it doesn’t have to be this far behind. The package is still a direct, untuned port of the C decoder. A CPU profile showed about 70% of its time going to one loop that copies each back-reference one byte at a time, which is roughly like moving house one spoon per trip. liblzo2 copies those 4 or 8 bytes at a time when it can. Chunked copies and fewer bounds checks are next on the <a href="https://github.com/bandari-abhilash/LZO-GO#todo-performance-work">package’s to-do list</a>, and I’ll update these numbers when they land.</p><p>There is a licensing constraint worth seeing before adoption: this port is <a href="https://github.com/bandari-abhilash/LZO-GO/blob/master/LICENSE">GPL-2.0-or-later</a> because it derives from the original LZO code. Check whether that license fits how you plan to distribute your software. Better to read it now than to have a lawyer read it to you later.</p><h3>The FAST detail that can quietly change a price</h3><p>The hard part of a stateful format is deciding when its memory should end. Many UDP market data feeds encode each packet independently. For those feeds, fastfix needs dec.Ctx.Reset() at the packet boundary. Other feeds can carry state across messages, so the feed specification decides when to reset.</p><p>In code, the reset is one line, and it is the line that matters:</p><pre>import &quot;github.com/bandari-abhilash/fastfix&quot; <br>reg, err := fastfix.LoadTemplates(templatesXML) <br>// io.Reader with the feed&#39;s XML templates <br>if err != nil { <br>  return err <br>} <br>dec := fastfix.NewDecoder(reg) <br>for pkt := range packets { <br>  dec.Ctx.Reset() // per-packet feeds: every datagram starts fresh <br>  msgs, err := dec.DecodePacket(pkt) <br>  if err != nil { <br>      return err <br>  } <br>for _, m := range msgs { <br>  px, ok := m.Int(&quot;MDEntryPx&quot;) // ok is false if absent or fractional // ... <br> } <br>}</pre><p>If you keep an old value when a packet expects a fresh start, the decoder may still produce a number. It just won’t be the number you asked for. That is why the repository tests both cases: repeated decoding without a reset changes the result, and decoding after the proper reset restores the expected value. It is a small test for a costly class of mistake.</p><p>I also wanted price handling to be explicit. FAST decimals arrive as a whole number and an exponent; different pairs can represent the same price. fastfix keeps that decimal representation, and its integer accessor refuses a value with a fractional part rather than silently dropping it. For market data, a visible refusal is easier to deal with than a price that has been quietly changed.</p><p>The package loads FAST templates at runtime and decodes common field types, groups, and sequences. It can also encode some session messages. Encoding is not yet complete for every FAST operator or structure; the <a href="https://github.com/bandari-abhilash/fastfix#not-implemented">known gaps are listed</a>.</p><h3>The benchmark, including the part where C++ wins</h3><p>I compared fastfix with other implementations using one 174-byte market data packet containing ten book entries. Each implementation decoded the same bytes, reset its dictionary for each packet, read the prices and sizes, and had to match a checksum. On one Apple M5 core, fastfix took 2.55 microseconds per packet. The measured goFAST paths took 2.92 and 5.22 microseconds. OpenFAST in Java took 2.41 microseconds. mFAST in C++ took 0.27 microseconds with generated code, or 0.67 microseconds with runtime templates. That’s roughly 4 to 9 times as fast as fastfix on this packet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GTUNlo_Y1Qpnam68lNGWUw.gif" /></figure><p>That is one workload, so treat it as a comparison of this packet and these harnesses. The harnesses and conditions are in the <a href="https://github.com/bandari-abhilash/fastfix/tree/master/benchmarks">benchmark directory</a> so the comparison can be examined and repeated. The result gave me a useful next task: fastfix currently builds fresh maps for decoded messages, allocating about 5.3 KB per packet in this test, which keeps the garbage collector busier than I’d like. I’m working on reducing those allocations now. There is room to make fastfix faster, especially when several feeds are running at once; the C++ result gives me a useful target, not a speedup I can promise yet.</p><h3>Why I published them</h3><p>Neither package is a complete market data stack. They solve two specific problems I encountered while building one. I published them because these details are easy to get almost right, and “almost” is a bad place to be with prices.</p><p>If you’re working with a feed that uses FAST or LZO compression, start with its specification and check which LZO variant it uses. Then look at the packages: <a href="https://github.com/bandari-abhilash/fastfix">fastfix</a> and <a href="https://github.com/bandari-abhilash/LZO-GO">lzo1z</a>. If you have a packet they decode incorrectly, I’d especially like to see it. A real counterexample is more useful than another flattering benchmark.</p><p>I used AI while building them, especially to move through implementation and documentation faster. I still had to write most of the code and check the output against reference data and tests. With market data, code that compiles is a long way from a price you can trust.</p><p>Both repositories, and the rest of my work, are on GitHub: <a href="https://github.com/bandari-abhilash">github.com/bandari-abhilash</a>. Stars are appreciated; bug reports with real packets even more so.</p><p><em>Originally published at </em><a href="https://bandariabhilash.com/blog/two-go-libraries.html"><em>https://bandariabhilash.com</em></a><em> on October 9, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8e301174cf3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Network Traffic Monitoring: From Zero to Hero in 10 Minutes]]></title>
            <link>https://medium.com/@bandariabhilash0/network-traffic-monitoring-from-zero-to-hero-in-10-minutes-3dfbd53ea9e9?source=rss-9666ed135d8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/3dfbd53ea9e9</guid>
            <category><![CDATA[go]]></category>
            <category><![CDATA[monitoring]]></category>
            <category><![CDATA[tcpdump]]></category>
            <category><![CDATA[multicast]]></category>
            <category><![CDATA[network-traffic]]></category>
            <dc:creator><![CDATA[Abhilash Bandari]]></dc:creator>
            <pubDate>Sun, 09 Nov 2025 14:14:01 GMT</pubDate>
            <atom:updated>2025-11-09T19:09:06.909Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Network Traffic Monitoring: From Zero to Hero in 10 Minutes</strong></p><p>In the world of network engineering, understanding traffic flow is like being a detective in a digital city. Every packet tells a story - where it came from, where it&#39;s going, and what secrets it might be carrying. All the packets sent over UDP might not reach it’s destination(Sad story of UDP).Today, we&#39;re going to explore how i built a traffic monitoring tool which will help you in quantifying UDP’s packet drop sadness.</p><p><strong>The Challenge: Making the Invisible Visible</strong></p><p>Traditional network tools like tcpdump/Wireshark are powerful but have a steep learning curve and limited functionality. They show you raw packets, but making sense of them requires expertise in network protocols and command-line wizardry. They lack granular level monitoring. What if you could have a tool that not only captures traffic but presents it in a way that’s immediately useful?</p><p><strong>Solution: nwdump</strong></p><p>I&#39;ve built `nwdump`, a modern Go-based alternative to tcpdump that bridges the gap between raw packet capture and actionable insights. Here&#39;s what makes it special:</p><ol><li>You can monitor any interface on your system. It is straight forward for linux and macos but Windows being Windows makes it difficult. But it is possible to monitor for an interface using Pcap.</li><li>Same usage and functionality across all different operating systems(Windows,Linux,Macos) and for architectures(AMD64 and ARM64)</li><li>Very lightweight and not cpu intensive. So, it can be run on production environments without any second thoughts.</li></ol><p><strong>Protocol Support</strong><br>- **TCP &amp; UDP**: Monitors both connection-oriented and connectionless protocols<br>- **Multicast &amp; Unicast**: Handles both traffic distribution patterns<br>- **Port-based filtering**: Focuses on specific ports you care about</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QyYmRNL5B5Yglbd_LA6Pjw.jpeg" /><figcaption>Sample image of the nwdump counting packets on a destination instance in real time on a specified multicast address and reporting them</figcaption></figure><p><strong>Why This Matters</strong></p><p>1. **Cross-Platform Compatibility**: Users on any OS can get native binaries<br>2. **Protocol Flexibility**: Supporting both TCP and UDP makes the tool versatile<br>3. **User Experience**: Clear logging and reporting features make it accessible</p><p><strong># The Future</strong></p><p><strong>Package Management</strong><br>I&#39;m working on creating proper RPM and DEB packages for Linux distributions. Imagine being able to install with:</p><pre>sudo apt install nwdump<br># or<br>sudo yum install nwdump</pre><p><strong>Advanced Features</strong><br>- **BPF filters**: For precise packet capture<br>- **Traffic analysis**: Protocol-specific statistics<br>- **Alerting**: Configurable thresholds and notifications</p><p><strong>The Punchline</strong></p><p>Network traffic monitoring doesn&#39;t have to be complicated. With the right tools and approach, it can be as simple as:</p><p>1. **Capture** the right data<br>2. **Present** it clearly<br>3. **Act** on insights</p><p>Whether you&#39;re debugging a microservice, monitoring a corporate network, or just curious about what your smart TV is doing - understanding traffic is the first step to network enlightenment.</p><p>And remember: in the world of packets, it&#39;s better to be the detective than the packet.</p><p>If you want to add some more features to this, you can contribute or raise an issue to the following repo.</p><p><a href="https://github.com/bandari-abhilash/connection-dump">https://github.com/bandari-abhilash/connection-dump</a></p><p>---</p><p>*P.S. If you&#39;re wondering why your network is slow, it might be all those cat videos your device is downloading in the background. Just saying.*</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3dfbd53ea9e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Hidden Landmines: Configuration Pitfalls That Will Destroy Your Solr Production Setup]]></title>
            <link>https://medium.com/@bandariabhilash0/the-hidden-landmines-configuration-pitfalls-that-will-destroy-your-solr-production-setup-4664e46c0c97?source=rss-9666ed135d8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/4664e46c0c97</guid>
            <category><![CDATA[apache-solr]]></category>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[redis]]></category>
            <dc:creator><![CDATA[Abhilash Bandari]]></dc:creator>
            <pubDate>Sat, 16 Aug 2025 15:46:34 GMT</pubDate>
            <atom:updated>2025-08-16T15:47:36.819Z</atom:updated>
            <content:encoded><![CDATA[<p>I’d like to start with an important note that I’ve learned the hard way, so you don’t have to.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/1*MJRD0uufidQOOYCCUHwWqw.png" /></figure><pre><strong>DO NOT RESTART/START YOUR PostgreSQL/SOLR SERVICE AS A ROOT USER</strong>. <br>I repeat do not do it.</pre><p>PostgreSQL creates a new user(postgres) after installation and<br>Solr creates a new user(solr) for running solr.</p><p>I am talking about the installations in LINUX, if you are using Solr/PostgreSQL in windows for production, i only have one question for you. Why?</p><p>Now with that friendly heads up out of the way, let’s talk more about solr and the common pitfalls you might come across while working with Solr and also for PostgreSQL . Before we dive into the problems, let’s briefly touch on why Solr might be the right choice for your project.</p><p><strong>WHY SOLR?</strong></p><ol><li>It has advanced query capabilities and customisation.</li><li>Very strong performance for read heavy applications</li><li>It offers more control, users can fine-tune indexing and querying to meet specific requirements. (If you can manage not screwing up solrconfig.xml of different cores, by cores i mean collections)</li><li>It’s not resource intensive, atleast in my case. I have seen people running their prod solr search in 1CPU and 2 GB RAM.</li></ol><h4>Solr Configuration Pitfalls</h4><ol><li><strong>Managed vs Classic Schema Confusion</strong>: One of the most common pitfalls occurs when noob devs like me and you attempt to use schema.xml with Solr 5.x+ without understanding that Solr defaults to managed schema mode. When you modify schema.xml directly but have &lt;schemaFactory class=&quot;ManagedIndexSchemaFactory&quot;/&gt; in your solrconfig.xml, Solr ignores your changes and uses the managed-schema file instead. The fix requires switching to &lt;schemaFactory class=&quot;ClassicIndexSchemaFactory&quot;/&gt; in your configuration.</li><li><strong>Missing Configuration Files</strong>: <em>The cryptic “Severe errors in solr configuration” error typically stems from missing or misplaced </em><em>solrconfig.xml files</em>. Solr expects these files in the solr/CORE_NAME/conf/ directory, and any deviation causes startup failures</li><li><strong>Soft Commit vs Hard Commit Confusion : </strong>Do not set soft commits too frequently (like every second). They still invalidate top-level caches and trigger autowarming, which can worsen performance. The optimal pattern is soft commits every 2 minutes and hard commits every 5 minutes. (For in detail insights, refer <a href="https://www.searchstax.com/blog/5-ways-to-optimize-your-solr-search-performance">link</a>)</li><li><strong>Collection Creation Oversight :</strong> I am guilty of this<strong>, </strong>it’s a common mistake which slips devs mind. Starting a solr in production without actually creating the expected cores/collections. The error “Can’t find resource ‘solrconfig.xml’ often means the collection was never created.<br>To create a solr core/collection, use the following command. Make sure you are in bin folder of Solr.</li></ol><pre>./solr create -c collection_name</pre><p>5. Do not take a backup of the solr instance while it’s running without enabling swap memory on your instance. This might crash your instance if enough CPU/RAM isn’t available</p><p>Installing and setting up solr is always a tedious process, as it involves in manual changes in solrconfig.xml of each collection/core. I’ve written a bash script that takes a backup of the existing Solr service (including its data), zips it, and uploads it to s3. So setting up a new solr instance isn’t a hassle.</p><p>The repo also contains a migration/backup script for Redis. You can checkout the following repo or go ahead and generate some slop using Claude or Gemini.</p><p><a href="https://github.com/bandari-abhilash/migration-scripts">https://github.com/bandari-abhilash/migration-scripts</a></p><p>Thanks for reading, if you have any suggestions, do let me know in the comments or DM me on <a href="https://www.linkedin.com/in/abhilash-bandari/">LinkedIn</a></p><p>Also, if you want to run postgreSQL optimally, don’t do the following things.<br>Here’s an interesting read <a href="https://byteofdev.com/posts/making-postgres-slow/">https://byteofdev.com/posts/making-postgres-slow/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4664e46c0c97" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker and Multicast in AWS: A Deep Dive into Network Broadcasting ]]></title>
            <link>https://medium.com/@bandariabhilash0/docker-and-multicast-in-aws-a-deep-dive-into-network-broadcasting-65d15a8937e2?source=rss-9666ed135d8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/65d15a8937e2</guid>
            <category><![CDATA[multicast]]></category>
            <category><![CDATA[ec2]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[network]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Abhilash Bandari]]></dc:creator>
            <pubDate>Sat, 09 Nov 2024 18:01:28 GMT</pubDate>
            <atom:updated>2024-11-12T18:37:46.333Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*kyYugYuatRBZWEu-C3CrZQ.png" /></figure><p><strong>## Understanding Multicast: The Technical Foundation 🔧</strong></p><p>Before we dive into Docker’s multicast quirks, let’s understand what we’re dealing with. Multicast is like a smart broadcasting system that allows a single sender to efficiently communicate with multiple receivers simultaneously, operating at the IP layer (Layer 3) of the OSI model. It uses Class D IP addresses (224.0.0.0 to 239.255.255.255) for group communication.</p><p><strong>## Docker’s Default Networking: The Plot Thickens 🤔</strong></p><p>Docker’s default bridge networking mode creates an isolated network namespace for each container. While this is great for security and isolation, it’s like putting each application in its own soundproof room — not ideal for multicast!</p><p><strong>### The Technical Challenge:</strong></p><pre># Default Docker bridge network<br>docker0: flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt; mtu 1500<br>inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255</pre><p><strong>## The Solution: Host Network Mode and User Mapping ✨</strong></p><pre>docker run - rm -u $(id -u ${USER}):$(id -g ${USER}) -network=host &lt;container-image-name&gt;</pre><p>Let’s dissect this command with technical precision:</p><p>1. `<strong> — network=host`</strong>:</p><p>- Bypasses Docker’s network virtualization</p><p>- Container shares host’s network namespace</p><p>- Direct access to host’s network interfaces</p><p>- Enables multicast packet reception without bridge interference</p><p>2. <strong>`-u $(id -u ${USER}):$(id -g ${USER})`</strong>:</p><p>- Maps container’s user to host user’s UID/GID</p><p>- Prevents permission issues with network operations</p><p>- Essential for proper network interface access</p><p><strong>## IGMP: The Protocol Deep Dive 📡</strong></p><p>IGMP (Internet Group Management Protocol) v2 is crucial for multicast operations:</p><pre># Check IGMP version on host<br>cat /proc/sys/net/ipv4/conf/all/force_igmp_version<br># Set IGMP version to 2<br>echo &quot;2&quot; &gt; /proc/sys/net/ipv4/conf/all/force_igmp_version</pre><p><strong>### Key IGMP v2 Features:</strong></p><p>- Faster leave latency compared to v1</p><p>- Reduced network traffic for membership queries</p><p>- Better group membership management</p><p>- Backward compatibility with v1</p><p><strong>## AWS Implementation Details ☁️</strong></p><p><strong>### ECS EC2 vs. Fargate: The Technical Difference</strong></p><p>1. <strong>**ECS Fargate Limitations:**</strong></p><p>- Uses AWS VPC CNI (Container Network Interface)</p><p>- No support for promiscuous mode</p><p>- Network isolation prevents multicast packet reception</p><p>2. <strong>**ECS EC2 Configuration:**</strong></p><pre>{<br>&quot;requiresCompatibilities&quot;: [&quot;EC2&quot;],<br>&quot;networkMode&quot;: &quot;host&quot;,<br>&quot;containerDefinitions&quot;: [{<br>&quot;name&quot;: &quot;multicast-container&quot;,<br>&quot;image&quot;: &quot;&lt;your-image&gt;&quot;,<br>&quot;networkMode&quot;: &quot;host&quot;<br>}]<br>}</pre><p><strong>## Transit Gateway Multicast: The Network Architecture 🌐</strong></p><p><strong>### Security Group Configuration:</strong></p><pre>{<br>&quot;GroupId&quot;: &quot;sg-xxxxxx&quot;,<br>&quot;IpPermissions&quot;: [{<br>&quot;IpProtocol&quot;: &quot;-1&quot;,<br>&quot;FromPort&quot;: -1,<br>&quot;ToPort&quot;: -1,<br>&quot;IpRanges&quot;: [{<br>&quot;CidrIp&quot;: &quot;0.0.0.0/32&quot;,<br>&quot;Description&quot;: &quot;Transit Gateway Probe&quot;<br>}]<br>}]<br>}</pre><p><strong>### IGMP Probe Details:</strong></p><p>- Probe Interval: 120 seconds</p><p>- Consecutive Probes: 3</p><p>- Timeout Period: 3 * probe interval</p><p>- Protocol: IGMPv2 Membership Query</p><p><strong>## Performance Considerations 📊</strong></p><p>1. <strong>**Network Overhead:**</strong></p><p>- IGMP queries: ~64 bytes per packet</p><p>- Membership reports: ~64 bytes per packet</p><p>- Multicast traffic: Variable based on application</p><p>2. <strong>**Resource Impact:**</strong></p><p>- CPU: Minimal (&lt; 1% for IGMP processing)</p><p>- Memory: Negligible</p><p>- Network: Depends on multicast group size and traffic volume</p><p><strong>## Monitoring and Debugging 🔍</strong></p><pre># Monitor multicast groups<br>netstat -g<br># Check multicast routing<br>ip mroute show<br># Monitor IGMP traffic<br>tcpdump igmp<br>#View multicast interfaces<br>ip addr show | grep MULTICAST```</pre><p><strong>## Best Practices and Gotchas 🎯</strong></p><p>1. <strong>**Network Configuration:**</strong></p><p>- Enable multicast routing on all intermediate devices</p><p>- Configure consistent IGMP versions across network</p><p>- Monitor multicast group membership</p><p>2. <strong>**Container Configuration:**</strong></p><p>- Use host network mode when possible</p><p>- Implement proper user permissions</p><p>- Monitor container network metrics</p><p>3. <strong>**AWS Specific:**</strong></p><p>- Use placement groups for reduced latency</p><p>- Monitor Transit Gateway health checks</p><p>- Implement proper security group rules</p><p>Remember: Multicast in Docker is like conducting an orchestra — every component needs to be perfectly tuned for the performance to shine! 🎵</p><p>This technical deep dive should give you a solid understanding of the moving parts while keeping the humour alive. Now go forth and multicast with confidence! 🚀</p><ul><li><em>P.S. If anyone asks why you’re so excited about multicast, just tell them you’re into “broadcasting relationships” between containers!*</em> 😉</li></ul><p><strong>Additional Resources</strong></p><p><a href="https://medium.com/@bandariabhilash0/multicast-testing-tool-58a92e28c82c">Multicast Testing Tool</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65d15a8937e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Multicast Testing Tool]]></title>
            <link>https://medium.com/@bandariabhilash0/multicast-testing-tool-58a92e28c82c?source=rss-9666ed135d8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/58a92e28c82c</guid>
            <category><![CDATA[udp]]></category>
            <category><![CDATA[network]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[multicast]]></category>
            <dc:creator><![CDATA[Abhilash Bandari]]></dc:creator>
            <pubDate>Sat, 09 Nov 2024 17:27:08 GMT</pubDate>
            <atom:updated>2024-11-09T17:27:08.730Z</atom:updated>
            <content:encoded><![CDATA[<p><strong># Building a Multicast Tool: When Network Packets Meet Go’s Simplicity 🚀</strong></p><p>Ever tried explaining multicast to someone? It’s like trying to explain why pizza is round but comes in a square box. But fear not! Today, I’m excited to share my journey of building a multicast communication tool in Go that makes handling multicast as easy as ordering that geometrically confused pizza.</p><p><strong>## The Problem 🤔</strong></p><p>Picture this: You’re a developer trying to test multicast communication in your network. You Google “multicast testing tools” and find either enterprise solutions that cost more than your coffee budget for the next decade or command-line tools that look like they were written when dial-up internet was still cool.</p><p><strong>## Multicast Communication Tool 🛠️</strong></p><p>That’s why I built this simple, open-source multicast testing tool in Go. It’s like Swiss Army knife for multicast testing, but without the tiny scissors that never really work.</p><p><strong>### What Can It Do?</strong></p><p>- List available network interfaces (because who remembers their network interface names?)</p><p>- Send multicast messages (like a digital carrier pigeon)</p><p>- Receive multicast messages (like a digital mailbox)</p><p>- Handle user input gracefully (because we all make typos)</p><p>- Recover from panics (because stuff happens)</p><p><strong>## The Cool Parts 😎</strong></p><p><strong>### Cross-Platform Support</strong></p><p>Whether you’re team Windows, macOS, or Linux, we’ve got you covered. The tool runs everywhere Go runs, which is pretty much everywhere except maybe your coffee maker (give it time, though).</p><p><strong>### Pre-built Binaries</strong></p><p>Don’t want to build from source? No problem! Pre-built binaries for all major platforms are available. It’s like getting a ready-to-eat meal, but for your networking needs.</p><p><em>*Note to macOS users: Yes, your OS will tell you it’s “unsafe” because it’s not signed. It’s like when your mom tells you not to talk to strangers, but in this case, the stranger is just a friendly networking tool.*</em></p><p><strong>## The Technical Bits 🤓</strong></p><p>The tool is built in Go, making it:</p><p>- Fast (because waiting is so 2010)</p><p>- Reliable (like your favourite coffee shop)</p><p>- Easy to maintain (unlike my plant collection)</p><p><strong>### Example Usage</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BPyh3enlGSnRJpaRX0BVQg.png" /></figure><p>It’s so simple, even your cat could use it (if they had opposable thumbs and an interest in network protocols).</p><p><strong>## The Fun Parts 🎮</strong></p><p>1. <strong>**Interface Selection**</strong>: Like choosing your character in a video game, but instead of warriors and mages, you’re picking network interfaces.</p><p>2. <strong>**Multicast Configuration**</strong>: Set your multicast address and port. It’s like setting up a secret clubhouse, but with IP addresses instead of a treehouse.</p><p>3. <strong>**Real-time Communication**</strong>: Watch as messages fly across your network like digital paper airplanes.</p><p><strong>## Why Go? 🤔</strong></p><p>Why did I choose Go? Well:</p><p>- It’s fast (like a caffeinated developer)</p><p>- It’s simple (unlike my relationship with semicolons in JavaScript)</p><p>- It has great network programming support (better than my network connection during video calls)</p><p><strong>## Open Source FTW! 🌟</strong></p><p>The best part? It’s completely open source! You can find it on GitHub, fork it, star it, or even contribute to it. It’s like a potluck, but for code.</p><p><strong>## Conclusion 🎉</strong></p><p>Whether you’re a network engineer, developer, or just someone who likes playing with network protocols (we all need hobbies), this tool is for you. It’s simple, it’s efficient, and most importantly, it actually works!</p><p><strong>### Try It Out!</strong></p><p>Head over to the <a href="https://github.com/bandari-abhilash/mutlicast-test-tool">Github link</a> and give it a spin. And remember, in the world of networking, we’re all just packets trying to find our way home.</p><p><em>*P.S. If you’re wondering why we need multicast in 2024, just remember: sometimes broadcasting to everyone is overkill, and unicast is just too personal. Multicast is like the “reply-all” of network protocols, but only for people who actually want to be in the conversation!*</em> 😉</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58a92e28c82c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Disputes Module]]></title>
            <link>https://medium.com/@bandariabhilash0/building-disputes-module-282ad569922b?source=rss-9666ed135d8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/282ad569922b</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[go]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Abhilash Bandari]]></dc:creator>
            <pubDate>Fri, 12 Nov 2021 12:35:30 GMT</pubDate>
            <atom:updated>2021-11-12T12:35:30.954Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s start by understanding what is a disputes module</p><p><strong>Disputes Module: </strong>A simple tool to help users raise disputes and help admins handle those disputes in the most effective way possible.</p><p><strong>Implementing Disputes Module</strong></p><p>I have started with building a modal that will be used to raise a dispute by a user. To build that modal, I have used Modal by <a href="https://reactstrap.github.io/?path=/story/home-installation--page">reactstrap</a>. The modal pops up after clicking a button. I have used Antd’s <a href="https://ant.design/components/button/">button</a>. Now, the modal is to be opened when a button is clicked. So that can be done using the following piece of code.</p><p>onClick expects an <strong>Click </strong>event handler.</p><blockquote>&lt;Button type=”primary” onClick = {}&gt;Primary Button&lt;/Button&gt;</blockquote><p>Now, opening modal will next primary task, luckily reactstrap’s modal has it simplified.</p><blockquote>// React<br>import { Modal, ModalBody, ModalHeader } from ‘reactstrap’;<br>…<br>&lt;Modal <strong>isOpen={open}</strong>&gt;</blockquote><blockquote><strong>&lt;</strong>/Modal&gt;<strong><br></strong>The isOpen property of Modal expects a boolean value(true/false).</blockquote><p><strong>isOpen = {true}</strong> -&gt; opens the modal. <strong>isOpen = {false} </strong>-&gt; closes the modal.</p><p>Few form fields are included in the &lt;ModalBody&gt;, so the user will be able to enter the reason for his dispute.</p><p>Those form values are stored in a collection. I prefer using the MongoDB database for storing all my collections.</p><p>Click <a href="https://docs.mongodb.com/manual/reference/method/db.createCollection/">here </a>to learn how to create a collection in MongoDB.</p><p>Now, as dispute raising module is done, we should have a dashboard where the users can see all their disputes</p><p>I had to build another dashboard to track all the disputes in real-time. The backend part is quite simple, a MongoDB <strong>find </strong>query will give us a list of all documents. A MongoDB find query will be</p><blockquote>dbName.collectionName.find()</blockquote><p>The responses can be show to user in the frontend as per the choice and UI interests. I have used Antd’s cards to show all the disputes and used the antd <a href="https://ant.design/components/steps/">steps</a> to track the status of the disputes</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=282ad569922b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>