Softwr

Networking · head to head

MQTT vs Valkey

MQTT logo

MQTT

Networking

Lightweight messaging protocol for IoT devices

From
Free
Free plan
Yes
Valkey logo

Valkey

Databases

Open-source in-memory data store forked from Redis

From
Free
Free plan
Yes

The short version

  • Both are free.
  • Only MQTT lists QoS Levels; only Valkey lists BSD licensed.
  • Where MQTT falls short: MQTT is an open-source protocol standard with no commercial pricing; not a commercial product.
  • Where Valkey falls short: younger project, so its track record is short even though the codebase is not.

How do MQTT and Valkey differ?

MQTT and Valkey differ on pricing model, platforms and category (Networking against Databases). Only the attributes on which MQTT and Valkey actually diverge.

Attributes where MQTT and Valkey differ
AttributeMQTTValkey
Pricing modelOpen-sourceOpen source, no licence fee; managed cloud billed separately
PlatformsAny platform, Embedded devices, Web, Browser extensionLinux, macOS, Self-hosted
CategoryNetworkingDatabases
Founded19992024

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

Which features does each one have?

They share no listed features; 12 appear only for MQTT and 4 only for Valkey. 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 MQTT

  • Publish-Subscribe
  • Lightweight
  • QoS Levels
  • Retained Messages
  • IoT platforms
  • Home automation
  • Cloud services
  • Edge devices

Only in Valkey

  • Redis-compatible
  • BSD licensed
  • Rich data structures
  • Replication and persistence

What is each one used for?

MQTT is most often brought in for IoT messaging; Valkey for migrating from Redis without rewriting application code. The jobs each tool is most often brought in to do.

MQTT

  • IoT messagingnot Valkey
  • Sensor datanot Valkey
  • Real-time updatesnot Valkey
  • Device telemetrynot Valkey

Valkey

  • Continuing on a permissively licensed in-memory store after the Redis licence changenot MQTT
  • Caching and session storage where a foundation-governed project is a procurement requirementnot MQTT
  • Migrating from Redis without rewriting application codenot MQTT

Where do MQTT and Valkey fall short?

MQTT's most cited limit: MQTT is an open-source protocol standard with no commercial pricing; not a commercial product. Valkey's: younger project, so its track record is short even though the codebase is not. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

MQTT

  • MQTT is an open-source protocol standard with no commercial pricing; not a commercial product
  • Security is not built into the protocol: encryption relies on TLS or application level encryption, and TLS adds network overhead
  • Clients cannot exchange messages directly: a broker server is required to route published messages to subscribers
  • Delivery has only three quality of service levels (at most once, at least once, exactly once), so richer routing needs broker features

Valkey

  • Younger project, so its track record is short even though the codebase is not
  • Divergence from Redis grows over time, so compatibility is strongest near the fork point and weakens as both evolve
  • Ecosystem tooling and documentation still frequently assume Redis, leaving translation work

How much do MQTT and Valkey cost?

MQTT is free to use; Valkey is free to use. Plan by plan below, from each vendor's own pricing page.

MQTT

Free
  • Open ProtocolFree
    • Publish-subscribe
    • Lightweight
    • QoS levels

Valkey

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

Which should you pick?

Choose MQTT if

  • You need publish-subscribe.
  • You want to start without paying.
  • You work on Any platform, Embedded devices, Web, Browser extension.
  • You also want lightweight.

Choose Valkey if

  • You need redis-compatible.
  • You want to start without paying.
  • You work on Linux, macOS, Self-hosted.
  • You also want bsd licensed.

Questions people ask

Is MQTT or Valkey better?
It depends on the job. MQTT fits ioT messaging; Valkey fits continuing on a permissively licensed in-memory store after the Redis licence change. MQTT starts at Free and Valkey at Free.
Which is cheaper, MQTT or Valkey?
MQTT starts at Free and Valkey at Free.
Does MQTT or Valkey run on more platforms?
MQTT runs on Any platform, Embedded devices, Web, Browser extension. Valkey runs on Linux, macOS, Self-hosted.
Can I use MQTT for free?
Both have a free tier, so you can try either at no cost before committing.
What is MQTT best used for?
MQTT is most often used for iot messaging, sensor data, real-time updates, device telemetry. Of those, iot messaging and sensor data are not what Valkey is typically brought in for.
What can MQTT do that Valkey cannot?
MQTT covers Publish-Subscribe, Lightweight, QoS Levels, Retained Messages. Valkey covers Redis-compatible, BSD licensed, Rich data structures, Replication and persistence.

Answered from the vendors’ own pages

MQTT: Does MQTT have a commercial license cost?

MQTT is an open-source communication protocol and standard. No pricing is published because MQTT itself is not a commercial product for sale.

Source
Valkey: Is Valkey free?

Yes, BSD-licensed open source under the Linux Foundation.

Valkey: Why does Valkey exist?

Redis changed its licence away from BSD in 2024. Valkey is the community fork continuing under permissive terms, backed by AWS, Google Cloud and Oracle among others.

Valkey: Can I switch from Redis to Valkey?

At the fork point it is drop-in compatible with existing clients and data. The further both projects move from that point, the more you should verify the specific features you use.

Share

Related pages

Other head to heads