Softwr

Databases · head to head

Memcached vs Ory Kratos

M

Memcached

Databases

Distributed memory object caching system

From
Free
Free plan
Yes
Ory Kratos logo

Ory Kratos

Cybersecurity

Headless identity and user management API

From
Free
Free plan
Yes

The short version

  • Both are free.
  • Only Memcached lists in-memory key-value cache; only Ory Kratos lists headless API.
  • Where Memcached falls short: no persistence at all: restart a node and its cache is gone, which every design must assume.
  • Where Ory Kratos falls short: headless means you build every screen, which is significant work compared with a hosted login page.

How do Memcached and Ory Kratos differ?

Memcached and Ory Kratos differ on pricing model, platforms and category (Databases against Cybersecurity). Only the attributes on which Memcached and Ory Kratos actually diverge.

Attributes where Memcached and Ory Kratos differ
AttributeMemcachedOry Kratos
Pricing modelOpen source, no licence fee; managed cloud billed separatelyOpen-source self-hosted, with a paid managed network
PlatformsLinux, macOS, Windows, Self-hostedLinux, Self-hosted
CategoryDatabasesCybersecurity
Founded20032019

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

Which features does each one have?

They share no listed features; 4 appear only for Memcached 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 Memcached

  • In-memory key-value cache
  • Multithreaded
  • Client-side sharding
  • Predictable memory use

Only in Ory Kratos

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

What is each one used for?

Memcached is most often brought in for caching expensive database query results to cut load; 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.

Memcached

  • Caching expensive database query results to cut loadnot Ory Kratos
  • Session storage where losing sessions on restart is acceptablenot Ory Kratos
  • Fronting an API whose responses are costly and change slowlynot Ory Kratos

Ory Kratos

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

Where do Memcached and Ory Kratos fall short?

Memcached's most cited limit: no persistence at all: restart a node and its cache is gone, which every design must assume. 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.

Memcached

  • No persistence at all: restart a node and its cache is gone, which every design must assume
  • No replication or failover, so losing a node loses that share of the cache
  • Only simple key-value, with none of the lists, sorted sets or streams Redis offers
  • Values are capped at 1MB by default, which surprises teams caching large documents

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 Memcached and Ory Kratos cost?

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

Memcached

Free
  • MemcachedFree
    • Full functionality
    • Self-hosted
    • No usage limits

Ory Kratos

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

Which should you pick?

Choose Memcached if

  • You need in-memory key-value cache.
  • You want to start without paying.
  • You work on Linux, macOS, Windows, Self-hosted.
  • You also want multithreaded.

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 Memcached or Ory Kratos better?
It depends on the job. Memcached fits caching expensive database query results to cut load; Ory Kratos fits products needing complete control over the look and flow of authentication. Memcached starts at Free and Ory Kratos at Free.
Which is cheaper, Memcached or Ory Kratos?
Memcached starts at Free and Ory Kratos at Free.
Does Memcached or Ory Kratos run on more platforms?
Memcached runs on Linux, macOS, Windows, Self-hosted. Ory Kratos runs on Linux, Self-hosted.
Can I use Memcached for free?
Both have a free tier, so you can try either at no cost before committing.
What is Memcached best used for?
Memcached is most often used for caching expensive database query results to cut load, session storage where losing sessions on restart is acceptable, fronting an api whose responses are costly and change slowly. Of those, caching expensive database query results to cut load and session storage where losing sessions on restart is acceptable are not what Ory Kratos is typically brought in for.
What can Memcached do that Ory Kratos cannot?
Memcached covers In-memory key-value cache, Multithreaded, Client-side sharding, Predictable memory use. Ory Kratos covers Headless API, Self-service flows, Multi-factor authentication, Pluggable identity schemas.

Answered from the vendors’ own pages

Memcached: Is Memcached free?

Yes, open source with no licence fee.

Ory Kratos: Is Ory Kratos free?

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

Memcached: Memcached or Redis?

Memcached is a pure cache: simpler, multithreaded and very predictable. Redis adds persistence, replication and rich data structures, which is why it is the default choice unless you specifically want a cache and nothing more.

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.

Memcached: Does Memcached persist data?

No. Everything is in memory and lost on restart, by design.

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