Menu
Theme
Bachelor of Science in Computer Science
Course Content

Cloud Computing

Distributed Systems

Habari Class! Welcome to the Future, Hosted in the Cloud!

Imagine this: you have a brilliant idea for a new app, something bigger than M-PESA! You and your friends are ready to code, but then you pause... Where will this app live? You'll need powerful computers (servers), a secure room, constant electricity (we all know how KPLC can be!), cooling systems, and a super-fast internet connection. That sounds like millions of shillings before you've even written a single line of code!

What if I told you that you could "rent" all that power, just like you rent a house, and pay only for what you use? What if you could get the computing power of a massive data centre through your Safaricom or Zuku connection?

Welcome, brilliant minds, to the world of Cloud Computing! It’s not about the fluffy white things in the sky; it’s about the revolution that powers nearly every app on your phone, from WhatsApp to your banking app.


So, What is Cloud Computing, Really? (The "Nini Hii" Section)

In the simplest terms, Cloud Computing is the on-demand delivery of IT resources over the Internet with pay-as-you-go pricing.

Think of it like this: Instead of buying and maintaining your own personal generator for electricity, you just plug into the KPLC grid and pay for the units you consume. The cloud is the "IT grid." Companies like Amazon (with AWS), Google (with GCP), and Microsoft (with Azure) have built massive, powerful, and secure "power stations" (data centres) all over the world. You can just plug in and use their resources!

Image Suggestion: A vibrant, futuristic illustration of Nairobi's skyline. Digital lines of light connect the buildings (like KICC, Times Tower) to glowing cloud icons in the sky. Small logos of popular Kenyan apps (M-PESA, Jumia, eCitizen) are visible on the buildings, showing they are powered by the cloud. The style is bright and optimistic.

The 5 Key Characteristics

  • On-demand self-service: You can get computing resources (like a server) yourself in minutes, without talking to anyone. It’s like buying airtime from the M-PESA menu instead of having to go to a shop.
  • Broad network access: You can access it from anywhere with an internet connection – your laptop in the lab, your phone in a matatu, or your computer in a cyber cafe.
  • Resource pooling: The cloud provider pools its resources to serve many customers. You share the hardware with others, which makes it cheaper. Think of it like a "chama" for computing power!
  • Rapid elasticity: You can scale your resources up or down automatically. Imagine you run a news website. On a normal day, you need one server. But when election results are announced, traffic explodes! The cloud can automatically give you 100 servers for a few hours and then scale back down.
  • Measured service: You only pay for what you use. The system tracks your usage of storage, processing power, etc., just like a water meter.

The Main Flavours: The "Chapati, Ugali, na Kuku" of the Cloud

Cloud computing comes in three main service models. Let's think of it in terms of getting a meal.


    // ASCII Diagram: Layers of Responsibility

    +-------------------+  --> You Manage
    |   Application     |
    +-------------------+
    |      Data         |
    +-------------------+
    |     Runtime       |  --> Provider Manages in PaaS & SaaS
    +-------------------+
    |    Middleware     |
    +-------------------+
    | Operating System  |
    +-------------------+  --> Provider Manages in IaaS, PaaS, & SaaS
    |  Virtualization   |
    +-------------------+
    |      Servers      |
    +-------------------+
    |     Storage       |
    +-------------------+
    |     Networking    |
    +-------------------+

1. Infrastructure as a Service (IaaS)

This is the most basic level. The cloud provider gives you the fundamental building blocks: virtual servers, networking, and storage.

The Analogy: This is like going to a "Jiko" vendor. They give you the jiko (server), the charcoal (storage), and a space to cook (network). You have to bring your own ingredients (your app, your database) and do all the cooking (manage the operating system and software).

Real-world Kenyan Example: A tech startup like Twiga Foods renting virtual servers (called EC2 instances) from Amazon Web Services (AWS) to run their logistics platform. They control the whole environment but don't have to buy the physical hardware.

2. Platform as a Service (PaaS)

Here, the provider manages the underlying hardware and operating systems for you. They give you a platform—a ready environment where you can deploy and manage your applications without worrying about the infrastructure.

The Analogy: This is like ordering a meal kit from a place like Kune. They provide the pre-chopped vegetables, the marinated meat, and the recipe (the platform). You just do the final, fun part of cooking and assembling the meal (deploying your code).

