Reader small image

You're reading from  MySQL 8 for Big Data

Product typeBook
Published inOct 2017
Reading LevelBeginner
PublisherPackt
ISBN-139781788397186
Edition1st Edition
Languages
Tools
Concepts
Right arrow
Authors (4):
Shabbir Challawala
Shabbir Challawala
author image
Shabbir Challawala

Shabbir Challawala has over 8 years of rich experience in providing solutions based on MySQL and PHP technologies. He is currently working with KNOWARTH Technologies. He has worked in various PHP-based e-commerce solutions and learning portals for enterprises. He has worked on different PHP-based frameworks, such as Magento E-commerce, Drupal CMS, and Laravel. Shabbir has been involved in various enterprise solutions at different phases, such as architecture design, database optimization, and performance tuning. He has been carrying good exposure of Software Development Life Cycle process thoroughly. He has worked on integrating Big Data technologies such as MongoDB and Elasticsearch with a PHP-based framework.
Read more about Shabbir Challawala

Chintan Mehta
Chintan Mehta
author image
Chintan Mehta

Chintan Mehta is a co-founder of KNOWARTH Technologies and heads the cloud/RIMS/DevOps team. He has rich, progressive experience in server administration of Linux, AWS Cloud, DevOps, RIMS, and on open source technologies. He is also an AWS Certified Solutions Architect. Chintan has authored MySQL 8 for Big Data, Mastering Apache Solr 7.x, MySQL 8 Administrator's Guide, and Hadoop Backup and Recovery Solutions. Also, he has reviewed Liferay Portal Performance Best Practices and Building Serverless Web Applications.
Read more about Chintan Mehta

Kandarp Patel
Kandarp Patel
author image
Kandarp Patel

Kandarp Patel leads PHP practices at KNOWARTH Technologies. He has vast experience in providing end-to-end solutions in CMS, LMS, WCM, and e-commerce, along with various integrations for enterprise customers. He has over 9 years of rich experience in providing solutions in MySQL, MongoDB, and PHP-based frameworks. Kandarp is also a certified MongoDB and Magento developer. Kandarp has experience in various Enterprise Application development phases of the Software Development Life Cycle and has played prominent role in requirement gathering, architecture design, database design, application development, performance tuning, and CD/CI. Kandarp has a Bachelor of Engineering in Information Technology from a reputed university in India.
Read more about Kandarp Patel

Jaydip Lakhatariya
Jaydip Lakhatariya
author image
Jaydip Lakhatariya

Jaydip Lakhatariya has rich experience in portal and J2EE frameworks. He adapts quickly to any new technology and has a keen desire for constant improvement. Currently, Jaydip is associated with a leading open source enterprise development company, KNOWARTH Technologies, where he is engaged in various enterprise projects. Jaydip, a full-stack developer, has proven his versatility by adopting technologies such as Liferay, Java, Spring, Struts, Hadoop, MySQL, Elasticsearch, Cassandra, MongoDB, Jenkins, SCM, PostgreSQL, and many more. He has been recognized with awards such as Merit, Commitment to Service, and also as a Star Performer. He loves mentoring people and has been delivering training for Portals and J2EE frameworks.
Read more about Jaydip Lakhatariya

View More author details
Right arrow

Chapter 6. Replication for building highly available solutions

In the previous chapter, you learned what partitioning is, the types of partitioning, and querying on partitioned data, which helps in bettering performance.

We are going to discuss below topics in details:

  • High availability
  • Replication
  • Group Replication

High availability


Today, data is the most important part of any web, mobile, social, enterprise, and cloud application. Ensuring that data is always available is the top priority for any application. A small amount of downtime can result in significant loss of revenue and reputation for an organization.

Continuous availability of the data has become very critical in current time. And as the size of the data increases with time, it can become tricky to maintain huge amount of data available at any point of time. Losing a connection with the application for the fraction of a time can also make a huge impact on the organization and it can put the reputation of the organization at a stake.

To avoid any impact of inconsistency in application access because of the database, it is the demand of time to build up a highly available architecture. To build a highly available application infrastructure, many things are required to be considered, such as the capabilities of the technologies used for building...

Replication with MySQL


MySQL replication works based on master-slave architecture. From group of MySQL servers, one server acts as a master and other servers work as slave server. All write operations are performed on the master server while read operations are performed on any of the slave servers. Connection between master and slave servers is done based on the configuration. In coming topics we will learn different configuration for synchronizing master and slave databases.

