SlideShare une entreprise Scribd logo
1  sur  36
Postgres in a world of DevOps
MOVE FAST, OR …
MARC LINSTER
SVP, PRODUCT DEVELOPMENT AND SUPPORT
As every company becomes a software company,
DevOps is the new lean manufacturing.
PaaS
CICD
Microservices
Containers
What
does it
mean for
the
database?
DEVELOPER
FRIENDLY
VERSATILE
DATA MODEL
POLYGLOT
FRIENDLY
RAPID
DEPLOYMENT
What
does it
mean for
the
database?
DEVELOPER
FRIENDLY
VERSATILE
DATA MODEL
POLYGLOT
FRIENDLY
RAPID
DEPLOYMENT
Popularity trend driven by cost and flexibility
MOST USED
MOST LOVED
Industry recognition of skill proficiency
7
Postgres Certification
Major DB Developer Tooling
8
DATABASE WORLD IS CHANGING
9
PAST
“the corporate standard”
Company data centers
Waterfall
IT provisioning
Develop –then- operate
Manual tasks
Routine tasks
Database expert
PRESENT
Many new databases
The cloud
Agile
Self-service provisioning
DevOps
Automation
Hard problems
Data Expert
DBA and
Developer are
no longer living
in separate
worlds
What
does it
mean for
the
database?
DEVELOPER
FRIENDLY
VERSATILE
DATA MODEL
POLYGLOT
FRIENDLY
RAPID
DEPLOYMENT
Postgres:
The most
versatile
DBMS
Runs on all platforms
Speaks every language
Not only SQL
Scales in both directions
JSON Data Types
1. Number:
• Signed decimal number that may contain a fractional part and may use exponential notation.
• No distinction between integer and floating-point
2. String
• A sequence of zero or more Unicode characters.
• Strings are delimited with double-quotation mark
• Supports a backslash escaping syntax.
3. Boolean
• Either of the values true or false.
4. Array
• An ordered list of zero or more values,
• Each values may be of any type.
• Arrays use square bracket notation with elements being comma-separated.
5. Object
• An unordered associative array (name/value pairs).
• Objects are delimited with curly brackets
• Commas to separate each pair
• Each pair the colon ':' character separates the key or name from its value.
• All keys must be strings and should be distinct from each other within that object.
6. null
• An empty value, using the word null
JSON is defined per RFC – 7159
For more detail please refer
http://tools.ietf.org/html/rfc7159
JSON Data Type Example
{
"firstName": "John", -- String Type
"lastName": "Smith", -- String Type
"isAlive": true, -- Boolean Type
"age": 25, -- Number Type
"height_cm": 167.6, -- Number Type
"address": { -- Object Type
"streetAddress": "21 2nd Street”,
"city": "New York”,
"state": "NY”,
"postalCode": "10021-3100”
}
"phoneNumbers": [ -- Object Array
{ -- Object
"type": "home”,
"number": "212 555-1234”
},
{
"type": "office”,
"number": "646 555-4567”
}
],
"children": [],
"spouse": null -- Null
}
No need for programmatic logic to combine SQL and NoSQL in the application.
Postgres does it all.
Why choose between NoSQL and Relational?
SELECT DISTINCT
product_type,
data->>'brand' as Brand,
data->>'available' as Availability
FROM json_data
JOIN products
ON (products.product_type=json_data.data->>'name')
WHERE json_data.data->>'available'=true;
product_type | brand | availability
---------------------------+-----------+--------------
AC3 Phone | ACME | true
ANSI SQL
JSON
Why not just SQL?
START SCHEMALESS
• Leverage structure as it
emerges
• Support agile, iterative
development
• Create data models
where they provide
value
LEVERAGE JSONB
• Leverage JSONB for
rapidly changing data
models
• Example: address
data records
• Conventional
columns: First
Name, Last Name
• JSONB: Contact
Information
• Phone numbers
(home, cell, car,
weekend,
boyfriend… )
• Email (work, private,
spam …)
AVOID PENALTY
• Avoid the DDL penalty
for adding columns
What
does it
mean for
the
database?
DEVELOPER
FRIENDLY
VERSATILE
DATA MODEL
POLYGLOT
FRIENDLY
RAPID
DEPLOYMENT
Postgres in the Polyglot Ecosystem
Event Capture Legacy Systems
Data Warehouse
Big Data
Open Source ODBMS
Foreign Data Wrappers – Making Polyglot Happen
FDW IMPLEMENTS SQL/MED
("SQL MANAGEMENT OF EXTERNAL DATA")
PostgreSQL 9.1 - read-only support
PostgreSQL 9.3 – read/write support
PostgreSQL 9.6 – pushdown joins, sorts, UPDATE, DELETE
PostgreSQL 10 - aggregate pushdown
FDW: Makes data on other servers (or services) look like tables in Postgres.
Available for many data sources (MongoDB, MySQL, HDFS, Spark, …)
What
does it
mean for
the
database?
DEVELOPER
FRIENDLY
VERSATILE
DATA MODEL
POLYGLOT
FRIENDLY
RAPID
DEPLOYMENT
Rapid Deployment
CLOUD
• Public (AWS, Google,
Azure, Alibaba Cloud, …)
• Private (OpenStack,
VCloud, Puppet/Chef on
Virtualization, Pivotal
Cloud Foundry,
Container/Kubernetes/
OpenShift)
DBaaS
• Stop deploying databases
• Deploy clusters w. HA,
DR, self healing, scaling,
etc.
• provide services, not
databases
Micro Services
• Large monolithic
databases refactored into
transaction sets
• Applications get refactored
into micro-services
• Deployment models move
from VM/Bare Metal to
DBaaS and Containers
SUPPORTING DevOps WITH
DBaaS
Address the tension between developers and
operations
DEVELOPERS WANT | Agility | Speed to deploy |
Flow through tool chain
OPERATIONS WANTS | Visibility | Control –
budgeted resources – cost –data models |
Efficient use of resources
Micro Services and Containers
22
Customer
Transactions
Inventory
Transactions
Shipping
Transactions
Sales
TransactionsMonolithic DB
System of Record
Refactored by
transactions
sets
Employee
Transactions
Compensation
Transactions
Salary
Transactions
Payroll
Transactions
Key to DevOps
MAJOR TRENDS
• Large monolithic
databases
refactored into
transaction sets
• Applications get
refactored into
micro-services
• Deployment models
move from VM/Bare
Metal to DBaaS and
Containers
THE CHANGING ROLE OF THE DBA
From Ops Supporter to
DevOps Collaborator
23
FROM DATABASE ADMIN
TO DATA STRATEGIST
24
Automation ends mundane and repetitive tasks
Adding new servers by clicking a few buttons
Frees up time for strategic efforts
More focus on the data and applications
Understanding data sources and value to organization
Develop new skills in areas such as data science and machine learning
FROM HARDWARE TWEAKER
TO MASTER OF CLOUD
TECHNOLOGIES
CONTAINERSCLOUDS
FROM SCHEMA INDEXER
TO MASTER MODELER
26
DBAs historically specialized by RDBMS
Now need to know/recommend different platforms
Also still need deep DB knowledge
And understand DB as part of a full stack
FROM SERVER JOCKEY
TO UTILITY PROVIDER
27
DBs now viewed as a utility
Flip a switch and get it now
Burstable capacity
Less time to plan
FROM LICENSE GATEKEEPER
TO BUDGET OWNER
28
Most cloud services are provided by a third-party vendor
Need to understand services
How to optimize cost vs. performance including infrastructure
Architecting to meet requirements and budget
PUBLIC
FROM SITE ADMIN TO
PLATFORM BROKER
29
DBs becoming platform agnostic
Support on premises or public cloud
Many deployment and service level
options
Collaborate with teams supporting
the cloud/full application stack
Managed
Cloud
Infrastructure
On Premises
DBaaS
platform
Self-managed
DBMS
Licenses
Managed On
Premises
DB
Self-Managed
Cloud
Compute
Fully
Managed
DBaaS PRIVATE
FROM QUERY OPTIMIZER
TO PERFORMANCE PRO
30
Less time updating/troubleshooting servers
More time optimizing data architecture
Monitoring of infrastructure and database performance holistically
Advanced data modeling, query tuning and Indexing strategies to improve performance
FROM TO ACCOUNT ADMIN
TO SECURITY EXPERT
31
Cloud vendors provide secure infrastructure
But must ensure that all systems are using that infrastructure
properly, especially the database
Protecting sensitive information across highly-distributed
infrastructures can be a challenge
DBA needs to understand possible threat sources
Compliance with corporate, industry, and governmental
regulations add new responsibilities on DBA
FROM OPS SUPPORT TO
DevOps COLLABORATOR
32
Increasing focus on continuous deployment and delivery
DBAs take on tasks once reserved for developers and
work closely with DevOps teams
More moving out of centralized IT and into the line-of-
business/applications teams
While continuing as data steward and trusted adviser
AND STILL NEED
TO KEEP IT RUNNING
3333
NOW HAVE TO WORRY ABOUT THE CLOUD FOR:
Service providers apply fix packs and upgrade DBMS versions
Backup and recovery in the cloud is fully automated
DBA still needs awareness and understanding of the potential impact
Scalability
Fault tolerance
Replication
DATABASE AS A SERVICE
DBaaS CAN HELP
34
Self-service provisioning
Automation of routine tasks
“Infinite” capacity
Multi-cloud/hybrid deployment
Tradeoff control and options for agility
What
does it
mean for
the
database?
• Open co-existence
with HDFS, Mongo,
Kafka, ...
• Rich FDW library
• Cloud friendly
• Micro/Mini services
database refactoring
• DBaaS focus
• Multi model database
• Rich set of data types
and extensions
(JSONB, Hstore,
PostGIS, ...)
• Easy to use
• High adoption rate
• Readily available skill
set
• Training and
certification
DEVELOPER
FRIENDLY
VERSATILE
DATA MODEL
POLYGLOT
FRIENDLY
RAPID
DEPLOYMENT
THANK YOU

