Urgent.News

What's breaking now, across thousands of outlets.

Tech

Understanding IaaS: A Practical Look at AWS EC2

Introduction A few years ago, if you wanted to put a website online, you had to buy a physical server, find a place to keep it, and look after it yourself. Today, you can get a server running in minutes, and you only pay for the time you use it. That is the idea behind Infrastructure as a Service (IaaS). As a networking and security student, I wanted to understand how this works in practice. In…

Infrastructure as a Service, or IaaS, is a cloud computing model that provides virtual computing resources like virtual machines, storage and networking over the internet. You can pay only for what you use, without having to purchase, maintain or manage any hardware yourself. This model is one of three main cloud service offerings, alongside Platform as a Service (PaaS) and Software as a Service (SaaS).

IaaS gives users the most control, but also the most responsibility for managing the operating system, runtime and applications.

Key components of IaaS include virtual machines (VMs) for running applications, block, object, and file storage, virtual networks with IP addresses, load balancers, firewalls, DNS, virtualization using a hypervisor to split physical servers into isolated VMs, and hypervisors themselves. Amazon Elastic Compute Cloud (EC2) is a popular IaaS compute service offered by Amazon Web Services (AWS).

EC2 instances are the virtual servers that users launch. Users can choose instance types based on CPU, memory and network capacity, such as general purpose, compute optimized or memory optimized. Amazon Machine Images (AMIs) are templates containing the operating system and software for launching instances. Elastic Block Store (EBS) provides persistent virtual disks attached to instances.

A Virtual Private Cloud (VPC) provides a logically isolated section of the AWS cloud for users, along with security groups as virtual firewalls controlling which traffic can reach instances. Key pairs are used to securely log in to Linux instances.

Setting up an instance on EC2 involves signing into the AWS Management Console, launching an instance through the EC2 service, selecting an AMI, choosing an instance type, creating or selecting a key pair, configuring network and security group settings, adding storage and launching the instance. Once the instance is up, users can connect using SSH and install required software, such as a web server.

EC2 pricing models include On-Demand, Reserved Instances/Savings Plans (committing to 1 or 3 years for lower prices), and Spot Instances (using spare AWS capacity at a discount, but with the risk of instances being terminated). Real-world use cases include hosting websites and web applications, running backend APIs and databases, providing development and testing environments, batch processing and data analysis, and handling sudden traffic spikes.

The advantages of IaaS include no upfront hardware costs, scalability, pay-as-you-go pricing, flexibility and control over the operating system, software and configuration, global reach for deploying servers closer to users, and easy setup for disaster recovery. However, disadvantages include more responsibility for patching, securing and maintaining systems, potential cost overruns from mismanaged instances, shared security responsibilities, and a learning curve for understanding the many services and options available.

While IaaS has revolutionized software development and operation, by renting virtual infrastructure rather than owning it, teams can move faster, scale easily and avoid large upfront costs. Amazon EC2 exemplifies this, providing a fully configurable server with flexible pricing, strong networking and storage tools, and users just need to worry about the software and applications they deploy.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Product photos on a white background without opening Photoshop

Marketplaces like Amazon, Etsy and most Shopify themes look best when every product sits on a plain white or transparent background.

  • Position product away from wall to avoid harsh shadows.
  • Preserve original photo resolution for best background removal.
  • Use PNG format for transparency in store themes.

I Built a Cheapest Fuel Station Map from Spanish Open Data

Spain publishes the price of every public fuel station as open data. The feed is refreshed every 30 minutes, contains roughly 11,500 stations and needs no API key.

  • FuelSpot project maps cheapest Spanish fuel stations using open data
  • API challenges resolved by forcing JSON response and normalizing data
  • "Near me" search filters stations by radius, calculates distances, and sorts by price

Node.js Marketplace Webhooks: Rate-Limit Queues, Retries, and Delivery Guarantees

Short answer: use a queue-centered design for delayed marketplace webhooks when you need retries and basic rate-limited processing without complex orchestration.

  • Use a queue-centered design with Node.js webhooks for delayed processing and retries
  • Keep event ledger in Postgres, not the queue, for system of record
  • Implement idempotency keys and backoff strategies in workers for at-least-once delivery

More from Thursday 12 November →