Cloud DBs
Cloud DBs
Source: https://www.linkedin.com/pulse/transition-devops-jasmine-scott/
3
u A CI/CD Pipeline is the backbone of the modern DevOps environment. It
bridges the gap between development and operations teams by automating
the building, testing, and deployment of applications:
u Continuous Integration (CI) = short-lived feature branches, team is merging to
master branch multiple times per day, fully automated build and test process;
deployment is manual
u Continuous Delivery (CD) = CI + the entire software release process is automated,
it may be composed of multiple stages, and deployment to production is manual
u Continuous Deployment = CI + CD + fully automated deployment to production
CI/CD on AWS - Summary
u There are several tools to help that can help with your pipelines on AWS
u There many more 3rd party tools you can choose from
Databases in the Cloud (SQL vs. NoSQL)
u What does this mean for what you would manage vs. the cloud
provider (AWS?)
Amazon RDS - Features & Benefits 9
u Better performance
u Compatible with MySQL and PostgreSQL
u Serverless option
u Database will automatically start up, shut down, and scale capacity up or down
based on your application’s needs
u Native High Availability including “multi-master”
u You can multiple read/write instances of your database across multiple AZ
u Downsides
u Can be more expensive, vendor lock-in
Amazon RDS (managed) vs. Self-hosting 14
u With SQL databases, there is overhead for complex select, update and
deletes:
u Select – Joining too many tables to create a huge table
u Update – Each update affects other tables
u Delete – Must guarantee consistency of data
In one day:
24 million transactions processed by Walmart
100 TB of data uploaded to Facebook
175 million tweets on Twitter
Answer: NoSQL
1 1 Pathfinder 1 Nissan
1 2 Bluebird 2 Honda
2 1 Civic
Source: https://www.nextplatform.com/2018/09/19/the-graph-database-poised-to-pounce-on-the-mainstream/
NoSQL DBs – Column Store 26
• Most NoSQL databases do not perform ACID transactions for ensuring that data remains
consistent across the entire database as it is moved around
Data • NoSQL relies on the principle of “eventual consistency”, and it poses the risk that data on
Consistency one database node may go out of sync with data on another node
• The design and query languages of NoSQL databases vary widely between different
Lack of NoSQL products
Standards
• Many NoSQL systems are open-source projects and companies offering support are often
are small and/or start-ups without the global reach, support resources, or credibility of an
Less Support Oracle, Microsoft, or IBM
When to pick SQL vs. NoSQL? 33
SQL more ideal for:
• Transactions & Data Consistency - Anything to do with money or numbers that
requires transactions, ACID and data consistency will be very important giving
clear advantage to Relational Databases
• Storing Relationships - Relational databases are built to store relationships. They
have been tried & tested & are used by big guns in the industry like Facebook.
Bottom-line - The choice between NoSQL and SQL depends on the complex
business needs of an organization and volume and variety of data it consumes
Source: https://www.quora.com/Why-and-when-should-I-use-NoSQL-instead-of-SQL
What about other cloud providers? 34
Source: https://thomaslarock.com/2019/05/updated-data-services-comparison-aws-vs-azure/
35
?
u The scenarios can be found in Assignment >
Activity #7 > Cost Estimating Scenarios
DynamoDB Activity (Due next class) 36
u You will be creating a DynamoDB instance and using the query and
scan operations using AWS command-line interface (CLI)
u Data for the database will be transferred from an S3 bucket to your
DynamoDB
Bonus