Contenu connexe

Tendances

Webinar: Attaining Excellence in Big Data Integration
Webinar: Attaining Excellence in Big Data IntegrationWebinar: Attaining Excellence in Big Data Integration
Webinar: Attaining Excellence in Big Data Integration
SnapLogic
 

Tendances (20)

Building the Enterprise Data Lake - Important Considerations Before You Jump In
Building the Enterprise Data Lake - Important Considerations Before You Jump InBuilding the Enterprise Data Lake - Important Considerations Before You Jump In
Building the Enterprise Data Lake - Important Considerations Before You Jump In
 
Creating Agility Through Data Governance and Self-service Integration with S...
Creating Agility Through Data Governance and Self-service Integration with S...Creating Agility Through Data Governance and Self-service Integration with S...
Creating Agility Through Data Governance and Self-service Integration with S...
 
The Changing Role of the DBA in the Cloud
The Changing Role of the DBA in the CloudThe Changing Role of the DBA in the Cloud
The Changing Role of the DBA in the Cloud
 
Data Warehousing in the Cloud: Practical Migration Strategies
Data Warehousing in the Cloud: Practical Migration Strategies Data Warehousing in the Cloud: Practical Migration Strategies
Data Warehousing in the Cloud: Practical Migration Strategies
 
Beyond Batch: Is ETL still relevant in the API economy?
Beyond Batch: Is ETL still relevant in the API economy?Beyond Batch: Is ETL still relevant in the API economy?
Beyond Batch: Is ETL still relevant in the API economy?
 
