Softwr

Web Development · head to head

Preact vs Rook

Preact logo

Preact

Web Development

3kB alternative to React with the same modern API

From
Free
Free plan
Yes
Rook logo

Rook

Cloud

Kubernetes operator that deploys and manages Ceph storage clusters

From
Free
Free plan
Yes

The short version

  • Both are free.
  • Only Preact lists 3kB runtime; only Rook lists ceph operator.
  • Where Preact falls short: compatibility through preact/compat is good but not total, and some React libraries break in ways that are hard to diagnose.

How do Preact and Rook differ?

Preact and Rook differ on platforms (Web against Linux, Self-hosted) and category (Web Development against Cloud). Only the attributes on which Preact and Rook actually diverge.

Attributes where Preact and Rook differ
AttributePreactRook
PlatformsWebLinux, Self-hosted
CategoryWeb DevelopmentCloud

Identical on both: starting price (Free), pricing model (Open source, no licence fee), free tier (Yes).

Which features does each one have?

They share no listed features; 4 appear only for Preact and 6 only for Rook. 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 Preact

  • 3kB runtime
  • preact/compat
  • Same modern API
  • Fast rendering

Only in Rook

  • Ceph operator
  • Block, file and object
  • Erasure coding
  • CSI driver
  • Automated upgrades
  • Multi-cluster mirroring

What is each one used for?

Preact is most often brought in for embedded widgets that load inside someone else’s page and must stay small. The jobs each tool is most often brought in to do.

Preact

  • Embedded widgets that load inside someone else’s page and must stay smallnot Rook
  • Marketing and content sites where JavaScript payload affects Core Web Vitalsnot Rook
  • Applications targeting low-bandwidth or low-powered devicesnot Rook

Rook

  • An on-premises Kubernetes platform needing block, shared filesystem and S3 storage without buying three productsnot Preact
  • A team that already runs Ceph and wants its lifecycle managed declaratively inside Kubernetesnot Preact
  • A large cluster where three-way replication overhead is unaffordable and erasure coding is requirednot Preact
  • An organisation building a private cloud that cannot use managed cloud storage services for residency reasonsnot Preact

Where do Preact and Rook fall short?

Preact's most cited limit: behavioural differences from React exist in edge cases, particularly around event handling. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Preact

  • Compatibility through preact/compat is good but not total, and some React libraries break in ways that are hard to diagnose
  • Behavioural differences from React exist in edge cases, particularly around event handling
  • A much smaller community, so unusual problems have fewer existing answers than React

Rook

  • Rook automates Ceph but does not abstract it, so an incident still demands Ceph expertise, and organisations without it end up hiring consultants at exactly the wrong moment
  • There is no vendor and no SLA; the realistic commercial support routes are IBM Red Hat OpenShift Data Foundation or an independent Ceph consultancy, both of which change the cost picture entirely
  • Ceph is resource hungry, needing substantial memory and dedicated disks per OSD, so the hardware cost of a properly sized cluster is often underestimated
  • Recovery and rebalancing after a disk or node failure generates heavy background input and output that can degrade application performance for hours, which surprises teams sizing for steady state
  • Minimum viable clusters require several nodes with several disks each, so it is impractical at small scale and the entry hardware cost exceeds simpler alternatives

How much do Preact and Rook cost?

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

Preact

Free
  • PreactFree
    • Full library
    • Commercial use permitted
    • No usage limits

Rook

Free
  • RookFree
    • Apache 2.0 licensed, no licence fee
    • Graduated CNCF project
    • Community support via GitHub and Slack only

Which should you pick?

Choose Preact if

  • You need 3kb runtime.
  • You want to start without paying.
  • You also want preact/compat.

Choose Rook if

  • You need ceph operator.
  • You want to start without paying.
  • You work on Linux, Self-hosted.
  • You also want block, file and object.

Questions people ask

Is Preact or Rook better?
It depends on the job. Preact fits embedded widgets that load inside someone else’s page and must stay small; Rook fits an on-premises Kubernetes platform needing block, shared filesystem and S3 storage without buying three products. Preact starts at Free and Rook at Free.
Which is cheaper, Preact or Rook?
Preact starts at Free and Rook at Free.
Does Preact or Rook run on more platforms?
Preact runs on Web. Rook runs on Linux, Self-hosted.
Can I use Preact for free?
Both have a free tier, so you can try either at no cost before committing.
What is Preact best used for?
Preact is most often used for embedded widgets that load inside someone else’s page and must stay small, marketing and content sites where javascript payload affects core web vitals, applications targeting low-bandwidth or low-powered devices. Of those, embedded widgets that load inside someone else’s page and must stay small and marketing and content sites where javascript payload affects core web vitals are not what Rook is typically brought in for.
What can Preact do that Rook cannot?
Preact covers 3kB runtime, preact/compat, Same modern API, Fast rendering. Rook covers Ceph operator, Block, file and object, Erasure coding, CSI driver.

Answered from the vendors’ own pages

Preact: Is Preact free?

Yes, open source under the MIT licence.

Rook: Who supports it in production?

Nobody by default. IBM sells Red Hat OpenShift Data Foundation, which is supported Rook and Ceph, and independent consultancies sell Ceph support. Decide this before deployment.

Preact: Can I use React libraries with Preact?

Most, through the preact/compat layer. Compatibility is good but not complete, so libraries relying on React internals can break.

Rook: Does it need Ceph knowledge?

Yes. Rook handles deployment and routine operations, but troubleshooting a degraded cluster is a Ceph skill and there is no way around it.

Preact: Why choose Preact over React?

Bundle size, almost always. If payload is not a binding constraint, React’s ecosystem is usually the better trade.

Rook: Can it replace an object storage appliance?

Functionally yes, through the RADOS gateway, but you take on the operations that an appliance vendor would otherwise carry.

Share

Related pages

Other head to heads