Real-world Kenyan Example: A developer using Safaricom's Daraja API to build a payment system. They don't manage the M-PESA servers; they just use the platform (the API) to build their own application on top of it.

3. Software as a Service (SaaS)

This is a completed product that is run and managed by the service provider. You just use the software over the internet, usually through a web browser.

The Analogy: This is like going to a restaurant like Java House and ordering a meal. You don't worry about the kitchen, the ingredients, or the cooking. You just sit down and enjoy the final product.

Real-world Kenyan Example: You using Google Docs for your assignments, your parents using the KRA iTax portal to file returns, or a business using M-KOPA's software to manage their pay-as-you-go solar customers.

Why Bother? The Cloud's Impact on Kenya

This isn't just theory; it's changing how business is done right here at home. The biggest advantage is moving from Capital Expenditure (CapEx) to Operational Expenditure (OpEx).

Let's do some simple math. Imagine a small Nairobi startup wants to launch an e-commerce site.

Scenario 1: On-Premise (The Old Way)


    *   Cost of a good server:          KES 500,000 (One-time)
    *   Secure room, cooling, power backup: KES 200,000 (One-time)
    *   Monthly electricity & internet: KES  30,000
    *   IT staff salary (part-time):    KES  50,000
    ---------------------------------------------------
    *   Initial Cost (CapEx):           KES 700,000
    *   Monthly Cost (OpEx):            KES  80,000

Scenario 2: Cloud Computing (The New Way)


    *   Virtual Server (Pay-as-you-go):  KES 15,000 / month
    *   Database Service:                KES  8,000 / month
    *   Storage & Data Transfer:         KES  5,000 / month
    *   IT Staff (less work needed):     KES 25,000 / month
    ---------------------------------------------------
    *   Initial Cost (CapEx):           KES 0
    *   Monthly Cost (OpEx):            KES 53,000

Look at that! The startup can launch with ZERO upfront cost for hardware and a lower monthly bill. This is why so many innovative Kenyan tech companies can exist today! They can start small and grow (scale) as their customers increase, without needing a huge bank loan.

Image Suggestion: A split-screen image. On the left, a cluttered, hot server room with a stressed technician. The title is "On-Premise" with a KES symbol crossed out. On the right, a bright, clean office with a developer happily coding on a laptop. A smooth, digital line flows from the laptop to a serene cloud icon. The title is "Cloud" with a green KES checkmark.


Getting Your Hands Dirty: A Quick Peek

Let's see how simple it can be to interact with a cloud provider. This is a command you would type into a terminal if you had the AWS Command Line Interface (CLI) set up. This command asks AWS to list all your storage "buckets" (like folders) in their Simple Storage Service (S3).


# This command lists all your S3 storage buckets
aws s3 ls

After you run this, AWS would reply with a list, for example:


2023-11-20 10:30:15 my-project-photos
2023-10-05 14:22:01 my-app-backup-files
2024-01-15 09:00:45 my-university-project-data

Just like that, you are commanding a massive global infrastructure from your little laptop in Nairobi! That is the power of the cloud.


Challenges and The Future

It's not all perfect, of course. We face some challenges in Kenya:

  • Data Sovereignty: The Kenyan Data Protection Act, 2019, has rules about where citizens' data can be stored. This is leading to the growth of local data centres like iColo and Africa Data Centres.
  • Internet Connectivity: While we have good fibre in cities, reliable, high-speed internet is still a challenge in many parts of the country.
  • Latency: If the data centre is in Europe, it takes a fraction of a second for data to travel there and back. For applications like online gaming or high-frequency trading, this delay (latency) can be a problem.

Conclusion: Your Turn to Build

Cloud computing is more than just a topic in your Distributed Systems course. It is the great equalizer. It gives you, a student in Kenya, access to the same world-class computing power as a developer in Silicon Valley.

Your brilliant idea doesn't have to wait for a million-shilling investment in hardware. You can start building it today, right now, with a few clicks and a credit card. The cloud is the foundation for the next generation of Kenyan innovation, and you are the architects. Now, let's go build the future!

Pro Tip

Take your own short notes while going through the topics.

Previous Neural Networks
KenyaEdu
Add KenyaEdu to Home Screen
For offline access and faster experience