Softwr

Developer Tools · head to head

AWS CDK vs BigQuery

AWS CDK logo

AWS CDK

Developer Tools

Open source framework for defining AWS infrastructure in programming languages

From
Free
Free plan
Yes
BigQuery logo

BigQuery

Databases

Google Cloud's serverless analytical warehouse, billed either by bytes scanned per query or by reserved compute slots.

From
Free
Free plan
Yes

The short version

  • AWS CDK is an Apache 2.
  • AWS CDK is free; BigQuery starts at $6.25/mo.
  • Only AWS CDK lists construct Library of reusable components; only BigQuery lists serverless compute.
  • Where AWS CDK falls short: targets AWS only, so it does not provision resources on other clouds.

How do AWS CDK and BigQuery differ?

AWS CDK and BigQuery differ on pricing model (Open-source against Usage-based), platforms and category (Developer Tools against Databases). Only the attributes on which AWS CDK and BigQuery actually diverge.

Attributes where AWS CDK and BigQuery differ
AttributeAWS CDKBigQuery
Pricing modelOpen-sourceUsage-based
PlatformsWindows, macOS, LinuxWeb, API
CategoryDeveloper ToolsDatabases

Identical on both: starting price (Free), free tier (Yes).

Not yet recorded: founded for AWS CDK.

Which features does each one have?

They share no listed features; 8 appear only for AWS CDK and 10 only for BigQuery. 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 AWS CDK

  • Construct Library of reusable components
  • CDK CLI for synthesis and deployment
  • Programmatic CDK Toolkit Library
  • Support for TypeScript, JavaScript, Python, Java, C# and Go
  • Deployment through AWS CloudFormation
  • Custom and shareable constructs
  • Construct Hub registry
  • Open source under Apache 2.0

Only in BigQuery

  • Serverless compute
  • Separation of storage and compute
  • Two pricing models
  • Partitioning and clustering
  • Materialised views
  • BigQuery ML
  • Storage Write API
  • BI Engine

What is each one used for?

AWS CDK is most often brought in for defining AWS infrastructure in TypeScript or Python. The jobs each tool is most often brought in to do.

AWS CDK

  • Defining AWS infrastructure in TypeScript or Pythonnot BigQuery
  • Reusable internal infrastructure modulesnot BigQuery
  • Serverless application stacksnot BigQuery
  • Testing infrastructure with unit testsnot BigQuery
  • Standardising environments across accountsnot BigQuery

BigQuery

  • A warehouse for an organisation already on Google Cloud, where identity, logging and billing are consolidated in the same placenot AWS CDK
  • Bursty analytical workloads with long idle periods, where paying per query beats keeping a cluster runningnot AWS CDK
  • Event and clickstream analytics ingested continuously through the Storage Write API and queried without a load windownot AWS CDK
  • Analytics teams with no infrastructure staff, where the absence of anything to tune or patch is worth more than dialect portabilitynot AWS CDK

Where do AWS CDK and BigQuery fall short?

AWS CDK's most cited limit: targets AWS only, so it does not provision resources on other clouds. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

AWS CDK

  • Targets AWS only, so it does not provision resources on other clouds
  • Deploys through CloudFormation, so its resource coverage and limits apply
  • Infrastructure written in code can be harder to review than declarative templates
  • The AWS resources it creates are billed separately at standard AWS rates

BigQuery

  • On-demand billing charges for bytes read from every column a query references, so an unqualified select or a missing partition filter turns a routine query into a large bill, and the cost is discovered after the fact rather than at review time
  • There is no way to join tables that live in different regions, so a data estate split across regions for residency reasons has to be reconciled with copies and the storage and transfer that implies
  • It is not built for point lookups; retrieving a single row has latency measured in hundreds of milliseconds or more, so BigQuery cannot serve an application's read path and always needs a second store in front of it
  • Frequent small mutations run into DML concurrency limits and the cost of rewriting storage blocks, so a workload that updates individual rows continuously behaves badly compared with an append-only design
  • The compute exists only inside Google Cloud, so while tables can be exported, the accumulated GoogleSQL, scheduled queries, authorised views, ML models and IAM structure do not move, and switching warehouses is a rewrite of the analytical layer