Cloud-Con: Integration & Web APIs
Cloud-Con: Integration & Web APIsCloud-Con: Integration & Web APIs
Cloud-Con: Integration & Web APIs
 
Benefits of Transferring Real-Time Data to Hadoop at Scale
Benefits of Transferring Real-Time Data to Hadoop at ScaleBenefits of Transferring Real-Time Data to Hadoop at Scale
Benefits of Transferring Real-Time Data to Hadoop at Scale
 
Converged Everything, Converged Infrastructure delivering business value and ...
Converged Everything, Converged Infrastructure delivering business value and ...Converged Everything, Converged Infrastructure delivering business value and ...
Converged Everything, Converged Infrastructure delivering business value and ...
 
Appplications – Driving Expansion In The Cloud
Appplications – Driving Expansion In The CloudAppplications – Driving Expansion In The Cloud
Appplications – Driving Expansion In The Cloud
 
The Transformation of your Data in modern IT (Presented by DellEMC)
The Transformation of your Data in modern IT (Presented by DellEMC)The Transformation of your Data in modern IT (Presented by DellEMC)
The Transformation of your Data in modern IT (Presented by DellEMC)
 
Webinar: The 5 Most Critical Things to Understand About Modern Data Integration
Webinar: The 5 Most Critical Things to Understand About Modern Data IntegrationWebinar: The 5 Most Critical Things to Understand About Modern Data Integration
Webinar: The 5 Most Critical Things to Understand About Modern Data Integration
 
Data Services and the Modern Data Ecosystem (ASEAN)
Data Services and the Modern Data Ecosystem (ASEAN)Data Services and the Modern Data Ecosystem (ASEAN)
Data Services and the Modern Data Ecosystem (ASEAN)
 
