Please enable JavaScript to view the comments powered by Disqus. Minimum Viable DevOps





Minimum Viable DevOps



Last updated 22/07/2021

Minimum Viable DevOps

Startup Genome says untimely scaling is the main source of startup passing. You shouldn't invest energy enhancing an item when you don't have the foggiest idea whether clients need it. 

However every time you dispatch a web application, you risk really succeeding, and your server ought to be prepared to deal with the heap. 

In this article, We'll share a basic, free formula to prepare your application dispatch. An hour spent after these means will spare you incalculable long periods of rest throughout your item's lifetime.

In a nutshell:

  1. Benchmark using a load-testing tool like
  2. Use a caching proxy like NGINX to mitigate server load.
  3. Use a CDN like Cloudflare for fast loading and global distribution.

First-World Problems

We should move this. Having an excess of traffic to your site is a first-world issue, and expounding on it is a definitive humblebrag. Liable on all fronts. 

Be that as it may, it's as yet an issue. The startup world is loaded up with stories of administrations hitting the first page of Reddit, getting "surprisingly" chased on Product Hunt, etc. It's a banality now. 

This article is something contrary to that. In the previous year, a few business people propelled three administrations to a great many clients and rested soundly while their server was getting pounded by clicks, with zero personal time. 

Hello Money is Reddit's tool of decision for portfolio representation and companion input. Spikes: It positioned #1 on Product Hunt the day it propelled and named by PH as one of the 7 best close to home money applications, has arrived at the highest point of/r/individual fund on various occasions (almost 7M perusers), and has been highlighted on Hacker News. 

Goodbye Gun Stocks shows socially-cognizant financial specialists whether their common reserve and ETFs are put resources into firearm organizations and encourages them to find comparable weapon-free assets with lower charges and better-chronicled returns. Spikes: reviewed in New York Daily News, Fortune, Time, Fast Company, Vice (Twice!), GOOD, it's the #1 governmental issues application on Product Hunt barring Trump jokes (which are difficult to contend with!). It's additionally gotten a great deal of adoration on both Twitter and Facebook. 

The sidebar is Sacha Greif's day by day plan pamphlet. Sacha is a structure powerhouse with over 20k twitter supporters, various monstrous mailing records, and a wealth of Hacker News karma. At whatever point he dispatches anything it gets overwhelmed with consideration, so before he propelled an overhaul of Sidebar, you should utilize this course of action to help ensure it could deal with the heap.


Third-World Solution

For anyone who has manufactured a really Internet-scale administration, similar to Google, Facebook, Amazon, we apologize ahead of time. In like manner, on the off chance that you list DevOps as one of your aptitudes you might be nauseated by what you read here. 

What we are portraying is a snappy bandaid answer for startup people like us who are euphoric when their site gets 100,000 guests in a shot. For a drawn-out scaling arrangement, look elsewhere. 

We will introduce an arrangement altogether. Plan to go through an evening on it the first occasion when you actualize this stream. When you're alright with it, you ought to have the option to prepare a site in an hour or something like that.

Here are the steps again:

  1. Benchmark using a load-testing tool like
  2. Use a caching proxy like NGINX to mitigate server load.
  3. Use a CDN like Cloudflare for fast loading and global distribution.

1. The Mother of all Loads

The first step in getting ready is to measure your existing service under load, simulating thousands of user visits over a 1-minute interval.

There are a million diverse open-source instruments for load testing, yet we need to complete everything in 60 minutes, so we'll utilize, a free SaaS that is insignificant to set up and use. 

There are just a couple of boundaries you have to design and afterward, you're set: 

On the off chance that you haven't done any improvements yet, the primary run will most likely break your administration, and that is OK. Note that since this is a no-fuss way to deal with load testing, it has its constraints:

  1. Limited load:'s free arrangement is restricted to a limit of 10,000 solicitations for each moment, however, that is more than most administrations will get, regardless of whether they top out ProductHunt, Hacker News, and Reddit. On the off chance that you truly care, you can simply move up to a paid rendition.
  2. HTTP/S only: just backings HTTP/S demands for the time being. Some cutting edge web applications, for example, Meteor (which was utilized to manufacture every one of the three administrations above) likewise use WebSockets for correspondence. In the event that you truly care, you can utilize different instruments to stack tests, however, you likely won't be done in 60 minutes. For instance, Meteor has MeteorDown for load testing. Kadira, by similar creators, is the best device hands-down for understanding Meteor execution issues.

