Google Cloud Storage (GCS) is an online file storage web service on Google Cloud Platform. It allows for unlimited storage of objects and data. It is one of the largest public cloud storage systems.
Different types of files can be stored in GCS. For example:
.jpg
, .png
, and so on).txt
).mp4
)CSV
, JSON
, and so on.In GCS, different objects (files) are stored in unique namespaces called buckets. The buckets belong to a project which is grouped under an organization.
Note: Each bucket stores multiple objects, but an object belongs to only one bucket.
Cloud storage has automatic object versioning, so we don’t have to worry about that ourselves. We can still access the older versions if needed.
GCS offers four storage classes:
We can automatically transition the data to different storage classes with object lifecycle management. Here are more details about the different storage classes:
Storage class | Features | Use | Price |
---|---|---|---|
Multi-regional | 99.95% availability. Storage across the globe. |
Suitable for companies that need to access data frequently, such as website content and mobile applications data. | $0.026 per GB per month. |
Regional | 99.99% availability. Storage only at a geographical location |
Best for computing, analytics, and machine learning. | $0.02 per GB per month |
Nearline | 99% availability. 30 days minimum storage. |
Data we do not frequently access, not more than once a month. Used for archiving data and disaster management. |
$0.04 per GB per month. |
Coldline | 99% availability. 90 days minimum storage. Least expensive data retrieval costs |
Data we infrequently access, that is, not more than once per year. Typically, it is used for disaster recovery. |
$0.07 per GB per month. |
The objects within the bucket can be added and used using the console or gsutil. We can grant specific members or teams access or make access fully public.