How much do AWS CDK and BigQuery cost?

AWS CDK is free to use; BigQuery has a free plan, with paid plans from $6.25/mo. Plan by plan below, from each vendor's own pricing page.

AWS CDK

Free

No published plan breakdown. See the AWS CDK review.

BigQuery

Free
  • Free TierFree
    • 1TB queries/month
    • 10GB storage/month
    • Standard support
  • On-demand$6.25/tb
    • Pay per query
    • Pay per storage
    • All features

Which should you pick?

Choose AWS CDK if

  • You need construct library of reusable components.
  • You want to start without paying.
  • You work on Windows, macOS, Linux.
  • You also want cdk cli for synthesis and deployment.

Choose BigQuery if

  • You need serverless compute.
  • You want to start without paying.
  • You work on Web, API.
  • You also want separation of storage and compute.

Questions people ask

Is AWS CDK or BigQuery better?
It depends on the job. AWS CDK fits defining AWS infrastructure in TypeScript or Python; BigQuery fits a warehouse for an organisation already on Google Cloud, where identity, logging and billing are consolidated in the same place. AWS CDK starts at Free and BigQuery at Free.
Which is cheaper, AWS CDK or BigQuery?
AWS CDK starts at Free and BigQuery at Free.
Does AWS CDK or BigQuery run on more platforms?
AWS CDK runs on Windows, macOS, Linux. BigQuery runs on Web, API.
Can I use AWS CDK for free?
Both have a free tier, so you can try either at no cost before committing.
What is AWS CDK best used for?
AWS CDK is most often used for defining aws infrastructure in typescript or python, reusable internal infrastructure modules, serverless application stacks, testing infrastructure with unit tests. Of those, defining aws infrastructure in typescript or python and reusable internal infrastructure modules are not what BigQuery is typically brought in for.
What can AWS CDK do that BigQuery cannot?
AWS CDK covers Construct Library of reusable components, CDK CLI for synthesis and deployment, Programmatic CDK Toolkit Library, Support for TypeScript, JavaScript, Python, Java, C# and Go. BigQuery covers Serverless compute, Separation of storage and compute, Two pricing models, Partitioning and clustering.

Answered from the vendors’ own pages

AWS CDK: Which languages does AWS CDK support?

The AWS documentation lists TypeScript, JavaScript, Python, Java, C# and .NET, and Go. Infrastructure is defined as constructs composed into stacks and apps.

Source
BigQuery: How is BigQuery actually billed?

Storage is billed separately from compute. Compute is either on-demand, priced by the bytes a query reads from the referenced columns, or capacity-based, where you reserve autoscaling slots. Most cost surprises come from on-demand queries that scan more than expected.

AWS CDK: How does AWS CDK deploy resources?

CDK apps are synthesised and deployed through AWS CloudFormation. The documentation states this gives predictable, repeatable deployments with rollback on error.

Source
BigQuery: How do I control query cost?

Partition and cluster tables so queries prune data, select only the columns needed, use materialised views for repeated aggregations, and set maximum bytes billed on queries so a runaway scan fails instead of billing.

AWS CDK: Is AWS CDK free?

It is open source under the Apache 2.0 licence according to its GitHub repository. The AWS resources you provision with it are charged at their normal rates.

Source
BigQuery: Can I use it without being on Google Cloud?

The service only runs on Google Cloud. BigQuery Omni can query data held in S3 or Azure storage, but the compute is still Google's and the account relationship is still with Google.

AWS CDK: When was AWS CDK first released?

Wikipedia reports a developer preview announced in 2018 and general availability on 11 July 2019. CDK v2 followed in 2021.

Source
BigQuery: Is it suitable for serving application queries?

No. Latency for single-row reads is far too high. BigQuery is an analytical warehouse and application read paths need a transactional database or a cache in front of it.

BigQuery: When should I move from on-demand to capacity pricing?

When on-demand spend becomes both large and predictable, or when unpredictable spend is a bigger problem than query queueing. The switch trades a variable bill for a fixed one plus contention between workloads.

Share

Related pages

Other head to heads