2. NGINX: The Band-Aid of the Internet

In the event that your administration endure the load test, you should dispatch now. If not, you may be re-thinking yourself, and it's likely worth seeing whether there's a convenient solution. lo

There are such huge numbers of potential clarifications for what turned out badly, and in any event, for a little application, you could spend a lifetime tuning server setups, database questions, and gravely composed circles.

But screw all that. NGINX is a free, open-source high-performance web server and jack-of-all-trades proxy. You can use it to smooth over most performance issues with small time investment. After you learn it, it will be a trusted tool you can use for kludging over everything you build in the future.

The key thing about NGINX is that it’s blazingly fast and with a little work you can configure it to do almost anything. 

Setting it up

Setting up NGINX is a quick and well-documented process. The confusing thing is that it does so many different things it can be difficult to configure. So we’ll cut to the chase and share the configuration we’re using for Sidebar, and explain it so you can use it as a starting point for optimizing your own service:

There are three key things going on here:

  1. Reverse Proxy. All the configuration lines below the PROXY STARTS HERE line configures NGINX to be a reverse proxy, meaning that it forwards requests on to your web app, fetches the response, and returns the response to the requestor.
  2. Load Balancer. The upstream declaration at the top configures NGINX to also be a load-balancer, so it can farm requests out to multiple back-end servers instead of just one.
  3. Cache. Everything after the CACHING line sets NGINX up to be a cache, meaning that NGINX can store some of the responses and return the results without ever hitting the backend app server.

NGINX as a reverse proxy is not important in and of itself, but it enables load balancing and caching, which are both awesome for scalability. So let’s drill into those a bit.

Load Balancer

Load balancing means that you can set up multiple app servers to run your app. This has a few benefits:

  1. Horizontal Scalability. If your app is CPU- or memory-bound, and your traffic maxes out your server, you can easily add another back-end server.
  2. Dynamic Redeployment. If you need to modify your server code, you can spin up a new machine running the new code, test it out, and then add it into the load-balancer
  3. Fault Tolerance. If one of your servers crashes or gets overloaded, NGINX can be configured to automatically remove it from the list. The configuration above does not do this, but it’s possible to add.

The only down-side to running a load balancer is a minor increase complexity (totally worth it), and potentially increased server costs. Note that you can also proxy to a server running on a different port on the same machine to save cost, and NGINX is so efficient that this is OK for all but giant loads.


Caching means that HTTP responses are stored disk for some period, and when a client makes the same request during that cache period, NGINX will return the cached response rather than hitting the app server.

This has a couple of key benefits:

  1. Decreased server load. NGINX is incredibly efficient and can handle thousands of requests on a normal server. I’ve never run into any problems with it, even running high-traffic sites. The real problem is with app servers or databases, and every cached response from NGINX is one less request that the app server needs to handle.
  2. Response speed. The cached responses are super fast. If your data is not rapidly changing or user-specific, then the user should see the result in milliseconds if she is on a reasonably fast connection.

Unlike load balancing, caching can have some downsides, and you should be careful about how you cache.

  1. Stale data. The most obvious problem is stale data. If your data has lots of highly dynamic data like a realtime stock site, or lots of user-specific data, then caching is a challenge. However, most pages and apps have a mostly static homepage which captures most of the traffic, and then a more dynamic section which much fewer users click through to. If your service has this pattern, you can cache the former, and leave the latter uncached.
  2. Decreased security. If your responses have user-sensitive data in them, you cannot cache them. Be careful about caching and security! In the configuration above that, we created a $skip_cache variable to avoid caching for signed-in users. We test for the cookie meteor_login_token but this should be easy to customize for your setup.
  3. Complexity / Debug-ability. As soon as you start caching you introduce a major new source of complexity into the system. When something goes wrong is it because there’s a bug in the service, or a bug in the cached response, or?