Webinar: Attaining Excellence in Big Data Integration
Webinar: Attaining Excellence in Big Data IntegrationWebinar: Attaining Excellence in Big Data Integration
Webinar: Attaining Excellence in Big Data Integration
 
MongoDB IoT City Tour STUTTGART: Hadoop and future data management. By, Cloudera
MongoDB IoT City Tour STUTTGART: Hadoop and future data management. By, ClouderaMongoDB IoT City Tour STUTTGART: Hadoop and future data management. By, Cloudera
MongoDB IoT City Tour STUTTGART: Hadoop and future data management. By, Cloudera
 
On Demand BI
On Demand BIOn Demand BI
On Demand BI
 
Webinar: It's the 21st Century - Why Isn't Your Data Integration Loosely Coup...
Webinar: It's the 21st Century - Why Isn't Your Data Integration Loosely Coup...Webinar: It's the 21st Century - Why Isn't Your Data Integration Loosely Coup...
Webinar: It's the 21st Century - Why Isn't Your Data Integration Loosely Coup...
 
The SnapLogic Integration Cloud for ServiceNow
The SnapLogic Integration Cloud for ServiceNowThe SnapLogic Integration Cloud for ServiceNow
The SnapLogic Integration Cloud for ServiceNow
 
Data Engineer, Patterns & Architecture The future: Deep-dive into Microservic...
Data Engineer, Patterns & Architecture The future: Deep-dive into Microservic...Data Engineer, Patterns & Architecture The future: Deep-dive into Microservic...
Data Engineer, Patterns & Architecture The future: Deep-dive into Microservic...
 
Business Intelligence In The Cloud
Business Intelligence In The CloudBusiness Intelligence In The Cloud
Business Intelligence In The Cloud
 
Infrastructure migration to azure cloud
Infrastructure migration to azure cloudInfrastructure migration to azure cloud
Infrastructure migration to azure cloud
 

Similaire à PgConf 2018 - Postgres in a World of DevOps

Final_CloudEventFrankfurt2017 (1).pdf
Final_CloudEventFrankfurt2017 (1).pdfFinal_CloudEventFrankfurt2017 (1).pdf
Final_CloudEventFrankfurt2017 (1).pdf
MongoDB
 
Accelerating a Path to Digital With a Cloud Data Strategy
Accelerating a Path to Digital With a Cloud Data StrategyAccelerating a Path to Digital With a Cloud Data Strategy
Accelerating a Path to Digital With a Cloud Data Strategy
MongoDB
 
Mark Simpson - UKOUG23 - Refactoring Monolithic Oracle Database Applications ...
Mark Simpson - UKOUG23 - Refactoring Monolithic Oracle Database Applications ...Mark Simpson - UKOUG23 - Refactoring Monolithic Oracle Database Applications ...
Mark Simpson - UKOUG23 - Refactoring Monolithic Oracle Database Applications ...
marksimpsongw
 
PROG_UntoldStory ISV eBook_0706c FINAL
PROG_UntoldStory ISV eBook_0706c FINALPROG_UntoldStory ISV eBook_0706c FINAL
PROG_UntoldStory ISV eBook_0706c FINAL
SolarWinds MSP
 

Similaire à PgConf 2018 - Postgres in a World of DevOps (20)

Final_CloudEventFrankfurt2017 (1).pdf
Final_CloudEventFrankfurt2017 (1).pdfFinal_CloudEventFrankfurt2017 (1).pdf
Final_CloudEventFrankfurt2017 (1).pdf
 
Docker Summit MongoDB - Data Democratization
Docker Summit MongoDB - Data Democratization Docker Summit MongoDB - Data Democratization
Docker Summit MongoDB - Data Democratization
 
Data Treatment MongoDB
Data Treatment MongoDBData Treatment MongoDB
Data Treatment MongoDB
 
Accelerating a Path to Digital With a Cloud Data Strategy
Accelerating a Path to Digital With a Cloud Data StrategyAccelerating a Path to Digital With a Cloud Data Strategy
Accelerating a Path to Digital With a Cloud Data Strategy
 
Benefits of the Azure cloud
Benefits of the Azure cloudBenefits of the Azure cloud
Benefits of the Azure cloud
 
Evolving From Monolithic to Distributed Architecture Patterns in the Cloud
Evolving From Monolithic to Distributed Architecture Patterns in the CloudEvolving From Monolithic to Distributed Architecture Patterns in the Cloud
Evolving From Monolithic to Distributed Architecture Patterns in the Cloud
 
