Softwr

Cloud · head to head

Google Cloud Run vs Ory Kratos

Google Cloud Run logo

Google Cloud Run

Cloud

Managed platform for running containers and functions on Google Cloud

From
On request
Free plan
No
Ory Kratos logo

Ory Kratos

Cybersecurity

Headless identity and user management API

From
Free
Free plan
Yes

The short version

  • Ory Kratos is free; Google Cloud Run prices on request.
  • Only Google Cloud Run lists deploy any container image; only Ory Kratos lists headless API.
  • Where Google Cloud Run falls short: runs only on Google Cloud, so there is no self-hosted option.
  • Where Ory Kratos falls short: headless means you build every screen, which is significant work compared with a hosted login page.

How do Google Cloud Run and Ory Kratos differ?

Google Cloud Run and Ory Kratos differ on starting price (On request against Free), pricing model and free tier (No against Yes). Only the attributes on which Google Cloud Run and Ory Kratos actually diverge.

Attributes where Google Cloud Run and Ory Kratos differ
AttributeGoogle Cloud RunOry Kratos
Starting priceOn requestFree
Pricing modelUsage-basedOpen-source self-hosted, with a paid managed network
Free tierNoYes
PlatformsWebLinux, Self-hosted
CategoryCloudCybersecurity

Not yet recorded: founded for Google Cloud Run.

Which features does each one have?

They share no listed features; 9 appear only for Google Cloud Run and 4 only for Ory Kratos. 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 Google Cloud Run

  • Deploy any container image
  • Source-based builds for common languages
  • Services with automatic scaling and scale to zero
  • Jobs for scheduled or manual tasks
  • Worker pools for background processing
  • Traffic splitting and rollback between revisions
  • Custom domains and managed TLS
  • Request-based and instance-based billing

Only in Ory Kratos

  • Headless API
  • Self-service flows
  • Multi-factor authentication
  • Pluggable identity schemas

What is each one used for?

Google Cloud Run is most often brought in for hosting web APIs and microservices; Ory Kratos for products needing complete control over the look and flow of authentication. The jobs each tool is most often brought in to do.

Google Cloud Run

  • Hosting web APIs and microservicesnot Ory Kratos
  • Scheduled batch jobsnot Ory Kratos
  • Queue consumers on worker poolsnot Ory Kratos
  • Deploying containers without managing clustersnot Ory Kratos
  • Event-driven backends with Pub/Subnot Ory Kratos

Ory Kratos

  • Products needing complete control over the look and flow of authenticationnot Google Cloud Run
  • Applications that must not hand user identity data to a third partynot Google Cloud Run
  • Teams building identity as infrastructure across several servicesnot Google Cloud Run

Where do Google Cloud Run and Ory Kratos fall short?

Google Cloud Run's most cited limit: runs only on Google Cloud, so there is no self-hosted option. Ory Kratos's: headless means you build every screen, which is significant work compared with a hosted login page. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Google Cloud Run

  • Runs only on Google Cloud, so there is no self-hosted option
  • The container file system is in memory and not persistent
  • Worker pools do not autoscale natively and need at least one instance
  • Services are stateless, so state needs external storage

Ory Kratos

  • Headless means you build every screen, which is significant work compared with a hosted login page
  • More moving parts than a monolithic IAM: Kratos handles identity, and OAuth2 needs Ory Hydra alongside
  • Documentation assumes real familiarity with identity concepts and is not a gentle introduction
  • Self-hosting identity carries the security and availability burden that hosted providers absorb

How much do Google Cloud Run and Ory Kratos cost?

Ory Kratos is free to use. Plan by plan below, from each vendor's own pricing page.

Google Cloud Run

On request

No published plan breakdown. See the Google Cloud Run review.

Ory Kratos

Free
  • Self-hostedFree
    • Full identity server
    • All flows
    • Community support

Which should you pick?

Choose Google Cloud Run if

  • You need deploy any container image.
  • You also want source-based builds for common languages.

Choose Ory Kratos if

  • You need headless api.
  • You want to start without paying.
  • You work on Linux, Self-hosted.
  • You also want self-service flows.

Questions people ask

Is Google Cloud Run or Ory Kratos better?
It depends on the job. Google Cloud Run fits hosting web APIs and microservices; Ory Kratos fits products needing complete control over the look and flow of authentication. Google Cloud Run starts at On request and Ory Kratos at Free.
Which is cheaper, Google Cloud Run or Ory Kratos?
Ory Kratos has a free tier; the other does not. Paid plans start at On request for Google Cloud Run and Free for Ory Kratos.
Does Google Cloud Run or Ory Kratos run on more platforms?
Google Cloud Run runs on Web. Ory Kratos runs on Linux, Self-hosted.
Can I use Ory Kratos for free?
Yes. Ory Kratos has a free tier, so you can try it without paying. Google Cloud Run starts at On request.
What is Google Cloud Run best used for?
Google Cloud Run is most often used for hosting web apis and microservices, scheduled batch jobs, queue consumers on worker pools, deploying containers without managing clusters. Of those, hosting web apis and microservices and scheduled batch jobs are not what Ory Kratos is typically brought in for.
What can Google Cloud Run do that Ory Kratos cannot?
Google Cloud Run covers Deploy any container image, Source-based builds for common languages, Services with automatic scaling and scale to zero, Jobs for scheduled or manual tasks. Ory Kratos covers Headless API, Self-service flows, Multi-factor authentication, Pluggable identity schemas.

Answered from the vendors’ own pages

Google Cloud Run: What can Cloud Run run?

Any container image, or source code for Go, Node.js, Python, Java.NET and Ruby that Google builds into a container.

Source
Ory Kratos: Is Ory Kratos free?

Yes, open source and free to self-host. Ory Network is a paid managed service.

Google Cloud Run: How is Cloud Run billed?

Allocated CPU and memory are billed in 100 millisecond granularity, in request-based or instance-based mode. A free tier is available.

Source
Ory Kratos: What does headless mean here?

Kratos provides identity flows as APIs and no user interface. You build the login, registration and recovery screens yourself.

Google Cloud Run: Can Cloud Run scale to zero?

Yes. Services scale to zero when idle unless a minimum number of instances is set.

Source
Ory Kratos: Does Kratos do OAuth2?

No. Kratos handles user identity; OAuth2 and OpenID Connect provider functionality is Ory Hydra, a separate component.

Share

Related pages

Other head to heads