Skip to content

Work

Case studies, written as decisions

Each one follows the same order: the context, the problem, what made it hard, the options, what I chose and why, my actual part in it, and what I would change. Employer work is under NDA, so client names, volumes and internals are withheld, and marked as withheld where they would have been.

Built independently

Built because I needed it

  • Cloud spend and right-sizing, as a scheduled PDF

    Finance asks where the budget went and which resources can be trimmed. The options were an hour of clicking through the console or a third-party platform we needed ten per cent of. This collects compute, storage and cost data across compartments, checks utilisation and right-sizing against a catalogue of real OCI shapes, and emails a PDF per compartment on a schedule. The analytics and delivery paths are unit-tested, because the numbers are the product.

    • Python
    • OCI SDK
    • Analytics pipeline
    • PDF reporting
    • pytest
    COLLECTANALYSEREPORTDELIVERoci_clienttenancy authcompute · storageinventorycostusage APIengineorchestrates checksutilization · ratiosright_sizer · anomalycharts · sectionsnarrativePDF per compartmentdispatcherchannel fan-outemail · teams · slackshape_catalog holds real OCI shapes, so a recommendation namesan instance type that exists rather than a percentageanalytics and notifier are unit-tested: the numbers are the product
    Fig. Four-stage pipeline. Collectors pull from OCI, analytics decides what is over-provisioned, the reporter renders a PDF per compartment, and the dispatcher delivers it.
  • A UDP transport protocol for long, lossy links

    TCP throughput collapses on a link with 1% packet loss and 100 ms of latency, however much bandwidth is available, because the congestion window never opens. UDPix moves the window logic, the acknowledgement scheme and the retransmit policy into userspace where they can be tuned for the link. Eight Rust crates: NAT traversal, a control plane with auth and sessions, selective acknowledgement, and a zero-copy IO path.

    • Rust
    • UDP
    • Congestion control
    • SACK
    • NAT traversal
    • Zero-copy IO
    CLIENTCONTROL PLANEPATH SETUPTRANSPORTclisend · receive · serveauthidentitysession_mgrpolicylimitsstun · turnicecandidate pairingholepunchpacket · sackreliabilitycongestionloss-tolerant windowioengine · zerocopyTCP collapses on a link with 1% loss and 100 ms latencyregardless of available bandwidth, the window never opens.So the window logic, the acknowledgement scheme and the retransmitpolicy all move into userspace where they can be tuned for the link.
    Fig. A UDP transport built to beat TCP on long, lossy links. Congestion control and selective acknowledgement in userspace, NAT traversal before the transfer, zero-copy on the disk path.
  • A golden path for a development machine

    A reproducible Ubuntu environment in Docker with a pinned toolchain of Terraform, Ansible, kubectl, cloud CLIs and shell configuration, so a new machine is productive from one clone instead of a day of hand-installing and a week of finding out what was missed.

    • Docker
    • Bash
    • Terraform
    • Ansible
    • kubectl
    SOURCEBUILDRUNTIMETARGETSgit cloneone repositoryDockerfilepinned toolchainterraform · ansiblekubectl · cloud CLIsshell · dotfilesentrypoint.shmounted volumeskeys · projectscloud VMsover SSHon-premise hostsnothing is installed on the host, so a rebuild is adocker build rather than an afternoon
    Fig. One clone, one command, an identical toolchain on any machine. The workstation itself becomes a versioned artefact.
  • Oracle's request signing, implemented by hand

    Retries a launch request on a rate-limit-safe schedule until Oracle actually has free ARM capacity, then takes the instance, notifies, and disables its own timer. Bash, openssl and curl implementing Oracle's REST request-signing scheme directly: no SDK, no Python, no third-party code in the hot path. This server was provisioned by it.

    • Bash
    • openssl
    • REST signing
    • systemd timers
    • OCI API
    SCHEDULEREQUEST SIGNINGOCI APION SUCCESSsystemd timerrate-limit safesigning stringdate · host · digestopenssl dgstRSA-SHA256, API keycurlAuthorization headerLaunchInstanceA1.Flexemail · notify-senddisable timerstops itselfimplementing the signature by hand means understanding it. TheSDK is a convenience, not a prerequisite
    Fig. Oracle's REST request-signing scheme implemented directly in bash and openssl. No SDK, no Python, no third-party code in the hot path.

The reasoning behind the platform this site runs on is in the decision log.