blog
Comparing Cloud Database Options for PostgreSQL
PostgreSQL is world’s most advanced and preferred open source RDBMS for many start-ups, mobile applications and developers.
The traditional way to set up, operate and scale PostgreSQL is time consuming and requires expertise in database systems and PostgreSQL.
There are many vendors which provides cloud platforms for different databases. These solutions come with facilities to make it easy to set up, operate and scale PostgreSQL deployments in the cloud.
Some examples of these services for PostgreSQL are Amazon RDS for PostgreSQL, Google cloud SQL for PostgreSQL, Heroku PostgreSQL, EnterpriseDB cloud database, Microsoft Azure for PostgreSQL, etc.
There are two cloud database environment models.
- Traditional cloud model: The content will be run on the particular enterprise infrastructure and any oversight will fall into the shoulders of the IT staff of the company.
- Database as a service (DBaaS): It runs on the service providers infrastructure and they (the vendor) would be responsible for any hitches or glitches.
Benefits of a Cloud-Based Database
- Increase the speed of getting the application to the market
- Easy to set up and administer the database
- Getting rid of physical infrastructure.
- Developers can focus on the core part of the application instead of managing and maintaining servers.
- Ease to take backup
- Scale out easily
- High availability
Amazon RDS for PostgreSQL
Amazon RDS for PostgreSQL is one of the biggest players in the world which provides PostgreSQL database service in the cloud. It is one of the best option to scale a PostgreSQL deployment in the cloud. With Amazon RDS, we can easily manage and administer our databases.
Features of Using Amazon RDS for PostgreSQL
- Easy to set up
- Push button scaling
- Automated backup and recovery
- Resizable hardware capacity and storage management
- Cost efficient
- High availability
Pricing
Amazon RDS pricing policy is to pay only for what you use. There is no minimum or maximum fee. You can estimate your monthly bill using the AWS simple monthly calculator.
Amazon RDS for PostgreSQL pricing depends on type of instances.
- Single AZ deployment: Pricing depends on deployment of DB instances in single availability zone.
- Multi AZ deployment: Pricing depends on deployment of DB instances in multiple availability zone.
- Reserved instances
Example
Google Cloud SQL
Google’s Cloud SQL provide a fully managed database service that makes it easy to set up, maintain and administer PostgreSQL BETA databases in the cloud. It is hosted on Google cloud platform which offers high performance, scalability and provides infrastructure for applications running anywhere in the world.
Features
- Scalability
- High performance
- Integrated
- Fully managed
- Security
- Standard APIs
- Availability protection
Pricing
Google’s Cloud SQL for PostgreSQL pricing is composed of the following charges:
- Instance pricing
- CPU and Memory pricing
- Storage pricing
- Network pricing
Instance Pricing
CPU and memory pricing
Storage pricing
Network pricing
Please check the Google cloud platform pricing calculator for more detail.
Microsoft Azure for PostgreSQL
Azure database for PostgreSQL is a well managed database service that makes it easier to build Apps without any management and administration burden. Azure for PostgreSQL service uses community PostgreSQL and seamlessly works with native tools, drivers and libraries.
Azure for PostgreSQL also provides high availability and scalability in seconds, helping you easily adjust to changes in customer demands. Additionally, you will get benefit from unparalleled security and compliance, including Azure IP Advantage, and Azure’s industry leading reach with more datacenters than any other cloud provider. Azure currently offers support for PostgreSQL versions 9.5 and 9.6.
Features
- Fully managed community PostgreSQL
- Languages and frameworks of customers choice
- Built-in high availability
- Scale within seconds
- Automated backups and point-in-time restore
- Unparalleled security and reach
- Simple and flexible pricing
Pricing tiers
There are three different pricing tiers of Azure database for PostgreSQL:
- Basic
- General purpose
- Memory optimized
Azure database for PostgreSQL pricing tiers are differentiated by the amount of compute in vCores that can be provisioned, memory per vCore, and the storage technology used to store the data. All the resources are provisioned at the PostgreSQL server level. Each server can have one or many databases.
Pricing
Compute generation 4 and compute generation 5
vCore | Price |
---|---|
1 | $0.034/hour |
2 | $0.068/hour |
Storage
GB/month | $0.10 |
The above price is for the basic tier only. Please check the more details about pricing here.
Please check the Quickstart guide for Azure database for PostgreSQL.
Heroku PostgreSQL
Heroku Postgres is a managed SQL Database as a Service provided by Heroku. Heroku Postgres helps to maximize data instead of spending time on database setup and maintenance. It provides a wide range of features like testing schema migration, manage database access levels and protect queries, scale horizontally and quick access of data. Heroku Postgres keep the data very safely because it provides continuous protection to data and also offers a number of ways to replicate, backup and export the data. Heroku Postgres provides a web dashboard and ability to share queries with dataclips.
Features
- Easy to install
- Automated health check
- High availability
- Automatic scaling horizontally
- Seamlessly applying the latest security patch
Pricing
Heroku Postgres offers a wide range of plans to serve use cases that range in size from blogs to large dataset, high transaction applications.
Plan tiers
Plans are divided into five high level tiers. The main difference between each tier is the amount of tolerated monthly downtime for database in the tier.
- Hobby Tier: This is for apps that can tolerate up to 4 hours of downtime per month
- Standard Tier: This is for apps that can tolerate up to 1 hour of downtime per month
- Premium Tier: This is for apps that can tolerate up to 15 minutes of downtime per month
- Private Tier: This is for Heroku Enterprise customers
- Shield Tier: This is for Heroku Enterprise customers who need compliance capable databases.
EnterpriseDB Cloud Database
EnterpriseDB PostgreSQL Plus Cloud Database is used to deploy PostgreSQL databases to cloud server instances. The master database, all replica instances, and Amazon storage for the database run on AWS instances owned by you, while Postgres Plus Cloud Database consoles are owned and operated by EnterpriseDB.
EDB Postgres subscription plan offers subscription for:
The Postgres Plus Cloud Database on AWS and EDB Postgres on Google compute platform are provided through a pay-as-you-go model in AWS marketplace and in the Google marketplace.
This is the estimated cost of EDB postgres on Google compute engine using default configuration.
There are two versions of EDB Postgres Plus Cloud Database.
-
PostgreSQL Plus Cloud Database Basic: This is available with community PostgreSQL database.
-
PostgreSQL Plus Cloud Database Advanced: This is available with EnterpriseDB’s PostgreSQL Plus Advanced Server with Oracle compatibility and enhanced security, performance and manageability.
Features
- Easy to install
- Backup and disaster recovery
- High availability
- Point in time recovery
- Support for Amazon’s Provisioned IOPS: It ensures consistent database performance and increase overall performance for I/O intensive workloads.
There are two options to purchase EDB cloud database:
- Purchase pay-as-you-go offering from Amazon without long term commitment
- Purchase one year subscription from EDB that lets you purchase computing resources directly from Amazon including reserved instances.
For more detail check the EDB Postgres plus cloud database FAQ’s.
Citus DB Cloud
Citus intelligently distributes the data & queries across the nodes so the database can scale and the queries can be faster. Citus is available as a database as a service, as enterprise software, and as open source. It is very simple to shard a PostgreSQL database. Citus cloud provides a fully managed Citus service delivered on top of AWS.
Citus is a extension to PostgreSQL for distributing your database across multiple nodes.
Features
- Scale out database
- Distributed SQL engine
- Seamless migration tools
- Fast performance
- High availability
- Multi-tenant SaaS support
- Automated backup and disaster recovery
Pricing
ElephantSQL
ElephantSQL provides PostgreSQL as a Service. ElephantSQL installs and manages PostgreSQL and offers databases ranging from shard servers for small projects and proof of concepts, up to enterprise-grade multi-server setups. It also provides a browser tool for SQL queries where you can create, read, update and delete data directly from the web browser.
Features
- Fully managed HA PostgreSQL
- Automated backups
- Monitoring
- PostgreSQL browser
Pricing
Conclusion
Cloud databases are very important for removing IT complexities and to drive business goals.
Apart from handling the installation, maintenance and scaling of IT infrastructures, constant upgrades by cloud service providers make it easier for enterprises to cut down operational costs without compromising on security and quality.