PolyFuseQL: A Unified Middleware for Polyglot Persistence Using the Strategy Design Pattern and Apache Spark Federation

Modern applications rely on diverse database types to store information efficiently, but interacting with these systems requires developers to master multiple specialized query languages. This fragments development, as engineers must write complex custom code for each database just to retrieve routine data. While existing big-data tools offer a unified query language, they force all data requests through heavy processing engines, degrading the fast performance required for everyday tasks. To address this problem, we introduce PolyFuseQL, a smart routing layer acting as a universal SQL translator for five popular databases (PostgreSQL, Redis, Neo4j, MongoDB, and Cassandra). Our objective is to allow developers to communicate transparently with diverse systems using standard SQL, completely avoiding the need to write specific NoSQL logic. Methodologically, PolyFuseQL dynamically evaluates standard SQL queries to determine the optimal execution path. It translates and sends simple requests directly to the native databases to ensure high speed while seamlessly routing complex analytical queries to a powerful Apache Spark engine. We evaluated the system’s performance across varying workloads. Results indicate that PolyFuseQL adds almost no delay to simple queries, preserving sub-millisecond response times. Concurrently, it enables users to execute complex operations, such as eight-table joins, on NoSQL databases that lack native relational support. Although a fixed processing delay during initial data translation slightly limits absolute hardware scaling, the system scales reliably for medium-sized analytical tasks. Ultimately, PolyFuseQL provides a unified, easy-to-use SQL interface to diverse NoSQL databases without sacrificing operational speed.

Authors

Institutions

Publication Details

Journal
Applied Sciences
Published
2026-08-27
DOI
https://doi.org/10.3390/app16178512
Primary Topic
Advanced Database Systems and Queries
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
article

PolyFuseQL: A Unified Middleware for Polyglot Persistence Using the Strategy Design Pattern and Apache Spark Federation

Diana Martínez-Mosquera, Iván Carrera, Andres Andrade-Cabrera
Applied Sciences
Advanced Database Systems and Queries
article

PolyFuseQL: A Unified Middleware for Polyglot Persistence Using the Strategy Design Pattern and Apache Spark Federation

Diana Martínez-Mosquera, Iván Carrera, Andres Andrade-Cabrera
article en

Abstract

Modern applications rely on diverse database types to store information efficiently, but interacting with these systems requires developers to master multiple specialized query languages. This fragments development, as engineers must write complex custom code for each database just to retrieve routine data. While existing big-data tools offer a unified query language, they force all data requests through heavy processing engines, degrading the fast performance required for everyday tasks. To address this problem, we introduce PolyFuseQL, a smart routing layer acting as a universal SQL translator for five popular databases (PostgreSQL, Redis, Neo4j, MongoDB, and Cassandra). Our objective is to allow developers to communicate transparently with diverse systems using standard SQL, completely avoiding the need to write specific NoSQL logic. Methodologically, PolyFuseQL dynamically evaluates standard SQL queries to determine the optimal execution path. It translates and sends simple requests directly to the native databases to ensure high speed while seamlessly routing complex analytical queries to a powerful Apache Spark engine. We evaluated the system’s performance across varying workloads. Results indicate that PolyFuseQL adds almost no delay to simple queries, preserving sub-millisecond response times. Concurrently, it enables users to execute complex operations, such as eight-table joins, on NoSQL databases that lack native relational support. Although a fixed processing delay during initial data translation slightly limits absolute hardware scaling, the system scales reliably for medium-sized analytical tasks. Ultimately, PolyFuseQL provides a unified, easy-to-use SQL interface to diverse NoSQL databases without sacrificing operational speed.

Applied SciencesVol. 16(17)
National Polytechnic School (EC)
Escuela Politécnica Nacional
Openalex Percentile: Top 8%
Advanced Database Systems and Queries
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.