# in-memory database

An in-memory database is a database designed to store data primarily in computer memory (RAM), enabling low-latency access while potentially persisting data to disk.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## AuraDB High Memory instances with up to 2TB of RAM now generally available

DevFeed: [AuraDB High Memory instances with up to 2TB of RAM now generally available](<https://devfeed.tech/articles/auradb-high-memory-instances-with-up-to-2tb-of-ram-now-generally-available-127285.md>)

Original publisher: [Read original article](<https://neo4j.com/blog/graph-database/auradb-high-memory-instances-with-up-to-2tb-of-ram-now-generally-available/>)

Author: paul blewett

Published: 2026-11-10T12:51:29Z

Content type: release

Language: en

Sources: [Neo4j](<https://devfeed.tech/sources/graph-database-technology-neo4j-blog.md>)

Topics: [in-memory database](<https://devfeed.tech/topics/in-memory-database.md>), [self-hosted databases vs managed services](<https://devfeed.tech/topics/self-hosted-databases-vs-managed-services.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [aml](<https://devfeed.tech/tags/aml.md>), [api](<https://devfeed.tech/tags/api.md>), [auradb](<https://devfeed.tech/tags/auradb.md>), [availability](<https://devfeed.tech/tags/availability.md>), [aws](<https://devfeed.tech/tags/aws.md>), [azure](<https://devfeed.tech/tags/azure.md>), [billing](<https://devfeed.tech/tags/billing.md>), [capacity](<https://devfeed.tech/tags/capacity.md>), [clone](<https://devfeed.tech/tags/clone.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [cloud-database](<https://devfeed.tech/tags/cloud-database.md>), [compute](<https://devfeed.tech/tags/compute.md>), [console](<https://devfeed.tech/tags/console.md>), [context](<https://devfeed.tech/tags/context.md>), [enterprise-scale](<https://devfeed.tech/tags/enterprise-scale.md>), [google-cloud](<https://devfeed.tech/tags/google-cloud.md>), [graph-database](<https://devfeed.tech/tags/graph-database.md>), [high-memory](<https://devfeed.tech/tags/high-memory.md>), [memory](<https://devfeed.tech/tags/memory.md>), [ram](<https://devfeed.tech/tags/ram.md>), [storage](<https://devfeed.tech/tags/storage.md>), [virtual](<https://devfeed.tech/tags/virtual.md>)

### AI overview

AuraDB Business Critical and Virtual Dedicated Cloud now offer High Memory instances with up to 2TB RAM on AWS and Google Cloud, plus storage up to 5TB on AWS, Google Cloud, and Azure. The larger working memory is intended to keep frequently accessed graph data in memory for relationship traversals and deep path queries. Four new sizes are requestable; regional capacity must be confirmed, and instances are available on prepaid terms. RAM and storage can be set separately, with billing per GB-hour; included disk follows a 1:2 RAM-to-storage ratio, and extra storage is charged at the standard rate. Customers can request a size in the Aura Console or through their Neo4j account team, then create and manage enabled instances using the existing Console or API workflows.

### Source excerpt

AuraDB Business Critical and Virtual Dedicated Cloud now offer High Memory instances with up to 2TB of RAM on both AWS and Google Cloud. We've also raised the maximum storage to 5TB on every cloud. High Memory instances give your... Read more ->

## How do you implement a random-access database when you don't have random-access external storage?

DevFeed: [How do you implement a random-access database when you don't have random-access external storage?](<https://devfeed.tech/articles/how-do-you-implement-a-random-access-database-when-you-don-t-have-random-access-external-storage-116366.md>)

Original publisher: [Read original article](<https://devblogs.microsoft.com/oldnewthing/20261103-00/?p=112825/>)

Author: Raymond Chen

Published: 2026-11-03T15:00:00Z

Content type: article

Language: en

Sources: [Raymond Chen](<https://devfeed.tech/sources/raymond-chen.md>)

Topics: [in-memory database](<https://devfeed.tech/topics/in-memory-database.md>), [Database](<https://devfeed.tech/topics/database.md>)

Tags: [apple](<https://devfeed.tech/tags/apple.md>), [basic](<https://devfeed.tech/tags/basic.md>), [data](<https://devfeed.tech/tags/data.md>), [database](<https://devfeed.tech/tags/database.md>), [directory](<https://devfeed.tech/tags/directory.md>), [history](<https://devfeed.tech/tags/history.md>), [memory](<https://devfeed.tech/tags/memory.md>), [old-new-thing](<https://devfeed.tech/tags/old-new-thing.md>), [program](<https://devfeed.tech/tags/program.md>), [storage](<https://devfeed.tech/tags/storage.md>)

### AI overview

The Apple II telephone directory stored its records inside the BASIC program itself: it read them from `DATA` statements and used `POKE` to modify those statements when records changed. Saving the program to cassette therefore saved both the code and the directory in one pass. Although the Apple II could save a separate block of memory to tape, embedding the data avoided a second cassette load when using the directory. The excerpt is uncertain whether the data appeared in `DATA` statements or comments, but says the same principle applies.

### Source excerpt

You just store it all in memory, in your own program. The post How do you implement a random-access database when you don't have random-access external storage? appeared first on The Old New Thing.

## Why Faster Algorithms Aren't Enough to Build High-Performance Data Platforms

DevFeed: [Why Faster Algorithms Aren't Enough to Build High-Performance Data Platforms](<https://devfeed.tech/articles/why-faster-algorithms-aren-t-enough-to-build-high-performance-data-platforms-102341.md>)

Original publisher: [Read original article](<https://hackernoon.com/why-faster-algorithms-arent-enough-to-build-high-performance-data-platforms?source=rss>)

Author: Megaladata

Published: 2026-10-27T13:43:41Z

Content type: article

Language: en

Sources: [HackerNoon](<https://devfeed.tech/sources/hackernoon.md>)

Topics: [systems](<https://devfeed.tech/topics/systems.md>), [High-Performance Computing](<https://devfeed.tech/topics/high-performance-computing.md>), [database-optimization](<https://devfeed.tech/topics/database-optimization.md>), [in-memory database](<https://devfeed.tech/topics/in-memory-database.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [2017](<https://devfeed.tech/tags/2017.md>), [3](<https://devfeed.tech/tags/3.md>), [about](<https://devfeed.tech/tags/about.md>), [aggregation](<https://devfeed.tech/tags/aggregation.md>), [algorithm](<https://devfeed.tech/tags/algorithm.md>), [algorithms](<https://devfeed.tech/tags/algorithms.md>), [browser](<https://devfeed.tech/tags/browser.md>), [build](<https://devfeed.tech/tags/build.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [data](<https://devfeed.tech/tags/data.md>), [data-engineering](<https://devfeed.tech/tags/data-engineering.md>), [data-platforms](<https://devfeed.tech/tags/data-platforms.md>), [data-visualization](<https://devfeed.tech/tags/data-visualization.md>), [engine](<https://devfeed.tech/tags/engine.md>), [faster](<https://devfeed.tech/tags/faster.md>), [good-company](<https://devfeed.tech/tags/good-company.md>), [high-performance](<https://devfeed.tech/tags/high-performance.md>), [in-memory-computing](<https://devfeed.tech/tags/in-memory-computing.md>), [memory](<https://devfeed.tech/tags/memory.md>), [memory-management](<https://devfeed.tech/tags/memory-management.md>), [node](<https://devfeed.tech/tags/node.md>), [parallel-computing](<https://devfeed.tech/tags/parallel-computing.md>), [performance](<https://devfeed.tech/tags/performance.md>), [performance-optimization](<https://devfeed.tech/tags/performance-optimization.md>), [platforms](<https://devfeed.tech/tags/platforms.md>), [software-architecture](<https://devfeed.tech/tags/software-architecture.md>), [tables](<https://devfeed.tech/tags/tables.md>)

### AI overview

Megaladata's performance approach treats speed as an end-to-end architectural property: it reduces data movement and memory use across the workflow, computation, and browser. Nodes share a common access interface while using specialized representations; sorting can store row indexes instead of copying a table, and calculated columns can be evaluated on demand. The engine also processes data in blocks, uses TCMalloc alongside fixed-size allocators for suitable workloads, and runs parallelizable tasks by default while managing worker lifecycles to release resources. Python code runs in separate processes so independent workflow branches can execute concurrently, at the cost of per-node data-transfer overhead. For display, the server sends table windows and decimates chart data instead of transferring entire datasets. The article emphasizes tradeoffs: splitting parallel work is easier than merging results efficiently, and optimizing one node may not optimize the whole workflow.

### Source excerpt

Why some tables should never exist: how a data engine cuts copies, memory use, and wasted CPU, from node-to-node access to what the browser actually draws.

## Your data is growing. Your RAM bill doesn't have to.

DevFeed: [Your data is growing. Your RAM bill doesn't have to.](<https://devfeed.tech/articles/your-data-is-growing-your-ram-bill-doesn-t-have-to-62873.md>)

Original publisher: [Read original article](<https://redis.io/blog/your-data-is-growing-your-ram-bill-doesnt-have-to/>)

Author: Simran Regmi

Published: 2026-09-30T00:00:00Z

Content type: article

Language: en

Sources: [Redis Blog](<https://devfeed.tech/sources/redis-blog.md>)

Topics: [in-memory database](<https://devfeed.tech/topics/in-memory-database.md>), [DRAM price increase](<https://devfeed.tech/topics/dram-price-increase.md>), [AI Factory](<https://devfeed.tech/topics/ai-factory.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [data](<https://devfeed.tech/tags/data.md>), [high-bandwidth-memory](<https://devfeed.tech/tags/high-bandwidth-memory.md>), [ram](<https://devfeed.tech/tags/ram.md>), [ram-prices](<https://devfeed.tech/tags/ram-prices.md>), [recommendation-systems](<https://devfeed.tech/tags/recommendation-systems.md>), [redis](<https://devfeed.tech/tags/redis.md>), [server](<https://devfeed.tech/tags/server.md>), [ssd](<https://devfeed.tech/tags/ssd.md>), [tech](<https://devfeed.tech/tags/tech.md>)

### AI overview

Rising server memory prices increase the cost of expanding in-memory databases and keeping duplicate capacity for reliability. The article argues that pairing RAM with SSD can lower storage costs while keeping frequently accessed data fast, but the tiering design matters: systems that keep every key in RAM limit savings, while systems that move both keys and values to SSD leave more memory for frequently used data.

### Source excerpt

AI is pushing memory prices up, fast For decades, memory got cheaper over time. In late 2025 that reversed, and AI is the reason. Memory makers have shifted their factories toward the high-bandwidth memory that AI accelerators need, leaving less capa...

## Scale your workloads without paying all-RAM prices

DevFeed: [Scale your workloads without paying all-RAM prices](<https://devfeed.tech/articles/scale-your-workloads-without-paying-all-ram-prices-64222.md>)

Original publisher: [Read original article](<https://redis.io/blog/scale-your-workloads-without-paying-all-ram-prices/>)

Author: Simran Regmi

Published: 2026-09-30T00:00:00Z

Content type: article

Language: en

Sources: [Redis Blog](<https://devfeed.tech/sources/redis-blog-2.md>), [Redis Blog](<https://devfeed.tech/sources/redis-blog.md>)

Topics: [memory pool](<https://devfeed.tech/topics/memory-pool.md>), [in-memory database](<https://devfeed.tech/topics/in-memory-database.md>), [memory price increases](<https://devfeed.tech/topics/memory-price-increases.md>), [Local AI](<https://devfeed.tech/topics/local-ai.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [cache](<https://devfeed.tech/tags/cache.md>), [capacity](<https://devfeed.tech/tags/capacity.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [cost](<https://devfeed.tech/tags/cost.md>), [engineering-ai](<https://devfeed.tech/tags/engineering-ai.md>), [feature-store](<https://devfeed.tech/tags/feature-store.md>), [ram-prices](<https://devfeed.tech/tags/ram-prices.md>), [tech](<https://devfeed.tech/tags/tech.md>)

### AI overview

The article explains how rising RAM costs affect in-memory databases and describes tiering hot data in RAM and less frequently used data on SSD. It presents Redis Flex as a way to adjust the RAM-to-SSD ratio while retaining a single database and API, including for feature stores, caches, and agent workloads.

### Source excerpt

AI is pushing memory prices up, fast For decades, memory got cheaper every year. In late 2025 that reversed. Memory makers shifted capacity to the high-bandwidth memory AI accelerators need, cloud providers locked up the rest, and server DRAM prices ...

## Dragonfly 2.0 adds Redis and Valkey compatibility and reduces processing overhead

DevFeed: [Dragonfly 2.0 adds Redis and Valkey compatibility and reduces processing overhead](<https://devfeed.tech/articles/dragonfly-2-0-delivers-more-performance-for-this-modern-replacement-to-redis-memcached-41399.md>)

Original publisher: [Read original article](<https://www.phoronix.com/news/Dragonfly-2.0-Released>)

Author: Michael Larabel

Published: 2026-09-17T10:02:19Z

Content type: release

Language: en

Sources: [Phoronix](<https://devfeed.tech/sources/phoronix.md>)

Topics: [in-memory database](<https://devfeed.tech/topics/in-memory-database.md>), [Memcached](<https://devfeed.tech/topics/memcached.md>), [Redis](<https://devfeed.tech/topics/redis.md>), [data](<https://devfeed.tech/topics/data.md>)

Tags: [compatibility](<https://devfeed.tech/tags/compatibility.md>), [desktop-linux](<https://devfeed.tech/tags/desktop-linux.md>), [in-memory-database](<https://devfeed.tech/tags/in-memory-database.md>), [linux-benchmarking](<https://devfeed.tech/tags/linux-benchmarking.md>), [linux-hardware-benchmarks](<https://devfeed.tech/tags/linux-hardware-benchmarks.md>), [linux-hardware-reviews](<https://devfeed.tech/tags/linux-hardware-reviews.md>), [linux-how-to](<https://devfeed.tech/tags/linux-how-to.md>), [linux-performance](<https://devfeed.tech/tags/linux-performance.md>), [linux-server-benchmarks](<https://devfeed.tech/tags/linux-server-benchmarks.md>), [memcached](<https://devfeed.tech/tags/memcached.md>), [open-source-graphics](<https://devfeed.tech/tags/open-source-graphics.md>), [overhead](<https://devfeed.tech/tags/overhead.md>), [phoronix](<https://devfeed.tech/tags/phoronix.md>), [phoronix-test-suite](<https://devfeed.tech/tags/phoronix-test-suite.md>), [redis](<https://devfeed.tech/tags/redis.md>), [release](<https://devfeed.tech/tags/release.md>), [serialization](<https://devfeed.tech/tags/serialization.md>), [ubuntu-benchmarks](<https://devfeed.tech/tags/ubuntu-benchmarks.md>), [ubuntu-hardware](<https://devfeed.tech/tags/ubuntu-hardware.md>), [valkey](<https://devfeed.tech/tags/valkey.md>), [version](<https://devfeed.tech/tags/version.md>)

### AI overview

Dragonfly 2.0 is a new release of the in-memory database that expands Redis and Valkey compatibility, adds Valkey 9 RDB loading support, and reduces connection processing and memory accounting overhead.

### Source excerpt

Released on Wednesday was a new version of the Dragonfly database that continues to promote itself as "the world's most efficient in-memory data store" and a modern replacement to the likes of Redis and Memcached while being fully compatible with their APIs...

## Scaling HNSWs

DevFeed: [Scaling HNSWs](<https://devfeed.tech/articles/scaling-hnsws-20647.md>)

Original publisher: [Read original article](<http://antirez.com/news/156>)

Author: Antirez

Published: 2025-11-11T12:53:38Z

Content type: article

Language: en

Sources: [Antirez](<https://devfeed.tech/sources/antirez.md>)

Topics: [Data structures](<https://devfeed.tech/topics/data-structures.md>), [vector embeddings in AI](<https://devfeed.tech/topics/vector-embeddings-in-ai.md>), [Embeddings](<https://devfeed.tech/topics/embeddings.md>), [Latency](<https://devfeed.tech/topics/latency.md>), [in-memory database](<https://devfeed.tech/topics/in-memory-database.md>)

Tags: [high-performance](<https://devfeed.tech/tags/high-performance.md>), [hnsw](<https://devfeed.tech/tags/hnsw.md>), [optimizations](<https://devfeed.tech/tags/optimizations.md>), [redis](<https://devfeed.tech/tags/redis.md>), [scaling](<https://devfeed.tech/tags/scaling.md>), [searching](<https://devfeed.tech/tags/searching.md>), [similarity](<https://devfeed.tech/tags/similarity.md>), [vector](<https://devfeed.tech/tags/vector.md>)

### AI overview

The author's Redis Vector Sets implementation focuses on making HNSWs practical for low latency, memory use, deletion, and scaling. Per-vector signed 8-bit quantization reduces vector storage about fourfold and reportedly gives nearly the same recall in real workloads; the author says it also yields almost 4x speedup, while pointers still consume substantial space. Threaded searches use per-thread visit epochs, and inserts separate neighbor search from a locked commit. Bidirectional links support immediate deletion; the remaining neighbors are paired greedily to reconnect the graph. The data-structure API enables clients to query multiple instances in parallel and merge scored results, or partition writes across instances. Serializing nodes and links directly instead of rebuilding from vectors reportedly speeds loading by 100x; loading also checks and repairs graph validity. The excerpt additionally describes bounded JSON-expression filtering during search. Reported throughput and recall figures are implementation- and workload-specific, and the author presents several findings as early results.

### Source excerpt

I'm taking a few weeks of pause on my HNSWs developments (now working on some other data structure, news soon). At this point, the new type I added to Redis is stable and complete enough, it's the perfect moment to reason about what I learned about HNSWs, and turn it into a blog post. That kind of brain dump that was so common pre-AI era, and now has become, maybe, a bit more rare. Well, after almost one year of thinking and implementing HNSWs and vector similarity stuff, it is time for some writing. However this is not going to be an intro on HNSWs: too many are present already. This is the "extra mile" instead. If you know HNSWs, I want to share with you my more "advanced" findings, especially in the context of making them fast enough to allow for a "Redis" experience: you know, Redis is designed for low latency and high performance, and HNSWs are kinda resistant to that, so there were challenges to expose HNSWs as an abstract data structure. This blog post will be split into several sections. Think of them as pages of the same book, different chapters of the same experience. Oh and, by the way, I already wrote and subsequently lost this blog post :D [long, sad story about MacOS and bad habits - I hadn't lost something like that since the 90s, during blackouts], so here most of the problem will be to recall what I wrote a few days ago and, while I'm at it, to better rephrase what I didn't like very much. ## A few words about the state of HNSW Before digging into the HNSWs internals and optimizations, I want to say a few things about HNSWs. The original paper introducing HNSWs is a great piece of computer science literature, and HNSWs are amazing data structures, but: I don't believe they are the last word for searching, in a greedy way, for nearby vectors according to a distance function. The paper gives the feeling it lacks some "pieces", almost like if the researchers, given six months more, had a lot more to explore and say. For instance, I modified the paper m

## Snapshotting in a high throughput shared nothing database

DevFeed: [Snapshotting in a high throughput shared nothing database](<https://devfeed.tech/articles/snapshotting-in-a-high-throughput-shared-nothing-database-39632.md>)

Original publisher: [Read original article](<https://www.gauravsarma.com/posts/2025-01-27_Snapshotting-in-a-high-throughput-shared-nothing-database>)

Published: 2025-01-27T00:00:00Z

Content type: tutorial

Language: en

Sources: [Gaurav Sarma's](<https://devfeed.tech/sources/gaurav-sarma-s-blog.md>)

Topics: [Database](<https://devfeed.tech/topics/database.md>), [Go Language](<https://devfeed.tech/topics/go-language.md>), [in-memory database](<https://devfeed.tech/topics/in-memory-database.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [Redis](<https://devfeed.tech/topics/redis.md>)

Tags: [database](<https://devfeed.tech/tags/database.md>), [go](<https://devfeed.tech/tags/go.md>), [golang](<https://devfeed.tech/tags/golang.md>), [goroutines](<https://devfeed.tech/tags/goroutines.md>), [in-memory-database](<https://devfeed.tech/tags/in-memory-database.md>), [monitoring](<https://devfeed.tech/tags/monitoring.md>), [redis](<https://devfeed.tech/tags/redis.md>), [single-threaded](<https://devfeed.tech/tags/single-threaded.md>)

### AI overview

This article explains the requirements and design considerations for adding point-in-time snapshots to a high-throughput, shared-nothing in-memory database written in Go. It examines copying data during writes, compares the approach with Redis's copy-on-write snapshotting, and begins testing copy-on-write behavior in a Go process.

### Source excerpt

. [Snapshotting in a High-Throughput Shared-Nothing Database](snapshotting-in-a-high-throughput-shared-nothing-database-cover...

## Learning full stack - Implementation details

DevFeed: [Learning full stack - Implementation details](<https://devfeed.tech/articles/learning-full-stack-implementation-details-28713.md>)

Original publisher: [Read original article](<https://jeroenmols.com/blog/2024/11/14/full-stack-implementation/>)

Author: info@jeroenmols.com (Jeroen Mols)

Published: 2024-11-14T00:00:00Z

Content type: tutorial

Language: en

Sources: [Jeroen Mols](<https://devfeed.tech/sources/jeroen-mols.md>)

Topics: [Full Stack Development](<https://devfeed.tech/topics/full-stack-development.md>), [implementation](<https://devfeed.tech/topics/implementation.md>), [API](<https://devfeed.tech/topics/api.md>), [Go Language](<https://devfeed.tech/topics/go-language.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [Authentication](<https://devfeed.tech/topics/authentication.md>), [Cross-origin resource sharing (CORS)](<https://devfeed.tech/topics/cors.md>), [in-memory database](<https://devfeed.tech/topics/in-memory-database.md>), [Authorization](<https://devfeed.tech/topics/authorization.md>), [HTTP](<https://devfeed.tech/topics/http.md>), [JSON](<https://devfeed.tech/topics/json.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [authorization](<https://devfeed.tech/tags/authorization.md>), [backend](<https://devfeed.tech/tags/backend.md>), [blogs](<https://devfeed.tech/tags/blogs.md>), [cors](<https://devfeed.tech/tags/cors.md>), [development](<https://devfeed.tech/tags/development.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [full-stack](<https://devfeed.tech/tags/full-stack.md>), [full-stack-development](<https://devfeed.tech/tags/full-stack-development.md>), [go](<https://devfeed.tech/tags/go.md>), [http](<https://devfeed.tech/tags/http.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [in-memory-database](<https://devfeed.tech/tags/in-memory-database.md>), [json](<https://devfeed.tech/tags/json.md>), [side-project](<https://devfeed.tech/tags/side-project.md>)

### AI overview

The final part of a full-stack development series explains the implementation of a to-do list project. It covers REST API design, authentication and CORS middleware, Go backend structure and routing, and an in-memory database serialized as JSON.

### Source excerpt

To conclude my series on full-stack development, this part will look at the implementation, design choices, what worked well and what didn't. This builds on the to-do list project proposed in part 1 and the tech stack described in part 2.

## MemoryDB: Speed, Durability, and Composition.

DevFeed: [MemoryDB: Speed, Durability, and Composition.](<https://devfeed.tech/articles/memorydb-speed-durability-and-composition-12556.md>)

Original publisher: [Read original article](<http://brooker.co.za/blog/2024/04/25/memorydb.html>)

Author: Marc Brooker

Published: 2024-04-25T00:00:00Z

Content type: article

Language: en

Sources: [Marc Brooker's](<https://devfeed.tech/sources/marc-brooker-s-blog.md>)

Topics: [in-memory database](<https://devfeed.tech/topics/in-memory-database.md>), [systems](<https://devfeed.tech/topics/systems.md>), [consistency](<https://devfeed.tech/topics/consistency.md>), [software-architecture](<https://devfeed.tech/topics/software-architecture.md>), [Cache](<https://devfeed.tech/topics/cache.md>)

Tags: [amazon](<https://devfeed.tech/tags/amazon.md>), [amazon-memorydb](<https://devfeed.tech/tags/amazon-memorydb.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [availability](<https://devfeed.tech/tags/availability.md>), [aws](<https://devfeed.tech/tags/aws.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [compatibility](<https://devfeed.tech/tags/compatibility.md>), [composition](<https://devfeed.tech/tags/composition.md>), [consistency](<https://devfeed.tech/tags/consistency.md>), [cost](<https://devfeed.tech/tags/cost.md>), [data-loss](<https://devfeed.tech/tags/data-loss.md>), [database](<https://devfeed.tech/tags/database.md>), [datacenter](<https://devfeed.tech/tags/datacenter.md>), [distributed](<https://devfeed.tech/tags/distributed.md>), [distributed-systems](<https://devfeed.tech/tags/distributed-systems.md>), [durability](<https://devfeed.tech/tags/durability.md>), [election](<https://devfeed.tech/tags/election.md>), [enterprise](<https://devfeed.tech/tags/enterprise.md>), [enterprise-security](<https://devfeed.tech/tags/enterprise-security.md>), [speed](<https://devfeed.tech/tags/speed.md>)

### AI overview

MemoryDB combines Redis with a fast, multi-AZ transaction journal to retain Redis compatibility while providing durable writes, strong consistency on failover, high availability, microsecond-scale reads, and single-digit millisecond writes. The journal synchronously replicates data and also supports replica fan-out, leader election through fencing, and safe reconfiguration, reducing changes needed inside Redis. Snapshotting is moved off the database nodes to avoid latency spikes and the extra RAM that on-box snapshots can require; the separate snapshot service is optimized for throughput. The excerpt explains that lease-based leadership alone can be unsafe when pauses delay a writer past its lease deadline, so the journal must validate the leader's identity on writes. These are claims and explanations from the supplied excerpt, which ends during its description of journal benefits.

### Source excerpt

MemoryDB: Speed, Durability, and Composition. Blocks are fun. Earlier this week, my colleagues Yacine Taleb, Kevin McGehee, Nan Yan, Shawn Wang, Stefan Mueller, and Allen Samuels published Amazon MemoryDB: A fast and durable memory-first cloud database1. I'm excited about this paper, both because its a very cool system, and because it gives us an opportunity to talk about the power of composition in distributed systems, and about the power of distributed systems in general. But first, what is MemoryDB? Amazon MemoryDB for Redis is a durable database with microsecond reads, low single-digit millisecond writes, scalability, and enterprise security. MemoryDB delivers 99.99% availability and near instantaneous recovery without any data loss. or, from the paper: We describe how, using this architecture, we are able to remain fully compatible with Redis, while providing single-digit millisecond write and microsecond-scale read latencies, strong consistency, and high availability. This is remarkable: MemoryDB keeps compatibility with an existing in-memory data store, adds multi-AZ (multi-datacenter) durability, adds high availability, and adds strong consistency on failover, while still improving read performance and with fairly little cost to write performance. How does that work? As usual, there's a lot of important details, but the basic idea is composing the in-memory store (Redis) with our existing fast, multi-AZ transaction journal2 service (a system we use in many places inside AWS). Composition What's particularly interesting about this architecture is that the journal service doesn't only provide durability. Instead, it provides multiple different benefits: durability (by synchronously replicating writes onto storage in multiple AZs), fan-out (by being the replication stream replicas can consume), leader election (by having strongly-consistent fencing APIs that make it easy to ensure there's a single leader per shard), safety during reconfiguration and resharding

## Erasure Coding versus Tail Latency

DevFeed: [Erasure Coding versus Tail Latency](<https://devfeed.tech/articles/erasure-coding-versus-tail-latency-12531.md>)

Original publisher: [Read original article](<http://brooker.co.za/blog/2023/01/06/erasure.html>)

Author: Marc Brooker

Published: 2023-01-06T00:00:00Z

Content type: article

Language: en

Sources: [Marc Brooker's](<https://devfeed.tech/sources/marc-brooker-s-blog.md>)

Topics: [performance-engineering](<https://devfeed.tech/topics/performance-engineering.md>), [Service fabric](<https://devfeed.tech/topics/service-fabric.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [RAID](<https://devfeed.tech/topics/raid.md>), [rate-limiting](<https://devfeed.tech/topics/rate-limiting.md>), [in-memory database](<https://devfeed.tech/topics/in-memory-database.md>)

Tags: [coding](<https://devfeed.tech/tags/coding.md>), [communication](<https://devfeed.tech/tags/communication.md>), [durability](<https://devfeed.tech/tags/durability.md>), [latency](<https://devfeed.tech/tags/latency.md>), [object-storage](<https://devfeed.tech/tags/object-storage.md>), [radio](<https://devfeed.tech/tags/radio.md>), [scale](<https://devfeed.tech/tags/scale.md>), [storage](<https://devfeed.tech/tags/storage.md>)

### AI overview

Erasure coding can reduce cache fetch latency and improve availability while using less storage than duplicating every object. In the example, an object is encoded into five pieces and can be reconstructed from any four: fetching all five and using the first four to arrive adds 5x request overhead, with 20% worst-case bandwidth and storage overhead. The cited measurement reports about a 20% reduction in median latency and a large tail-latency improvement versus fetching four of four shards in parallel. Unlike hedging, which duplicates requests and mainly helps at the tail, this scheme can also improve lower percentiles. It tolerates up to M−k component failures under the described independent-failure assumption, and flexible shard selection can spread load, though schemes with low k may carry high write and storage costs. The excerpt also cautions that hedged requests can amplify correlated slowdowns; a token bucket can cap their extra load.

### Source excerpt

Erasure Coding versus Tail Latency There are zero FEC puns in this post, against my better judgement. Jeff Dean and Luiz Barroso's paper The Tail At Scale popularized an idea they called hedging, simply sending the same request to multiple places and using the first one to return. That can be done immediately, or after some delay: One such approach is to defer sending a secondary request until the first request has been outstanding for more than the 95th-percentile expected latency for this class of requests. Smart stuff, and has become something of a standard technique for systems where tail latencies are a high multiple of the 50th or 95th percentile latencies1. The downside of hedged requests is that it's all-or-nothing: you either have to send twice, or once. They're also modal, and don't do much to help against lower percentile latencies. There's a more general technique available that has many of the benefits of hedged requests, with improved flexibility and power to reduce even lower percentile latencies: erasure coding. What is Erasure Coding? Erasure coding is the idea that we can take a blob of data, break it up into M parts, in such a way that we can reconstruct it from any k of those M parts2. They're pretty ubiquitous in storage systems, block storage, object storage, higher RAID levels, and so on. When storage systems think about erasure codes, they're usually thinking about durability: the ability of the system to tolerate $M - k$ disk or host failures without losing data, while still having only $\frac{M - k}{M}$ storage overhead. The general idea is also widely used in modern communication and radio protocols3. If you're touching your phone or the cloud, there are erasure codes at work. I won't go into the mathematics of erasure coding here, but will say that it is somewhat remarkable to me that they exist for any combination of k and M (obviously for $k \leq M$). It's one of those things that's both profound and obvious, at least to me. Erasure Cod

## Using H2 as a Test Database Product with jOOQ

DevFeed: [Using H2 as a Test Database Product with jOOQ](<https://devfeed.tech/articles/using-h2-as-a-test-database-product-with-jooq-28969.md>)

Original publisher: [Read original article](<https://blog.jooq.org/using-h2-as-a-test-database-product/>)

Author: lukaseder

Published: 2022-08-19T07:25:43Z

Content type: tutorial

Language: en

Sources: [jOOQ](<https://devfeed.tech/sources/jooq.md>)

Topics: [in-memory database](<https://devfeed.tech/topics/in-memory-database.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Java](<https://devfeed.tech/topics/java.md>), [SQL](<https://devfeed.tech/topics/sql.md>), [sql-server](<https://devfeed.tech/topics/sql-server.md>)

Tags: [compatibility-mode](<https://devfeed.tech/tags/compatibility-mode.md>), [database](<https://devfeed.tech/tags/database.md>), [h2](<https://devfeed.tech/tags/h2.md>), [in-memory-database](<https://devfeed.tech/tags/in-memory-database.md>), [integration-testing](<https://devfeed.tech/tags/integration-testing.md>), [java](<https://devfeed.tech/tags/java.md>), [jooq](<https://devfeed.tech/tags/jooq.md>), [jooq-in-use](<https://devfeed.tech/tags/jooq-in-use.md>), [sql](<https://devfeed.tech/tags/sql.md>), [sql-server](<https://devfeed.tech/tags/sql-server.md>), [testcontainers](<https://devfeed.tech/tags/testcontainers.md>), [testing](<https://devfeed.tech/tags/testing.md>), [vendor-agnosticity](<https://devfeed.tech/tags/vendor-agnosticity.md>)

### AI overview

This article explains the trade-offs of using H2 as a test database for Java applications with jOOQ. It shows why SQL that works on H2 may require syntax changes on SQL Server, describes H2 compatibility modes, and notes that jOOQ generates SQL for H2's native dialect rather than its compatibility modes.

### Source excerpt

The H2 database is an immensely popular in-memory database product mostly used by Java developers for testing. If you check out the DB-Engines ranking, it ranks 50th, which is quite impressive, as this rank outperforms products like: CockroachDB Ignite Single Store (previously MemSQL) Interbase (which was forked as Firebird) Ingres (which is a predecessor to ... Continue reading Using H2 as a Test Database Product with jOOQ ->

## How to use an in-memory database for testing on Ktor

DevFeed: [How to use an in-memory database for testing on Ktor](<https://devfeed.tech/articles/how-to-use-an-in-memory-database-for-testing-on-ktor-25560.md>)

Original publisher: [Read original article](<https://www.marcogomiero.com/posts/2021/ktor-in-memory-db-testing/>)

Author: Marco Gomiero

Published: 2021-10-04T00:00:00Z

Content type: tutorial

Language: en

Sources: [Posts on Marco Gomiero](<https://devfeed.tech/sources/posts-on-marco-gomiero.md>)

Topics: [in-memory database](<https://devfeed.tech/topics/in-memory-database.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Database](<https://devfeed.tech/topics/database.md>), [Ktor](<https://devfeed.tech/topics/ktor.md>), [Back end](<https://devfeed.tech/topics/backend.md>)

Tags: [database](<https://devfeed.tech/tags/database.md>), [exposed](<https://devfeed.tech/tags/exposed.md>), [h2](<https://devfeed.tech/tags/h2.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [in-memory-database](<https://devfeed.tech/tags/in-memory-database.md>), [ktor](<https://devfeed.tech/tags/ktor.md>), [mysql](<https://devfeed.tech/tags/mysql.md>), [orm](<https://devfeed.tech/tags/orm.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

Automated tests need a database they can reset or prepopulate to cover both empty and populated states. The article chooses an in-memory H2 database for tests in a Ktor project that uses MySQL in production; because its data is held in memory, closing the connection clears it. It contrasts this with starting a dedicated Docker database container for each run, which can more closely match production, and notes a critique of in-memory testing databases. The project uses JetBrains Exposed, which supports H2 and several other databases. The supplied excerpt does not include the concrete dependency or configuration steps.

### Source excerpt

SERIES: Building a backend with Ktor Part 1: Structuring a Ktor project Part 2: How to persist Ktor logs Part 3: How to use an in-memory database for testing on Ktor Part 4: How to handle database migrations with Liquibase on Ktor Part 5 Generate API documentation from Swagger on Ktor Part 6: How to schedule jobs with Quartz on Ktor Part 7: Moving from mobile to backend development with Ktor Usually, in a backend project, there are different instances of the same database: one for production (or more than one, it depends on the architecture), one for staging, and a local one that runs in the development machine.

## Lessons Learned: Managing web server capacity with Auto Scaling

DevFeed: [Lessons Learned: Managing web server capacity with Auto Scaling](<https://devfeed.tech/articles/lessons-learned-managing-web-server-capacity-with-auto-scaling-27894.md>)

Original publisher: [Read original article](<https://clevertap.com/blog/lessons-learnt-managing-web-server-capacity-with-auto-scaling/>)

Author: Francis Pereira

Published: 2017-06-13T07:14:43Z

Content type: article

Language: en

Sources: [CleverTap](<https://devfeed.tech/sources/clevertap.md>)

Topics: [Server](<https://devfeed.tech/topics/server.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>), [Docker](<https://devfeed.tech/topics/docker.md>), [in-memory database](<https://devfeed.tech/topics/in-memory-database.md>), [Latency](<https://devfeed.tech/topics/latency.md>)

Tags: [agile](<https://devfeed.tech/tags/agile.md>), [cache](<https://devfeed.tech/tags/cache.md>), [clevertap](<https://devfeed.tech/tags/clevertap.md>), [clevertap-technology-servers-engineering](<https://devfeed.tech/tags/clevertap-technology-servers-engineering.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [docker](<https://devfeed.tech/tags/docker.md>), [docker-container](<https://devfeed.tech/tags/docker-container.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [latency](<https://devfeed.tech/tags/latency.md>), [scale](<https://devfeed.tech/tags/scale.md>), [server](<https://devfeed.tech/tags/server.md>), [servers](<https://devfeed.tech/tags/servers.md>), [technology](<https://devfeed.tech/tags/technology.md>), [web](<https://devfeed.tech/tags/web.md>)

### AI overview

This article shares lessons from using Auto Scaling to handle daily peaks of approximately 116K requests per second. It recommends fast responses using in-memory systems, measuring latency to guide capacity planning, ensuring consistent instance bootstrapping, avoiding external dependencies during deployment, and packaging applications in Docker containers.

### Source excerpt

We have been experimenting with agile, faster and reliable ways to work with Auto Scaling to minimise last minute surprises, The post Lessons Learned: Managing web server capacity with Auto Scaling first appeared on CleverTap.

## Clarifications about Redis and Memcached

DevFeed: [Clarifications about Redis and Memcached](<https://devfeed.tech/articles/clarifications-about-redis-and-memcached-20685.md>)

Original publisher: [Read original article](<http://antirez.com/news/94>)

Author: Antirez

Published: 2015-09-26T16:16:14Z

Content type: comparison

Language: en

Sources: [Antirez](<https://devfeed.tech/sources/antirez.md>)

Topics: [Redis](<https://devfeed.tech/topics/redis.md>), [Memcached](<https://devfeed.tech/topics/memcached.md>), [Cache](<https://devfeed.tech/topics/cache.md>), [in-memory database](<https://devfeed.tech/topics/in-memory-database.md>)

Tags: [caching](<https://devfeed.tech/tags/caching.md>), [memcached](<https://devfeed.tech/tags/memcached.md>), [persistence](<https://devfeed.tech/tags/persistence.md>), [redis](<https://devfeed.tech/tags/redis.md>)

### AI overview

The author argues that Redis can serve as a Memcached-style cache with disk I/O disabled, and says Redis persistence can remain an optional benefit. Memcached's multithreading is acknowledged as an advantage for simpler operation; the author counters that Redis can handle high per-thread throughput, especially with pipelining, and multiple Redis processes can provide a shared-nothing setup. The comparison also depends on workload: Memcached may use memory more efficiently for plain string dictionaries, while Redis's compact encodings can suit small aggregates; changing value sizes may fragment Memcached's slab allocator, whereas Redis offers more deterministic memory use and an improved approximate LRU. Redis also provides richer data structures, persistence and replication, observability, and Lua scripting. The author says these features matter only when the use case needs them and recommends evaluating both systems against the workload.

### Source excerpt

If you know me, you know I'm not the kind of guy that considers competing products a bad thing. I actually love the users to have choices, so I rarely do anything like comparing Redis with other technologies. However it is also true that in order to pick the right solution users must be correctly informed. This post was triggered by reading a blog post published by Mike Perham, that you may know as the author of a popular library called Sidekiq, that happens to use Redis as backend. So I would not consider Mike a person which is "against" Redis at all. Yet in his blog post that you can find at the URL http://www.mikeperham.com/2015/09/24/storing-data-with-redis/ he states that, for caching, "you should probably use Memcached instead [of Redis]". So Mike simply really believes Redis is not good for caching, and he arguments his thesis in this way: 1) Memcached is designed for caching. 2) It performs no disk I/O at all. 3) It is multi threaded and can handle 100,000s of requests by scaling multi core. I'll address the above statements, and later will provide further informations which are not captured by the above sentences and which are in my opinion more relevant to most caching users and use cases. Memcached is designed for caching: I'll skip this since it is not an argument. I can say "Redis is designed for caching". So in this regard they are exactly the same, let's move to the next thing. It performs no disk I/O at all: In Redis you can just disable disk I/O at all if you want, providing you with a purely in-memory experience. Except, if you really need it, you can persist the database only when you are going to reboot, for example with "SHUTDOWN SAVE". The bottom line here is that Redis persistence is an added value even when you don't use it at all. It is multi threaded: This is true, and in my goals there is to make Redis I/O threaded (like in memcached, where the data access itself is not threaded, basically). However Redis, especially using pipelining, can