Softwr

Machine Learning · head to head

BigQuery ML vs NATS

BigQuery ML logo

BigQuery ML

Machine Learning

Machine learning in BigQuery using SQL

From
Free
Free plan
Yes
NATS logo

NATS

Databases

High-performance messaging system for cloud-native applications

From
Free
Free plan
Yes

The short version

  • NATS is free; BigQuery ML starts at $5/mo.
  • Only BigQuery ML lists SQL-based ML; only NATS lists very low latency.
  • Where BigQuery ML falls short: not available in BigQuery's Standard edition, so the cheapest tier cannot use it.
  • Where NATS falls short: core NATS has no persistence at all, so messages are lost if no subscriber is listening.

How do BigQuery ML and NATS differ?

BigQuery ML and NATS differ on pricing model, platforms and category (Machine Learning against Databases). Only the attributes on which BigQuery ML and NATS actually diverge.

Attributes where BigQuery ML and NATS differ
AttributeBigQuery MLNATS
Pricing modelUsage-basedOpen source, no licence fee
PlatformsWebLinux, macOS, Windows, Self-hosted
CategoryMachine LearningDatabases
Founded20082011

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

Which features does each one have?

They share no listed features; 10 appear only for BigQuery ML and 4 only for NATS. 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 BigQuery ML

  • SQL-based ML
  • AutoML Tables
  • Model export
  • Prediction functions
  • Feature preprocessing
  • BigQuery
  • Vertex AI
  • TensorFlow

Only in NATS

  • Very low latency
  • JetStream
  • Single binary
  • Request-reply

What is each one used for?

BigQuery ML is most often brought in for training models in SQL without exporting data; NATS for service-to-service messaging where latency is the binding constraint. The jobs each tool is most often brought in to do.

BigQuery ML

  • Training models in SQL without exporting datanot NATS
  • Linear and logistic regression on warehouse datanot NATS
  • K-means clustering and matrix factorisation for recommendationsnot NATS
  • Time series forecasting with ARIMA_PLUSnot NATS
  • Running imported ONNX, TensorFlow or XGBoost models against BigQuery datanot NATS

NATS

  • Service-to-service messaging where latency is the binding constraintnot BigQuery ML
  • Edge and IoT messaging where a lightweight broker mattersnot BigQuery ML
  • Replacing a heavier broker when the workload does not need its guaranteesnot BigQuery ML

Where do BigQuery ML and NATS fall short?

BigQuery ML's most cited limit: not available in BigQuery's Standard edition, so the cheapest tier cannot use it. NATS's: core NATS has no persistence at all, so messages are lost if no subscriber is listening. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

BigQuery ML

  • Not available in BigQuery's Standard edition, so the cheapest tier cannot use it
  • Billed through BigQuery compute and storage rather than as its own product, so training cost tracks data scanned
  • Remote models incur extra Agent Platform charges on top
  • Externally trained model types such as boosted trees and AutoML run through Agent Platform rather than inside BigQuery

NATS

  • Core NATS has no persistence at all, so messages are lost if no subscriber is listening
  • JetStream adds the durability but also the operational complexity NATS is chosen to avoid
  • A much smaller ecosystem than Kafka or RabbitMQ, with fewer connectors and integrations
  • Fewer people know it, so hiring and existing organisational knowledge favour the alternatives

How much do BigQuery ML and NATS cost?

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

BigQuery ML

Free
  • Free TierFree
    • 10GB storage
    • 1TB queries
  • On-Demand$5/tb
    • Pay per TB scanned
    • ML training costs

NATS

Free
  • NATSFree
    • Full functionality
    • No usage limits
    • Community support

Which should you pick?

Choose BigQuery ML if

  • You need sql-based ml.
  • You want to start without paying.
  • You also want automl tables.

Choose NATS if

  • You need very low latency.
  • You want to start without paying.
  • You work on Linux, macOS, Windows, Self-hosted.
  • You also want jetstream.

Questions people ask

Is BigQuery ML or NATS better?
It depends on the job. BigQuery ML fits training models in SQL without exporting data; NATS fits service-to-service messaging where latency is the binding constraint. BigQuery ML starts at Free and NATS at Free.
Which is cheaper, BigQuery ML or NATS?
BigQuery ML starts at Free and NATS at Free.
Does BigQuery ML or NATS run on more platforms?
BigQuery ML runs on Web. NATS runs on Linux, macOS, Windows, Self-hosted.
Can I use BigQuery ML for free?
Both have a free tier, so you can try either at no cost before committing.
What is BigQuery ML best used for?
BigQuery ML is most often used for training models in sql without exporting data, linear and logistic regression on warehouse data, k-means clustering and matrix factorisation for recommendations, time series forecasting with arima_plus. Of those, training models in sql without exporting data and linear and logistic regression on warehouse data are not what NATS is typically brought in for.
What can BigQuery ML do that NATS cannot?
BigQuery ML covers SQL-based ML, AutoML Tables, Model export, Prediction functions. NATS covers Very low latency, JetStream, Single binary, Request-reply.

Answered from the vendors’ own pages

BigQuery ML: How much does Google Cloud BigQuery ML cost?

BigQuery ML pricing is not specified separately on Google Cloud's pricing page. It follows the same pay-as-you-go model as BigQuery, charging per terabyte of data scanned during analysis. Customers receive $300 in free credits and can use 20+ products free up to monthly limits.

Source
NATS: Is NATS free?

Yes, open source and CNCF-graduated. Synadia sells a managed service.

BigQuery ML: Does Google Cloud offer a free trial?

Yes, new customers get $300 in free credits and all customers can use 20+ Google Cloud products free up to their monthly usage limits.

Source
NATS: Does NATS persist messages?

Core NATS does not — it is fire-and-forget. JetStream adds persistence, streaming and replay when you need them.

NATS: NATS or Kafka?

NATS is far lighter and lower latency, and much simpler to run. Kafka is the answer when you need a durable replayable log and a large connector ecosystem.

Share

Related pages

Other head to heads