In spite of the problems with caching, with a little practice, it can be a great quick fix for almost any performance issue. There are plenty of other places you can cache too (database requests, etc.), but NGINX is easy.

Re-run Your Load Test

As you optimize your service, re-run your load test. Here’s Goodbye Gun Stocks after receiving some NGINX love:

After your service is handling the load, be sure to do manual testing to make sure you haven’t broken anything. Be sure to test basic functions like user sign-in / signout, since those are things that are easy to mess up when you cache. If everything looks good, you should be good to go.

Setting up NGINX like this can cover up even the most inefficient server code. It can take some fiddling, but for most apps, it will do the trick for getting you launch-ready in a snap.

3. Going Global

OK, you’ve gotten through the hard part and you’ve got a service that can withstand most traffic spike. But the Internet is a global village, and if you post your service to any major traffic source, you’ll be getting traffic from the other side of the planet. Let’s make sure those users have a decent t experience too.

Topic Related Post

Building a High-Performing SRE Team: Key Strategies and Best Practices
Securing the Pipeline: Integrating Security into Your SRE Practices
Ready for the Next Level? Top DevSecOps Skills to Master Before 2025

About Author

NovelVista Learning Solutions is a professionally managed training organization with specialization in certification courses. The core management team consists of highly qualified professionals with vast industry experience. NovelVista is an Accredited Training Organization (ATO) to conduct all levels of ITIL Courses. We also conduct training on DevOps, AWS Solution Architect associate, Prince2, MSP, CSM, Cloud Computing, Apache Hadoop, Six Sigma, ISO 20000/27000 & Agile Methodologies.



* Your personal details are for internal use only and will remain confidential.


Upcoming Events


Every Weekend


Every Weekend


Every Weekend


Every Weekend

Topic Related

Take Simple Quiz and Get Discount Upto 50%

Popular Certifications

AWS Solution Architect Associates
SIAM Professional Training & Certification
ITIL® 4 Foundation Certification
DevOps Foundation By DOI
Certified DevOps Developer
PRINCE2® Foundation & Practitioner
ITIL® 4 Managing Professional Course
Certified DevOps Engineer
DevOps Practitioner + Agile Scrum Master
ISO Lead Auditor Combo Certification
Microsoft Azure Administrator AZ-104
Digital Transformation Officer
Certified Full Stack Data Scientist
Microsoft Azure DevOps Engineer
OCM Foundation
SRE Practitioner
Professional Scrum Product Owner II (PSPO II) Certification
Certified Associate in Project Management (CAPM)
Practitioner Certified In Business Analysis
Certified Blockchain Professional Program
Certified Cyber Security Foundation
Post Graduate Program in Project Management
Certified Data Science Professional
Certified PMO Professional
AWS Certified Cloud Practitioner (CLF-C01)
Certified Scrum Product Owners
Professional Scrum Product Owner-II
Professional Scrum Product Owner (PSPO) Training-I
GSDC Agile Scrum Master
ITIL® 4 Certification Scheme
Agile Project Management
FinOps Certified Practitioner certification
ITSM Foundation: ISO/IEC 20000:2011
Certified Design Thinking Professional
Certified Data Science Professional Certification
Generative AI Certification
Generative AI in Software Development
Generative AI in Business
Generative AI in Cybersecurity
Generative AI for HR and L&D
Generative AI in Finance and Banking
Generative AI in Marketing
Generative AI in Retail
Generative AI in Risk & Compliance
ISO 27001 Certification & Training in the Philippines
Generative AI in Project Management
Prompt Engineering Certification
SRE Certification Course
Devsecops Practitioner Certification
AIOPS Foundation Certification
ISO 9001:2015 Lead Auditor Training and Certification
ITIL4 Specialist Monitor Support and Fulfil Certification
SRE Foundation and Practitioner Combo
Generative AI webinar
Leadership Excellence Webinar
Certificate Of Global Leadership Excellence
SRE Webinar
ISO 27701 Lead Auditor Certification
Gen AI for Project Management Webinar