An Engineer from England, interested in software engineering and distributed systems. Perviously working at InfluxData on DBaaS platforms currently at Midnite working on backend services. I enjoy building with Rust, Go, AWS and Kubernetes.

Optimising the p95 and p99 of Rust services on AWS


I recently deployed a new Rust service to ECS running on Fargate. Fargate is a serverless container runtime, meaning AWS schedules your container on their compute and you manage none of it. After a few weeks I noticed that restarts and deployments caused variance in our p95 and p99. The service is in a hot path in our application so latency directly impacts user experience.

Figure 1

  • Figure 1: Historical view of latency over a month

Seeing this variance was strange as one day we would have a high p99 and the next, significantly lower. This then led to some digging that resulted in me finding that Fargate can schedule you on older and slower CPUs and you have no choice in the matter. This is painfully obvious in hindsight but something you don’t really notice until you are trying to optimise latency.

…
Read more ⟶

From Microservices to Monolith, Rebuilding Our Backend in Rust


The following serves as a practical guide for those looking to simplify their architecture by migrating to a Rust monolith.

Earlier this year, the platform team at InfluxData undertook a major rewrite of our core account and resource management APIs, moving from Go to Rust and from a microservices architecture to a single monolith. This change supported a new administrative UI for InfluxDB Cloud Dedicated and aligns with our broader effort to rewrite the InfluxDB database engine in Rust.

…
Read more ⟶

Securing your public ALB as a CloudFront Origin with Terraform


! This post is quite out of date newer methods are available such as VPC origins…

There are situations where you want to front your public-facing service with a content distribution network (CDN) in this case CloudFront. This is so you can cache content on “the edge” meaning it is closer to your users.

You then need to distribute traffic across a series of auto-scaling instances using a load balancer in this case an AWS Application Load Balancer (ALB), this allows you to scale your instances based on traffic behind the load balancer and have them auto-register as targets.

…
Read more ⟶