0% found this document useful (0 votes)
25 views4 pages

Database Documentation For Carely

Uploaded by

storage1patel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views4 pages

Database Documentation For Carely

Uploaded by

storage1patel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Database Documentation for Carely

Introduction
This document outlines the database setup and structure for the Carely. It details
the current configuration using PostgreSQL hosted on Microsoft Azure, along with
considerations for using a paid backup service for the production environment. The
aim is to ensure reliable, secure, and scalable storage of customer and appointment
data both in development and production settings.

Database Overview
Current Database Setup:
The Barbershop Appointment app uses PostgreSQL, an open-source relational database
management system, hosted on Azure. The PostgreSQL database is used to store customer
details, appointment information, employee data, and barbershop branch details. Azure
was chosen due to its scalability, high availability, and built-in security features such as
encryption at rest and role-based access control. Current Database Setup: Database
Service: Azure PostgreSQL Primary Use: Storing customer details, appointment schedules,
employee profiles, and branch information.
Production Backup Plans:
 Amazon RDS for PostgreSQL – AWS
 Azure Database for PostgreSQL – Azure
 Cloud SQL for PostgreSQL – Google Cloud
 PostgreSQL on IBM Cloud – IBM

Database Service Provider Comparison

1. Amazon Web Services (AWS) – RDS for PostgreSQL:

Overview
AWS offers Amazon RDS (Relational Database Service) for PostgreSQL, a fully managed database
solution that provides scalability, reliability, and security. AWS manages backups, patching, and
scaling for you, ensuring high availability.
Security Features
 Encryption at Rest: Supports encryption using AWS Key Management Service (KMS).
 Encryption in Transit: Supports SSL/TLS encryption for data in transit.
 IAM Integration: Allows for role-based access control using AWS Identity and Access
Management (IAM).
 VPC Isolation: Data can be isolated within a private Virtual Private Cloud (VPC).
 Automated Backups: Automated backups with a retention period of up to 35 days.
Backup Strategy
 Automated Backups: Daily snapshots and transaction log backups.
 Point-in-Time Recovery: Ability to restore the database to any point within the backup
retention period.
 Manual Snapshots: Users can create manual snapshots at any time, which are retained until
explicitly deleted.
Pricing
 On-Demand Pricing: Starts at $0.038 per hour for db.t3.micro (for small instances).
 Storage Costs: $0.10 per GB for General Purpose (SSD) storage.
 Backup Costs: Backup storage is free up to the database size, then costs $0.095 per
GB/month.
 Data Transfer Costs: Free for inbound data, but outbound data transfer costs can add up.
Example Pricing (db.t3.micro instance):
 Hourly Cost: $0.038
 Monthly Cost: Approximately $28/month for a small instance.
Use Case
AWS is best suited for large-scale, scalable production environments with high traffic, offering robust
backup and security options.

2. Microsoft Azure – Azure Database for PostgreSQL


Overview
Azure’s Azure Database for PostgreSQL is a fully managed database service that offers high
availability, automatic backups, and robust security features. Azure provides multiple deployment
options (Single Server, Flexible Server, and Hyperscale).
Security Features
 Encryption at Rest: Transparent Data Encryption (TDE) is enabled by default.
 Encryption in Transit: Supports SSL encryption for secure data transmission.
 VNet Integration: Provides network isolation by integrating with Azure Virtual Networks
(VNets).
 Managed Identity: Allows secure authentication with Azure services without storing
credentials.
 Advanced Threat Protection: Detects and mitigates potential threats, such as SQL injection
attacks.
Backup Strategy
 Automated Backups: Daily backups with a retention period of 7 to 35 days (configurable).
 Point-in-Time Restore: Can restore the database to any point in time within the backup
retention period.
 Geo-Redundant Backups: Option to store backups in a geo-redundant location for disaster
recovery.
Pricing
 Basic Tier: Starts at $0.017 per DTU (Database Transaction Unit) per hour for a Basic SKU.
 General Purpose: Starts at $0.03 per vCore per hour for a Single Server.
 Storage Costs: $0.10 per GB for General Purpose storage.
 Backup Costs: Backup storage is free for up to 100% of your provisioned database storage.
