Scheme introduction
RDS+ClickHouse building one-stop HTAP

This solution uses the RDS MySQL console to visually add a ClickHouse analysis node, and visually and whitescreen configure the real-time synchronization of MySQL data tables and ClickHouse tables. It solves the complex data synchronization configuration operations, operation and maintenance processes, and realizes flexible and efficient one-stop HTAP. Utilize ClickHouse's online real-time analysis capability to solve online statistical analysis of large-scale business data, such as business report statistics, interactive operation analysis, reconciliation, real-time data warehouse and other business scenarios, and realize the integration of online transaction processing and online analysis.

Problem solving: complex synchronization configuration

By default, you need to configure the database engine type as MaterializeMySQL and configure a series of complex and tedious related parameters to achieve data synchronization when creating a database in SQL in ClickHouse.

Solution: Complex link maintenance

By default, it is difficult to support maintenance operations such as synchronizing object objects, skipping synchronization errors, and restarting synchronization links. At the same time, it is impossible to control the flow of synchronization links, such as controlling the maximum number of rows pulled per second during full synchronization.

Problem solving: relying on third-party synchronization tools

In order to solve the problem of complex configuration and maintenance of MySQL to ClickHouse data synchronization, third-party synchronization tools are often introduced, but also bring high synchronization costs and tool maintenance costs.

Scheme advantages
Pursue the ultimate easy-to-use experience
The MySQL+ClickHouse solution can be seamlessly integrated into the existing MySQL database environment to reduce migration costs. Compared with other HTAP solutions, The MySQL+ClickHouse solution is simpler to deploy and use, reducing learning costs.
Real time data synchronization
Materialized MySQL implements real-time synchronization of MySQL data to ClickHouse, ensuring real-time and consistent data. Compared with other HTAP solutions, Materialized MySQL can synchronize data in real time, reduce data latency, and improve data accuracy.
High performance processing
As a columnar database, ClickHouse has high-performance data query and analysis capabilities. Compared with other HTAP solutions, ClickHouse can process a large amount of data in a short time to improve data processing efficiency.
Application scenarios
Business report statistics
Using ClickHouse's high-performance analysis capability and rich statistical functions, in the game industry, through real-time synchronization of player activity data and statistics of player activity, operators can understand player preferences, optimize game content and improve player retention. In the field of e-commerce, the real-time synchronization of commodity sales data, the realization of commodity sales statistics, user purchase behavior analysis, help the platform understand commodity sales, optimize commodity recommendation strategies, and improve the conversion rate of user purchase.
Interactive operational analysis
Based on ClickHouse's real-time interactive query and analysis capability, in the advertising field, real-time synchronization of advertising data and user click behavior data helps advertisers understand advertising effects, optimize advertising strategies, and improve advertising effects. In the social media industry, real-time synchronization of user activity data and content dissemination data can help social media platforms understand user preferences, optimize content recommendation strategies, and improve user activity.
Real time data warehouse construction
By combining various types of data generated by RDS online business and the opening of data links, the real-time data warehousing ClickHouse is realized to build the real-time data warehousing capability. This can help Internet companies understand user preferences, optimize product functions, and improve user satisfaction; It can help manufacturing enterprises understand the production status, maintain equipment in time, reduce equipment failure rate, etc.
Scheme deployment
zero one Deployment preparation
Complete account opening application, account recharge, resource authorization and other operations.
zero two Planning network and resources
Plan high availability and other requirements, and plan the network and resources required for access.
zero three Deploy Resources
Deploy RDS MySQL and ClickHouse related resources according to network planning and resource planning.
zero four Configure Data Synchronization
Innovate data synchronization accounts related to cloud resources, and configure data synchronization and experience query acceleration effects.
zero five Completion and cleaning
Verify the correctness and consistency of data synchronization, and clean up environmental resources.
Migrate self built database to cloud database
This solution describes how to migrate the website's self built database to RDS, which will solve the database operation and maintenance problems you may face with business growth. The database adopts a high availability architecture, supports disaster recovery across availability zones, and brings data security, availability, performance and cost benefits to the business. The scheme provides a quick experience tutorial to simulate the work required for database migration and help you get started quickly.
Real time synchronization of cache consistency between RDS and Redis
Through DTS data subscription capability, users can subscribe to RDS log data changes in real time and write them to Redis to update cached data. This configuration can achieve cache synchronization consistency between MySQL and Redis, and uses the Cache Side Pattern mode. Through DTS's serviceability, users can ensure efficient, stable and real-time data synchronization. Thus, users can realize real-time synchronization of commodity information and ensure that the commodity information in the system is always up to date. At the same time, the query of billing information can also become efficient. Users can obtain cached data from Redis, reduce frequent access to MySQL, and improve query performance. Such a solution can not only improve the response speed of the system, but also ensure the consistency and accuracy of data, providing users with a better experience.