Cloud computing explained with Lebanese generator subscriptions

If you grew up in Lebanon, you already understand cloud computing. You just call it something else. You call it the ishtirak.
Every month you pay the generator man for a number of amps. Five if you’re careful, ten if you have a water heater and opinions. You don’t own the generator. You don’t know where exactly it lives (somewhere behind the building, under a blue tarp, next to a very relaxed cat). You don’t maintain it. You just plug things in and, most of the time, the lights stay on.
That’s the cloud. Somebody else’s machine, rented by the slice, billed every month, and you only notice it exists when something goes wrong.
I’ve explained cloud hosting to a lot of clients over the years, and nothing has worked better than this comparison. So let’s go through it properly, because the generator teaches more than you’d think.
Your amps are your quota
When you sign up with AWS, Google Cloud or Azure, you don’t get “a server”. You get limits. So many CPUs, so much memory, so many requests per second. That’s your 5 amps.
And just like the ishtirak, nobody stops you from plugging in the kettle, the heater and the washing machine at the same time. The system lets you try. Then the breaker trips.
In the cloud, the breaker tripping has a name: throttling, or rate limiting. Go past your quota and requests start failing, usually with an error that says “too many requests” or “limit exceeded”. Your app goes dark on one floor while the rest of the building is fine. Sound familiar?
The lesson is the same one every Lebanese household learned: know what you’re running at the same time. Before launch, we always sit down and estimate peak load, the cloud version of “don’t run the oven and the heater together at 8 PM”.
Autoscaling is calling the generator man
Say your daughter’s engagement party is at your place. You know you’ll need more power that night. You call Abu Ali and ask for 10 amps instead of 5 for the weekend. He moves a wire, and you’re covered. Monday, you go back to 5 and stop paying for what you don’t use.
That’s autoscaling, except the cloud does the phone call for you. You set rules like “if the servers are more than 70% busy for five minutes, add two more” and “if they’re under 20% for an hour, remove them”. During a sale or a viral moment, the system grows. At 3 AM, it shrinks. You pay for what you used, not for the biggest night of the year.
Here’s what that rule looks like in practice, roughly, on AWS:
ScalingPolicy:
TargetValue: 70 # keep the servers around 70% busy
Metric: CPUUtilization
MinInstances: 2 # never fewer than 2, in case one dies
MaxInstances: 10 # never more than 10, in case of a bug or an attack
That last line matters. Without a maximum, a bug or a bot attack can scale you up to a bill you’ll remember for years. It’s the equivalent of telling Abu Ali “give me whatever I need” and then finding out your teenager mined crypto all weekend.
The 6 AM switchover is a failover
Every Lebanese home knows the moment: the state electricity cuts, there’s a few seconds of darkness, and the generator kicks in. Some buildings even have a little automatic switch that does this by itself.
In the cloud, that’s failover. Your app runs in two places (two “availability zones”, in cloud talk). If one goes down, traffic moves to the other. The good setups do it in seconds, and users barely notice. The bad ones are like buildings where somebody has to walk down to the basement with a flashlight and flip the switch by hand.
And just like at home, a few seconds of darkness is normal. Design for it. Save often, retry failed requests, and don’t assume the power (or the server) is always there. We wrote about this in more detail in our article on apps that keep working when the internet doesn’t.
The SLA is the promise nobody reads
Your generator man promises, more or less, “power from 6 AM to midnight, except when there’s no diesel.” Cloud providers make the same kind of promise, just with more decimals. It’s called an SLA, a service level agreement: “99.9% uptime per month”, for example.
99.9% sounds perfect until you do the math. It means about 43 minutes of downtime a month is within the deal. If your business can’t live with 43 minutes, you need two providers, or two regions, the same way some buildings in Beirut have two generators and still keep a UPS for the router.
The bill at the end of the month
Here’s where the comparison gets a little uncomfortable. With the ishtirak, you know roughly what you’ll pay. With the cloud, the bill depends on everything: every gigabyte stored, every gigabyte sent out, every minute a machine runs, every log line kept “just in case”.
We’ve seen companies leave test servers running for months, like a light left on in an empty apartment. The fix is boring and it works: tag everything, set a budget alert, and once a month somebody looks at the bill line by line. Ten minutes of attention saves a surprising amount of money.
So, should you move to the cloud?
If you’re running one small website, a simple hosting plan is like a fixed 5-amp subscription: cheap, predictable, fine. If your traffic swings a lot, if downtime costs you money, or if you’d rather not babysit hardware, the cloud is worth it, as long as somebody sets the limits and watches the bill.
And next time the lights flicker and the generator takes over, you can tell everyone at the table that they just witnessed a successful failover. They won’t thank you, but you’ll know.
If you’re thinking about moving your systems to the cloud and want someone to plan the amps with you, get in touch.