Example Pricing (General Purpose 2 vCores, 50GB Storage):
 Hourly Cost: Around $0.07/hour
 Monthly Cost: Approximately $50/month.
Use Case
Azure offers a comprehensive database service that is well-integrated with other Azure services,
suitable for enterprises needing high availability and advanced security features.

3. Google Cloud Platform (GCP) – Cloud SQL for PostgreSQL


Overview
Google Cloud SQL for PostgreSQL is a fully managed relational database service that provides an
easy way to set up, maintain, and scale PostgreSQL databases on Google Cloud.
Security Features
 Encryption at Rest: All data is encrypted at rest by default using Google-managed encryption
keys.
 Encryption in Transit: Supports SSL/TLS encryption for data in transit.
 IAM Integration: Can integrate with Google Cloud Identity and Access Management (IAM)
for role-based access control.
 Private IP: Supports private IP for better network security.
 Automated Backups: Automatic backups with a retention period of up to 365 days.
Backup Strategy
 Automated Backups: Backups are taken daily, with the ability to retain them for up to 365
days.
 Point-in-Time Recovery: Provides point-in-time restore using automated backup data.
 Manual Snapshots: Allows users to create manual snapshots at any point, which are
retained until explicitly deleted.
Pricing
 Instance Pricing: Starts at $0.030 per hour for db-f1-micro.
 Storage Costs: $0.17 per GB for SSD storage.
 Backup Costs: Backup storage is free for up to 30GB of database storage.
Example Pricing (db-f1-micro instance):
 Hourly Cost: Around $0.03/hour
 Monthly Cost: Approximately $22/month for a small instance.
Use Case
Google Cloud SQL is ideal for developers needing easy-to-manage database services that integrate
well with Google Cloud's ecosystem, offering strong security and scaling options.

4. IBM Cloud – PostgreSQL on IBM Cloud Databases


Overview
IBM offers PostgreSQL on IBM Cloud as part of its fully managed database offering, with options for
high availability, automated backups, and encryption.
Security Features
 Encryption at Rest: Built-in encryption using IBM Cloud’s key management service.
 Encryption in Transit: SSL encryption for all connections to the database.
 Role-Based Access Control: Supports advanced access control to restrict database access.
 VPC Isolation: Provides secure database connections by isolating them within a private VPC.
Backup Strategy
 Automated Backups: IBM provides daily backups with a retention period of 7 to 30 days.
 Point-in-Time Recovery: Ability to restore data to any point within the backup retention
period.
 Continuous Backup: Supports continuous backup for high availability setups.
Pricing
 Instance Pricing: Starts at $0.085 per hour for the smallest instance.
 Storage Costs: $0.10 per GB for SSD storage.
 Backup Costs: Backup storage is charged at $0.03 per GB/month for all retention.
Example Pricing (Standard Plan):
 Hourly Cost: Approximately $0.085/hour.
 Monthly Cost: Around $61/month for a small instance.
Use Case
IBM Cloud is best for businesses already leveraging IBM's enterprise tools, with strong backup,
security, and integration features for PostgreSQL databases.
Point-
Pricing
Backup Security in-
Provi Service (Small
Reten Feature Time
der Name Instanc
tion s Recov
e)
ery

Encrypti
on,
Amazon
Up to IAM,
RDS for $28/
AWS 35 VPC Yes
Postgre month
days Isolatio
SQL
n,
SSL/TLS

Encrypti
Azure on,
Databas Manage
7 to 35 $50/
Azure e for d Yes
days month
Postgre Identity,
SQL VNet,
SSL/TLS

IAM,
Cloud Encrypti
Googl Up to
SQL for on, $22/
e 365 Yes
Postgre Private month
Cloud days
SQL IP,
SSL/TLS

Encrypti
Postgre on, VPC,
IBM SQL on 7 to 30 SSL, $61/
Yes
Cloud IBM days Role- month
Cloud Based
Access

You might also like