VOOZH about

URL: https://thenewstack.io/how-simplifying-our-architecture-saved-us-thousands-monthly/

⇱ Simple Architectures Can Save Money - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2024-02-22 07:19:49
Simple Architectures Can Save Money
sponsor-nitric,sponsored-post-contributed,
API Management / Cloud Services / DevOps

Simple Architectures Can Save Money

For Drop Bio Health, the transition from manual cloud deployment to an automated architecture streamlined operations and reduced hosting costs.
Feb 22nd, 2024 7:19am by Malcolm Edgar
👁 Featued image for: Simple Architectures Can Save Money
Image from IKO-studio on Shutterstock.
Nitric sponsored this post.

This is the second of two parts. Read Part 1: “Beyond Terraform: How We Scaled DevOps.”

My team is not alone in facing challenges in the quest for efficient DevOps. The complexity of cloud development and deployment are like chains, anchoring many of us down and making it tough for our teams to soar to new and innovative heights.

At Drop Bio Health, an at-home digital health company, we grappled with the unwieldy beast that was Terraform and ultimately decided to revamp our DevOps approach and deployment pipeline using the Nitric framework (described in my previous article). This single action resulted in significant gains in developer productivity and our ability to deliver business value.

As part of this process, we revisited our project architecture and achieved valuable improvements to our deployment capabilities and cost efficiency. (Spoiler alert: We saw a 60% reduction in AWS hosting costs.) Here’s our journey from our original architecture to a simplified approach that will serve our team even better as we scale.

The Original Architecture: Where It All Began

The original architecture for our WellBeing test was designed for scalability and agility. We used number of well-known, best-in-class tools.

👁 Original architecture

There was nothing technically wrong with this architecture; in fact, these were configurations we had seen used in other modern cloud infrastructures and heavily documented in how-to guides for achieving scalability, redundancy and flexibility.

The challenge was that manually deploying this required our developers to be extremely familiar with each resource. For instance, the configuration of an Elastic Load Balancer (ELB) involves managing security groups, setting up listener rules, conducting health checks through target groups and integrating SSL certificates. When incorporating Auth0 into the mix, the configuration also required specialized routing and additional middleware for token validation, ensuring that authentication and authorization processes were seamlessly integrated.

Virtual private clouds (VPCs) required correctly setting up Classless Inter-Domain Routing (CIDR) blocks, sidestepping any overlaps and judiciously designating public and private subnets. This required ensuring the security groups were structured correctly to allow only necessary ports and manage ingress and egress rules. In cases where there was a need for communication with other VPCs, managing peering relationships was crucial.

For a company with a limited operations team, the cognitive load grew to become a burden on our efforts to work on our core services.

Simplified Architecture for Simpler Management

We needed to make it easier for our team to manage infrastructure and our deployment process. Though we had access to a plethora of tools, we wanted to find a way to achieve our constant goals of scalability, redundancy and flexibility with only the necessary pieces. Could we use fewer tools to minimize maintenance, lower cognitive load and still have confidence in our architecture’s future-proofing?

As we adopted Nitric for infrastructure provisioning, we not only streamlined our infrastructure, but did so using tools that have been vetted by industry experts. Our new architecture centers our operations around the robust capabilities of AWS API Gateway and Lambda functions.

👁 New architecture

AWS API Gateway has become a cornerstone of this architecture because of several distinctive features:

Unified Access Point

API Gateway serves as a single, consolidated entry point for all incoming traffic. This eliminates the need for managing multiple endpoints or load balancers like ELB, as the API Gateway can distribute incoming requests to multiple backend services, including Lambda functions, efficiently.

Automatic Scaling

Paired with serverless solutions like Lambda, API Gateway can automatically scale based on the incoming traffic. This dynamism allows it to accommodate sudden spikes or lulls in demand without any manual intervention, rendering traditional scaling mechanisms provided by virtual private cloud (VPC) and network address translation (NAT) gateways unnecessary.

Security Layers

API Gateway inherently offers robust security features like AWS Web Application Firewall (WAF) integration, throttling and built-in authentication and authorization mechanisms. This negates VPCs’ requirement for added security layers, as one can directly integrate custom authorizers or platforms like Cognito for user authentication.

Simplified Networking

With API Gateway, the need to manage intricate networking setups using VPCs or ensure outbound traffic with NAT gateways is significantly reduced. The gateway handles the complex networking tasks, allowing developers to focus on building and deploying applications.

In essence, by centering our architecture around API Gateway and Lambda functions through Nitric, we’ve not only achieved a more streamlined infrastructure but also capitalized on the intrinsic efficiencies and features these services offer, eliminating the need for components like ELB, VPC and NAT gateways.

The Unexpected and Significant Benefit: Cost

Since API Gateway and Lambda functions follow a pay-as-you-go model, there are cost savings compared to maintaining always-on resources like ELB or NAT gateways. Plus, the ability of API Gateway to scale down to zero means no incurred costs when there’s no traffic. In our case, this had a significant impact on our monthly AWS hosting costs: We’ve cut them by 60% as a result of this architectural shift.

Closing Remarks

Our transition from manual cloud deployment to a simplified and automated architecture has streamlined our operations significantly. We’ve replaced complex components like ELB, VPC and NAT gateways with API Gateway and Lambda functions, resulting in:

  • A unified entry point for traffic
  • Automatic scaling, reducing manual intervention
  • Robust security features within API Gateway
  • Simplified network management

Notably, this transition has led to substantial cost savings due to the pay-as-you-go model and the ability of API Gateway to scale down to zero during low-traffic periods. This shift allows us to allocate resources more efficiently, focusing on innovation and customer solutions.

All in all, simplifying our architecture was a big win for our team. If you’re interested in reading more about our Nitric implementation, check out the case study and take a look at its technology.

Nitric is the cloud-aware framework that enhances developer productivity and ops confidence, uniting backend and infrastructure code to build and ship cloud apps fast. Devs build your application, Platform determines the right infrastructure and Nitric automates provisioning that works for both.
Learn More
The latest from Nitric
Hear more from our sponsor
TRENDING STORIES
Malcolm Edgar is CTO at Drop Bio Health, a company offering at-home health tracking through blood biomarkers and lifestyle analysis. He previously served as CTO of the Fintech company Avoka Technologies, and he was awarded an encryption methods patent. Malcolm...
Read more from Malcolm Edgar
Nitric sponsored this post.
SHARE THIS STORY
TRENDING STORIES
AWS is a sponsor of The New Stack.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.