OPEN'17_4_Postgres: The Centerpiece for Modernising IT Infrastructures
OPEN'17_4_Postgres: The Centerpiece for Modernising IT InfrastructuresOPEN'17_4_Postgres: The Centerpiece for Modernising IT Infrastructures
OPEN'17_4_Postgres: The Centerpiece for Modernising IT Infrastructures
 
Benefits of the Azure Cloud
Benefits of the Azure CloudBenefits of the Azure Cloud
Benefits of the Azure Cloud
 
Integration intervention: Get your apps and data up to speed
Integration intervention: Get your apps and data up to speedIntegration intervention: Get your apps and data up to speed
Integration intervention: Get your apps and data up to speed
 
OpenSistemas Corporate Presentation
OpenSistemas Corporate PresentationOpenSistemas Corporate Presentation
OpenSistemas Corporate Presentation
 
¿Cómo modernizar una arquitectura de TI con la virtualización de datos?
¿Cómo modernizar una arquitectura de TI con la virtualización de datos?¿Cómo modernizar una arquitectura de TI con la virtualización de datos?
¿Cómo modernizar una arquitectura de TI con la virtualización de datos?
 
Forecast odcau1 100_posttech
Forecast odcau1 100_posttechForecast odcau1 100_posttech
Forecast odcau1 100_posttech
 
Webinar - Delivering Enhanced Message Processing at Scale With an Always-on D...
Webinar - Delivering Enhanced Message Processing at Scale With an Always-on D...Webinar - Delivering Enhanced Message Processing at Scale With an Always-on D...
Webinar - Delivering Enhanced Message Processing at Scale With an Always-on D...
 
AWS Webcast - Informatica - Big Data Solutions Showcase
AWS Webcast - Informatica - Big Data Solutions ShowcaseAWS Webcast - Informatica - Big Data Solutions Showcase
AWS Webcast - Informatica - Big Data Solutions Showcase
 
Mark Simpson - UKOUG23 - Refactoring Monolithic Oracle Database Applications ...
Mark Simpson - UKOUG23 - Refactoring Monolithic Oracle Database Applications ...Mark Simpson - UKOUG23 - Refactoring Monolithic Oracle Database Applications ...
Mark Simpson - UKOUG23 - Refactoring Monolithic Oracle Database Applications ...
 
Cloud Data Integration Best Practices
Cloud Data Integration Best PracticesCloud Data Integration Best Practices
Cloud Data Integration Best Practices
 
Overcoming Today's Data Challenges with MongoDB
Overcoming Today's Data Challenges with MongoDBOvercoming Today's Data Challenges with MongoDB
Overcoming Today's Data Challenges with MongoDB
 
Transforming Business in a Digital Era with Big Data and Microsoft
Transforming Business in a Digital Era with Big Data and MicrosoftTransforming Business in a Digital Era with Big Data and Microsoft
Transforming Business in a Digital Era with Big Data and Microsoft
 
Technological insights behind Clusterpoint database
Technological insights behind Clusterpoint databaseTechnological insights behind Clusterpoint database
Technological insights behind Clusterpoint database
 
PROG_UntoldStory ISV eBook_0706c FINAL
PROG_UntoldStory ISV eBook_0706c FINALPROG_UntoldStory ISV eBook_0706c FINAL
PROG_UntoldStory ISV eBook_0706c FINAL
 

Plus de EDB

EFM Office Hours - APJ - July 29, 2021
EFM Office Hours - APJ - July 29, 2021EFM Office Hours - APJ - July 29, 2021
EFM Office Hours - APJ - July 29, 2021
EDB
 
Is There Anything PgBouncer Can’t Do?
Is There Anything PgBouncer Can’t Do?Is There Anything PgBouncer Can’t Do?
Is There Anything PgBouncer Can’t Do?
EDB
 
A Deeper Dive into EXPLAIN
A Deeper Dive into EXPLAINA Deeper Dive into EXPLAIN
A Deeper Dive into EXPLAIN
EDB
 

Plus de EDB (20)

Cloud Migration Paths: Kubernetes, IaaS, or DBaaS
Cloud Migration Paths: Kubernetes, IaaS, or DBaaSCloud Migration Paths: Kubernetes, IaaS, or DBaaS
Cloud Migration Paths: Kubernetes, IaaS, or DBaaS
 
Die 10 besten PostgreSQL-Replikationsstrategien für Ihr Unternehmen
Die 10 besten PostgreSQL-Replikationsstrategien für Ihr UnternehmenDie 10 besten PostgreSQL-Replikationsstrategien für Ihr Unternehmen
Die 10 besten PostgreSQL-Replikationsstrategien für Ihr Unternehmen
 
