MaxScale Multiplexing and Caching – Part 1

Part 1 – Complete Guide for High-Concurrency Workloads

This multi-part series breaks down each section into easy logical steps.


Introduction

High-concurrency database workloads are challenging for any organization. Whether it’s a major e-commerce event, financial trading spikes, or peak traffic in SaaS applications, managing thousands of simultaneous connections while maintaining low latency is critical. Many teams initially rely on traditional connection pooling or external proxies, but these solutions can become complex, resource-heavy, and hard to scale.

In this blog, we explore how MariaDB MaxScale can simplify and optimize your database architecture through multiplexing and caching. We’ll provide a detailed, practical guide covering:

  • Understanding MaxScale thread architecture
  • Multiplexing for high concurrency
  • Caching strategies (local, Memcached, Redis)
  • Combined multiplexing and caching for superior throughput
  • Real-world testing with Sysbench
  • Best practices, tuning, and warnings

By following this guide, you’ll learn how to reduce backend load, improve throughput, and maintain predictable performance even under extreme spikes, just like the customers who rely on MaxScale for their high-demand workloads.


Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7 | Page 8

Kester Riley

Kester Riley is a Global Solutions Engineering Leader who leverages his website to establish his brand and build strong business relationships. Through his blog posts, Kester shares his expertise as a consultant, mentor, trainer, and presenter, providing innovative ideas and code examples to empower ambitious professionals.

backend connection reuse (1) backend sizing (1) best practices (1) caching (1) caching caveats (1) caching strategy (1) CentOS (15) concurrency (1) connection multiplexing (1) connection pooling (2) Connector (5) Cooperative Monitoring (3) CPU cores (1) database benchmarking (1) database proxy risks (1) diff router (5) High Availability (13) high concurrency (2) high concurrency databases (1) idle_session_pool_time (1) Java (3) load testing (1) MariaDB (27) MaxScale (29) MaxScale configuration (1) MaxScale multiplex_timeout (1) MaxScale threads (1) multi-threading (1) multiplexing (2) multiplex_timeout (1) OLTP (1) Performance Optimization (2) performance testing (1) performance tuning (2) performance tuning checklist (1) persistmaxtime (1) persistpoolmax (1) Python (2) Replica Rebuild (10) Rocky Linux (15) session sharing (1) Sysbench (1) thread architecture (1) tuning (1) upgrade (5)

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.