Magma

maintenance

by Chris Muller · since 2002 · also known as Magma OODB, Magma for Squeak

Multi-user object database for Squeak and Pharo Smalltalk, written entirely in Smalltalk.

objectdatabase engineopen source (permissive)legacy

maintenance. Last formal release Magma 1.4 (Dec 2012); described as stable and still maintained on the Squeak wiki, with no recent releases.

Overview

Magma, by Chris Muller, persists Squeak (and later Pharo) object graphs transparently: you commit changes to plain Smalltalk objects and other users see them, with optimistic locking, nested transactions and large indexed collections that can be queried. It is written entirely in Smalltalk, runs client-server across images, supports high-availability replicas and federated clusters, and can even serve as a Monticello code repository; later versions store BlockClosures and use a WriteBarrier for change tracking. Development started around 2002, the last formal release (1.4) came in December 2012, and the Squeak wiki still describes it as stable and maintained. It is a niche tool for Smalltalk developers who want GemStone-like persistence without a commercial server.

Strengths & trade-offs

Strengths

  • +Transparent persistence of ordinary Smalltalk objects, no mapping layer
  • +Multi-user access with optimistic locking and nested transactions
  • +Large indexed collections with queries
  • +Pure Smalltalk, MIT-licensed, with live class evolution

Trade-offs

  • −No release since 2012; tiny user base
  • −Only usable from Squeak/Pharo
  • −Performance and tooling far behind GemStone/S

Great for

  • +Persistent object models for Squeak or Pharo applications
  • +Seaside web apps needing a pure-Smalltalk store

Think twice for

  • −Non-Smalltalk stacks
  • −Large-scale or high-throughput production systems

Capabilities

Native or official first-party support · 4 of 25 tracked

✓Transactions
✓Secondary indexes
✓Durable persistence
✓Online schema changes
–Joins
–Full-text search
–Vector search
–Geospatial
–JSON
–Change data capture
–Triggers
–Stored procedures
–Materialized views
–TTL / expiry
–Pub/Sub
–Columnar storage
–In-memory
–Compression
–Encryption at rest
–Role-based access
–Time travel
–Branching
–Streaming ingest
–Offline sync
–Runs in WebAssembly

Scale & consistency

Comfortable data size
Small · ≤ 100 GB
Horizontal scaling
None
Multi-region
No
Transactions
Full ACID
Consistency
Strong
Schema
Schemaless
Architecture
Client server, Primary replica
Query languages
Smalltalk

Single server image with optional replicas for availability.

Deployment

Self-hosted Vendor-managed cloud Serverless Embedded Edge Kubernetes operator

Ecosystem

apis & protocolsSmalltalk API
client languagesSmalltalk

Alternatives to Magma

Compare all→
GemStone/SObject6.1

Smalltalk object database where application code runs inside the transactional object repository.

magma vs gemstone-s →
ZODBObject22.7

Transparent persistence for Python objects with ACID transactions and history.

magma vs zodb →
db4oObject4.7

Pioneering embeddable object database for Java and .NET, discontinued by Actian in 2014.

magma vs db4o →
Actian NoSQL (Versant)Object3.1

Enterprise object database formerly known as Versant, sold by Actian for complex object models.

magma vs versant-object-database →
JADEObject5.4

New Zealand's integrated object database, language and app server for building line-of-business systems.

magma vs jade →
StarcounterObject2.6

In-memory .NET application platform where C# classes are database tables, with no ORM in between.

magma vs starcounter →

Magma FAQ

What is Magma?

Magma is an object database by Chris Muller, first released in 2002. Magma, by Chris Muller, persists Squeak (and later Pharo) object graphs transparently: you commit changes to plain Smalltalk objects and other users see them, with optimistic locking, nested transactions and large indexed collections that can be queried. It is written entirely in Smalltalk, runs client-server across images, supports high-availability replicas and federated clusters, and can even serve as a Monticello code repository; later versions store BlockClosures and use a WriteBarrier for change tracking. Development started around 2002, the last formal release (1.4) came in December 2012, and the Squeak wiki still describes it as stable and maintained. It is a niche tool for Smalltalk developers who want GemStone-like persistence without a commercial server.

Is Magma open source?

Yes. Magma is open source. License: MIT License.

Does Magma support ACID transactions?

Yes. Magma supports full ACID transactions, with strong consistency.

Does Magma scale horizontally?

Magma does not scale horizontally; it runs on a single node, so you scale it up rather than out. It is comfortable at small scale (≤ 100 GB).

How can I run Magma?

You can self-host it.

What is Magma best for?

Magma is a strong fit for persistent object models for Squeak or Pharo applications and seaside web apps needing a pure-Smalltalk store. Think twice for non-Smalltalk stacks.

What are the best alternatives to Magma?

Common alternatives to Magma include GemStone/S, ZODB, db4o, Actian NoSQL (Versant) and JADE. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

Is Magma still maintained?

Magma is in maintenance mode. Last formal release Magma 1.4 (Dec 2012); described as stable and still maintained on the Squeak wiki, with no recent releases.

How popular is Magma?

Magma has little measurable public adoption today, so it ranks near the bottom of the WhichDB Score.