Softwr

Developer Tools · head to head

Amazon Athena vs Envoy

Amazon Athena logo

Amazon Athena

Developer Tools

Serverless SQL over data in S3, charged per terabyte scanned

From
$5/TB scanned
Free plan
No
Envoy logo

Envoy

Developer Tools

A high-performance L7 proxy written in C++ that is configured by an API rather than a config file, and is usually deployed under a control plane.

From
Free
Free plan
Yes

The short version

  • Envoy is free; Amazon Athena starts at $5/mo.
  • Only Amazon Athena lists SQL on S3; only Envoy lists xDS dynamic configuration.
  • Where Amazon Athena falls short: cost is tied to bytes scanned, so unpartitioned CSV or JSON data can make a single careless query expensive.

How do Amazon Athena and Envoy differ?

Amazon Athena and Envoy differ on starting price ($5/TB scanned against Free), pricing model and free tier (No against Yes). Only the attributes on which Amazon Athena and Envoy actually diverge.

Attributes where Amazon Athena and Envoy differ
AttributeAmazon AthenaEnvoy
Starting price$5/TB scannedFree
Pricing modelPer TB scanned, or per DPU-hourOpen-source
Free tierNoYes
PlatformsWeb, LinuxWeb

Not yet recorded: category for Amazon Athena.

Which features does each one have?

They share no listed features; 6 appear only for Amazon Athena and 8 only for Envoy. 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 Amazon Athena

  • SQL on S3
  • Apache Spark
  • Capacity Reservations
  • Federated queries
  • Glue Data Catalog
  • Iceberg tables

Only in Envoy

  • xDS dynamic configuration
  • Protocol breadth
  • Filter chain architecture
  • Observability by default
  • Outlier detection
  • Traffic shaping
  • mTLS termination and origination
  • Hot restart

What is each one used for?

Amazon Athena is most often brought in for searching years of CloudTrail, ALB and VPC flow logs stored in S3. The jobs each tool is most often brought in to do.

Amazon Athena

  • Searching years of CloudTrail, ALB and VPC flow logs stored in S3not Envoy
  • Ad hoc analysis of a data lake without standing up a warehousenot Envoy
  • Occasional reporting queries where a cluster would sit idlenot Envoy
  • Data preparation with Spark notebooks alongside SQLnot Envoy

Envoy

  • Acting as the data plane under a service mesh or Gateway API implementation, which is how the overwhelming majority of deployments use itnot Amazon Athena
  • An edge or API gateway that needs per-route retry budgets, circuit breaking and outlier detection rather than round-robin proxyingnot Amazon Athena
  • Migrating traffic between service versions or between a monolith and its replacement, using weighted splits and shadow trafficnot Amazon Athena
  • Standardising observability across a polyglot estate, so that latency, error rates and tracing look the same regardless of the language a service is written innot Amazon Athena

Where do Amazon Athena and Envoy fall short?

Amazon Athena's most cited limit: cost is tied to bytes scanned, so unpartitioned CSV or JSON data can make a single careless query expensive. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Amazon Athena

  • Cost is tied to bytes scanned, so unpartitioned CSV or JSON data can make a single careless query expensive
  • It has no managed storage layer, so query speed depends on how well you organise, compact and partition files in S3
  • Concurrency and performance isolation are weaker than a dedicated warehouse unless you buy Capacity Reservations
  • Failed queries are still billed in some cases for data scanned, which punishes trial and error on large tables
  • Governance, caching and workload management are thinner than in Redshift or Snowflake, so heavy BI use outgrows it

Envoy

  • The configuration surface is very large and hand-written bootstrap YAML runs to hundreds of lines for routing that Nginx expresses in twenty, which is why nearly every production deployment sits under a control plane and inherits that control plane's constraints as well
  • xDS is the real API and it is not stable in the comfortable sense; the v2 API set was removed outright, resource types continue to be deprecated, and your control plane and Envoy binaries have to be upgraded roughly in step or the proxies stop accepting configuration
  • Extending it properly means writing a C++ filter and building and maintaining your own Envoy binary; the alternatives are Lua, which adds per-request overhead, and proxy-wasm, whose ABI has remained effectively experimental for years with a real performance cost
  • At sidecar density the per-proxy memory and CPU footprint is a measurable share of cluster capacity, since thousands of workloads each carry a full proxy, and this is precisely the cost that has pushed mesh projects towards node-level or ambient architectures
  • There is no single vendor selling support for Envoy itself; you get the community plus control-plane vendors such as Solo.io and Tetrate, so an Envoy-level production bug is your own engineers in a C++ codebase unless a support contract happens to cover it
  • Diagnosing why a request got a particular response involves reading config dumps, the stats endpoint and the RESPONSE_FLAGS codes in access logs rather than a readable error, which is a specific skill you must hire or spend months growing