Migre sus bases de datos Oracle a la nube
Migre sus bases de datos Oracle a la nube Migre sus bases de datos Oracle a la nube
Migre sus bases de datos Oracle a la nube
 
EFM Office Hours - APJ - July 29, 2021
EFM Office Hours - APJ - July 29, 2021EFM Office Hours - APJ - July 29, 2021
EFM Office Hours - APJ - July 29, 2021
 
Benchmarking Cloud Native PostgreSQL
Benchmarking Cloud Native PostgreSQLBenchmarking Cloud Native PostgreSQL
Benchmarking Cloud Native PostgreSQL
 
Las Variaciones de la Replicación de PostgreSQL
Las Variaciones de la Replicación de PostgreSQLLas Variaciones de la Replicación de PostgreSQL
Las Variaciones de la Replicación de PostgreSQL
 
NoSQL and Spatial Database Capabilities using PostgreSQL
NoSQL and Spatial Database Capabilities using PostgreSQLNoSQL and Spatial Database Capabilities using PostgreSQL
NoSQL and Spatial Database Capabilities using PostgreSQL
 
Is There Anything PgBouncer Can’t Do?
Is There Anything PgBouncer Can’t Do?Is There Anything PgBouncer Can’t Do?
Is There Anything PgBouncer Can’t Do?
 
Data Analysis with TensorFlow in PostgreSQL
Data Analysis with TensorFlow in PostgreSQLData Analysis with TensorFlow in PostgreSQL
Data Analysis with TensorFlow in PostgreSQL
 
Practical Partitioning in Production with Postgres
Practical Partitioning in Production with PostgresPractical Partitioning in Production with Postgres
Practical Partitioning in Production with Postgres
 
A Deeper Dive into EXPLAIN
A Deeper Dive into EXPLAINA Deeper Dive into EXPLAIN
A Deeper Dive into EXPLAIN
 
IOT with PostgreSQL
IOT with PostgreSQLIOT with PostgreSQL
IOT with PostgreSQL
 
A Journey from Oracle to PostgreSQL
A Journey from Oracle to PostgreSQLA Journey from Oracle to PostgreSQL
A Journey from Oracle to PostgreSQL
 
Psql is awesome!
Psql is awesome!Psql is awesome!
Psql is awesome!
 
EDB 13 - New Enhancements for Security and Usability - APJ
EDB 13 - New Enhancements for Security and Usability - APJEDB 13 - New Enhancements for Security and Usability - APJ
EDB 13 - New Enhancements for Security and Usability - APJ
 
Comment sauvegarder correctement vos données
Comment sauvegarder correctement vos donnéesComment sauvegarder correctement vos données
Comment sauvegarder correctement vos données
 
Cloud Native PostgreSQL - Italiano
Cloud Native PostgreSQL - ItalianoCloud Native PostgreSQL - Italiano
Cloud Native PostgreSQL - Italiano
 
New enhancements for security and usability in EDB 13
New enhancements for security and usability in EDB 13New enhancements for security and usability in EDB 13
New enhancements for security and usability in EDB 13
 
Best Practices in Security with PostgreSQL
Best Practices in Security with PostgreSQLBest Practices in Security with PostgreSQL
Best Practices in Security with PostgreSQL
 
Cloud Native PostgreSQL - APJ
Cloud Native PostgreSQL - APJCloud Native PostgreSQL - APJ
Cloud Native PostgreSQL - APJ
 

Dernier

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Dernier (20)

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 

