APIs · head to head
Spring Cloud Gateway vs Trino

Spring Cloud Gateway
APIs
API gateway built on Project Reactor for building microservices
- From
- Free
- Free plan
- Yes

Trino
Databases
A distributed SQL engine that queries data where it already lives, across object storage, warehouses and operational databases.
- From
- Free
- Free plan
- Yes
The short version
- Spring Cloud Gateway is a library for building API gateways.
- Both are free.
- Only Spring Cloud Gateway lists path Rewriting; only Trino lists federated querying.
- Where Spring Cloud Gateway falls short: ships as a library for building a gateway on Spring, so you write, package and operate the gateway application yourself.
How do Spring Cloud Gateway and Trino differ?
Spring Cloud Gateway and Trino differ on platforms (API, Spring Boot against Web), category (APIs against Databases) and year founded (1998 against 2019). Only the attributes on which Spring Cloud Gateway and Trino actually diverge.
| Attribute | Spring Cloud Gateway | Trino |
|---|---|---|
| Platforms | API, Spring Boot | Web |
| Category | APIs | Databases |
| Founded | 1998 | 2019 |
Identical on both: starting price (Free), pricing model (Open-source), free tier (Yes).
Which features does each one have?
They share no listed features; 8 appear only for Spring Cloud Gateway and 8 only for Trino. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.
Only in Spring Cloud Gateway
- Routing
- Path Rewriting
- Circuit Breaker
- Spring Boot
- Spring Security
- Spring Cloud
- Java support
- Spring Boot support
Only in Trino
- Federated querying
- Connector architecture
- Predicate and aggregation pushdown
- Massively parallel execution
- Fault-tolerant execution
- Resource groups
- Iceberg and Delta table support
- Standard client protocols
What is each one used for?
Spring Cloud Gateway is most often brought in for API Development. The jobs each tool is most often brought in to do.
Spring Cloud Gateway
- API Developmentnot Trino
- API Gatewaynot Trino
- API Testingnot Trino
- API Documentationnot Trino
- Microservicesnot Trino
Trino
- Ad hoc analysis that spans a data lake and one or more operational databases, without building an ingestion pipeline firstnot Spring Cloud Gateway
- Serving a BI tool a single SQL endpoint over an estate that is actually several separate storage systemsnot Spring Cloud Gateway
- Querying Iceberg or Delta tables on object storage interactively, as the compute layer of a lakehousenot Spring Cloud Gateway
- Investigating whether a dataset is worth ingesting, by querying it in place before committing to a pipeline for itnot Spring Cloud Gateway
Where do Spring Cloud Gateway and Trino fall short?
Spring Cloud Gateway's most cited limit: ships as a library for building a gateway on Spring, so you write, package and operate the gateway application yourself. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
Spring Cloud Gateway
- Ships as a library for building a gateway on Spring, so you write, package and operate the gateway application yourself
- Offered in two variants, Server WebFlux and Server Web MVC, each with its own dependency, so you must pick a stack up front
Trino
- Trino stores nothing and computes no statistics of its own, so the plan it produces is only as good as the partitioning, file sizes and table statistics on the source; a Hive table of thousands of small files or a lake with no stats produces a slow query the engine cannot improve
- Federated queries pull data out of the systems they touch, so a join between a lake table and a production Postgres can put a full table scan onto an OLTP database that other applications depend on, and the person who wrote the query will not see the incident it causes
- Releases come roughly every one to two weeks with no community long-term support line, and deprecations arrive quickly, so you either dedicate someone to keeping current or you buy Starburst Enterprise for a supported long-term version
- It is memory-based and disk spilling was deprecated in favour of fault-tolerant execution, so a query exceeding cluster memory fails outright rather than degrading; enabling fault-tolerant execution requires an external exchange store on object storage and makes queries measurably slower
- It is a query engine and not a warehouse: there is no built-in job scheduling, no incremental materialised view maintenance and no transformation framework, so producing curated tables still needs dbt or an equivalent layer that somebody has to own
- The 2020 fork split the ecosystem, so documentation, connectors, Stack Overflow answers and vendor material written before then describe PrestoDB, which is now a different project with different behaviour, and following the wrong one wastes real time
How much do Spring Cloud Gateway and Trino cost?
Spring Cloud Gateway is free to use; Trino is free to use. Plan by plan below, from each vendor's own pricing page.
Spring Cloud Gateway
Free- Open SourceFree
- Core Spring Cloud Gateway
- Community support
Trino
Free- Open source (Apache License)Free
Which should you pick?
Choose Spring Cloud Gateway if
- You need routing.
- You want to start without paying.
- You work on API, Spring Boot.
- You also want path rewriting.
Choose Trino if
- You need federated querying.
- You want to start without paying.
- You also want connector architecture.
Questions people ask
- Is Spring Cloud Gateway or Trino better?
- It depends on the job. Spring Cloud Gateway fits aPI Development; Trino fits ad hoc analysis that spans a data lake and one or more operational databases, without building an ingestion pipeline first. Spring Cloud Gateway starts at Free and Trino at Free.
- Which is cheaper, Spring Cloud Gateway or Trino?
- Spring Cloud Gateway starts at Free and Trino at Free.
- Does Spring Cloud Gateway or Trino run on more platforms?
- Spring Cloud Gateway runs on API, Spring Boot. Trino runs on Web.
- Can I use Spring Cloud Gateway for free?
- Both have a free tier, so you can try either at no cost before committing.
- What is Spring Cloud Gateway best used for?
- Spring Cloud Gateway is most often used for api development, api gateway, api testing, api documentation. Of those, api development and api gateway are not what Trino is typically brought in for.
- What can Spring Cloud Gateway do that Trino cannot?
- Spring Cloud Gateway covers Routing, Path Rewriting, Circuit Breaker, Spring Boot. Trino covers Federated querying, Connector architecture, Predicate and aggregation pushdown, Massively parallel execution.
Answered from the vendors’ own pages
Spring Cloud Gateway: Is Spring Cloud Gateway free?
Yes, Spring Cloud Gateway is free and open-source software. It is part of the Spring ecosystem and available through GitHub repositories with open-source dependencies like spring-cloud-starter-gateway-server-webflux and spring-cloud-starter-gateway-server-webmvc.
SourceTrino: What is the difference between Trino and Presto?
They share an origin. The original creators left Meta and renamed their fork from PrestoSQL to Trino in December 2020; PrestoDB continues separately under the Linux Foundation. They have diverged in features, connectors and SQL behaviour, so material written for one may not apply to the other.
Spring Cloud Gateway: What enterprise support is available for Spring Cloud Gateway?
Tanzu Spring provides optional enterprise support including Day 0 access to security patches for organizations requiring guaranteed support, but specific pricing is not published on the Spring Cloud Gateway project page.
SourceTrino: Does Trino replace my data warehouse?
Not on its own. It is compute without storage, scheduling or transformation. Paired with Iceberg or Delta on object storage and something like dbt for modelling it can serve as a lakehouse; used alone it is a query layer over what you already have.
Trino: Why is my federated query slow?
Usually because a connector could not push a filter or aggregation down, so Trino is pulling whole tables across the network to join them itself. The fix is usually better source-side partitioning or statistics, or ingesting that source rather than federating it.
Trino: What happens when a query runs out of memory?
It fails. Disk spilling was deprecated in favour of fault-tolerant execution, which checkpoints to an external exchange store such as S3 and lets long queries survive memory pressure and worker loss, at the cost of noticeably slower execution.
Trino: Is there commercial support?
Yes, from Starburst, which offers Starburst Enterprise with long-term supported releases and Starburst Galaxy as a managed service. The open source project itself has no long-term support line.
Related pages
More on Spring Cloud Gateway
Other head to heads
- Spring Cloud Gateway vs Kong Gateway
- Spring Cloud Gateway vs Tyk
- Spring Cloud Gateway vs Janus Gateway
- Spring Cloud Gateway vs WSO2 API Manager
- Spring Cloud Gateway vs Convoy
- Spring Cloud Gateway vs Gravitee
- Spring Cloud Gateway vs Zuplo
- Spring Cloud Gateway vs AWS API Gateway
- Spring Cloud Gateway vs HTTPie
- Spring Cloud Gateway vs KeystoneJS
- Spring Cloud Gateway vs Swagger/OpenAPI
- Spring Cloud Gateway vs GraphQL Apollo
- Spring Cloud Gateway vs Svix
- Spring Cloud Gateway vs Synctera
- Spring Cloud Gateway vs Tuum
- Spring Cloud Gateway vs Weavr
- Spring Cloud Gateway vs Codat
- Spring Cloud Gateway vs Courier
- Spring Cloud Gateway vs Dremio
- Spring Cloud Gateway vs Presto
- Spring Cloud Gateway vs Apache Hadoop
- Spring Cloud Gateway vs StarRocks
- Spring Cloud Gateway vs Apache Spark
- Spring Cloud Gateway vs DuckDB
- Spring Cloud Gateway vs Turso
- Spring Cloud Gateway vs Readyset
- Spring Cloud Gateway vs BigQuery
- Spring Cloud Gateway vs Apache Doris
- Spring Cloud Gateway vs RisingWave
- Spring Cloud Gateway vs LanceDB
- Spring Cloud Gateway vs OpenSearch
- Spring Cloud Gateway vs Redpanda
- Spring Cloud Gateway vs Upstash
- Spring Cloud Gateway vs Materialize
- Spring Cloud Gateway vs Apache Flink
- Spring Cloud Gateway vs Valkey
- Trino vs Kong Gateway
- Trino vs Tyk
- Trino vs Janus Gateway
- Trino vs WSO2 API Manager
- Trino vs Convoy
- Trino vs Gravitee
- Trino vs Zuplo
- Trino vs AWS API Gateway
- Trino vs HTTPie
- Trino vs KeystoneJS
- Trino vs Swagger/OpenAPI
- Trino vs GraphQL Apollo
- Trino vs Svix
- Trino vs Synctera
- Trino vs Tuum
- Trino vs Weavr
- Trino vs Codat
- Trino vs Courier
- Trino vs Dremio
- Trino vs Presto
- Trino vs Apache Hadoop
- Trino vs StarRocks
- Trino vs Apache Spark
- Trino vs DuckDB
- Trino vs Turso
- Trino vs Readyset
- Trino vs BigQuery
- Trino vs Apache Doris
- Trino vs RisingWave
- Trino vs LanceDB
- Trino vs OpenSearch
- Trino vs Redpanda
- Trino vs Upstash
- Trino vs Materialize
- Trino vs Apache Flink
- Trino vs Valkey