How much do Amazon Athena and Envoy cost?

Amazon Athena starts at $5/mo; Envoy is free to use. Plan by plan below, from each vendor's own pricing page.

Amazon Athena

$5/TB scanned
  • SQL queries$5/tb scanned
    • $5.00 per TB of data scanned
    • Compression, partitioning and columnar formats reduce the data scanned
  • Apache Spark$0.35/dpu-hour
    • $0.35 per DPU-hour for Spark applications
  • Capacity Reservations$0.3/dpu-hour
    • $0.30 per DPU-hour for reserved query capacity
    • Suited to predictable, steady workloads

Envoy

Free

No published plan breakdown. See the Envoy review.

Which should you pick?

Choose Amazon Athena if

  • You need sql on s3.
  • You work on Web, Linux.
  • You also want apache spark.

Choose Envoy if

  • You need xds dynamic configuration.
  • You want to start without paying.
  • You also want protocol breadth.

Questions people ask

Is Amazon Athena or Envoy better?
It depends on the job. Amazon Athena fits searching years of CloudTrail, ALB and VPC flow logs stored in S3; Envoy fits acting as the data plane under a service mesh or Gateway API implementation, which is how the overwhelming majority of deployments use it. Amazon Athena starts at $5/TB scanned and Envoy at Free.
Which is cheaper, Amazon Athena or Envoy?
Envoy has a free tier; the other does not. Paid plans start at $5/TB scanned for Amazon Athena and Free for Envoy.
Does Amazon Athena or Envoy run on more platforms?
Amazon Athena runs on Web, Linux. Envoy runs on Web.
Can I use Envoy for free?
Yes. Envoy has a free tier, so you can try it without paying. Amazon Athena starts at $5/TB scanned.
What is Amazon Athena best used for?
Amazon Athena is most often used for searching years of cloudtrail, alb and vpc flow logs stored in s3, ad hoc analysis of a data lake without standing up a warehouse, occasional reporting queries where a cluster would sit idle, data preparation with spark notebooks alongside sql. Of those, searching years of cloudtrail, alb and vpc flow logs stored in s3 and ad hoc analysis of a data lake without standing up a warehouse are not what Envoy is typically brought in for.
What can Amazon Athena do that Envoy cannot?
Amazon Athena covers SQL on S3, Apache Spark, Capacity Reservations, Federated queries. Envoy covers xDS dynamic configuration, Protocol breadth, Filter chain architecture, Observability by default.

Answered from the vendors’ own pages

Amazon Athena: How much does Athena cost?

SQL queries are $5.00 per TB scanned, Spark is $0.35 per DPU-hour and Capacity Reservations are $0.30 per DPU-hour, per AWS.

Envoy: Should I run Envoy on its own, or under a control plane?

Almost always under one. Directly authoring xDS or static bootstrap configuration is viable for a handful of routes and becomes unmanageable beyond that. Envoy Gateway, Istio, Contour, Gloo and Consul all exist to generate that configuration for you.

Amazon Athena: How do I reduce Athena cost?

Convert data to a columnar format such as Parquet, compress it and partition by common filters. The AWS example cuts a $15 query to $1.25.

Envoy: How does it compare with Nginx or HAProxy?

Envoy is dynamically configured over an API and instrumented far more heavily; Nginx and HAProxy are faster to configure and lighter for straightforward reverse proxying. If you never need to change routing without a reload, Envoy is more machinery than the problem requires.

Amazon Athena: Is Athena a data warehouse?

No. It queries files in S3 and has no storage of its own; Redshift is the warehouse product.

Envoy: What does it cost?

Nothing to licence; it is Apache 2.0 and there is no paid edition. The cost is engineering time and, for most organisations, a commercial control plane or cloud service that packages it.

Envoy: Can I write extensions without C++?

You can write Lua filters or proxy-wasm modules in Rust, Go, C++ or AssemblyScript. Both carry per-request overhead compared with a native filter, and the Wasm path has been slower to stabilise than the project originally projected.

Envoy: Is it a CNCF project?

Yes, it is a graduated CNCF project licensed under Apache 2.0, which means the trademark and governance sit with the foundation rather than with Lyft or any vendor.

Share

Related pages

Other head to heads