PgConf 2018 - Postgres in a World of DevOps

  • 1. Postgres in a world of DevOps MOVE FAST, OR … MARC LINSTER SVP, PRODUCT DEVELOPMENT AND SUPPORT
  • 2. As every company becomes a software company, DevOps is the new lean manufacturing. PaaS CICD Microservices Containers
  • 5. Popularity trend driven by cost and flexibility
  • 7. Industry recognition of skill proficiency 7 Postgres Certification
  • 8. Major DB Developer Tooling 8
  • 9. DATABASE WORLD IS CHANGING 9 PAST “the corporate standard” Company data centers Waterfall IT provisioning Develop –then- operate Manual tasks Routine tasks Database expert PRESENT Many new databases The cloud Agile Self-service provisioning DevOps Automation Hard problems Data Expert DBA and Developer are no longer living in separate worlds
  • 11. Postgres: The most versatile DBMS Runs on all platforms Speaks every language Not only SQL Scales in both directions
  • 12. JSON Data Types 1. Number: • Signed decimal number that may contain a fractional part and may use exponential notation. • No distinction between integer and floating-point 2. String • A sequence of zero or more Unicode characters. • Strings are delimited with double-quotation mark • Supports a backslash escaping syntax. 3. Boolean • Either of the values true or false. 4. Array • An ordered list of zero or more values, • Each values may be of any type. • Arrays use square bracket notation with elements being comma-separated. 5. Object • An unordered associative array (name/value pairs). • Objects are delimited with curly brackets • Commas to separate each pair • Each pair the colon ':' character separates the key or name from its value. • All keys must be strings and should be distinct from each other within that object. 6. null • An empty value, using the word null JSON is defined per RFC – 7159 For more detail please refer http://tools.ietf.org/html/rfc7159
  • 13. JSON Data Type Example { "firstName": "John", -- String Type "lastName": "Smith", -- String Type "isAlive": true, -- Boolean Type "age": 25, -- Number Type "height_cm": 167.6, -- Number Type "address": { -- Object Type "streetAddress": "21 2nd Street”, "city": "New York”, "state": "NY”, "postalCode": "10021-3100” } "phoneNumbers": [ -- Object Array { -- Object "type": "home”, "number": "212 555-1234” }, { "type": "office”, "number": "646 555-4567” } ], "children": [], "spouse": null -- Null }
  • 14. No need for programmatic logic to combine SQL and NoSQL in the application. Postgres does it all. Why choose between NoSQL and Relational? SELECT DISTINCT product_type, data->>'brand' as Brand, data->>'available' as Availability FROM json_data JOIN products ON (products.product_type=json_data.data->>'name') WHERE json_data.data->>'available'=true; product_type | brand | availability ---------------------------+-----------+-------------- AC3 Phone | ACME | true ANSI SQL JSON
  • 15. Why not just SQL? START SCHEMALESS • Leverage structure as it emerges • Support agile, iterative development • Create data models where they provide value LEVERAGE JSONB • Leverage JSONB for rapidly changing data models • Example: address data records • Conventional columns: First Name, Last Name • JSONB: Contact Information • Phone numbers (home, cell, car, weekend, boyfriend… ) • Email (work, private, spam …) AVOID PENALTY • Avoid the DDL penalty for adding columns
  • 17. Postgres in the Polyglot Ecosystem Event Capture Legacy Systems Data Warehouse Big Data Open Source ODBMS
  • 18. Foreign Data Wrappers – Making Polyglot Happen FDW IMPLEMENTS SQL/MED ("SQL MANAGEMENT OF EXTERNAL DATA") PostgreSQL 9.1 - read-only support PostgreSQL 9.3 – read/write support PostgreSQL 9.6 – pushdown joins, sorts, UPDATE, DELETE PostgreSQL 10 - aggregate pushdown FDW: Makes data on other servers (or services) look like tables in Postgres. Available for many data sources (MongoDB, MySQL, HDFS, Spark, …)
  • 20. Rapid Deployment CLOUD • Public (AWS, Google, Azure, Alibaba Cloud, …) • Private (OpenStack, VCloud, Puppet/Chef on Virtualization, Pivotal Cloud Foundry, Container/Kubernetes/ OpenShift) DBaaS • Stop deploying databases • Deploy clusters w. HA, DR, self healing, scaling, etc. • provide services, not databases Micro Services • Large monolithic databases refactored into transaction sets • Applications get refactored into micro-services • Deployment models move from VM/Bare Metal to DBaaS and Containers
  • 21. SUPPORTING DevOps WITH DBaaS Address the tension between developers and operations DEVELOPERS WANT | Agility | Speed to deploy | Flow through tool chain OPERATIONS WANTS | Visibility | Control – budgeted resources – cost –data models | Efficient use of resources
  • 22. Micro Services and Containers 22 Customer Transactions Inventory Transactions Shipping Transactions Sales TransactionsMonolithic DB System of Record Refactored by transactions sets Employee Transactions Compensation Transactions Salary Transactions Payroll Transactions Key to DevOps MAJOR TRENDS • Large monolithic databases refactored into transaction sets • Applications get refactored into micro-services • Deployment models move from VM/Bare Metal to DBaaS and Containers
  • 23. THE CHANGING ROLE OF THE DBA From Ops Supporter to DevOps Collaborator 23
  • 24. FROM DATABASE ADMIN TO DATA STRATEGIST 24 Automation ends mundane and repetitive tasks Adding new servers by clicking a few buttons Frees up time for strategic efforts More focus on the data and applications Understanding data sources and value to organization Develop new skills in areas such as data science and machine learning
  • 25. FROM HARDWARE TWEAKER TO MASTER OF CLOUD TECHNOLOGIES CONTAINERSCLOUDS
  • 26. FROM SCHEMA INDEXER TO MASTER MODELER 26 DBAs historically specialized by RDBMS Now need to know/recommend different platforms Also still need deep DB knowledge And understand DB as part of a full stack
  • 27. FROM SERVER JOCKEY TO UTILITY PROVIDER 27 DBs now viewed as a utility Flip a switch and get it now Burstable capacity Less time to plan
  • 28. FROM LICENSE GATEKEEPER TO BUDGET OWNER 28 Most cloud services are provided by a third-party vendor Need to understand services How to optimize cost vs. performance including infrastructure Architecting to meet requirements and budget
  • 29. PUBLIC FROM SITE ADMIN TO PLATFORM BROKER 29 DBs becoming platform agnostic Support on premises or public cloud Many deployment and service level options Collaborate with teams supporting the cloud/full application stack Managed Cloud Infrastructure On Premises DBaaS platform Self-managed DBMS Licenses Managed On Premises DB Self-Managed Cloud Compute Fully Managed DBaaS PRIVATE
  • 30. FROM QUERY OPTIMIZER TO PERFORMANCE PRO 30 Less time updating/troubleshooting servers More time optimizing data architecture Monitoring of infrastructure and database performance holistically Advanced data modeling, query tuning and Indexing strategies to improve performance
  • 31. FROM TO ACCOUNT ADMIN TO SECURITY EXPERT 31 Cloud vendors provide secure infrastructure But must ensure that all systems are using that infrastructure properly, especially the database Protecting sensitive information across highly-distributed infrastructures can be a challenge DBA needs to understand possible threat sources Compliance with corporate, industry, and governmental regulations add new responsibilities on DBA
  • 32. FROM OPS SUPPORT TO DevOps COLLABORATOR 32 Increasing focus on continuous deployment and delivery DBAs take on tasks once reserved for developers and work closely with DevOps teams More moving out of centralized IT and into the line-of- business/applications teams While continuing as data steward and trusted adviser
  • 33. AND STILL NEED TO KEEP IT RUNNING 3333 NOW HAVE TO WORRY ABOUT THE CLOUD FOR: Service providers apply fix packs and upgrade DBMS versions Backup and recovery in the cloud is fully automated DBA still needs awareness and understanding of the potential impact Scalability Fault tolerance Replication
  • 34. DATABASE AS A SERVICE DBaaS CAN HELP 34 Self-service provisioning Automation of routine tasks “Infinite” capacity Multi-cloud/hybrid deployment Tradeoff control and options for agility
  • 35. What does it mean for the database? • Open co-existence with HDFS, Mongo, Kafka, ... • Rich FDW library • Cloud friendly • Micro/Mini services database refactoring • DBaaS focus • Multi model database • Rich set of data types and extensions (JSONB, Hstore, PostGIS, ...) • Easy to use • High adoption rate • Readily available skill set • Training and certification DEVELOPER FRIENDLY VERSATILE DATA MODEL POLYGLOT FRIENDLY RAPID DEPLOYMENT

Notes de l'éditeur

  1. Add arrows from Past to Present – one on one…
  2. Patterns Larger databases 2-15 TB, 10’s of k users, 1000’s concurrent users Mixed workloads and polyglot More developers Enterprise readiness
  3. Note: 1. JSON generally ignores any whitespace around or between syntactic elements (values and punctuation, but not within a string value). 2. JSON only recognizes four specific whitespace characters: i. the space ii. horizontal tab, iii. line feed, and carriage return. 3. JSON does not provide or allow any sort of comment syntax.
  4. Introduce EDB This is how EDB helps you address complexity The data management space for new digital applications spans a wide range from the edge where customer interaction events and streaming feed from the Internet-of-Things are captured through operational databases that capture transactions and to the world of Big Data, the Hadoop ecosystem. Legacy systems play a role in sales execution, asset management, and core financials and have to be linked where data has to be pulled from them. Data Warehouses still have a place for ad-hoc investigation and reporting. EDB Postgres supports this through replication from legacy systems, links to Big Data through Spark, and connections to the edge capture systems through microservices and data adapters.