# Instance Types

For EC2 instance that AWS provided, there are many types of EC2 for user to use.

the naming convention of EC2  type it include 3 part.

**Example**

name: <mark style="color:blue;">m</mark><mark style="color:orange;">5</mark>.<mark style="color:green;">2xlarge</mark>

<mark style="color:blue;">m</mark><mark style="color:green;">:</mark> instance class

<mark style="color:orange;">5</mark><mark style="color:green;">:</mark> generation

<mark style="color:green;">2xlarge:</mark> size within instance class

There are 4 Instance type categorized by usage

1. General Purpose
2. Compute Optimized&#x20;
3. Memory Optimized&#x20;
4. Storage Optimized

### General Purpose

It balance every kind of spec (compute, memory and networking) . including `t2.micro` etc.

#### Usecase

* normal webserver

### Compute Optimized

this instance recommend for high performance processor (High CPU). including `C6g` etc. (C = CPU)

#### Usecase

* Batch Processing&#x20;
* Dedicated game server
* HPC (High performance computing)

### Memory Optimized

this instance recommend for large data sets in memory (High RAM). including `R6g` etc. (R = RAM)

#### Usecase

* Application real time processing
* BI
* High performance relational/non-relational DB&#x20;

### Storage Optimized

this instance recommend for high read and write access to large data sets on local storage.

#### Usecase

* High Online transaction procession
* Warehouse Application
