Hekaton

active

by Microsoft · since 2014 · also known as SQL Server In-Memory OLTP, In-Memory OLTP, memory-optimized tables

SQL Server's built-in lock-free, memory-optimized OLTP engine with natively compiled T-SQL.

relationalextensionproprietarymature

Overview

Hekaton is the code name for In-Memory OLTP, the memory-optimized transaction engine built into Microsoft SQL Server since 2014 and available in Azure SQL Database and Azure SQL Managed Instance. Tables declared MEMORY_OPTIMIZED live entirely in RAM with hash or Bw-tree indexes, and use multi-version optimistic concurrency with no locks or latches; T-SQL stored procedures, triggers and scalar functions can be compiled to native machine code. Tables are fully durable through the transaction log by default, or can be declared SCHEMA_ONLY to skip I/O for session state and staging data. Because it lives inside SQL Server, memory-optimized and disk-based tables can be joined in one query and share backups and availability groups.

Strengths & trade-offs

Strengths

  • +Lock- and latch-free multi-version concurrency removes contention hot spots
  • +Natively compiled stored procedures cut CPU per transaction
  • +SCHEMA_ONLY tables give no-I/O temp tables, staging tables and session state
  • +Mix memory-optimized and disk-based tables in the same database and query
  • +Works with SQL Server backups, availability groups and failover clusters

Trade-offs

  • −All memory-optimized data must fit in RAM and needs careful memory sizing
  • −Natively compiled modules support a restricted T-SQL surface
  • −Optimistic concurrency means write conflicts abort and need retry logic
  • −Only available inside SQL Server and Azure SQL

Great for

  • +High-throughput order, trading or betting transactions
  • +ASP.NET session state and mid-tier caching
  • +IoT and sensor ingestion
  • +Replacing tempdb table variables and temp tables
  • +ETL staging tables

Think twice for

  • −Large-range analytical scans (use columnstore)
  • −Data sets bigger than server memory

Capabilities

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

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

Scale & consistency

Comfortable data size
Medium · ≤ 10 TB
Horizontal scaling
None
Multi-region
Read replicas
Transactions
Full ACID
Consistency
Strong
Schema
Strict
Architecture
In memory, Client server
Query languages
T-SQL

Memory-optimized data must fit in the server's RAM; scale-out and DR come from SQL Server availability groups.

Deployment

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

available on · Azure

Ecosystem

compatible withSQL Server
apis & protocolsTDS
client languagesC#, Java, Python, JavaScript, Go, C, PHP
used bybwin

Alternatives to Hekaton

Compare all→
Microsoft SQL ServerRelational71.0

Microsoft's flagship RDBMS: T-SQL, columnstore, Always On, and now native vectors and JSON.

hekaton vs sql-server →
Volt Active Data (VoltDB)Relational20.7

In-memory, partitioned SQL engine running Java stored procedures serially for millisecond decisioning.

hekaton vs volt-active-data →
Oracle TimesTenRelational9.5

Oracle's in-memory relational database: microsecond SQL, PL/SQL, and a cache tier for Oracle Database.

hekaton vs oracle-timesten →
SAP HANARelational39.7

SAP's in-memory columnar HTAP database, the mandatory engine under S/4HANA.

hekaton vs sap-hana →
SingleStoreRelational29.0

Distributed SQL running transactions, analytics, vector and full-text search in one engine on live data.

hekaton vs singlestore →
ReadysetRelational12.7

A wire-compatible SQL cache for Postgres and MySQL that keeps cached queries fresh from replication.

hekaton vs readyset →

Hekaton FAQ

What is Hekaton?

Hekaton is a relational database by Microsoft, first released in 2014. Hekaton is the code name for In-Memory OLTP, the memory-optimized transaction engine built into Microsoft SQL Server since 2014 and available in Azure SQL Database and Azure SQL Managed Instance. Tables declared MEMORY_OPTIMIZED live entirely in RAM with hash or Bw-tree indexes, and use multi-version optimistic concurrency with no locks or latches; T-SQL stored procedures, triggers and scalar functions can be compiled to native machine code. Tables are fully durable through the transaction log by default, or can be declared SCHEMA_ONLY to skip I/O for session state and staging data. Because it lives inside SQL Server, memory-optimized and disk-based tables can be joined in one query and share backups and availability groups.

Is Hekaton open source?

No. Hekaton is proprietary, closed-source software. License: Included with Microsoft SQL Server licensing.

Does Hekaton support ACID transactions?

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

Does Hekaton scale horizontally?

Hekaton does not scale horizontally; it runs on a single node, so you scale it up rather than out. It is comfortable at medium scale (≤ 10 TB). It supports cross-region read replicas.

How can I run Hekaton?

You can self-host it and use the vendor's managed cloud. Managed offerings include Azure SQL Database and Azure SQL Managed Instance. It is available on Azure.

What is Hekaton best for?

Hekaton is a strong fit for high-throughput order, trading or betting transactions; ASP.NET session state and mid-tier caching; and IoT and sensor ingestion. Think twice for large-range analytical scans (use columnstore).

What are the best alternatives to Hekaton?

Common alternatives to Hekaton include Microsoft SQL Server, Volt Active Data (VoltDB), Oracle TimesTen, SAP HANA and SingleStore. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

How popular is Hekaton?

Hekaton ranks #435 of 844 databases on the WhichDB Score (3.5/100), and #138 among relational databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.