Benefits of replication in MySQL 8

Let's quickly look at a few benefits of MySQL 8 replication.

Scalable applications

As we said earlier, replication shares load between master and slave databases. So, now amount of activity for the database has been reduced. Master will only perform write operation and will not be worried about the read operations, while slaves will only be taking care of read operation without worrying about write operations. This mechanism actually makes the MySQL to perform faster. Also, it is easy...

Group replication


A traditional MySQL replication implies to the master-slave architecture when write operations are performed by one server acting as master and other servers acting as slave are configured to periodically execute the replication to fetch data from the master and store locally. Each slaves in the master-slave replication has their own copy of the data and slaves do not share any information between them, basically we can term it as shared-nothing mechanism.

MySQL 8 has built in support for the Group replication. Group replication consists of more than one server each of which can act as master server. Servers in the group co-ordinate with message passing mechanism. For example, if any transaction commit operations is requested, it is relayed to the server group. Server group then approves a transaction and one of the server commits the write operation which then replicated to the group. For any read operation, no approval is needed from the server group and all such read...

Summary


In this chapter, you learned about high availability and why high availability is required. Then, we covered various replication methods to achieve high availability in MySQL 8 architectures and approaches. We understood different types of replication methods in MySQL 8 and the usability for each method. We also explored how to configure each type of replication with a few real-time examples.

Now it's time to move on to the next chapter, where we will see wonderful practices to achieve performance, scalability, security, and availability using MySQL 8.

lock icon
The rest of the chapter is locked
You have been reading a chapter from
MySQL 8 for Big Data
Published in: Oct 2017Publisher: PacktISBN-13: 9781788397186
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime

Authors (4)

author image
Shabbir Challawala

Shabbir Challawala has over 8 years of rich experience in providing solutions based on MySQL and PHP technologies. He is currently working with KNOWARTH Technologies. He has worked in various PHP-based e-commerce solutions and learning portals for enterprises. He has worked on different PHP-based frameworks, such as Magento E-commerce, Drupal CMS, and Laravel. Shabbir has been involved in various enterprise solutions at different phases, such as architecture design, database optimization, and performance tuning. He has been carrying good exposure of Software Development Life Cycle process thoroughly. He has worked on integrating Big Data technologies such as MongoDB and Elasticsearch with a PHP-based framework.
Read more about Shabbir Challawala

author image
Chintan Mehta

Chintan Mehta is a co-founder of KNOWARTH Technologies and heads the cloud/RIMS/DevOps team. He has rich, progressive experience in server administration of Linux, AWS Cloud, DevOps, RIMS, and on open source technologies. He is also an AWS Certified Solutions Architect. Chintan has authored MySQL 8 for Big Data, Mastering Apache Solr 7.x, MySQL 8 Administrator's Guide, and Hadoop Backup and Recovery Solutions. Also, he has reviewed Liferay Portal Performance Best Practices and Building Serverless Web Applications.
Read more about Chintan Mehta

author image
Kandarp Patel

Kandarp Patel leads PHP practices at KNOWARTH Technologies. He has vast experience in providing end-to-end solutions in CMS, LMS, WCM, and e-commerce, along with various integrations for enterprise customers. He has over 9 years of rich experience in providing solutions in MySQL, MongoDB, and PHP-based frameworks. Kandarp is also a certified MongoDB and Magento developer. Kandarp has experience in various Enterprise Application development phases of the Software Development Life Cycle and has played prominent role in requirement gathering, architecture design, database design, application development, performance tuning, and CD/CI. Kandarp has a Bachelor of Engineering in Information Technology from a reputed university in India.
Read more about Kandarp Patel

author image
Jaydip Lakhatariya

Jaydip Lakhatariya has rich experience in portal and J2EE frameworks. He adapts quickly to any new technology and has a keen desire for constant improvement. Currently, Jaydip is associated with a leading open source enterprise development company, KNOWARTH Technologies, where he is engaged in various enterprise projects. Jaydip, a full-stack developer, has proven his versatility by adopting technologies such as Liferay, Java, Spring, Struts, Hadoop, MySQL, Elasticsearch, Cassandra, MongoDB, Jenkins, SCM, PostgreSQL, and many more. He has been recognized with awards such as Merit, Commitment to Service, and also as a Star Performer. He loves mentoring people and has been delivering training for Portals and J2EE frameworks.
Read more about Jaydip Lakhatariya